Ed Leafe wrote:

> On Oct 5, 2010, at 6:10 AM, Jacek Kałucki wrote:
>> It's by design.
>> Use GetRange 
>> <http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.TextCtrl.
>> html#GetRange>() method instead of applying substring positions to
>> Value property. 
>      Generally, if there is functionality that is missing in Dabo
>      but available in wx, it is best to explain what that need is
>      in a feature request so that it can be added to the Dabo
>      layer, rather than expect users to drop down into the wx
>      layer. Do the Selection/SelectedText properties give you what
>      you need? If not, explain what is needed, because it sounds
>      like a relatively simple thing to wrap in Dabo. 

        Thanks for the reply.  Yeah, I'd definitely prefer not to drop to 
wx.

        The SelectedText property doesn't work, because nothing is 
selected.  I want to inspect the text at the insertion point itself 
during normal text input, so I can decide as each character is entered 
whether or not to allow it.  (SelectionStart and SelectionEnd just 
return the same value as InsertionPosition, so they're not useful to me 
either.)

        Incidentally, I had hoped I could achieve a similar effect with 
some sort of validation, but I can't figure out how to do that without 
creating a bizObj and connecting the GUI to a database, and I'd rather 
not drag in all that complexity.  Is there a way to just specify a 
function that validates data in a particular text field?

Thanks,
-- 
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead.  Go, instead, where there is
no path, and leave a trail."
        --author unknown

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to