Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scroll a window

Status
Not open for further replies.

TheGreenOne

Programmer
Jan 11, 2003
56
0
0
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top