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!
|
|
SLX 7.1 TabControl (Editing different tabs)
Posted: 15 Apr 08 7:57 PM
|
Just wondering, Is there an easier way to work with the tab control? As of right now I am using If/Then and Select Case statements to show or hide controls based on the ActiveTabIndex. Seems like there should be a way in Architect to say go to Tab(1) and drop all the controls on that tab. Then go to the next and drop different controls on that tab. Is this possible?
Thanks, Andrew |
|
|
|
Re: SLX 7.1 TabControl (Editing different tabs)
Posted: 15 Apr 08 9:22 PM
|
Andrew, I recommend you add a panel for each tab you have. You will need to change the design time TabIndex/ActiveIndex/whatever it is so that you can add controls to each tab. Then place your controls on the appropriate tab's panel.
Timmus |
|
|
| |
|
Re: SLX 7.1 TabControl (Editing different tabs)
Posted: 21 Apr 08 1:03 PM
|
I don't have 7.1 to play with (just 6.2 and 7.2) but you shouldn't need any if/then or Case logic to change the controls on the tabs (so this could be a 7.1 thing I don't understand). In Architect, select the tab control, change the ActiveTabIndex and put your controls there. Then change the ActiveTabIndex again to go to the next/previous tab. The tab controls will automatically display the controls you placed on each activetab at run time.
Even so, putting controls on panels is usually a good idea as long as you understand the drawbacks. |
|
|
|