Find dialog focus
Saketh Bhamidipati
saketh.bhamidipati at gmail.com
Sun Aug 6 09:43:06 PDT 2006
I have a Find dialog (not the standard one) which has a Find Next button.
When this button is clicked, a TextCtrl in the parent window highlights the
result. If Find Next is clicked again, then the TextCtrl highlights the next
result. And so on, starting from the beginning again if no results are
found.
The Find Next feature works perfectly, and the highlighting works as well.
However, my problem is that the highlighting only shows up in the parent
window if the Find dialog is closed. For instance, if I have up the Find
dialog, and hit "Find Next" three times, the third instance of the query
will be highlighted in the TextCtrl, but I can't see the highlight until I
close the Find dialog. Since the Find dialog is modal, the parent window
loses its focus - that's why the highlight can't be seen, I think.
How can I fix my program so that the user can see the highlighted text in
the frame even while there is a modal Find dialog? Should I change the Find
dialog to be a child frame?
Thanks!
-Saketh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200608=
06/c5bf61b6/attachment.htm
More information about the wxpython-users
mailing list