PROP:NoHeight and PROP:NoWidth

Top  Previous  Next

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