creating a tab like control
#1
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
Reply
#2
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
Reply
#3
how can you put a boolean condition in a <texture> tag?
Reply
#4
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
Reply

Logout Mark Read Team Forum Stats Members Help
creating a tab like control0