The following example uses the hasVScrollBar( ) method to determine if the frame window is using a vertical scrollbar, and to store a value for the remaining available height in a variable.

 

 vScrollBarHeight = 23

 availableHeight = _app.frameWin.height

 if _app.frameWin.hasVScrollBar()

    availableHeight = availableHeight - vScrollBarHeight

 endif

 form.height = availableHeight