[wxPython] wxTextCtrl - SetSelection

[Python 2.0b, wxPython 2.2.1 NT 40. SP 4]

Setting the selection in the wxTextCtrl (by the SetSelection method)
doesn't update and redisplay the control. The selection is set (when
getting the selection I get the values I've set it to), but it isn't
shown on the control. Is there a way I can get the selection to get
displayed automaticaly after using SetSelection ?

Thanks Przemek

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Setting the selection in the wxTextCtrl (by the SetSelection method)
doesn't update and redisplay the control. The selection is set (when
getting the selection I get the values I've set it to), but it isn't
shown on the control. Is there a way I can get the selection to get
displayed automaticaly after using SetSelection ?

Did you try calling Refresh(), maybe followed by wxYield()?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Robin Dunn wrote:

Did you try calling Refresh(), maybe followed by wxYield()?

Yes, doesn't help ;-(

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users