>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