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 

TEdit

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Dolf avnden Berg
Guest





PostPosted: Tue Oct 28, 2003 10:45 pm    Post subject: TEdit Reply with quote



HI there



I modified a TEdit component to except only integers. Its working fine but I
want the Edit box to display the text in a specific way like 0.00 how can I
force this display format. It works on the onexit but when you use onexit in
a application it ignores the code I wrote in the component.





Thanks



Dolf van den Berg


Back to top
Harley Pebley
Guest





PostPosted: Wed Oct 29, 2003 12:21 am    Post subject: Re: TEdit Reply with quote



Quote:
I modified a TEdit component to except only integers. Its working fine but I
want the Edit box to display the text in a specific way like 0.00 how can I
force this display format. It works on the onexit but when you use onexit in
a application it ignores the code I wrote in the component.

If I understand correctly, you've written a TEdit descendent and assigned
one of your own methods to your own OnExit property.

If not, ignore the rest.

That can be problematic as you've found. Instead, override DoExit, do your
processing there and then call inherited.

HTH,
Harley Pebley

Back to top
Dolf van den Berg
Guest





PostPosted: Wed Oct 29, 2003 4:25 am    Post subject: Re: TEdit Reply with quote



Thanks it worked.


Harley Pebley <harley_pebley (AT) idahotech (DOT) com> wrote:
Quote:
I modified a TEdit component to except only integers. Its working fine but I
want the Edit box to display the text in a specific way like 0.00 how can I
force this display format. It works on the onexit but when you use onexit in
a application it ignores the code I wrote in the component.

If I understand correctly, you've written a TEdit descendent and assigned
one of your own methods to your own OnExit property.

If not, ignore the rest.

That can be problematic as you've found. Instead, override DoExit, do your
processing there and then call inherited.

HTH,
Harley Pebley


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.