list control woes

Hello, is it possible to get the selected item in a list control. I’m looking through the documentation and I don’t see a way to do this… kinda strange. well I need to list strings with icons, so I decided to use the list ctrl but I can’t seem to find the function that gets the selected item. thanks!!

Jeff

···

Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.

Quoting Jeff Peery <jeffpeery@yahoo.com>:

Hello, is it possible to get the selected item in a list control. I\'m looking through the documentation and I don\'t see a way to do this... kinda strange. well I need to list strings with icons, so I decided to use the list ctrl but I can\'t seem to find the function that gets the selected item. thanks!!

  Jeff

Hi Jeff,

I assume not.

The demo just keeps track of which item is selected by keeping a class variable.

e.g.

   def OnItemSelected(self, event):
         self.currentItem = event.m_itemIndex

Regards,

Ray Smith
http://RaymondSmith.com

Hi Jeff,

what about GetFirstSelected() and GetNextSelected() methods of the
ListCtrl ?

Hope this helps,
Johannes

···

Am Dienstag, den 27.06.2006, 20:55 -0700 schrieb Jeff Peery:

Hello, is it possible to get the selected item in a list control. I'm
looking through the documentation and I don't see a way to do this...
kinda strange. well I need to list strings with icons, so I decided to
use the list ctrl but I can't seem to find the function that gets the
selected item. thanks!!

Jeff

______________________________________________________________________
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.

--
BYTEWISE Software GmbH Tel +43 (5577) 89877-0
i.A. Johannes Vetter Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2 http://www.bytewise.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wir bieten Installation und Support für Ubuntu: ein auf
GNU/Linux basierendes Softwaresystem für Arbeitsplatzrechner