Home > comp > gb.qt4 > dialog > selectcolor 
 en fr de es it nl pl pt pt_BR mk ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Dialog.SelectColor (gb.qt4)
Static Function SelectColor ( ) As Boolean

Calls the color standard dialog.

Returns TRUE if the user clicked on the Cancel button, and FALSE if the user clicked on the OK button.

This example set the background color of a form the color selected by the user. If the user cancels the dialog then the form color is not changed.

Example

PUBLIC SUB ButtonColor_Click()
  Dialog.Color = ME.BackColor
  IF Dialog.SelectColor() THEN RETURN
  ME.BackColor = Dialog.Color
END