Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetColor
Message
From
14/09/2002 17:38:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00700557
Message ID:
00700558
Views:
38
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
Previous
Reply
Map
View

Click here to load this message in the networking platform