User Tools

Site Tools


prop_visible.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:Visible ====== Previous pageReturn to chapter overviewNext page

Returns an empty string if the control is not visible because either because it has been hidden, or it is a member of a “parent” control (OPTION, GROUP, MENU, SHEET, or TAB) that is hidden, or is on a TAB control page that is not currently selected. (READ-ONLY)

Example:

MDIChild  WINDOW('Child One'),AT(0,0,320,200),MDI,MAX,HVSCROLL

     SHEET,AT(0,0,320,175),USE(SelectedTab)

      TAB('Tab One'),USE(?TabOne)

        PROMPT('Enter Data:'),AT(100,100,20,20),USE(?P1)

        ENTRY(@S8),AT(100,140,32,20),USE(E1)

        PROMPT('Enter More Data:'),AT(100,200,20,20),USE(?P2)

        ENTRY(@S8),AT(100,240,32,20),USE(E2)

      END

      TAB('Tab Two'),USE(?TabTwo)

        PROMPT('Enter Data:'),AT(100,100,20,20),USE(?P3)

        ENTRY(@S8),AT(100,140,32,20),USE(E3)

        PROMPT('Enter More Data:'),AT(100,200,20,20),USE(?P4)

        ENTRY(@S8),AT(100,240,32,20),USE(E4)

      END

     END

     BUTTON('Ok'),AT(100,180,20,20),USE(?Ok)

      BUTTON('Cancel'),AT(200,180,20,20),USE(?Cancel)

     END

CODE

OPEN(MDIChild)

ACCEPT

 CASE EVENT()

 OF EVENT:Completed

  BREAK

 END

 CASE FIELD()

 OF ?Ok

  CASE EVENT()

  OF EVENT:Accepted

   SELECT

  END

 OF ?E3

  CASE EVENT()

  OF EVENT:Accepted

   E3 = UPPER(E3)          !Convert the data entered to Upper case

   IF ?E3{PROP:Visible} AND MDIChild{PROP:AcceptAll}

                   !Check for visibility during AcceptAll mode

    DISPLAY(?E3)         ! and display the upper cased data

   END

  END

 OF ?Cancel

  CASE EVENT()

  OF EVENT:Accepted

   BREAK

  END

 END

END

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