You are hereDocumentation / 6. Common property / 6.2 bounds
6.2 bounds
Useful to set the size, position, and minimum and maximum size allowed.
Available sub properties are :
- cx : set width of widget.
- cxmax : set the maximum width of widget is allowed.
- cxmin : set the minimum width of widget is allowed.
- cy : set height of widget.
- cymax : set the maximum height of widget is allowed.
- cymin : set the minimum height of widget is allowed.
- x : set the left position of widget.
- y : set the top position of widget is allowed.
Note :
- All values is in pixel unit.
- Maximum and minimum size will be effect if you activate the anchors property or widget is attached by tsplitter, tlayouter.
If you will set these sub properties using code, you must insert "bounds_" before sub properties that will be changed. For example bounds_cx, bounds_cy, bounds_cxmax, etc.
tbutton1.bounds_cx:= 200;
tbutton1.bounds_cy:= 100;
tbutton1.bounds_cxmax:= 300;
tbutton1.bounds_cxmin:= 100;

