Kirix Support Forums

wxGetTopLevelParent() and Text selection with docked pane

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

wxGetTopLevelParent() and Text selection with docked pane

Postby sarduker on Wed Apr 13, 2011 10:48 am

Hello,

since developing under wxGTK (Fedora 14 x86_64) I discovered a text
selection bug in panes containing a wxTextCtrl. With wxMSW everything
works fine.

As I am using a wxProgressDialog in the original code it can be
easily reproduced with the aui sample
wxWidgets-2.8.11/samples/aui/auidemo.cpp
by adding the following code at the end of the MyFrame constructor:

Code: Select all
   wxWindow *topParent = wxGetTopLevelParent(this);
   if (topParent != NULL)
   {
      topParent->Disable();
      topParent->Enable();
   }


If I mark an arbitrary text segment within the "Text Pane with Hide Prompt"
and set the focus - for example - to the Tab "Welcome to wxAUI", the marked
text will disappear as long as the pane does not regain focus.

While the pane is undocked during disabling/enabling there is no such
behaviour afterwards.

May somebody has a hint for me?

Thanks in advance!
sarduker
Registered User
 
Posts: 1
Joined: Wed Apr 13, 2011 10:37 am

Return to wxAUI Questions, Thoughts & Feedback