Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TEdit becomes unusable when returning to the form it was on (XE6)


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Dec 16, 2014 5:30 AM Last Post By: Adam Kenny
Adam Kenny

Posts: 6
Registered: 2/7/14
TEdit becomes unusable when returning to the form it was on (XE6)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2014 3:27 AM
Hi folks,

I'm wondering if anyone here has run into this problem. I can't find any info about it online, but it's cropped up in a couple of my projects now.

Basically, I have a form with a few edit boxes. On clicking a button on that form I take the info from the boxes and open another form to complete
a task. On leaving the second form I return straight back to the previous form, clearing the text from some of the edit boxes.

The problem is that when I go back to the first form the TEdits become completely unusable. Clicking a box clearly sets the focus to it, as the edit
box will be highlighted. But no cursor appears inside the box and no keyboard appears either, as would usually happen when clicking a TEdit.

Am I missing something? Do they need to be refreshed when returning to the form or something like that?
Any help would be appreciated.

Adam

Edited by: Adam Kenny on Dec 12, 2014 3:34 AM
Adam Kenny

Posts: 6
Registered: 2/7/14
Re: TEdit becomes unusable when returning to the form it was on (XE6)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 16, 2014 5:30 AM   in response to: Adam Kenny in response to: Adam Kenny
Found the answer.

Have to force the form with the TEdits to become the active form:
Screen.ActiveForm := frmWithEdits
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02