New topic: 

Listbox / Timer Question

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        jerryab          Post subject: Listbox / Timer QuestionPosted: 
Mon Nov 19, 2012 12:47 pm                         
Joined: Mon Dec 12, 2011 7:25 pm
Posts: 118
Location: Grand Rapids MI Area                I have a listbox that I want to 
automatically scroll down each row every 3 seconds.

I know this should be simple but I not getting it to work.

I have created a for/next loop to do this but not sure how to get the timer
to pause the scrolling for 3 seconds before it goes on to the next row in the 
listbox.

I have tried doing this:  Having a global variable (tmpPictureNumber)

  This code in a pushbutton
  
 Timer1.Period = 3000
Dim i As Integer
For i = 0 to lbxPictures.ListCount-1
  tmpPictureNumber = i
  Timer1.mode = Timer.ModeSingle
  Timer1.Enabled = True
Next

  
  
  This code in the timers action event
  
  lbxPictures.ListIndex = tmpPictureNumber      
_________________
iMac 27" (2.8GHz Intel Core i5, 16GB RAM, 1TB Drive) OS X Lion 10.7.3 and 
Windows 7
Toshiba Laptop Running Windows 7 & WinXP SP3
REAL Studio Enterprise Edition 2012r1
http://www.theultimatecampgroundlog.com
Being rewritten for the Mac  
                             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