help picking a widget?

You don't need to use a grid (although you can if you want) 'cos I'm pretty
sure that the list control can do editing.

I've not done it but all you'd need to do is define a handler for the
EVT_LIST_BEGIN_LABEL_EDIT (and / or corresponding EVT_LIST_END_LABEL_EDIT)
events.

In fact .. it's in the demo. Have a look there at the wxListCtrl demo.

Standard windows "rename" seems to happen when you do a "slow" double click.

Hope this helps.

Muz

···

___________________________________________________
Murray Steele
Software Engineer
___________________________________________________
APR Smartlogik Limited.
160 Euston Road * London * NW1 2LZ
phone +44 (0)20 7961 3900
fax +44 (0)20 7961 3949
map: http://www.aprsmartlogik.com/contact/LocationMap.pdf

mailto:Murray.Steele@aprsmartlogik.com

***********************************************************************
This e-mail may contain proprietary and confidential
information and is intended for the recipient(s) only.
If an addressing or transmission error has misdirected this
e-mail, please notify the systems administrator by forwarding
this e-mail to mailto:postmaster@aprsmartlogik.com.
If you are not the intended recipient(s) disclosure, distribution,
copying or printing of this e-mail is strictly prohibited.
***********************************************************************

-----Original Message-----
From: Matthew Thornley [mailto:matthew.thornley@motioneng.com]
Sent: 18 September 2003 19:03
To: wxPython-users@lists.wxwindows.org
Subject: RE: [wxPython-users] help picking a widget?

I've used a list control as a grid control. It involves
dynamically creating an edit control when the user clicks in
the column. This was in MFC, which doesn't have a native grid
control. IMHO, you're much better off using the grid control.

  Matthew

-----Original Message-----
From: Roach, Mark R. [mailto:mrroach@cimplify.net]
Sent: Thursday, September 18, 2003 10:01 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython-users] help picking a widget?

I need to display a list where one of the columns is editable.

--------------------------------
Name | count | (count should be editable)
--------------------------------
John Doe | 1 |
...

do I need to use a wxgrid, or is there some way to make a list
editable, or would I be better off just making a popup dialog when an
item is activated and let the user change the value that way (not keen
on that idea) Sorry for the over-broad question, I'm just not
sure which
way to go on this. (Yes, I looked in the demo :wink:

Thanks,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org