ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
[Pythoncard-users] RE: Auto select all - when entering a TextField
by Kevin Altis other posts by this author
Nov 23 2002 6:18PM messages near this date
[Pythoncard-users] RE: Auto select all - when entering a TextField | [PMX:#] [Pythoncard-users] limitations of pythoncard
Are you saying that with a TextField or TextArea component that as you type
a character the field contents get selected? Does that happen with all the
samples such as widgets too or just your program? Can you send some code?

If something is happening while typing that implies that you've created a
keyDown, keyUp, or keyPress handler, so maybe something is wrong in there.
If you need to change the default behavior of a fields contents being
selected when the field gets focus from the user pressing the Tab key then
that could be done in a gainFocus handler.

ka

>  -----Original Message-----
>  From: Sergio Campitelli
>  Subject: Auto select all - when entering a TextField
> 
> 
>  I'm not quit sure how to Auto Select ... that is ... when I
>  tab/point&click
>  to a field it will select all the contents in that field.
>  All that has to be done is key new contents ... tab out ... and your done
>  entering.
> 
>  I noticed #event.TextEnterEvent has been commented out because I could use
>  event.KeyPressEvent instead so I'm told.
> 
>  self.events.extend([event.KeyPressEvent,
>                   event.KeyDownEvent,
>                   event.KeyUpEvent,
>                   #event.TextEnterEvent,
>                   event.TextUpdateEvent,
>                   event.CloseFieldEvent
>           ])
> 
>  But I would like to auto select once not continually (that is as
>  I'm typing
>  information in the field it continues to select the entire field.)
>  I must be doing something wrong
>  Can somebody help me?
> 
>  Serg



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved