>>>What is the easiest way to present the user with a color selection palette and allow them to select their own colors ?
>>
>>nColor=getcolor()
>>if nColor<0
>> return
>>endif
>>Thisform.Backcolor=nColor
>
>Is there a way to convert the number returned by this for use in the RGB function? I have existing classes that I used rgb() to set the colors.
Hi Ian,
In addition to Ed's suggestion, if you use the Foxtools library, it has a function called RGBComp(). It works like this:
STORE 0 TO lnred, lngreen, lnblue
= RGBComp(lncolor, @lnred, @lngreen, @lnblue)
George
Ubi caritas et amor, deus ibi est