LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically scroll panel left

I have created a graph of a wav file on a canvas on a child panel with a horizontal scroll bar. While the file is playing I asynchonously update a positon marker and will programmatically scroll the panel (canvas) right during the song. This all works well except I am unable to figure out how to scroll back (left) to the beginning of the song when the song is over.

I'm setting panel attribute ATTR_HSCROLL_OFFSET to scroll right - but can not find how I could scroll left programmatically - what are my options?

Thanks,
Chris

0 Kudos
Message 1 of 3
(3,253 Views)

Hi Chris,

I never worked with panel scrolling, but I suppose you just should set this attribute back to zero?

SetPanelAttribute (panel, ATTR_HSCROLL_OFFSET, 0);

0 Kudos
Message 2 of 3
(3,222 Views)
That does it! Duhhhh..
Thanks!
0 Kudos
Message 3 of 3
(3,212 Views)