From: Lyle J. <jl...@cf...> - 2003-07-29 12:46:20
|
Recheis Meinrad wrote: > where can i look up a list of all possible events a FXGLCanvas can produce? > the FXRuby doc is not very helpful with events. Well, the FXRuby API documentation for events is about as good as it's going to be. Each class lists all of the events that it might send to its message target, as well as the message data that's sent along with the event. And as Hugh Sasse has pointed out in a separate reply, it is /generally/ the case that a widget of some derived class (like FXGLCanvas) will also send the messages that its superclass sends. So for FXGLCanvas, you'd start at its documentation page: http://www.fxruby.org/doc/api/classes/Fox/FXGLCanvas.html Now, as it turns out, FXGLCanvas doesn't add anything, in terms of messages sent, to its superclass, so no events are listed here. But if you jump up to the documentation for its superclass: http://www.fxruby.org/doc/api/classes/Fox/FXCanvas.html you see that FXCanvas forwards the SEL_KEYPRESS, SEL_KEYRELEASE, SEL_MOTION and SEL_PAINT messages to its target. Jumping further up the inheritance chain to FXCanvas' superclass: http://www.fxruby.org/doc/api/classes/Fox/FXWindow.html Things really get interesting. Since FXWindow is the base class for all windows (widgets), most of the core functionality (and its documentation) starts here. Hope this helps, Lyle |