New topic: 

Please explain RowFromXY on ListBox Double Click

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        plunkettphoto          Post subject: Please explain RowFromXY on 
ListBox Double ClickPosted: Thu Jun 24, 2010 10:10 am                         
Joined: Fri Oct 10, 2008 7:14 pm
Posts: 31                Code:  dim iRow As Integer
  
  iRow = Me.RowFromXY(System.MouseX - Me.Left - self.Left, System.MouseY - 
Me.Top - Self.Top)

Simple Process but I don't understand.  I came from a Delphi background where 
when a grid (LB equivalent) was double clicked you just had the row.  I get the 
overall process from the above code but what exactly is happening and isn't 
there a cleaner way to determine what row was double clicked.  Also, the Me and 
Self are very confusing.  If my ListBox is named lbClasses, could the above be 
written without using me and self but just the names of the objects?

thanks in advance for any explanation...
bill plunkett   
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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