[solved] Select Tab Sheet

rewb0rn

28-12-2008 11:38:00

Hi!

I am trying to create a tab for my ingame chat. I have looked at the Gui Demo and see no relevant differences, still in my case if I switch the sheet I am not able to use any of the children widgets, they are shown but do not react to mouse input.

This is how I create the tab:

<Widget type="Tab" skin="Tab" position="0 576 680 192" layer="Back" name="lobbyChat">
<Property key="Widget_Show" value="false"/>
<Widget type="Sheet" skin="Default" position="4 26 671 160">
<Property key="Widget_Caption" value="Tisch"/>
<Widget type="StaticText" skin="StaticText" position="8 1 656 128"/>
<Widget type="Edit" skin="Edit" position="8 129 568 24"/>
<Widget type="Button" skin="Button" position="576 129 88 24">
<Property key="Widget_Caption" value="Senden"/>
</Widget>
</Widget>
<Widget type="Sheet" skin="Default" position="4 26 671 160">
<Property key="Widget_Caption" value="Empfang"/>
<Widget type="StaticText" skin="StaticText" position="8 1 656 128"/>
<Widget type="Edit" skin="Edit" position="8 129 568 24"/>
<Widget type="Button" skin="Button" position="576 129 88 24">
<Property key="Widget_Caption" value="Senden"/>
</Widget>
</Widget>
</Widget>


The tab has no parent window but that does not seem to make a difference, I also tried with.

my.name

28-12-2008 16:51:41

layer="Back" >> layer="Main"

rewb0rn

28-12-2008 18:13:01

Thanks for your reply. Unfortunately, this does not change anything.

edit: I tried this code from the example:


<Widget type="Window" skin="WindowC" position="32 72 211 309" layer="Overlapped" name="_Main">
<Widget type="Tab" skin="Tab" position="2 2 197 268">
<Widget type="Sheet" skin="Default" position="4 26 188 236">
<Property key="Widget_Caption" value="File"/>
<Widget type="Button" skin="Button" position="14 22 160 26" name="New">
<Property key="Widget_Caption" value="New"/>
</Widget>
<Widget type="Button" skin="Button" position="14 53 160 26" name="Load">
<Property key="Widget_Caption" value="Load Test Layout"/>
</Widget>
<Widget type="Button" skin="Button" position="14 85 160 26" name="Quit">
<Property key="Widget_Caption" value="Quit"/>
</Widget>
</Widget>
<Widget type="Sheet" skin="Default" position="4 26 188 236">
<Property key="Widget_Caption" value="Objects"/>
<Widget type="ComboBox" skin="ComboBox" position="6 21 176 26" name="CreateObject">
<Property key="ComboBox_ModeDrop" value="true"/>
</Widget>
</Widget>
</Widget>
</Widget>


but it also does not work. Did I miss anything that has to be added in the source code? I had a look at the demo but did not recognize anything.

rewb0rn

29-12-2008 14:07:31

Solved! As I started using MyGUI with an early version, I was missing the call of MyGUI::Gui::injectFrameEntered().