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 theHiliteControlprocedure.
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 ofFindControlon page 5-82.) The value 255 signifies that the control is to be made inactive and drawn accordingly.DESCRIPTION
TheHiliteControlprocedure calls the control definition function to redraw the control with the highlighting specified in thehiliteStateparameter. TheHiliteControlprocedure uses the value in this parameter to change the value
of thecontrlHilitefield of the control's control record.Except for scroll bars (which you should hide using the
HideControlprocedure), you should useHiliteControlto make all controls inactive when their windows are not frontmost. TheTrackControlfunction automatically uses theHiliteControlprocedure as appropriate; when you useTrackControl, you don't need to callHiliteControl.SPECIAL CONSIDERATIONS
The value 254 should not be passed in thehiliteStateparameter; this value is reserved for future use.SEE ALSO
The chapter "Dialog Manager" in this book provides several examples of the use ofHiliteControl.