BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SpinEdit control (samples tab)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Lauchlan M
Guest





PostPosted: Wed Oct 29, 2003 11:53 pm    Post subject: SpinEdit control (samples tab) Reply with quote



Hi.

It seems that in this control you can only enter certain characters, but
they might produce a non-integer. For example you could enter '+-3.2' but no
a-z or A-Z characters.

When you enter invalid text and click the up or down spin buttons, it throws
an error. If I want to catch explicitly this error on this component and
handle it (eg show a message that they need to enter a valid format), how do
I do this?

Thanks!

Lauchlan M


Back to top
Chris Burrows
Guest





PostPosted: Thu Oct 30, 2003 12:24 am    Post subject: Re: SpinEdit control (samples tab) Reply with quote



Lauchlan M wrote:
Quote:
Hi.

It seems that in this control you can only enter certain characters,
but they might produce a non-integer. For example you could enter
'+-3.2' but no a-z or A-Z characters.

When you enter invalid text and click the up or down spin buttons, it
throws an error. If I want to catch explicitly this error on this
component and handle it (eg show a message that they need to enter a
valid format), how do I do this?


If you are only interested in decimal integers, see if the more standard
up/down control is easier for you to use. When it is associated with a TEdit
it automatically behaves in a similar way to the SpinEdit.

Chris Burrows
CFB Software
http://www.cfbsoftware.com



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.