Page 1 of 1
Thumbposition of vscrollbar in a group
Posted: Wed Sep 30, 2015 11:56 am
by samjith
How to get thumbposition of vscrollbar in a group?
I have number of group in stack, enclosed (groups inside a group) with a group and a scroll bar for scrolling. but i don't want that scrollbar when the group length is not longer than my stack.
I used this code, but doesn't works
Code: Select all
if the thumposition of group "group_name" > 0 then
set the scrollbarWidth of group "Scroll_group" to 0
end if
Re: Thumbposition of vscrollbar in a group
Posted: Wed Sep 30, 2015 12:29 pm
by Klaus
Hi samjith,
looks like you cannot set the width of a scrollbar to 0, try to hide the scrollbar instead:
...
set the scrollbar of grp "Unscroll_group" to FALSE
...
Best
Klaus
Re: Thumbposition of vscrollbar in a group
Posted: Wed Sep 30, 2015 12:39 pm
by samjith
Thanks for the quick reply.

Re: Thumbposition of vscrollbar in a group
Posted: Wed Sep 30, 2015 12:55 pm
by samjith
The code is not working. seems some error
stack "BC": compilation error at line 369 (Properties: token is not a property) near "scrollbar", char 14
Code: Select all
if the formattedHeight of group "Scroll_group" > the height of group "Scroll_group" then
set the scrollbarWidth of group "Scroll_group" to 15
else
set the scrollbarWidth of group "Scroll_group" to 0
end if
this works
but if this code works
Code: Select all
set the scrollbar of grp "Scroll_group" to FALSE
then i can use it with dissolve (vissual effect)
Re: Thumbposition of vscrollbar in a group
Posted: Wed Sep 30, 2015 3:28 pm
by Klaus
Sorry, my fault, it must be:
...
set the Hscrollbar of group "Scroll_group" to TRUE/FALSE
## or
set the Vscrollbar of group "Scroll_group" to TRUE/FALSE
...
Re: Thumbposition of vscrollbar in a group
Posted: Mon Oct 05, 2015 1:03 pm
by samjith
Great man
