TextBox - scrollHorizontal should default to true

The use of specific JADE features and proposals for new feature suggestions
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

TextBox - scrollHorizontal should default to true

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:33 am

by Craig Shearer >> Fri, 4 Feb 2000 8:37:57 GMT

The TextBox control has a scrollHorizontal property that determines whether it should let the user enter more characters into the box when they've filled it up, irrespective of whether they've reached the maxLength limit of not.

This is a completely useless feature as more often than not, you forget to set the scrollHorizontal property to true, then a form that works fine with small fonts fails when the user sets large fonts and consequently there's not enough room in the textbox to type all they need to type. We recently had an application fail for this reason. We had a textbox that accepted a 4 digit year and we were tight on space so we'd sized the textbox to fit exactly 4 digits, forgetting that users sometimes have large fonts set. With large fonts set, the user could only type 3 digits, and this consequently failed our validation. (The comment at the time was that the feature could only have been designed by an ex-mainframe programmer - ouch!!!)

I know that we could subclass the TextBox control and change the setting of scrollHorizontal to true, but it is a trap that one can easily fall into.

Craig.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: No way!

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:33 am

by JADE Kid - Ray Hidayat >> Wed, 5 Jul 2000 22:07:23 GMT

I completely disagree!
I have trillions of Textboxes that are single line, and they work fine. When you set the default font, doesn't it stay as the default font, so that people can't have large fonts?

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Wait a second...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:33 am

by JADE Kid - Ray Hidayat >> Wed, 5 Jul 2000 22:14:05 GMT

Talking to myself again.
I get it! You are letting them customise their fonts!
Just make a custom control. Because most of the time I don't like having multiline textboxes, so people can have really long names.

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com


Return to “Feature Discussions”

Who is online

Users browsing this forum: No registered users and 9 guests

cron