Progress
Programming
Handbook


Custom Highlights

To customize a design for widget highlighting, you can set the MANUAL–HIGHLIGHT attribute to TRUE. When you set this attribute to TRUE, you override Progress’s default highlight style. For an example of how you might design your own highlighting style, look at the following procedure.

p-manual.p
DEFINE RECTANGLE rect1 SIZE-PIXELS 40 BY 40 EDGE-PIXELS 3 NO-FILL.
DEFINE RECTANGLE rect2 SIZE-PIXELS 40 BY 40 EDGE-PIXELS 3 NO-FILL.

FORM SKIP(1) SPACE (1) rect1 SPACE(8) rect2 WITH FRAME a NO-LABELS.

rect1:SELECTABLE IN FRAME a = yes.
rect1:SENSITIVE IN FRAME a = yes.
rect1:MANUAL-HIGHLIGHT IN FRAME a = yes.
rect1:BGCOLOR = 1.
rect2:SELECTABLE IN FRAME a = yes.
rect2:SENSITIVE IN FRAME a = yes.

ON SELECTION OF rect1 IN FRAME a SELF:FILLED = yes.
ON DESELECTION OF rect1 IN FRAME a SELF:FILLED = no.

ENABLE rect1 rect2 WITH FRAME a.
WAIT-FOR GO OF FRAME a. 

This procedure displays two rectangles that the user can highlight. One of the rectangles uses a customized style; the other rectangle uses the default highlight style. If the user selects both rectangles, the output of the procedure appears as follows.

The rectangle on the left, rect1, uses the customized highlight style of filling in the rectangle; the rectangle on the right, rect2, uses the default Progress highlight style.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095