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.


SYSTEM{PROP:Hide} explained on Clarion Hub June 8, 2023 in topic “Prevent App from Grabbing Focus”:

After setting SYSTEM{PROP:Hide}=TRUE an OPEN(Window) will have its controls configured to work in hidden mode. The Window will not display nor take focus from the current foreground window. In Event Open Widow setting Window{PROP:Hide}=FALSE can't change their behavior.


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
    SYSTEM{PROP:Hide}=TRUE   !Opened windows will not be visible, nor take focus
    OPEN(Window)           
    SYSTEM{PROP:Hide}=FALSE  !Let future Open() Windows work normally

See Also: HIDE (blank a control)

hide_set_control_hidden_.htm.txt · Last modified: 2023/06/09 07:35 by carlbarnes