List Info

Thread: Editing in TreeListCtrl




Editing in TreeListCtrl
user name
2006-08-05 10:29:04
Hi all,
Iam using a treelist control in wxpython for my
project, which has 3 columns, and it works fine with
me. 
Now, i need only the value of the third column to be
editable. But the thing is, when i use TR_EDIT_LABELS,
only the label of the root (ie. 1st col) is getting
edited, which is not my requirement.
Is there any loop hole., Any suggestions wud b of
great help..,
Thanx in advance.,
krishna

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

Editing in TreeListCtrl
user name
2006-08-05 20:45:08
I've had this exact problem several times.  From what I can
see, there's no 
simple work around.  The problem is that the TreeListCtrl
API returns 
TreeItems rather than ListItems.  Since TreeCtrl has only
one column, you 
can only get column 0.  However, if the TreeListCtrl API
returned ListItems, 
then you could get any column in the TreeListCtrl.

From what I remember, TreeListCtrl itself needs to be
patched.


>From: sendhil krishna <sendha_vinyahoo.com>
>Reply-To: wxPython-devlists.wxwidgets.org
>To: wxpython-devlists.wxwidgets.org
>Subject: [wxPython-dev] Editing in TreeListCtrl
>Date: Sat, 5 Aug 2006 03:29:04 -0700 (PDT)
>
>Hi all,
>Iam using a treelist control in wxpython for my
>project, which has 3 columns, and it works fine with
>me.
>Now, i need only the value of the third column to be
>editable. But the thing is, when i use TR_EDIT_LABELS,
>only the label of the root (ie. 1st col) is getting
>edited, which is not my requirement.
>Is there any loop hole., Any suggestions wud b of
>great help..,
>Thanx in advance.,
>krishna
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection
around
>http://mail.yahoo.com
>
>--------------------------------------------------------
-------------
>To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
>For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org
>

____________________________________________________________
_____
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/di
rect/01/


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )