[wxPython] wxListCtrl - Getting the data?

Thanks.

···

------Original Message------
From: Riaan Booysen <riaan@e.co.za>
To: wxpython-users@wxwindows.org
Sent: May 30, 2000 7:46:59 PM GMT
Subject: Re: [wxPython] wxListCtrl - Getting the data?

Gene Chiaramonte wrote:

I'm quite sure I don't understand how the wxListCtrl and the wxListItem (m_mask, m_stateMask, m_state) work together. I have read the help file and specifically the description of wxListCtrl::SetItem and am really lost now. I think my brains about to explode!

Quick practical guide:

To access item on row/col:
item = wxListCtrl.GetItem(itemIndex, column)

To check if an item is selected:
selected = wxListCtrl.GetItemState(itemIndex, 0) &
wxLIST_STATE_SELECTED:

If selected is not zero, the item was selected, similarly you may
check for the other flags.

What I'd like to know is how to find out the number of columns.

--
Riaan >>> a='a=%s;a%%`a`';a%`a`
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
     http://boa-constructor.sourceforge.net

_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users
______________________________________________
FREE Personalized Email at Mail.com
Sign up at Free email accounts with mail.com | Log in here or register today