User Tools

Site Tools


hide_set_control_hidden_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== HIDE (set control hidden) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

HIDE

blk2blue.jpg

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)

hide_set_control_hidden_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)