BBjTopLevelWindow::setMinimumSize

Description

In BBj 15.0 and higher, this method sets the minimum outer size of the BBjTopLevelWindow, including the width and height required for any title bar, menu bar, status bar, and docked child windows.

Syntax

Return Value

Method

void

setMinimumSize(int minimumWidth, int minimumHeight)

Parameters

Variable

Description

minimumWidth

Specifies the minimum outer width of the BBjTopLevelWindow, including the width required for any docked child windows.

minimumHeight

Specifies the minimum outer height of the BBjTopLevelWindow, including the height required for any title bar, menu bar, status bar, and docked child windows.

Return Value

None.

Remarks

The default minimum size is defined by the platform look and feel.

Example

rem ' setMinimumSize

sysgui = unt

open (sysgui)"X0"

sysgui! = bbjapi().getSysGui()

window! = sysgui!.addWindow(100,100,300,300,"",$00090003$)

title$ = str(window!.getWidth())+","+str(window!.getHeight())

window!.setTitle(title$)

window!.setCallback(window!.ON_CLOSE,"eoj")

window!.setCallback(window!.ON_RESIZE,"resize")

print "getMinimumWidth:",window!.getMinimumWidth()

print "getMinimumHeight:",window!.getMinimumHeight()

window!.setMinimumSize(150,100)

print "getMinimumWidth:",window!.getMinimumWidth()

print "getMinimumHeight:",window!.getMinimumHeight()

process_events

eoj:

release

resize:

event! = sysgui!.getLastEvent()

See Also

BBjAPI

BBjSysGui

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.