List Info

Thread: ColourDialog




ColourDialog
country flaguser name
France
2007-09-09 11:14:10
Bonjour Alex. Je voudrais savoir si il est possible de sauvegarder les couleurs quand on se sert de "ColourDialog"?
merci
Sebastien
Re: ColourDialog
country flaguser name
United Kingdom
2007-09-09 14:35:12
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-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )