Hi,
In a wx.TextCtrl, I cannot select text from position x to y where x < y and with the cursor in position x.
For example:
SetSelection(4, 2) doesn't place the caret in position 2
Thanks a lot !
Gertude
Hi,
In a wx.TextCtrl, I cannot select text from position x to y where x < y and with the cursor in position x.
For example:
SetSelection(4, 2) doesn't place the caret in position 2
Thanks a lot !
Gertude
Hm strange, in demo (textctrl), changing (in init)
t1.SetInsertionPoint(0)
t1.SetInsertionPoint(2)
show no effect, also I tried SetSelection (2,4), even Callafter doesn't
show anything.
Could the reason lay on the fact, that the parent is a panel (?)
No, don't seem so (in the sample, dialog is parent).
I attach a sample (btn open another dialog => after this, the text
should be selected).
On Fri, 25 Feb 2005 11:24:21 +0100, Franz Steinhäusler <franz.steinhaeusler@gmx.at> wrote:
On Thu, 24 Feb 2005 17:00:11 +0100, Bertrand Songis <gertude@free.fr> >wrote:
[...]
Platform?What is shown after SetSelection?
I tried it and worked fine wxPython MSW 2.5.3.1
SetSelection (2, 4) and SetSelection (4, 2)Where did you call SetSelection? (in the __init__ area)?
Then you could try wx.CallAfter (SetSelection, begpos, endpos)
--
Franz Steinhaeusler