Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, November 30, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: TabControl - Changing tab names in code.
Marc Johnson
Posts: 252
 
TabControl - Changing tab names in code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 06 7:45 AM
fiogf49gjkf0d
I found the control:
TabControl.Tabs.Caption

But I don't know what they syntax is. Unfortunately my books are at home, I haven't brought them into my new job yet. I tried ="Tab Name" but that didn't work. I'm guessing you have to specify the ActiveTabIndex in the control itself.
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: TabControl - Changing tab names in code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 06 2:18 PM
fiogf49gjkf0d
Quote:
Originally posted by Marc Johnson

I found the control:
TabControl.Tabs.Caption

Is there a Caption.Name property or any Intellisense that pops up? = "Tab Name" should work and if it doesn't it may suggest that tab captions are hardcoded to use their design-time setting or that somehow your code is being called before the caption is officially set. Why not try putting in a MsgBox to see if your caption is changed during the method but reverted somewhere later in the control's lifecycle.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: TabControl - Changing tab names in code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 06 2:54 PM
fiogf49gjkf0d
"Tabs" is a collection of tabs, you have to specify the index of the tab you want to modify.

TabControl1.Tabs(1).Caption = "My New Caption"


Make sense?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: TabControl - Changing tab names in code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 06 2:58 PM
fiogf49gjkf0d
BTW, just to point out, I used an index of 1 in my sample, but the Tabs collection is a zero-based collection. Just wanted to make sure that was clear.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: TabControl - Changing tab names in code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Mar 08 3:06 PM
OK I know I've done this before.,......but this isn't right:

tcCloneOptions.Tabs(tcIdxChooseOpp).VISIBLE = FALSE
tcCloneOptions.Tabs(tcIdxMoveOption).VISIBLE = FALSE
tcCloneOptions.Tabs(tcIdxChooseDates).VISIBLE = TRUE
tcCloneOptions.Tabs(tcIdxChooseRenewal).VISIBLE = TRUE
tcCloneOptions.Tabs(tcIdxChooseData).VISIBLE = FALSE
tcCloneOptions.Tabs(tcIdxCloneOpp).VISIBLE = TRUE

TabVisible?
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/30/2024 4:44:37 AM