ret = ColorRequest(title$[, t])
ret = ColorRequest(title$[, color])
title$
argument can be used to set the title
for the color requester's dialog window. If an empty string ("") is passed
as title$
, the requester will use the title specified in the
@APPTITLE preprocessor command.
ColorRequest()
supports several optional arguments. Before Hollywood 9.0, those
had to be passed as optional parameters (see above). Since Hollywood 9.0,
however, it is recommended to use the new syntax, which has a single optional
table argument that can be used to pass one or more optional arguments to
ColorRequest()
.
The following table fields are recognized by this function:
Color:
X:
Y:
Width:
Height:
Please note that this command requires reqtools.library to be installed on AmigaOS and compatibles.
r = ColorRequest("Select a color") If r = -1 Print("Requester cancelled!") Else SetFillStyle(#FILLCOLOR) Box(0, 0, 640, 480, r) EndIfAsk the user for a color and then draws a filled rectangle using the selected color.