Kbase P169804: How to hide a FRAME field HELP text when that field is disabled?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/07/2010 |
|
Status: Unverified
GOAL:
How to hide a FRAME field HELP text when that field is disabled?
GOAL:
How to avoid having a FRAME field HELP text message appear at the Status Bar after the field is disabled?
GOAL:
How to prevent a FRAME field HELP text message from staying the Status Bar after the field is disabled?
GOAL:
How to use the STATUS DEFAULT "". statement to hide the HELP text of widgets in a FRAME when those widgets are disabled?
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
FIX:
Use the STATUS DEFAULT "". statement to prevent a FRAME field HELP text message from lingering around in the Status Bar after the field is disabled. For example, in the following procedure which may be executed against the sports2000 database, the STATUS DEFAULT "". statement prevents the Customer.Custnum and the Customer.City fields' HELP text messages from appearing on the status bar when the fields are disabled. Those HELP text messages are redisplayed as desired once these fields are enabled:
FORM
Customer.Custnum LABEL 'custnum' HELP 'Enter custnum'
Customer.City LABEL 'city' HELP 'Enter city'
WITH OVERLAY FRAME f-input CENTERED ROW 4 SIDE-LABELS TITLE 'SPECIAL PRICING'.
ON F4 ANYWHERE DO:
APPLY "CLOSE" TO THIS-PROCEDURE.
END.
ON 'F9' ANYWHERE DO:
DISABLE Customer.CustNum WITH FRAME f-input.
DISABLE Customer.City WITH FRAME f-input.
STATUS DEFAULT "".
END.
ON 'F10' ANYWHERE DO:
ENABLE Customer.CustNum WITH FRAME f-input.
ENABLE Customer.City WITH FRAME f-input.
END.
VIEW FRAME f-input.
ENABLE ALL WITH FRAME f-input.
WAIT-FOR CLOSE OF THIS-PROCEDURE.