Input Requester Centered Char

Share your advanced PureBasic knowledge/code with the community.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Post by RASHAD »

@rsts
Informed
Keep in mind what I told you man

RASHAD
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

RASHAD wrote:It works fine now
Please confirm
Sorry but it still doesn't work.
Deleting (backspace) works, but when entering a character the text does not update.

This is with PB x86 on Vista x64 (I have Aero enabled, not sure if that is the cause?)
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

Ah! I didn't see you changed the purpose of your code.
Originally you called it ""Please Input Password""

but it's actually a cell phone number input?
No wonder it didn't work here when typing: fhfhfhfh :lol:

PS! Be liberal in the input you accept, some people may use - but some may use a space, some may use space and -, some may use . and others may even use , (rare) or +
And don't forget that some people may also input the national prefix like: (+47) 00 00 00 00 etc.

so my advise is to let them type whatever they want, and when they click Ok,
use a regexp or similar to get/check the info you need, if it is not acceptable simply do not close the window or similar.

Restricting the input is bad unless it is obvious what should be entered, or a specific example is shown. (users are not mind readers unfortunately :wink: )
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Post by RASHAD »

@Rescator
I was underestimating you before, may be because of your avatar
Lately I read yor previous posts
You are one of the finest programmer in the forum
Sorry for that my friend
I corrected the second post of mine so please inform which one you are testing

I apologies again and have a good day
I am shy from myself
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Post by RASHAD »

@Rescator
You post faster than me
You have to remember that I am not a programmer
I just want to communicate with smart people

RASHAD
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

Hehe! Thanks for the praise, but there are others much better than me, I'm probably something like average, not sure really.

Anyway, the two sources in the 1st post and 4th post are working fine now as is the 14th post now that I'm actually typing numbers *blush*.

Really cool, especially the 14th post one looks really good, nice design :)
Post Reply