Page 1 of 1

Extended StringGadget

Posted: Tue Jul 29, 2003 9:42 am
by TeddyLM
Hello there

What's about adding some new features to the StringGadget ?

For example :
StringGadget(#Gadget, x, y, Width, Height, Content$ [, Length, Flags])

where Length = number of caracters allowed
and a new Flag : #PB_String_DecimalValue ("0123456789.," are accepted)

It would be really helpful not to have to control those things all the time.

(Don't know if it's easy or even possible... - the sky's the limit - :wink:
However PB is great and i have a lot of fun using it... )

Posted: Tue Jul 29, 2003 11:27 am
by Searhin
Hi,

(1) i think the "Length" parameter is a good idea. Would be very helpful as a built-in.

(2) Don't we already have a decimal flag (#PB_String_Numeric or something - can't check it right now)? Doesn't it support the decimal point?

AW StringGadget

Posted: Tue Jul 29, 2003 1:36 pm
by TeddyLM
Hi Searhin

You probably mean the '#PB_String_Numeric' - Flag... it allows only numbers (0 to 9). It's perfect when you ask for a date or a tel-nr but you can't enter decimal values...
I'm working on something right now and spend time correcting the 'Floatvalue to String' and 'String to Floatvalue' System-error... and an integrated #PB_String_DecimalValue would have been a gain of time.

Maybe with the next update !! Fred ? :wink: