Win98, 2.8.4.0, TextCtrl, Text highlighted as if someone dragged a mouse over it

Hi wxPython Users,

This seems a bit strange, so I thought I'd mention it.
Running on Win98, Python 2.5, wxPython 2.8.4.0.

I have 2 Apps. One is my wxPython App.
The other is a commercial E-mail client, not sure if it is written in
wxPython, or not, or if it matters.

The sequence goes as follows:
- Display the wxPython App, with some text in the TextCtrl. My App
is writing status/log messages to the screen.
- Click on the Task bar to bring the non wxPython App up on screen in
full screen mode.
- click minimize to send the non wxPython App back to the Task Bar.
- All the Text in the TextCtrl of the wxPython App is now
selected/highlighted, as if someone had dragged a mouse over all of
the text of the control.

If this fails to show the problem, minimize the wxPython App to the
taskbar, and click on the wxPython APP in the task bar to bring it
back, and repeat the sequence.

Anyone else seen this, and should it be acting this way?

Hi this has been a long standing issue with wxWidgets / wxPython. I am
not sure if it is really an issue with wxWidgets, but with the fact
that the text ctrl is focused upon minimizing .. It should be fixed
somehow, one of the ways to do it is catch the maximuze event, and
when your text ctrl has the focus, set the string selection to
nothing. I have had this quirk in my app since wxWidgets 2.2.9.

- Jorgen

···

On 5/21/07, Phillip Stevens <pmstevens@verizon.net> wrote:

Hi wxPython Users,

This seems a bit strange, so I thought I'd mention it.
Running on Win98, Python 2.5, wxPython 2.8.4.0.

I have 2 Apps. One is my wxPython App.
The other is a commercial E-mail client, not sure if it is written in
wxPython, or not, or if it matters.

The sequence goes as follows:
- Display the wxPython App, with some text in the TextCtrl. My App
is writing status/log messages to the screen.
- Click on the Task bar to bring the non wxPython App up on screen in
full screen mode.
- click minimize to send the non wxPython App back to the Task Bar.
- All the Text in the TextCtrl of the wxPython App is now
selected/highlighted, as if someone had dragged a mouse over all of
the text of the control.

If this fails to show the problem, minimize the wxPython App to the
taskbar, and click on the wxPython APP in the task bar to bring it
back, and repeat the sequence.

Anyone else seen this, and should it be acting this way?

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Phillip Stevens wrote:

Hi wxPython Users,

This seems a bit strange, so I thought I'd mention it.
Running on Win98, Python 2.5, wxPython 2.8.4.0.

I have 2 Apps. One is my wxPython App.
The other is a commercial E-mail client, not sure if it is written in
wxPython, or not, or if it matters.

The sequence goes as follows:
- Display the wxPython App, with some text in the TextCtrl. My App
is writing status/log messages to the screen.
- Click on the Task bar to bring the non wxPython App up on screen in
full screen mode.
- click minimize to send the non wxPython App back to the Task Bar.
- All the Text in the TextCtrl of the wxPython App is now
selected/highlighted, as if someone had dragged a mouse over all of
the text of the control.

If this fails to show the problem, minimize the wxPython App to the
taskbar, and click on the wxPython APP in the task bar to bring it
back, and repeat the sequence.

Anyone else seen this, and should it be acting this way?

On Windows the wx default for when a textctrl gets the focus is to select all the text. The same thing happens when you tab into a textctrl from some other control. When you bring up the other app the textctrl loses focus as it is given to the other app, and then when the other app is minimized then your wx app is activated again and the textctrl receives the focus again.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!