New topic: 

How to disable tabs in tabpanel

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

       Page 1 of 2
   [ 18 posts ]   Go to page 1, 2  Next              Previous topic | Next 
topic         Author  Message       zodiac           Post subject: How to 
disable tabs in tabpanelPosted: Fri Oct 14, 2005 9:59 am                        
Joined: Fri Oct 14, 2005 9:55 am
Posts: 1              Can anyone please advise? I would like to disable/greyed 
out specific tabs in tabpanel. How can i do that? Some sample codes would be 
nice.   
                            Top               Aaron Ballman           Post 
subject: Posted: Fri Oct 14, 2005 10:33 am                               
Joined: Wed Sep 28, 2005 8:39 am
Posts: 9258
Location: Riverside, CA              Unless I am missing something in MSDN 
(which I don't think I am), there is no way to disable individual tabs on 
Windows.     
_________________
* Check out my blog at http://ramblings.aaronballman.com. 
* RBLibrary.com  REALbasic learning at the speed of now! 
* Get the WFS, everybody's using it.  
                            Top                Zhu           Post subject: 
Posted: Fri Oct 14, 2005 11:05 am                               
Joined: Sat Oct 01, 2005 5:13 am
Posts: 591
Location: Shanghai, China               You can disable all the controls on the 
tab, tho you must write many lines of code. I don't think you have another way 
to choose. You can't disable the tabs as the items of ListBox can't be 
disabled.     
_________________
ToringoCrypto Plugin - RSA (128 to 1024), DES/3DES/TDEA, etc.
ToringoDRMInfo Plugin - Uniquely identify computers via hardware information.
【My Company: Are you looking for someone to help you work on your 
projects?】 【My Blog】  
                            Top                ajoffe           Post subject: 
Posted: Fri Oct 14, 2005 7:13 pm                               
Joined: Fri Sep 30, 2005 11:52 am
Posts: 202
Location: Colorado              If you're willing to try a more customized 
solution, you might want to check out Alex Restrepo's Custom TabPanel 
(available here: http://homepage.mac.com/alexrestrepo/indexmain.html, scroll 
down). I just tested out the demo app that comes with it, and you can 
enable/disable tabs pretty niceley.   
                            Top               Zhu           Post subject: 
Posted: Tue Oct 25, 2005 7:11 am                               
Joined: Sat Oct 01, 2005 5:13 am
Posts: 591
Location: Shanghai, China              Sam's means is simple and useful.     
_________________
ToringoCrypto Plugin - RSA (128 to 1024), DES/3DES/TDEA, etc.
ToringoDRMInfo Plugin - Uniquely identify computers via hardware information.
【My Company: Are you looking for someone to help you work on your 
projects?】 【My Blog】  
                            Top                Aaron Ballman           Post 
subject: Posted: Tue Oct 25, 2005 9:03 am                               
Joined: Wed Sep 28, 2005 8:39 am
Posts: 9258
Location: Riverside, CA              Just to be clear, it also makes for a very 
bad user experience since the user has no way of knowing they're not allowed to 
click on that tab.     
_________________
* Check out my blog at http://ramblings.aaronballman.com. 
* RBLibrary.com  REALbasic learning at the speed of now! 
* Get the WFS, everybody's using it.  
                            Top                mak           Post subject: 
Posted: Tue Oct 25, 2005 9:08 am                               
Joined: Mon Oct 03, 2005 5:23 am
Posts: 106
Location: Sussex, UK              Although that method of restricting tab 
access is the suggested method in the MSDN library, ugly but true!   
                            Top               Aaron Ballman           Post 
subject: Posted: Tue Oct 25, 2005 9:10 am                               
Joined: Wed Sep 28, 2005 8:39 am
Posts: 9258
Location: Riverside, CA              Holy wow.  :: shakes head :: 
 
If you're going to restrict tab panel access, chances are it's because some 
user input isn't completed yet -- that smacks of a wizard, which means page 
panels are your best bet.     
_________________
* Check out my blog at http://ramblings.aaronballman.com. 
* RBLibrary.com  REALbasic learning at the speed of now! 
* Get the WFS, everybody's using it.  
                            Top                mak           Post subject: 
Posted: Tue Oct 25, 2005 9:12 am                               
Joined: Mon Oct 03, 2005 5:23 am
Posts: 106
Location: Sussex, UK              They even list it as "How to disable tabs", 
and suggest a simple message box to say that access is restricted and change 
the tab index to a different "allowed" tab!   
                            Top               Aaron Ballman           Post 
subject: Posted: Tue Oct 25, 2005 9:34 am                               
Joined: Wed Sep 28, 2005 8:39 am
Posts: 9258
Location: Riverside, CA              Can you post that link so I can report it 
against their bug tracking system?     
_________________
* Check out my blog at http://ramblings.aaronballman.com. 
* RBLibrary.com  REALbasic learning at the speed of now! 
* Get the WFS, everybody's using it.  
                            Top                mak           Post subject: 
Posted: Tue Oct 25, 2005 9:38 am                               
Joined: Mon Oct 03, 2005 5:23 am
Posts: 106
Location: Sussex, UK              The link is: 
 
http://winfx.msdn.microsoft.com/library ... de6a59.asp 
 
It is only in the pre-release documentation for the .NET 2.0 WinFX 
framework/APIs so it may well be changed to a more suitable method in the 
future.   
                            Top               Aaron Ballman           Post 
subject: Posted: Tue Oct 25, 2005 9:46 am                               
Joined: Wed Sep 28, 2005 8:39 am
Posts: 9258
Location: Riverside, CA              Thanks for the link, I submitted my 
concerns and suggestions -- we'll see if they listen.     
_________________
* Check out my blog at http://ramblings.aaronballman.com. 
* RBLibrary.com  REALbasic learning at the speed of now! 
* Get the WFS, everybody's using it.  
                            Top                w2ed           Post subject: 
Posted: Wed Oct 26, 2005 12:50 am                        
Joined: Mon Oct 03, 2005 11:53 pm
Posts: 670
Location: Loves Park, IL              Ok, why not create a new control that is 
RB-Standard (as opposed to OS-Standard) that does allow for those features, and 
others?  I have to build one for my self to allow for draggable tabs.  Just a 
thought. 
 
Wayne C. Winquist     
_________________
Wayne C. Winquist 
 
Not Wayne's World Wordpress 
Not Wayne's World MySpace! 
Not Wayne's World Yahoo! 360  
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 2
   [ 18 posts ]   Go to page 1, 2  Next    
-- 
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

rbforumnotifier@monkeybreadsoftware.de

Reply via email to