Important: The information in this document is obsolete and should not be used for new development.
HiliteControl
If you need to change the highlighting of a control, you can use theHiliteControl
procedure.
PROCEDURE HiliteControl (theControl: ControlHandle; hiliteState: Integer);
theControl
- A handle to the control.
hiliteState
- A value from 0 through 255 to signify the highlighting of the control.
The value of 0 signifies no highlighting for the active control. A value from 1 through 253 signifies a part code designating the part of the (active) control to highlight. (Part codes are explained in the description ofFindControl
on page 5-82.) The value 255 signifies that the control is to be made inactive and drawn accordingly.DESCRIPTION
TheHiliteControl
procedure calls the control definition function to redraw the control with the highlighting specified in thehiliteState
parameter. TheHiliteControl
procedure uses the value in this parameter to change the value
of thecontrlHilite
field of the control's control record.Except for scroll bars (which you should hide using the
HideControl
procedure), you should useHiliteControl
to make all controls inactive when their windows are not frontmost. TheTrackControl
function automatically uses theHiliteControl
procedure as appropriate; when you useTrackControl
, you don't need to callHiliteControl
.SPECIAL CONSIDERATIONS
The value 254 should not be passed in thehiliteState
parameter; this value is reserved for future use.SEE ALSO
The chapter "Dialog Manager" in this book provides several examples of the use ofHiliteControl
.