Re: [Fxruby-users] Strange Behaviour under Win32 with FXRuby
Status: Inactive
Brought to you by:
lyle
|
From: Hugh S. S. E. E. <hg...@dm...> - 2003-12-10 19:19:31
|
On Wed, 10 Dec 2003, Stef T wrote:
> One last teeny tiny probably stupid question, which i know
> breaks OO design but, how would i tie a 'connect' onto a
> button from another class ? Can you typecast the connect
> so that it knows its going onto a FXButton in an instance
> variable or is there a 'widget controller' which i can
> query to get an FXButton 'handle' passed to me ?
Excuse me jumping in. Though I'm not sure I understand the above...
>
> (i have a single login/password dialog, and depending on
> where the person 'okays', i want to run a different method
> in different classes, if you see what i mean :)
...Then just use the block to send appropriate messages to the
desired destination objects. Or have I really missed something
big? I think encapsulation means being clear about your interfaces,
not complete isolationism...
>
> Sorry for the really 'clumsy' way of doing this :)
> Many thanks and best regards
> Stef
>
Hugh, who doesn't consider himself fluent in FXRuby matters
yet.
|