[Fxruby-users] Why doesn't 'handle' work like 'connect' in reverse?
Status: Inactive
Brought to you by:
lyle
|
From: Richard <ri...@li...> - 2004-04-09 14:19:41
|
I'm trying to figure out how to get the method 'handle' to work.
I've done something similar to:
test_handle=FXButton.new(mainwin_reference,"Text for button").connect
(SEL_COMMAND) { |sen,sel,data|
puts "You've pressed me"
puts sen
puts sel
puts data
}
Then using that same information I call 'handle' using the button as a
reference, but it doesn't trigger the "You've pressed me" statement
(I don't have the code infront of me and I'd be afraid I'd mess it
up.).
I know I'm using 'handle' semi-correctly, since I can get the button
to look 'pressed' (and not released) I think it was ID_CHECKED or
something like that (I went through all of the ID_WHATEVERS from the
RDoc page on FXWindow), but I can't get the "You've pressed me"
handler to fire.
Thanks in advance for any help I get... What am I doing wrong?
-Rich
|