Re: [Fxruby-users] Re: to get list of messages for widget
Status: Inactive
Brought to you by:
lyle
From: Joel V. <vj...@us...> - 2004-05-12 17:55:30
|
ly...@kn... wrote: > On Wed, 12 May 2004 04:16:06 -0700 (PDT), Vladislav Guzov > <vl...@ya...> wrote : > > >>Is it possible to get list of messages for a widget ? > > > The documentation page for each widget lists the messages that it sends to > its message target. For example, if you look at the docs for FXButton: > > http://www.fxruby.org/doc/api/classes/Fox/FXButton.html > > you'll see that it sends the SEL_KEYPRESS, SEL_KEYRELEASE, > SEL_LEFTBUTTONPRESS, SEL_LEFTBUTTONRELEASE and SEL_COMMAND messages to its > target. Something else that may help: $ irb -r fox irb(main):001:0> include Fox => Object irb(main):002:0> FXWindow.instance_methods.grep /set/ => ["setTarget", "setInitial", "setDNDData", "setKey", "setBackColor", "setSelector", "setShown", "setUserData", "setEnabled", "setX", "setY", "setWidth", "setHeight", "setDragCursor", "setDragRectangle", "instance_variable_set", "setLayoutHints", "setFocus", "setCursorPosition", "setAccelTable", "setVisual", "setDefault", "setDefaultCursor"] |