HIDE (set control hidden)

Top  Previous  Next

 

HIDE

The HIDE attribute (PROP:HIDE) specifies the control does not appear when the WINDOW or APPLICATION is first opened. UNHIDE must be used to display it. In a REPORT, the control does not print unless the UNHIDE statement is used to allow it to print. PROP:HIDE may be used with the TARGET built-in variable to hide/unhide the current target window. Care must be taken when assigning PROP:HIDE at runtime. If it is assigned prior to opening the desired window, it may inadvertently affect another window TARGET.

Example:

Window WINDOW,PRE(Scr)

       ENTRY(@N3),USE(Ctl:Code),HIDE !Hide by default

       ENTRY(@S30),USE(Ctl:Name)

       BUTTON('OK'),USE(?OkButton),KEY(EnterKey)

       BUTTON('Cancel'),USE(?CanxButton),KEY(EscKey)

      END

CODE

OPEN(Window)

?Ctl:Name{PROP:HIDE} = TRUE  !Hide Name control

 

 

See Also: HIDE (blank a control)