New topic: Hierarchical listbox issue (ExpandRow vs. CellClick)
<http://forums.realsoftware.com/viewtopic.php?t=36383> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message edwinh Post subject: Hierarchical listbox issue (ExpandRow vs. CellClick)Posted: Sat Nov 20, 2010 2:50 am Joined: Sat Nov 20, 2010 2:36 am Posts: 2 Hi, I created a hierarchical listbox but how can I distinguish between the ExpandRow event and the CellClick event? It seems that the CellClick event is fired when you expand the row. Basically what I want is that an event is fired when I expand the row and a separate event when I select/click the row. I also noticed that the listbox listindex and other properties are not set prior to the events being fired so I cannot use this either to distinguish if the row was selected or expanded. When are these properties set and are there any other events that I can/should use? Since I am a newbie to RealBasic, your help would be appreciated. Regards, Edwin Top timhare Post subject: Re: Hierarchical listbox issue (ExpandRow vs. CellClick)Posted: Sat Nov 20, 2010 3:26 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 8705 Location: Portland, OR USA The Change event fires when you select the row. Use that instead of CellClick. Top edwinh Post subject: Re: Hierarchical listbox issue (ExpandRow vs. CellClick)Posted: Sat Nov 20, 2010 5:02 am Joined: Sat Nov 20, 2010 2:36 am Posts: 2 Thanks, that works. I just have to use ListIndex instead of row to get the row selected. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
