Salut
Sebastien wrote:
> Bonjour Alex. Je voudrais savoir si il est possible de
sauvegarder les
> couleurs quand on se sert de "ColourDialog"?
[Is it possible to save the colours when using
Wx::ColourDialog?]
Oui, c'est possible. Quand on crée un ColourDialog, on peut
donner un
objet de ColourData comme le deuxième argument au 'new'.
Avec cet objet,
on peut nommer le couleur pre-choisi, et aussi dix-sept
autres choix. On
retrouve les couleur qui est choisi avec
ColourDialog#get_colour_data.
Voyez on_choose_colour dans sample/dialogs/dialogs.rb
[Yes, you can - when creating a ColourDialog, you can give a
ColourData
object as the second argument. This object can specify the
pre-selected
main colour, and up to sixteen custom colours to. You can
retrieve the
chosen colour by calling ColourDialog#get_colour_data
See the method on_choose_colour in
sample/dialogs/dialogs.rb]
alex
_______________________________________________
wxruby-users mailing list
wxruby-users rubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
|