04-29-2013 05:09 AM
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.
04-29-2013 05:50 AM
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.
04-29-2013 11:49 AM
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)
04-29-2013 03:13 PM - edited 04-29-2013 03:13 PM
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)
04-30-2013 12:58 AM
Three years ago I added the idea of this new attribute in the forum because I had the same problem as Moshi