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-Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Ron Eggler @ work
Guest





PostPosted: Fri May 13, 2005 11:49 am    Post subject: TEdit-Problem Reply with quote



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





PostPosted: Fri May 13, 2005 11:52 am    Post subject: Re: TEdit-Problem Reply with quote



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





PostPosted: Fri May 13, 2005 12:18 pm    Post subject: Re: TEdit-Problem Reply with quote



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





PostPosted: Fri May 13, 2005 12:23 pm    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Fri May 13, 2005 1:09 pm    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Fri May 13, 2005 1:44 pm    Post subject: Re: TEdit-Problem Reply with quote

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.
Quote:

Hans.



Back to top
Joseph F. Muscarella
Guest





PostPosted: Fri May 13, 2005 2:07 pm    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Fri May 13, 2005 2:26 pm    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Tue May 17, 2005 6:20 am    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Tue May 17, 2005 6:21 am    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Tue May 17, 2005 6:22 am    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Tue May 17, 2005 6:22 am    Post subject: Re: TEdit-Problem Reply with quote

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





PostPosted: Wed May 18, 2005 1:19 pm    Post subject: Re: TEdit-Problem Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.