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 >> wxpython-users
wxpython-users
Re: [wxpython-users] SetMaxLength for ComboBox
by Robin Dunn other posts by this author
May 8 2008 9:15AM messages near this date
[wxpython-users] SetMaxLength for ComboBox | Re: [wxpython-users] SetMaxLength for ComboBox
Phil Mayes wrote:
>  Hi all,
>  I want to limit the number of characters typed into the text field of a 
>  CB_DROPDOWN ComboBox.  I thought I had seen a way of getting the 
>  TextCtrl so I can  apply SetMaxLength(), but can't find any references 
>  to it in the archives.

Unfortunately there isn't a built-in way to do tha with a combobox. 
You'll have to catch events (EVT_CHAR and/or maybe EVT_TEXT) and impose 
the limit yourself.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Phil Mayes
Robin Dunn
Phil Mayes
Kyle W Rickey
Robin Dunn

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved