Displaying 1 result from an estimated 1 matches for "id_last".
Did you mean:
wd_last
2005 Apr 05
0
Connecting messages to methods
...''m trying to write a subclass of FXMainWindow which has several methods to
dispatch events. The class looks like this:
--
require "fox12"
require "fox12/responder"
include Fox
class Window < FXMainWindow
include Responder
ID_SELF,
ID_BTN = enum(FXMainWindow::ID_LAST, 2)
def initialize(a, title)
super(a, title, nil, nil, DECOR_ALL, 0, 0, 640, 480)
self.setSelector(ID_SELF)
self.setTarget(self)
self.connect(SEL_CLOSE, method(:onClose))
self.connect(SEL_COMMAND, method(:onCommand))
FXButton.new(self, "Click me!", nil, self, ID_BTN)
end...