User Tools

Site Tools


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

Returns an empty string if the control is not enabled either because it itself has been disabled, or because it is a member of a “parent” control (OPTION, GROUP, MENU, SHEET, or TAB) that has been disabled. (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

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

                   !Check for visibility during AcceptAll mode

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

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

   END

  END

 OF ?Cancel

  CASE EVENT()

  OF EVENT:Accepted

   BREAK

  END

 END

END

prop_enabled.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1