[fxruby-users] messages

Lyle Johnson lyle at lylejohnson.name
Tue Oct 21 20:59:36 EDT 2008

On Oct 21, 2008, at 2:54 PM, angico wrote:

> How could I send a message to a widget? Say, I want to have a modal  
> window to be closed after a specified timeout. How could I send it a  
> "default" ID_CANCEL or ID_ACCEPT message, in order to have it close  
> itself and return control to its parent window?

This should do the trick:

	dialog.handle(self, FXSEL(SEL_COMMAND, FXDialogBox::ID_ACCEPT), nil)

Hope this helps,


"FXRuby: Create Lean and Mean GUIs with Ruby"
Now available from the Pragmatic Bookshelf!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081021/3e68dcd8/attachment.html>

More information about the fxruby-users mailing list