Cheers Jezz_X, this is the code I have.
CODE
<control type="group" id="9000">
<posx>20</posx>
<posy>100</posy>
<include>buttonpanelslide</include>
<visible allowhiddenfocus="true">Control.HasFocus(9000)</visible>
<control type="button" id="2">
<description>View As Icons button</description>
<posx>0</posx>
<posy>0</posy>
<label>100</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>20</onup>
<ondown>3</ondown>
</control>
<control type="button" id="3">
<description>Sort by button</description>
<posx>0</posx>
<posy>37</posy>
<label>103</label>
<onleft>50</onleft>
<onright>4</onright>
<onup>2</onup>
<ondown>99</ondown>
</control>
<control type="togglebutton" id="4">
<description>Sort asc</description>
<label>-</label>
<posx>140</posx>
<posy>48</posy>
<onleft>3</onleft>
<onright>50</onright>
<onup>2</onup>
<ondown>99</ondown>
</control>
</control>
Thats the non-working code. If I change the Control.HasFocus() condition to either 2,3 or 4 it will become visible, but obviously only when those are selected. I am intending to add more controls to the group later, which is why I dont really want to do each control seperately as a condition, but I guess I will if necessary.