[fxruby-users] programmatically "pushing" a button

Thomas, Jason M (Software) jmthomas at ball.com
Tue Dec 18 14:08:50 EST 2007

I'm trying to use the Ruby unit test framework to exercise my FxRuby
application. I have access to my button but I don't know how to
programmatically "push" it. I tried the following:
  button.handle(button, MKUINT(FXWindow::ID_ENABLE, SEL_COMMAND), nil)
This appears to have no effect at all. What am I doing wrong?

This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20071218/818938b1/attachment.html 

More information about the fxruby-users mailing list