Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>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.
>
>nRed=nColor%256
>nGreen=int((nColor%65536)/256)
>nBlue=int(nColor/65536)
Is there a way to convert the rgb value back so that it can be passed as a paramter in getcolor() to allow the user to see the currently selected color ?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement