set selection for wxTextCtrl not highlighting

Hi,

(Using wxPython 2.4 - Python 2.2 - Win98)

if SetSelection is called for wxTextCtrl
the appropriate region gets "selected"
but is not highlighted
whereas is works fine if user selects using a mouse

how to regularise the behaviour

thanks
Sanjay Minni

Sanjay Minni - Minisoft (India) wrote:

Hi,

(Using wxPython 2.4 - Python 2.2 - Win98)

if SetSelection is called for wxTextCtrl
the appropriate region gets "selected"
but is not highlighted
whereas is works fine if user selects using a mouse

When do you call SetSelection? Has the window been shown yet? Has the textCtrl received the focus yet?

ยทยทยท

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