Colour palette - %cl[options]

In this section:

The %cl (Colour Palette) format code allows the user to select from a set colours presented in a palette. The user can also change the palette. Note that the range of colours available depends on the video display and currently selected display mode.

This format takes one array argument of type INTEGER that holds the values of up to three selected colours (for, respectively, the mouse left button, the right button and the middle button - values that are not used return a shade of grey). These values are in the same format as the result of the RGB@ function.

WINAPP
INCLUDE <windows.ins>
INTEGER i,v(3)
i=winio@('%ca[colour palette] %cl',v)
i=winio@('%ca[colour mix result] The colour was %wd.',v(1))
END

 

The options are:

b1

Left mouse button only

b2

Left and right buttons (the default)

b3

Left , right and middle buttons

title1

Title above button boxes

title2

Title above palette

iconic

Transparent and inverse transparent selection


See %cl (Colour Palette) for further details.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited