ChooseColor
PowerScript function
Description
Displays the standard color selection dialog box.
Syntax
|
1 |
ChooseColor ( color {, customcolors [ ] } ) |
|
Argument |
Description |
|---|---|
|
color |
A long passed by reference that represents the color |
|
customcolors (optional) |
A long array of custom colors passed by reference to the |
Return value
Integer.
Returns 1 if the function succeeds, 0 if the user selects cancel (or
the dialog box is closed), -1 if an error occurs.
Examples
This example displays the color selection dialog box with a base
color of red and with two different custom colors defined:
|
1 2 3 4 5 6 7 |
long red, green, blue long custom[ ] integer li_color red = 255 custom[1]=rgb(red, 200, blue) custom[2]=8344736 li_color = ChooseColor( red, custom [ ] ) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest