Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/wb set size

Sets the size of an object

Contents

Syntax

bool wb_set_size (int wbobject, mixed width [, int height])
  • width and height may be used as follows:
width height Applies to Action taken
Positive integerPositive integerwindow or controlSets the window or control size to width and height pixels.
WBC_NORMAL(not supplied)windowRestores the window, if it is not already.
WBC_MINIMIZED(not supplied)windowMinimizes the window, if it is not already.
WBC_MAXIMIZED(not supplied)windowMaximizes the window, if it is not already.
Array of integers(not supplied)ListViewChanges the column widths of the control.

Returns

Returns TRUE on success or FALSE if an error occurs.

Examples

// Set the size of a control

wb_set_size($ctrl, 120, 30);

// Maximize a window

wb_set_size($win, WBC_MAXIMIZED);

// Set the column widths of a treeview.
// First column is set to 100 pixels, second is left alone, third is set to default.

wb_set_size($list, array(100, null, -1));

See also

Winbinder Projects