[Fxruby-users] Newbie question about making own drawables
Status: Inactive
Brought to you by:
lyle
From: Fredrik J. <fr...@po...> - 2003-11-23 23:10:04
|
Hi, I want to make something that's pretty simple. I want to have a couple of objects drawn on a canvas. These objects should be event-aware, so I get notified if they're clicked, dragged or otherwise manipulated. But I can't even figure out which FX object to inherit from. Neither 'FXDrawable' or 'FXImage' implements the 'connect' method. And since I can't even get to know when SEL_PAINT is requested, I don't know how I can get to know if a key has been pressed from SEL_KEYPRESSED. I guess my lack of knowledge of how to program GUI is the major culprit here, but could someone please point me to some documents which could help me out? The stuff I find on FXRuby seems to assume that I already know Fox and the document on Fox assumes that I'm using C++, although I'd suppose it's pretty easy to translate into Ruby? TIA, //F |