| View previous topic :: View next topic |
| Author |
Message |
Ron Eggler @ work Guest
|
Posted: Fri May 13, 2005 11:49 am Post subject: TEdit-Problem |
|
|
Hi,
I got a few TEdits in my app and if I selected one edited a value and then
select annother one by clicking with my mouse, the cursor seems to hang and
I can't 'really' select it and edit the Value. i always have to select it
twice.
Why could that be? How would I be able to debug this?
Thank you!
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Fri May 13, 2005 11:52 am Post subject: Re: TEdit-Problem |
|
|
Ron Eggler @ work wrote:
| Quote: | I got a few TEdits in my app and if I selected one edited a value and then
select annother one by clicking with my mouse, the cursor seems to hang and
I can't 'really' select it and edit the Value. i always have to select it
twice.
|
If you just click in a TEdit then that TEdit gets the focus and
only the caret is positioned. To select the text (make it blue)
you have to click twice indeed.
Use the Tab key to select the text while going to the next TEdit.
Hans.
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Fri May 13, 2005 12:18 pm Post subject: Re: TEdit-Problem |
|
|
Hans Galema wrote:
| Quote: | Ron Eggler @ work wrote:
I got a few TEdits in my app and if I selected one edited a value
and then select annother one by clicking with my mouse, the cursor
seems to hang and I can't 'really' select it and edit the Value. i
always have to select it twice.
If you just click in a TEdit then that TEdit gets the focus and
only the caret is positioned. To select the text (make it blue)
you have to click twice indeed.
|
haha, yes I know that, but if I clicked once, then the TEdit got the Focus
but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the Existing
Text.
-now it looks like this:"10000|" and where the Cursor '|' is should the new
text be added but it doesn't add any text when I'm typing anything.
-When I move the Mouse-Cursor to the right side without clicking anything
the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
| Quote: |
Use the Tab key to select the text while going to the next TEdit.
Hans.
|
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Fri May 13, 2005 12:23 pm Post subject: Re: TEdit-Problem |
|
|
Hans Galema wrote:
| Quote: | Ron Eggler @ work wrote:
I got a few TEdits in my app and if I selected one edited a value
and then select annother one by clicking with my mouse, the cursor
seems to hang and I can't 'really' select it and edit the Value. i
always have to select it twice.
If you just click in a TEdit then that TEdit gets the focus and
only the caret is positioned. To select the text (make it blue)
you have to click twice indeed.
|
haha, yes I know that, but if I clicked once, then the TEdit got the Focus
but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the Existing
Text.
-now it looks like this:"10000|" and where the Cursor '|' is should the new
text be added but it doesn't add any text when I'm typing anything.
-When I move the Mouse-Cursor to the right side without clicking anything
the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
| Quote: |
Use the Tab key to select the text while going to the next TEdit.
Hans.
|
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Fri May 13, 2005 1:09 pm Post subject: Re: TEdit-Problem |
|
|
Ron Eggler @ work wrote:
| Quote: | -now it looks like this:"10000|" and where the Cursor '|' is should the new
text be added but it doesn't add any text when I'm typing anything.
|
You modified the TEdit's OnChange eventhandler and now
you have this sideeffect ?
Hans.
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Fri May 13, 2005 1:44 pm Post subject: Re: TEdit-Problem |
|
|
Hans Galema wrote:
| Quote: | Ron Eggler @ work wrote:
-now it looks like this:"10000|" and where the Cursor '|' is should
the new text be added but it doesn't add any text when I'm typing
anything.
You modified the TEdit's OnChange eventhandler and now
you have this sideeffect ?
|
no, I didn't. I don't have the VCL-Sources, sooooooooo...
and I'm using the OnExit-Event of every TEdit.
|
|
| Back to top |
|
 |
Joseph F. Muscarella Guest
|
Posted: Fri May 13, 2005 2:07 pm Post subject: Re: TEdit-Problem |
|
|
Is it possible that you have set the MaxLength property to 5?
Joe
| Quote: | haha, yes I know that, but if I clicked once, then the TEdit got the Focus
but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the Existing
Text.
-now it looks like this:"10000|" and where the Cursor '|' is should the
new
text be added but it doesn't add any text when I'm typing anything.
-When I move the Mouse-Cursor to the right side without clicking anything
the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
|
|
|
| Back to top |
|
 |
Jim Dodd Guest
|
Posted: Fri May 13, 2005 2:26 pm Post subject: Re: TEdit-Problem |
|
|
Ron Eggler @ work wrote:
| Quote: |
haha, yes I know that, but if I clicked once, then the TEdit got the Focus
but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the Existing
Text.
-now it looks like this:"10000|" and where the Cursor '|' is should the new
text be added but it doesn't add any text when I'm typing anything.
-When I move the Mouse-Cursor to the right side without clicking anything
the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
|
I've only seen this when the TEdit has its ReadOnly property set to "true".
Regards,
Jim Dodd
Onset Computer Corp.
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Tue May 17, 2005 6:20 am Post subject: Re: TEdit-Problem |
|
|
Joseph F. Muscarella wrote:
| Quote: | Is it possible that you have set the MaxLength property to 5?
|
no, it's set to 0.
| Quote: | haha, yes I know that, but if I clicked once, then the TEdit got the
Focus but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the
Existing Text.
-now it looks like this:"10000|" and where the Cursor '|' is should
the new text be added but it doesn't add any text when I'm typing
anything. -When I move the Mouse-Cursor to the right side without
clicking anything the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
|
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Tue May 17, 2005 6:21 am Post subject: Re: TEdit-Problem |
|
|
Jim Dodd wrote:
| Quote: | Ron Eggler @ work wrote:
haha, yes I know that, but if I clicked once, then the TEdit got the
Focus but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the
Existing Text.
-now it looks like this:"10000|" and where the Cursor '|' is should
the new text be added but it doesn't add any text when I'm typing
anything. -When I move the Mouse-Cursor to the right side without
clicking anything the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
I've only seen this when the TEdit has its ReadOnly property set to
"true".
No, it's set to 'false'. |
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Tue May 17, 2005 6:22 am Post subject: Re: TEdit-Problem |
|
|
Jim Dodd wrote:
| Quote: | Ron Eggler @ work wrote:
haha, yes I know that, but if I clicked once, then the TEdit got the
Focus but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the
Existing Text.
-now it looks like this:"10000|" and where the Cursor '|' is should
the new text be added but it doesn't add any text when I'm typing
anything. -When I move the Mouse-Cursor to the right side without
clicking anything the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
I've only seen this when the TEdit has its ReadOnly property set to
"true".
No, it's set to 'false'. |
|
|
| Back to top |
|
 |
Ron Eggler @ work Guest
|
Posted: Tue May 17, 2005 6:22 am Post subject: Re: TEdit-Problem |
|
|
Joseph F. Muscarella wrote:
| Quote: | Is it possible that you have set the MaxLength property to 5?
|
no, it's set to 0.
| Quote: | haha, yes I know that, but if I clicked once, then the TEdit got the
Focus but I couldn't type anything...
The scene looks like this:
-Text in Edit:"10000"
-now I select the Edit by clicking once in it at the End of the
Existing Text.
-now it looks like this:"10000|" and where the Cursor '|' is should
the new text be added but it doesn't add any text when I'm typing
anything. -When I move the Mouse-Cursor to the right side without
clicking anything the existing text gets blue selected.
Don't know why the TEdit seems to hang with the cursor.
|
|
|
| Back to top |
|
 |
Fishface Guest
|
Posted: Wed May 18, 2005 1:19 pm Post subject: Re: TEdit-Problem |
|
|
Ron Eggler wrote:
| Quote: | I got a few TEdits in my app and if I selected one edited a value and then
select annother one by clicking with my mouse, the cursor seems to hang and
I can't 'really' select it and edit the Value. i always have to select it
twice.
Why could that be? How would I be able to debug this?
|
You may be experiencing a problem similar to one described in this thread:
http://groups-beta.google.com/group/borland.public.cppbuilder.vcl.components.using/browse_frm/thread/55b7d6fb0c3f174a
Or not-- but you may wish to try one of the solutions presented...
|
|
| Back to top |
|
 |
|