Hello, I have some strange problem with FXColor: I cant find the class in the rdoc and if I use the class I get the error message: ... output_frame.rb:20:in `setup'': uninitialized constant OutputFrame::FXColor (NameError) ... Include statements are there: ... require ''rubygems'' require ''fox16'' include Fox ... and when I look in the lib folder of the gem I find the FXColor in the colors.rb I have no idea why this class is not found... FXRGBA(0,0,0,0) works. Thx, Thilko
fxruby-users-bounces at rubyforge.org wrote:> Hello, > > I have some strange problem with FXColor: I cant find the class in > the rdoc and if I use the class I get the error message: ... > output_frame.rb:20:in `setup'': uninitialized constant > OutputFrame::FXColor (NameError) ... > > Include statements are there: > ... > require ''rubygems'' > require ''fox16'' > include Fox > ... > > and when I look in the lib folder of the gem I find the FXColor in > the colors.rbHi, I guess you need this: require ''fox16/colors'' Regards, Philippe
Thx a lot - it works! 2008/9/10 Philippe Lang <philippe.lang at attiksystem.ch>:> fxruby-users-bounces at rubyforge.org wrote: >> Hello, >> >> I have some strange problem with FXColor: I cant find the class in >> the rdoc and if I use the class I get the error message: ... >> output_frame.rb:20:in `setup'': uninitialized constant >> OutputFrame::FXColor (NameError) ... >> >> Include statements are there: >> ... >> require ''rubygems'' >> require ''fox16'' >> include Fox >> ... >> >> and when I look in the lib folder of the gem I find the FXColor in >> the colors.rb > > Hi, I guess you need this: > > require ''fox16/colors'' > > Regards, > > Philippe > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >
On Wed, Sep 10, 2008 at 2:26 AM, Thilko Richter <thilko.richter at googlemail.com> wrote:> I have some strange problem with FXColor: I cant find the class in the > rdoc and if I use the class I get the error message: > ... > output_frame.rb:20:in `setup'': uninitialized constant > OutputFrame::FXColor (NameError)It''s worth noting that while there is an FXColor class, you can''t create a (useful) FXColor instance or call methods on an FXColor instance. Fox module methods like FXRGB() and FXRGBA() create integer color values that are then passed into any method or attribute that expects an FXColor.