Topic: APLX Help : System Classes : Properties : selcolor
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'selcolor' property


Color value, expressed as an integer scalar or 3-element vector

Valid for: RichEdit

The selcolor property determines the foreground color of the selected text. Colors can be specified in one of two ways. In the first way, you specify a vector of three integers (Red, Green and Blue), each in the range 0 to 255. For example 255 0 0 is pure red and 255 255 255 is white. In the second way, you specify a single integer which encodes the three values in base 256 as 256 Blue Green Red. In addition, two special values are recognised; ¯1 means use the parent's foreground or background color as appropriate, and ¯2 means use the default color for the rich-edit control's text (usually black).

When you read this property, APLX returns the single-integer form.


Topic: APLX Help : System Classes : Properties : selcolor
[ Previous | Next | Contents | Index | APL Home ]