Posts: 7
Joined: Jul 2007
Reputation:
0
i would like to create a tab control. i thought about creating it with a group list of toggle button, the only problem is that i don't know how to change the selected state of one of the buttons when i choose another one. i need to do that automatically so if tab1 was selected and the user now selects tab2 then tab1 will automatically be unselected.
any ideas? any other solutions?
idan
Posts: 1,881
Joined: Aug 2007
Reputation:
1
2007-11-02, 15:21
(This post was last modified: 2011-01-30, 09:28 by skunkm0nkee.)
I'm guessing that the actual tab content is displayed when you select the tab and I assume the tab content is in a group control, is that about right? If that's the case then you can change the display for the tabs by checking the IsVisible state for the tab content group controls. (have one image/label which shows when the content is visible and another when it is not)
Hope that helps
Posts: 7
Joined: Jul 2007
Reputation:
0
how can you put a boolean condition in a <texture> tag?
Posts: 1,881
Joined: Aug 2007
Reputation:
1
2007-11-02, 19:15
(This post was last modified: 2011-01-30, 09:28 by skunkm0nkee.)
Not within the texture tag but a separate tag within the image control:
<control type="image">
...
<texture>...</texture>
<visible>IsVisible(...)</visible>
</control>
where the dots will be filled in by your specific code