wxTextCtrl questions

Hi all,

win98se, Py 2.2.3, wxPy 2.4.0.7 (and wxPy 2.4.1.2)

1) Selection in wxTextCtrl

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?

Thanks,
Jean-Michel Fauth, Switzerland

Jean-Michel Fauth wrote:

sorry I can't help with the text control question, but:

2) Just for my english, what is a BOF session (OSCON)? Begin
Of File?

OSCON is the Open Source CONvention, whioch was last week in Portland,
OR, USA.

BOF is a "Birds Of a Feather" session: a time for people with siilar
interests to get together at a conference such as that one.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Jean-Michel Fauth wrote:

Hi all,

win98se, Py 2.2.3, wxPy 2.4.0.7 (and wxPy 2.4.1.2)

1) Selection in wxTextCtrl

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!