 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dolf avnden Berg Guest
|
Posted: Tue Oct 28, 2003 10:45 pm Post subject: TEdit |
|
|
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
|
Posted: Wed Oct 29, 2003 12:21 am Post subject: Re: TEdit |
|
|
| 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
|
Posted: Wed Oct 29, 2003 4:25 am Post subject: Re: TEdit |
|
|
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 |
|
 |
|
|
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
|
|