Normal
still no luck :-(this is really weird. I have tried to put in a dummy control and can see it in MP, but I can't reach it.I have also tried without GetWindow()Codebehind:[PHP]protected GUIGroup _Group; protected GUIGroup MainGroup { get { if (_Group == null) _Group = GUIWindowManager.GetWindow(99207).GetControl(6) as GUIGroup; return _Group; } }......GUIButtonControl btn = new GUIButtonControl(6);MainGroup.AddControl(btn);[/PHP]XML[PHP]<control> <description></description> <type>group</type> <id>6</id> <posX>10</posX> <posY>10</posY> <width>550</width> <layout>StackLayout(2,Horizontal)</layout> <visible>yes</visible> <animation effect="fade" time="1000">visiblechange</animation> <control> <type>image</type> <texture>notificationbar/button_background_focus.png</texture> <id>101</id> <posX>10</posX> <posY>10</posY> <width>50</width> <height>40</height> </control> </control>[/PHP]
still no luck :-(
this is really weird. I have tried to put in a dummy control and can see it in MP, but I can't reach it.
I have also tried without GetWindow()
Codebehind:
[PHP]protected GUIGroup _Group;
protected GUIGroup MainGroup
{
get
if (_Group == null)
_Group = GUIWindowManager.GetWindow(99207).GetControl(6) as GUIGroup;
return _Group;
}
...
GUIButtonControl btn = new GUIButtonControl(6);
MainGroup.AddControl(btn);[/PHP]
XML
[PHP]<control>
<description></description>
<type>group</type>
<id>6</id>
<posX>10</posX>
<posY>10</posY>
<width>550</width>
<layout>StackLayout(2,Horizontal)</layout>
<visible>yes</visible>
<animation effect="fade" time="1000">visiblechange</animation>
<control>
<type>image</type>
<texture>notificationbar/button_background_focus.png</texture>
<id>101</id>
<width>50</width>
<height>40</height>
</control>
</control>[/PHP]