[Gtk-sharp-list] Entry.Position and Entry.SelectRegion

itbh at 012.net.il itbh at 012.net.il
Tue May 17 06:44:20 EDT 2005

I was trying to program a certain behaviour for an Entry widget, by adding event handlers for the TextInserted and FocusInEvent events. In both cases, I wanted to move the caret position and select a certain character.
I used the Entry.Position=pos and Entry.SelectRegion(pos, pos+1) to select the wanted character.
I know that the position I gave is OK and lies within the range of text.
However, it simply doesn't work. Should there be some kind of setting I need to do before it can work? Or perhaps some kind of default handler is overriding these specific operations I do in my code?
Please help me with this one (It is used to create a formatted field, I know many people can benefit from it :-) )


More information about the Gtk-sharp-list mailing list