SET_CONTROL_TEXT_COLOUR@

Platform

Win32, x64

Purpose

To change the text colour of a control after a window/dialog has been created.

Syntax

SUBROUTINE SET_CONTROL_TEXT_COLOUR@(HWND,COLOUR)
INTEGER(7) HWND
INTEGER COLOUR

Description

HWND is the window handle of the control obtained by using %lc (Handle of Last Control). COLOUR is the RGB colour value (see RGB@).

See also

SET_CONTROL_BACK_COLOUR@

Notes

Unless the colour is to be varied you can set the text colour of a control using %tc (Text Colour) before the control when the window is created, possibly followed by another %tc (Text Colour) to reset it after the control has been specified.

A call to SET_CONTROL_TEXT_COLOUR@ can be made in the callback function for the control in question. This means, for example, that it is possible to construct a control that displays text in red for negative values and black for positive values.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited