WinXAutoSizer_SetInfo
WinXAutoSizer_SetInfo (hWnd, series, space, size, x, y, w, h, flags)
Sets control dimension information for the auto sizer.
Parameter |
Description |
hWnd |
The handle to the control to set the auto sizer info for |
series |
The series to display the control in. -1 to use the control's parent's window's main series |
space |
The amount of space to insert before this control |
size |
The amount of space in the series that this control uses |
x |
The x coordinate of the window |
y |
The y coordinate of the window |
w |
The width of the window |
h |
The height of the window |
flags |
A set of flags to modify the behaviour of the other parameters |
Returns
$$TRUE on success or $$FALSE on fail
Remarks
See the article on the auto sizer for more information about this function
Valid Flags:
- $$SIZER_SIZERELREST
- Specifies that the size parameter is relative to the rest of the available space. If size is <= 1, then the size parameter is a proportion of the remaining space. If size > 1 then size is the number of pixels of remaining space not to use.
- $$SIZER_XRELRIGHT
- Specifies that the x coordinate parameter is relative to the right, not left.
- $$SIZER_YRELBOTTOM
- Specifies that the u coordinate parameter is relative to the bottom, not top.
- $$SIZER_SERIES
- Specifies that the hWnd paramater contains a series handle, not a window handle
- $$SIZER_WCOMPLEMENT
- Specifies that the width parameter contains the number of pixels across not to use.
- $$SIZER_HCOMPLEMENT
- Specifies that the height parameter contains the number of pixels vertically not to use
- $$SIZER_REVERSE
- Causes the auto sizer algorithm to work from right to left or bottom to top instead of the other way around. This is usefull when you need to right or bottom align controls. It also comes in handy when creating splitters for panes aligned to the bottom or right of a window.
- $$SIZER_SPLITTER
- Inserts a WinX Splitter control after this item. The splitter control uses up 4 pixels of this item's size. For example, if you have a 100 pixel item with a splitter, 4 pixels will be used for the splitter control. Splitter controls allow the user to move the boundary between two auto sizer blocks.
Examples
'Set some control to fill the upper half of the window
WinXAutoSizer_SetInfo (hWnd, -1,0, 0.25, 0, 0, 1, 1, 0)
|
Related Links
Auto Sizer
WinXAutoSizer_SetSimpleInfo
WinXNewAutoSizerSeries
WinXAutoSizer_GetMainSeries