11-30-2011 02:47 PM
I have a tab control with 6 tabs. Each tab has exactly the same things: two graphs and a numeric indicator. I want the objects on each tab to overly each other perfectly. When the user switch from page to page, I do not wish the user to see any shift due to misalignment for objects among the tabs. What is the easiest way? Thanks!
Solved! Go to Solution.
11-30-2011 03:17 PM
Create one tab and duplicate 5 times.
If all of the tabs are identical I would consider floating the controls so they are always visible and using the Tab control to change the contents of the controls.
11-30-2011 03:17 PM
Create a property node to each element and copy the Position from one indicator to all the other indicators of the same type.
See attached.
Alternatively, you can use an array of clusters instead of a tab control. Put the graphs and numeric indicators into a cluster. Put these into an array. Only display one element of the array at a time, but use the array control to change which is visible.
This will probably make your code more streamlined and logical too.
11-30-2011 03:45 PM
What do you mean by floating the controls? What do you mean by "If all of the tabs are identical I would consider floating the controls so they are always visible and using the Tab control to change the contents of the controls"?
11-30-2011 03:55 PM
If you use the arrow keys to move a control over a Tab control instead of dragging, the control will "float". You will see the shadow while in edit mode. These floating controls are not inside the Tab, instead you use the value of the Tab control to choose what data to show in the graph and other indicators. This way you have three controls instead of 18.
12-01-2011 12:26 PM
Darin, I think I understand what you are saying, but I am not sure how does it work. What do you mean by changing the value of the tab control to choose what data to show? I never use the tab control this way, can you give me an example? Thanks!
12-01-2011 01:28 PM
He's referring to using the tab's value change event so you can detemine which tab was activated. Based on that you can select which data to send to the graph and indicators. Assuming you decide to use a single graph indicator rather than 5.
12-02-2011 03:00 PM
Ohh, now I understand.