The problem has been reported (and discussed) several times
in the archive. I did not find any satisfying explanation.
Assume one frame, one panel containing a single wxTextCtrl.
After adding some text with a statement like
textcontrol.SetValue('abc') the 'abc' string is selected.
There is no way to deselected it. A SetSelection(m, n) (with
any m, n values) does not help. Beside this issue, a
GetInsertionPoint() will return 0, despite the caret being
at the end of the string.
Of course, setting the focus to one another control will
show an unselected control, but the GetInsertion(),
SetSelection() are still not working.
I tried different styles, EVT_SET_FOCUS(), ..., no way to
find a solution.
The problem is more accute if I use the text control as rich
text control. After a WriteText() or a LoadFile(), the whole
text is selected.
2) Just for my english, what is a BOF session (OSCON)? Begin
Of File?
The problem has been reported (and discussed) several times
in the archive. I did not find any satisfying explanation.
Assume one frame, one panel containing a single wxTextCtrl.
After adding some text with a statement like
textcontrol.SetValue('abc') the 'abc' string is selected.
There is no way to deselected it. A SetSelection(m, n) (with
any m, n values) does not help. Beside this issue, a
GetInsertionPoint() will return 0, despite the caret being
at the end of the string.
Of course, setting the focus to one another control will
show an unselected control, but the GetInsertion(),
SetSelection() are still not working.
I tried different styles, EVT_SET_FOCUS(), ..., no way to
find a solution.
The problem is more accute if I use the text control as rich
text control. After a WriteText() or a LoadFile(), the whole
text is selected.
Please send a sample that shows the problems. I'm not seeing them here.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!