PreviousNextIndex

HIDE statement

Makes a widget invisible (sets its VISIBLE attribute to FALSE), or clears the message area for a window, or hides all widgets and clears messages in a window.

Note: Does not apply to SpeedScript programming.
Syntax

HIDE [ STREAM stream | STREAM-HANDLE handle ] 
  [ widget-phrase | MESSAGE | ALL ] 
  [ NO-PAUSE ] 
  [ IN WINDOW window ] 

STREAM stream
STREAM-HANDLE handle
widget-phrase
MESSAGE
ALL
NO-PAUSE
IN WINDOW window
Example

The following example uses the HIDE statement to hide selected frames. The DISPLAY statements re-display the frames when the loop iterates.

r-hide.p
DEFINE VARIABLE selection AS INTEGER NO-UNDO FORMAT "9". 
FORM 
  "Please Make A Selection:" SKIP(2) 
  "    1. Hide Frame A.    " SKIP 
  "    2. Hide Frame B.    " SKIP 
  "    3. Hide All.        " SKIP 
  "    4. Hide This Frame  " SKIP 
  "    5. Exit             " SKIP(2) 
  WITH FRAME X NO-LABELS. 
REPEAT: 
  VIEW FRAME x. 
  DISPLAY "This is frame A." 
    WITH FRAME a ROW 1 COLUMN 60. 
  DISPLAY "This is frame B." 
    WITH FRAME b ROW 16 COLUMN 10 4 DOWN. 
  MESSAGE "Make your selection!". 
  UPDATE "Selection: " selection VALIDATE(0 < selection AND selection < 7, 
    "Invalid selection") AUTO-RETURN 
    WITH FRAME x. 
       IF selection = 1 THEN HIDE FRAME a. 
  ELSE IF selection = 2 THEN HIDE FRAME b. 
  ELSE IF selection = 3 THEN HIDE ALL. 
  ELSE IF selection = 4 THEN HIDE FRAME x. 
  ELSE IF selection = 5 THEN LEAVE. 
  PAUSE. 
END. 

Notes
See also

CLEAR statement, VIEW statement, Widget phrase, Stream object handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex