LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Scrolling through tree

Hello All.

 

The tree can be scrolled upwards and downwards using vertical scroll bar. I have a touch screen in which user wants to scroll through tree upwards and downwards. But the size of scroll bar is so small to touch exactly on the desired point. Is there any way i can scroll upwards and downwards without scrollbar but by touching and dragging finger up and down in a tree area. In other words can i scroll vertically using my mouse pressed and dragging up and down in a tree area. I am unable of finding way to do that.

 

Best Regards.

Moshi.

Message 1 of 5
(3,570 Views)

While I have no direct answer to your question, I can suggest you try playing with the scrollbar instrument shipped with CVI.

The instrument is located in <cvidir>\toolslib\custctrl\scroll.fp.  You can examine the example located in \samples\userint\custctrl\scrollbar\scrollbar.cws and see the features of the instrument. Playing with attributes like scrollbar width, view size and proportional thumb you should be able to setup an appropriate control for using on touch screens.



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?
Message 2 of 5
(3,566 Views)

 

You can make the scrollbar bigger using ATTR_SCROLL_BAR_SIZE. You can pass it what ever numeric value you want, in addition to the predefined values of VAL_SMALL_SCROLL_BARS (8), VAL_MEDIUM_SCROLL_BARS (12), and VAL_LARGE_SCROLL_BARS (16)

Message 3 of 5
(3,554 Views)

Good solution, Jared: I wasn't aware of such attribute!

The ability to set any desired value has been introduced in CVI2012, though: previous versions only accept predefined values (small, medium and large size, corresponding to 8, 12 and 16 pixels width)



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?
Message 4 of 5
(3,550 Views)

Three years ago I added the idea of this new attribute in the forum because I had the same problem as Moshi

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 5 of 5
(3,540 Views)