Can't change StaticText BackgroundColours
Posted: Thu Aug 07, 2008 09:59
Hi there:
I can't change StaticText BackgroundColours, here are the scripts in my .xml file:
<Window Type="TaharezLook/StaticText" Name="can1.1">
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="True" />
<Property Name="UnifiedPosition" Value="{{0.0556,0},{0.0877,0}}" />
<Property Name="UnifiedSize" Value="{{0.8889,0},{0.0877,0}}" />
<Property Name="HorzFormatting" Value="LeftAligned" />
<Property Name="InheritsAlpha" Value="False" />
<Property Name="BackgroundColours" Value="tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000"/>
<Property Name="Alpha" Value="0.5" />
</Window>
Here are the codes in my program :
guiWnd= WindowManager::getSingleton().getWindow("can1.1");
guiWnd->setProperty("Text", "Hello.");
guiWnd->setProperty("BackgroundColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000");
The background colour of StaticText is still black. I have searched the forum, but I can't find any useful solution....
Thanks
I can't change StaticText BackgroundColours, here are the scripts in my .xml file:
<Window Type="TaharezLook/StaticText" Name="can1.1">
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="True" />
<Property Name="UnifiedPosition" Value="{{0.0556,0},{0.0877,0}}" />
<Property Name="UnifiedSize" Value="{{0.8889,0},{0.0877,0}}" />
<Property Name="HorzFormatting" Value="LeftAligned" />
<Property Name="InheritsAlpha" Value="False" />
<Property Name="BackgroundColours" Value="tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000"/>
<Property Name="Alpha" Value="0.5" />
</Window>
Here are the codes in my program :
guiWnd= WindowManager::getSingleton().getWindow("can1.1");
guiWnd->setProperty("Text", "Hello.");
guiWnd->setProperty("BackgroundColours", "tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000");
The background colour of StaticText is still black. I have searched the forum, but I can't find any useful solution....
Thanks