Page 1 of 1

Scrollbar status

PostPosted: Thu May 23, 2013 11:09 am
by ylockson
I would like to have a function that returns the scrollbar status of a field that has a design-time property of WHEN NEEDED. i.e. has the scrollbar been made visible or not?

Usage:
For a large piece of text, this would allow me to programatically (not interactively) add one word at a time to that field and check for 'appearance' of the scrollbar. As soon as the scroll bar appears, I'll know that the last word inserted and the remaining text will overflow.

Re: Scrollbar status

PostPosted: Thu May 23, 2013 11:39 am
by mboegem
Hi,

I think the best thing to do is: file a case in Servoy's Jira system (support.servoy.com)

Re: Scrollbar status

PostPosted: Thu May 23, 2013 5:06 pm
by david
You could move the scrollbar to the bottom and then check to see if ScrollY is greater than zero:

Code: Select all
forms.slickgrid1.elements.fld_html.setScroll(0,10000000) //arbitrary big Y number
forms.slickgrid1.elements.fld_html.getScrollY()

Re: Scrollbar status

PostPosted: Fri May 24, 2013 6:51 am
by ylockson
David,

Thanks a lot for the pointer... This will definitely work.

Regards.