LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to scroll down a window without using mouse over the scrollbar

Hi!
I have a question, a really easy one.
I have a program that creates command buttons that has a screen wide width and a height of around 120 so there's only four of these visible on the screen, when i create another one the program allocate it right below the last created, so the panel vertical scrollbar appears to acces that control, but i dont want to use the mouse for scroll dawn the window, i want to use the arrow keys or automatic scrolling whe the comand button get focus.
How i can make that?
Thanks ana way!
0 Kudos
Message 1 of 3
(3,524 Views)
To scroll a panel you can use SetPanelAttribute with ATTR_HSCROLL_OFFSET or ATTR_VSCROLL_OFFSET properties.
You pass the amount in pixels to scroll, so you can customise the function to scroll down or up of the exact size of your buttons.

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,524 Views)
Where does one find SetPanelAttribute? When you refer to a "panel," you mean the window of a VI, right?

Jason
Jason Rolfe
0 Kudos
Message 3 of 3
(3,524 Views)