array wb_get_size (mixed object [, bool param])
Gets the dimensions of a control, window, image or string. The image handle must have been obtained with wb_create_image(), wb_create_mask() or wb_load_image().
This function generally returns an array where
the first
element is the width and the second is the height. Measurements are in pixels.
If param is TRUE, the area returned will not include the title bar
and borders. Default is FALSE. The function will return the integer WBC_MINIMIZED
instead of an
array if the requested window is minimized, or NULL on error.
If object is a ListView handle
and param is TRUE, the function returns an array with the
widths of the column headers. If param is omitted or FALSE,
the function behaves normally like described above
If object is a text string, param is optionally used to pass the handle to a font created with wb_create_font(). If param is null or not used, the default font is used.
object may be one of the following:
|
print_r(wb_get_size(wb_get_text(wb_get_control($window,
ID_TEXT)))); |
wb_create_image
wb_create_mask
wb_load_image
wb_get_position
wb_set_size
wb_create_font
Image functions
Control functions
Window functions