wx.TextCtrl question

Franz Steinhäusler wrote:

Hello,

Not entirely clear:
Do you mean, that a part of the text is selected?

Hello!

nope.. i mean that:

wx.TextCtrl

···

---+-------------------
1. | some text
2. | some more text
3. | and ever more text
4. | moremoremore text

(note that string numbers is added in example above just for clear look)

lets assumes, that user puts cursor in string 2. then he pressed F11
key. after that i'll have the string 'some more text' in some variable..
user_text, for example..

the whole idea - how to get __single__ string (on what user puts cursor)
from the whole TextCtrl.

keyhandler of textctrl:

OnChar(self, event):
  if event.GetKeyCode == wx.WXK_F11:
    var = self.GetStringSelection()

--
Franz Steinhaeusler

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Oops, that should be:

                  if intNewLinePos > intInsertPoint: