need to create 4 panel with different visible condition same id
1.
<control type="panel" id="3110">
<visible>String.IsEqual(Window.Property(palettename),rainbow)</visible>
<viewtype label="panel">icons</viewtype>....
2.
<control type="panel" id="3110">
<visible>String.IsEqual(Window.Property(palettename),basic)</visible>
<viewtype label="panel">icons</viewtype>........
3.
<control type="panel" id="3110">
<visible>String.IsEqual(Window.Property(palettename),webcolors)</visible>
<viewtype label="panel">icons</viewtype>....
4.
<control type="panel" id="3110">
<visible>String.IsEqual(Window.Property(palettename),material-design)</visible>
<viewtype label="panel">icons</viewtype>....
or use parametar if it is easy to create panel
for changing panel use button
Code:
<control type="button" id="3030">
<left>0</left>
<top>20</top>
<width>450</width>
<height>60</height>
<onup>3010</onup>
<ondown>3110</ondown>
<onleft>Close</onleft>
<textoffsetx>45</textoffsetx>
<label>$LOCALIZE[31404]</label>
<label2>$INFO[Window.Property(palettename)]</label2>
<visible>!String.IsEmpty(Window.Property(palettename))</visible>
</control>