Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
COLORPALETTE - How to use
ColorPalette
A) Introduction La colorpalette is a cool tool to choose color fastly. You can import this widget clicking on this button in Chooser tab : B) How to use we will create small application with3 widgets : colorpalette : to access color quickly colorButton : Button to select color in palette ColorChooser : A full palette to choose color To add new color to colorpalette write this code : ColorPalette1.Add(ColorButton1.Value)
Or to add in first iln color list write this : ColorPalette1.AddFirst(ColorButton1.Value)
I don't find how to delete color in code but on right click on colorpalette, you have pop menu to delete. To return current color selected, write this code : Dim Mycolor As Integer Mycolor = ColorPalette1.Current Here code of all application : Public Sub Form_Open() Me.Center() End Public Sub bquit_Click() Me.Close() End Public Sub badd1_Click() ColorPalette1.Add(ColorButton1.Value) End Public Sub badd2_Click() ColorPalette1.AddFirst(ColorChooser1.Value) End Thanks for your attention Creation date : 20/03/2022 @ 19:50 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|