Re: [Fxruby-users] Simple drive/dir/file browser
Status: Inactive
Brought to you by:
lyle
|
From: Lyle J. <ly...@kn...> - 2004-05-25 00:30:32
|
On May 23, 2004, at 8:48 PM, Tom wrote:
> Aha! This is what I put in, after creating with "drivebox =
> FXDriveBox..." and "dirbox = FXDirBox..."
>
> drivebox.connect(SEL_COMMAND) { |send,sel,ptr|
> dirbox.directory = send.drive
> }
>
> Is this an appropriate usage of the sender or should I have used
> "drivebox.drive" instead?
Either one is fine. In this case, the drivebox *is* the sender of the
SEL_COMMAND message, so "send" is a reference to your FXDriveBox
object.
|