Re: text field focus and placement of cursor
Johan Meskens CS3 jmcs3 <[email protected]> Wed, 19 Apr 2006 07:25:29 +0200
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Organization | INTERLICHTSPIELHAUS |
| Message-ID | <[email protected]> |
On Tue, 2006-04-18 at 20:28 -0400, Todd Littlefield wrote: > Hi Johan, > > I haven't tried this myself but according to the Text widget > methods, there is a SetCursor > method: > > $text->SetCursor( position ) > > Moves the insert mark to position. > > That sounds more like the method you want to use... Try that. indeed todd ! thank you > > (As a side note, try installing the ActiveState perl distribution on a > Windows box... You'll > find a great compendium of documentation on a lot of perl modules that > you may or may > not have installed. The Tk stuff in particular is very useful... If > nothing else, install it and copy > the entire HTML docs directory to your work system...) > > Good luck. > > Johan Meskens CS3 jmcs3 wrote: > > On Mon, 2006-04-17 at 20:03 +0200, Johan Meskens CS3 jmcs3 wrote: > > > >> hello > >> > >> > >> the body always repeats the subject in addition of a few words > >> > >> my question: > >> > >> what are the methods to let a text field take focus > >> and put the cursor at a specific position within that text field ? > >> > > > > i found the following: > > > > $textfield->focus; > > $textfield->icursor( "1.0" ); > > > > but i get the error: > > Tk::Error: Can't locate auto/Tk/Text/icursor.al in @INC ... etc. > > > > so i guess icursor is not a method that textfields respond to ? > > > > thanks > > jmcs3 > > > > > >> thank you > >> - also thank you for yesterday's answers to the hlist question ! > >> > >> kind regards > >> jmcs3 > >> > > -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected]