PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > FXRuby example that employs FXColorWell wanted
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
FXRuby example that employs FXColorWell wanted

Réponse
 
LinkBack Outils de la discussion
Vieux 25/02/2008, 02h40   #1
RichardOnRails
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut FXRuby example that employs FXColorWell wanted

Hi All,

I've got two questions:
1. Where can I find an FXRuby example that employs FXColorWell?
2. Does my Ruby installation have FXColorWell installed properly?

I'm working through Lyle Johnson's excellent (so far) tutorial on
FXRuby. I'm up to Chapter 5, Drag and Drop, at http://www.fxruby.org/doc/dragdroptut.html.
While developing a window to use a dropped-in color for its
background, Lyle suggests creating another application that uses
FXColorWell for test purposes.

But I don't know how to create the latter application. I scoured the
Net for an example, to no avail. Where can I find one?

I started to code one, and included the statement:

require 'FXColorWell'

to which Ruby responded "no such file to load -- FXColorWell
(LoadError)"

I searched my Ruby installation for all files named 'FXColorWell' in
part, regardless of case. I found 6 files, all in Ruby\lib\ruby\gems
\1.8\:

gems\fxruby-1.6.13-x86-mswin32\rdoc-sources\FXColorWell.rb
gems\fxruby-1.6.12-mswin32\rdoc-sources\FXColorWell.rb
doc\fxruby-1.6.13-x86-mswin32\ri\Fox\FXColorWell\cdesc-
FXColorWell.yaml
doc\fxruby-1.6.13-x86-mswin32\rdoc\files\rdoc-sources
\FXColorWell_rb.html
doc\fxruby-1.6.13-x86-mswin32\rdoc\classes\Fox\FXColorWell.html
doc\fxruby-1.6.12-mswin32\ri\Fox\FXColorWell\cdesc-FXColorWell.yaml

I've got the local gems: fxruby (1.6.13, 1.6.12)

Is the FXColorWell.rb under rdoc-sources the file that my require
statement would look for?

Thanks in Advance,
Richard
  Réponse avec citation
Vieux 25/02/2008, 13h12   #2
Lyle Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: FXRuby example that employs FXColorWell wanted


On Feb 24, 2008, at 8:44 PM, RichardOnRails wrote:

> I've got two questions:
> 1. Where can I find an FXRuby example that employs FXColorWell?


Several of the examples included in the FXRuby source distribution
demonstrate the use of the FXColorWell widget. See for example
datatarget.rb or image.rb.

> 2. Does my Ruby installation have FXColorWell installed properly?


If you have FXRuby installed, then yes, FXColorWell is just one of the
many widgets in FXRuby's library.

> I started to code one, and included the statement:
>
> require 'FXColorWell'
>
> to which Ruby responded "no such file to load -- FXColorWell
> (LoadError)"


You don't need to require() any additional libraries (other than
FXRuby, I mean) to use FXColorWell. Just create an FXColorWell widget
somewhere, e.g.

colorwell = FXColorWell.new(...)

> I searched my Ruby installation for all files named 'FXColorWell' in
> part, regardless of case. I found 6 files, all in Ruby\lib\ruby\gems
> \1.8\:


Those are documentation files...

> Is the FXColorWell.rb under rdoc-sources the file that my require
> statement would look for?


Also documentation.

Hope this s,

Lyle

P.S. If I were going to shamelessly plug the FXRuby book, which is now
available in Beta at http://www.pragprog.com/titles/fxruby, this is
where I'd do that.

  Réponse avec citation
Vieux 25/02/2008, 21h30   #3
RichardOnRails
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: FXRuby example that employs FXColorWell wanted

On Feb 25, 8:12 am, Lyle Johnson <l...@lylejohnson.name> wrote:
> On Feb 24, 2008, at 8:44 PM, RichardOnRails wrote:
>
> > I've got two questions:
> > 1. Where can I find an FXRuby example that employs FXColorWell?

>
> Several of the examples included in the FXRuby source distribution
> demonstrate the use of the FXColorWell widget. See for example
> datatarget.rb or image.rb.
>
> > 2. Does my Ruby installation have FXColorWell installed properly?

>
> If you have FXRuby installed, then yes, FXColorWell is just one of the
> many widgets in FXRuby's library.
>
> > I started to code one, and included the statement:

>
> > require 'FXColorWell'

>
> > to which Ruby responded "no such file to load -- FXColorWell
> > (LoadError)"

>
> You don't need to require() any additional libraries (other than
> FXRuby, I mean) to use FXColorWell. Just create an FXColorWell widget
> somewhere, e.g.
>
> colorwell = FXColorWell.new(...)
>
> > I searched my Ruby installation for all files named 'FXColorWell' in
> > part, regardless of case. I found 6 files, all in Ruby\lib\ruby\gems
> > \1.8\:

>
> Those are documentation files...
>
> > Is the FXColorWell.rb under rdoc-sources the file that my require
> > statement would look for?

>
> Also documentation.
>
> Hope this s,
>
> Lyle
>
> P.S. If I were going to shamelessly plug the FXRuby book, which is now
> available in Beta athttp://www.pragprog.com/titles/fxruby, this is
> where I'd do that.


Hi Lyle,

> Hope this s


It certainly does: it excellent. Thanks.

Thanks also for all the work you've done on FXRuby.

Best wishes,
Richard
  Réponse avec citation
Vieux 25/02/2008, 23h42   #4
RichardOnRails
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: FXRuby example that employs FXColorWell wanted

On Feb 25, 8:12 am, Lyle Johnson <l...@lylejohnson.name> wrote:
> On Feb 24, 2008, at 8:44 PM, RichardOnRails wrote:
>
> > I've got two questions:
> > 1. Where can I find an FXRuby example that employs FXColorWell?

>
> Several of the examples included in the FXRuby source distribution
> demonstrate the use of the FXColorWell widget. See for example
> datatarget.rb or image.rb.
>
> > 2. Does my Ruby installation have FXColorWell installed properly?

>
> If you have FXRuby installed, then yes, FXColorWell is just one of the
> many widgets in FXRuby's library.
>
> > I started to code one, and included the statement:

>
> > require 'FXColorWell'

>
> > to which Ruby responded "no such file to load -- FXColorWell
> > (LoadError)"

>
> You don't need to require() any additional libraries (other than
> FXRuby, I mean) to use FXColorWell. Just create an FXColorWell widget
> somewhere, e.g.
>
> colorwell = FXColorWell.new(...)
>
> > I searched my Ruby installation for all files named 'FXColorWell' in
> > part, regardless of case. I found 6 files, all in Ruby\lib\ruby\gems
> > \1.8\:

>
> Those are documentation files...
>
> > Is the FXColorWell.rb under rdoc-sources the file that my require
> > statement would look for?

>
> Also documentation.
>
> Hope this s,
>
> Lyle
>
> P.S. If I were going to shamelessly plug the FXRuby book, which is now
> available in Beta athttp://www.pragprog.com/titles/fxruby, this is
> where I'd do that.


Hi Lyle,

> P.S. If I were going to shamelessly plug the FXRuby book ...


I just noticed your "P.S." now, and it's NOT a shameless plug. It's a
legitimate reference to the most authoritative book [soon to be]
available. Amazon says I'll be able to get it in April.

Again, thanks for your ,
Richard
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h20.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14571 seconds with 12 queries