New topic: 

Find out what tab was clicked?

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

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       martinpaulrice           Post subject: Find out what tab was 
clicked?Posted: Fri Aug 21, 2009 11:39 am                        
Joined: Wed Apr 11, 2007 1:17 pm
Posts: 33              I have a TabPanel with 4 Tabs. When a user clicks on a 
tab, I want to know which one was clicked. So in the TabPanel.Change event I 
put this msgbox to see if I can identify the tab:  

MsgBox "You switched to a different panel" + _
  "The PanelIndex = " + str(TabPanel1.PanelIndex)[code][/code]

This always returns -1 instead of 0, 1, 2, or 3. I was wondering what I'm doing 
wrong and how I can determine the correct tab number.

Thanks.     
_________________
Martin
Signal Mountain, TN  
                            Top               mjh           Post subject: Re: 
Find out what tab was clicked?Posted: Fri Aug 21, 2009 11:43 am                 
       
Joined: Sun Feb 19, 2006 3:10 pm
Posts: 329
Location: Hamburg, Germany              Use TabPanel1.Value (or just me.Value 
for improved portability).     
_________________
Michael J. Hußmann 
http://digicam-experts.de  
                            Top               martinpaulrice           Post 
subject: Re: Find out what tab was clicked?Posted: Fri Aug 21, 2009 12:25 pm    
                    
Joined: Wed Apr 11, 2007 1:17 pm
Posts: 33              Thanks so much!

Und ein schöner Gruß aus Tennessee!     
_________________
Martin
Signal Mountain, TN  
                            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