Table stole focus

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Table stole focus

Post by Marsianin »

My app is like a notebook with tree of sections and database.
When I switching from one section to another it saves current richview to file and saves also cursor position. On return to some section it restores all these.
But if my richview has table and cursor set inside the table RichViewEdit stoles focus when I set cursor position.
Sergey Tkachenko
Site Admin
Posts: 17291
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It steals focus from which control?
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

I have a treeview at the left with sections and richviewedit at the right.
Each time when I selecting one section in tree my program saves previous richview data, goes to corresponding section in treeview and loads new data for RichView. And it's restores text and cursor position.

Just example. When I pressing DOWN key when my treeview is focused I'm navigating thru sections. And everything works normal. I'm pressing down...down...down...see next and next and next section.
But when RichView gets table - it stole focus and RichViewEdit became active.
So I need to click to the tree with mouse to continue navigation...
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

And one more thing. Just found.
If I got table with cursor inside and switched to another section (without table) RichView stoles focus again.
But if cursor position is for example under the table - everything is ok.
Sergey Tkachenko
Site Admin
Posts: 17291
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Currently I that I can recommend is moving focus back to the focused control after restoring selection.
Probably this problem will be fixed in next versions, but not immediately.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

The problem is still here in 1.9.24. Have you ever tryed to fix it ? Just asking :wink:
Post Reply