How to hide scroll if field does not require it

2010-05-26 Thread Sivakatirswami
Anyone else wish that fields has a property by which you could turn off the appears of the vertical scroll bar, if the field actually did not have enough text to require it? In the absence of that feature, what is the best way to program this? I have a field that is dynamically filled with a

Re: How to hide scroll if field does not require it

2010-05-26 Thread Devin Asay
On May 26, 2010, at 10:37 AM, Sivakatirswami wrote: Anyone else wish that fields has a property by which you could turn off the appears of the vertical scroll bar, if the field actually did not have enough text to require it? In the absence of that feature, what is the best way to

Re: How to hide scroll if field does not require it

2010-05-26 Thread DunbarX
Hi. Set the vScrollBar property based on the formattedHeight. Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: How to hide scroll if field does not require it

2010-05-26 Thread Mark Schonewille
Sivakatirswami, Do you mean that you would like fields to do this automatically? The following works for a simple editable field: on rawKeyUp set the vScrollbar of me to (the formattedHeight of me the height of me) pass rawKeyUp end rawKeyUp It is easy to add a similar feature

Re: How to hide scroll if field does not require it

2010-05-26 Thread Jeff Massung
Just wondering... does the formattedHeight take O(N) time to compute or does the field know it in O(1) time? If O(N), then this solution sucks for fields of any appreciable size (say 1,000+ lines). Jeff M. ___ use-revolution mailing list

Re: How to hide scroll if field does not require it

2010-05-26 Thread Web Admin Himalayan Academy
Formatted width was the obviously way to go, but as with some many xTalk things: how best to implement? attached it to the field (as you have done) put it in the stack script and call it when the card is opened, what if you have a menu that is loading the field by chosing a folder... I don't