Scrollbar status

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Scrollbar status

Postby ylockson » Thu May 23, 2013 11:09 am

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.
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am

Re: Scrollbar status

Postby mboegem » Thu May 23, 2013 11:39 am

Hi,

I think the best thing to do is: file a case in Servoy's Jira system (support.servoy.com)
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1742
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Scrollbar status

Postby david » Thu May 23, 2013 5:06 pm

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()
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Scrollbar status

Postby ylockson » Fri May 24, 2013 6:51 am

David,

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

Regards.
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 12 guests