search for: fxmapfunc

Displaying 1 result from an estimated 1 matches for "fxmapfunc".

Did you mean: fxmapfuncs
2005 Apr 05
0
Connecting messages to methods
...nd(sender, sel, event) # ... end end -- I''d like to redirect all SEL_COMMAND events to Window::onCommand. As an example, if one clicks the button, the message (SEL_COMMAND, ID_BTN) is sent to the Window class but is not handled there (Window::onCommand is never called). When using FXMAPFUNC(SEL_COMMAND, ID_BTN, "onCommand") or (better) FXMAPFUNCS(SEL_COMMAND, ID_SELF, ID_BTN, "onCommand") this should work but I neither want to use this C-macro style nor do I want to add .connect(SEL_COMMAND, method(:onCommand)) to each widget I append to Window (this is one...