Visibility of controls on a TabControl
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9906
Printed Date: 16 November 2024 at 2:47pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Visibility of controls on a TabControl
Posted By: robbedaya
Subject: Visibility of controls on a TabControl
Date Posted: 17 March 2008 at 3:37am
We use a tabcontrol with multiple tabs. The visibility of certain controls (labels, FlatEdit, Combo, ...) on the second tab, depends on the value of a control on the first tab. for example: - Combo1 on Tab1. label1, Flatedit1, Label2, FlatEdit2, label3, combo2 on Tab2. - When the value of Combo1 = 1, Label1 and Flatedit1 on tab2 become visible, the rest of the controls become invisible. - When the value of Combo1 = 2, Label2, Flatedit2, label3, combo2 on tab2 should become visible, the rest of the controls become invisible.
But when i switch tabs, all controls on tab2 become visible. The tabcontol overlooks the visible-property when switching tabs. All the visible-poperties of the controls are changed to "true". The only way (we found) to handle this problem for the moment, is changing the visibility after the switching tabs. But using this way, the users first sees all controls, before some of them become invisible. It also leads to delay in switching tabs, and a lot of flickering of the controls.
Is there any way to solve this problem, or will this be solved in a new release of the suite.
If it is necessary, i can provide you with a code sample which could explain my problem a little better.
|
Replies:
Posted By: Oleg
Date Posted: 17 March 2008 at 4:57am
Hi,
Yes, please put all controls to TabControlPage. and TabControlPage to TabControl.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: ikaney
Date Posted: 17 March 2008 at 10:49am
I'm having issues getting the TabControlPage item to work properly.
I have the TabControl on the page, I have a TabControlPage and no matter how I add the tabs, etc. the client area doesn't fit into the tab control properly.
I use the code: tab_Steps.InsertItem(0, "Test", AxTabControlPage1.Handle.ToInt32, 0)
I'm using the Skin Framework and it's all set as Office 2007, but no joy. It works with say a command button as the client but not the TabControlPage.
Any help before I give up?
|
Posted By: Oleg
Date Posted: 17 March 2008 at 1:29pm
Hi,
Add TabPages in Design Time. see our SuiteControls sample.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
|