New topic: 

Listbox-detect click in non cell

<http://forums.realsoftware.com/viewtopic.php?t=32238>

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       pbart           Post subject: Listbox-detect click in non 
cellPosted: Thu Jan 28, 2010 8:36 pm                               
Joined: Sat Oct 10, 2009 6:40 am
Posts: 57              I have a menu item that is activated by clicking on the 
cells on a listbox. How can I detect when I have clicked on a non populated 
cell, so that I can deactivate the menu item. (cells not added, but appear in 
list box)     
_________________
Regards
Paul
Windows 7 32bit
RB 2009 5.1  
                            Top                DaveS           Post subject: 
Re: Listbox-detect click in non cellPosted: Thu Jan 28, 2010 10:21 pm           
                    
Joined: Sun Aug 05, 2007 10:46 am
Posts: 2010
Location: San Diego, CA              In the MOUSEDOWN event of your LISTBOX put 
this code

Code:
return (Me.RowFromXY(System.MouseX - Me.Left - Self.Left,System.MouseY - Me.Top 
- Self.Top)<0)



Then in the MOUSEUP event put what ever you code you want to execute if the 
user clicked on a NON valid row     
_________________
Dave Sisemore
MacPro, OSX 10.5.8 RB2009r5.1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                            Top               pbart           Post subject: Re: 
Listbox-detect click in non cellPosted: Thu Jan 28, 2010 11:16 pm               
                
Joined: Sat Oct 10, 2009 6:40 am
Posts: 57              Cheers Dave     
_________________
Regards
Paul
Windows 7 32bit
RB 2009 5.1  
                            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]

Reply via email to