Scroller

Makes window scrollable.

Dependencies

Win 1.22

Summary
ScrollerMakes window scrollable.
UpdateBarsUpdates horizontal and/or vertical scroll bar.
About

UpdateBars

Scroller_UpdateBars(Hwnd,  
Bars = 3,
MX = 0,
MY = 0)

Updates horizontal and/or vertical scroll bar.

Parameters

HwndWindow that contains system created scrollbars.
Bars1 to updates only horizontal bar, 2 updates only vertical bar, 3 (default) updates both.
MX, MYSet 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).

About

Scroller_UpdateBars(Hwnd,  
Bars = 3,
MX = 0,
MY = 0)
Updates horizontal and/or vertical scroll bar.
Set of window functions.
Close