User Tools

Site Tools


prop_noheight.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:NoHeight and PROP:NoWidth ====== Previous pageReturn to chapter overviewNext page

PROP:NoHeight is a toggle attribute which returns whether the window or control was set to default its height (had an omitted height parameter in its AT attribute). Setting this property to TRUE is equivalent to resetting the control to its default height as determined by the library (which you cannot do using PROP:Height).

PROP:NoWidth is a toggle attribute which returns whether the window or control was set to default its width (had an omitted width parameter in its AT attribute). Setting this property to TRUE is equivalent to resetting the control to its default width as determined by the library (which you cannot do using PROP:Width).

Example:

WinView   WINDOW('View'),AT(0,0,,),MDI,MAX,HVSCROLL,SYSTEM,RESIZE

       LIST,AT(6,6,120,90),USE(?List),FORMAT('120L'),FROM(Q),IMM

     END

CODE

OPEN(WinView)

IF WinView{PROP:NoHeight} = TRUE

 WinView{PROP:Height} = 200          !Set height

END

IF WinView{PROP:NoWidth} = TRUE

 WinView{PROP:Width} = 320          !Set width

END  

ACCEPT

END

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