Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb3.pngCOLORPALETTE - 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
Last update : 20/03/2022 @ 20:00
Category : COLORPALETTE
Page read 1514 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^