Page 1 of 1
Table stole focus
Posted: Mon Oct 03, 2005 4:31 pm
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.
Posted: Mon Oct 03, 2005 6:21 pm
by Sergey Tkachenko
It steals focus from which control?
Posted: Tue Oct 04, 2005 6:38 am
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...
Posted: Tue Oct 04, 2005 6:46 am
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.
Posted: Tue Oct 04, 2005 8:10 am
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.
Posted: Mon Apr 10, 2006 7:42 am
by Marsianin
The problem is still here in 1.9.24. Have you ever tryed to fix it ? Just asking