Displays a color selection dialog box, and returns the selected color.
AskColor(default-color, reg-key, format)
(s) default-color: specifies an RGB color value in the form "#RRGGBB".
(s) reg-key: specifies the name of a user-defined registry key under "HKEY_CURRENT_USER\Software\Wilson WindowWare" where persistent state information will be stored. It will be created if it does not already exist. If "" is specified, persistent state information will not be stored.
(i) format: specifies the format in which the selected color will be returned. See below.
(s) RGB: color RGB color value in requested format.
default-color
Specifies an RGB color value in the form "#RRGGBB", where "RR" is the red component in hex (00-FF), "GG" is the green component in hex (00-FF), and "BB" is the blue component in hex (00-FF). This will be the color initially selected in the dialog.You may specify "" for a default of gray.
Format |
Meaning |
0 |
RGB color value in the form "#RRGGBB" (see above). |
1 |
RGB color value in the form "R|G|B", where "R", "G", and"B" are the respective red, green, and blue components, in decimal. |
color0=AskColor("","test",0) Message("Color in #808080 format",color0) color1=AskColor("","test",1) Message("Color in 128|128|128 format",color1)