Extended StringGadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
TeddyLM
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Apr 30, 2003 2:04 pm
Location: Germany (French expat)

Extended StringGadget

Post 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... )
Searhin
User
User
Posts: 41
Joined: Mon May 26, 2003 10:53 am
Location: Germany

Post 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?
TeddyLM
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Apr 30, 2003 2:04 pm
Location: Germany (French expat)

AW StringGadget

Post 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:
Post Reply