| Scroller_UpdateBars( | Hwnd, | | | | Bars | = | 3, | | MX | = | 0, | | MY | = | 0 | ) |
|
Updates horizontal and/or vertical scroll bar.
Parameters
| Hwnd | Window that contains system created scrollbars. |
| Bars | 1 to updates only horizontal bar, 2 updates only vertical bar, 3 (default) updates both. |
| MX, MY | Set here x & y margin of your Gui. By default 0. |
Remarks
You need to call this function after adding new controls to the GUI and after resizing window. If used with resizable window, its enough to put call to this function in GuiSize routine (this might not work in same advanced GUI creation scenarios). In any case, you need to update scrollbars after adding new controls to the GUI. Scroller replaces message handlers for WM_VSCROLL & WM_HSCROLL messages at the moment which will influence <ScrollBar> control if you have it (or vice-versa).