Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetColor
Message
De
14/09/2002 17:38:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00700557
Message ID:
00700558
Vues:
39
This message has been marked as a message which has helped to the initial question of the thread.
>I'm allowing my users to change some background colors in an application, I'm using the GetColor() function and everything works well. But...
>
>What I want is to display the color picker window with the "Define custom colors" button clicked so it shows the whole palette of colors available.
>Is that possible?
>I attempted using the keyboard command but it is klugdy and won't work in all cases.
>Is there in Windows or another color picker available?

Place a MS Common Dialog in your form and, instead of GetColor():
THISFORM.olecontrol1.Color = m.lnColor
THISFORM.olecontrol1.Flags = 2 + 1
THISFORM.olecontrol1.ShowColor()
m.lnColor = THISFORM.olecontrol1.Color
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform