TheGreenOne
Programmer
Does anyone know how to programmatically scroll a window, not a datawindow?
I first looked for functions or properties that I could use, but found none for a window.
I then created a user event which responds to pbm_vscroll.
When I manually click the scroll bar the event runs with the following arguments:
scrollcode = 1
scrollpos = 0
Actually, this event is triggered twice first when I depress the mouse button and a second time when I release the mouse button. The above argument values exist when I press the mouse button the follwoing argument values when I release the button:
scrollcode = 8
scrollpos = 0
I tried to trigger this event, passing these argument values, the event runs, but it does not scroll the window.
w_test.post event ue_vscroll(1,0)
w_test.post event ue_vscroll(8,0)
I'm probably missing something simple. Any ideas?
Thanks in advance.
I first looked for functions or properties that I could use, but found none for a window.
I then created a user event which responds to pbm_vscroll.
When I manually click the scroll bar the event runs with the following arguments:
scrollcode = 1
scrollpos = 0
Actually, this event is triggered twice first when I depress the mouse button and a second time when I release the mouse button. The above argument values exist when I press the mouse button the follwoing argument values when I release the button:
scrollcode = 8
scrollpos = 0
I tried to trigger this event, passing these argument values, the event runs, but it does not scroll the window.
w_test.post event ue_vscroll(1,0)
w_test.post event ue_vscroll(8,0)
I'm probably missing something simple. Any ideas?
Thanks in advance.