I am trying to use FXCursor on Windows with the default cursors, but, albeit there is no error, the cursors don''t change. Is there a working example of it somewhere or something is broken? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20050809/4da4abb9/attachment.htm
Hi Gonzalo, There might be something on the screenshots page, which is actually a list of screenshots of all the example code running with links to the text of the associated source code. Hope this helps Twitch On 8/9/05, Gonzalo Garramuno <ggarra@advancedsl.com.ar> wrote:> > I am trying to use FXCursor on Windows with the default cursors, but, albeit > there is no error, the cursors don''t change. > Is there a working example of it somewhere or something is broken? > > _______________________________________________ > fxruby-users mailing list > fxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > >-- ==================================Woulds''t thou so blame the fragrant blos''ms wilting as never to''ve had her bloom?
On Tuesday 09 August 2005 09:33 am, Gonzalo Garramuno wrote:> I am trying to use FXCursor on Windows with the default cursors, but, albeit there is no error, the cursors don''t change. > Is there a working example of it somewhere or something is broken? >As far as I know, FXCursor works fine. However, it may be necessary to call create() if its a newly constructed resource. - Jeroen
Hmm... never mind. Got it working. Did not understand that cursors were a resource like any other and that FXWindow had instance variables for storing cursors. This probably needs a small reference to it in FXCursor or an example. Also, looking at the FXRuby FXCursor docs, the documentation for two of the constructors is reversed. Finally, I am not sure I follow what is the "pix" variable in FXGIFCursor''s constructor. I assume that FXGIFCursor is mainly to be used with loadPixels() so as to load a cursor definition from a gif, right?
On Tuesday 09 August 2005 11:06 am, Gonzalo Garramuno wrote:> Hmm... never mind. Got it working. Did not understand that cursors were a > resource like any other and that FXWindow had instance variables for storing > cursors. This probably needs a small reference to it in FXCursor or an > example. > Also, looking at the FXRuby FXCursor docs, the documentation for two of the > constructors is reversed. > Finally, I am not sure I follow what is the "pix" variable in FXGIFCursor''s > constructor. I assume that FXGIFCursor is mainly to be used with > loadPixels() so as to load a cursor definition from a gif, right?Correct; the transparency in the GIF is turned into a mask, so it''ll be a convenient way to get a color cursor into your code, from an image. - Jeroen