With the Vanilla skin, to disable the regular button imagery you can set the property "UseStandardImagery" to "False",
This one works for me.... Thanks
Few more problem related to this:
1. When i set the property Name="Text" Value="XXXX" then the value is not reflected on top of button...
However when i use layout editor, i am able to set the text on top of button... but when i load that layout using CEGUI-OGRE program then button caption or text is not getting rendered.
2. How do i change font color.
To solve first problem.. I tried doing following things:
<Window Type="Vanilla/Button" Name="Menu/SmallBtn" >
<Property Name="Font" Value="Commonwealth-10" />
<Property Name="Text" Value="Hello" />
.
.
.
<Property Name="UseStandardImagery" Value="False" />
<Property Name>
</Window>
also i tried this....
<Window Type="Vanilla/Button" Name="Menu/MedianBtn" >
<Property Name="Font" Value="Commonwealth-10" />
<Property Name="Tooltip" Value="Not implemented yet" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0.212658,0},{0.369565,0},{0.524051,0},{0.467392,0}}" />
<Property Name="WantsMultiClickEvents" Value="True" />
<Property Name="NormalImage" Value="set:Buttons image:ButtonUp" />
<Property Name="HoverImage" Value="set:Buttons image:ButtonDisabled" />
<Property Name="PushedImage" Value="set:Buttons image:ButtonHighlighted" />
<Property Name="DisabledImage" Value="set:Buttons image:ButtonDisabled" />
<Property Name="UseStandardImagery" Value="False" />
<Window Type="Vanilla/StaticText" Name="btnNewGame_text__">
<!-- We make the text take all the space of the button to center the text. -->
<!-- You should adapt these values to your pictures, just play a bit with em

-->
<Property Name="UnifiedPosition" Value="{{0,0},{0,0}}" />
<Property Name="UnifiedSize" Value="{{1,0},{1,0}}" />
<!-- Disable the frame and background, so we got only the text and not a StaticText widget. -->
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
<!-- Here we center the text into the button -->
<Property Name="HorzFormatting" Value="WordWrapCentred" />
<Property Name="VertFormatting" Value="Middle" />
<!-- We MUST disable the text so that it is the button that gets our mouse events, -->
<!-- and not the static text ! If you forget that line, the buttons graphics will correspond, -->
<!-- but the clicks on the button won't work ! because they are "eaten" by the staticText. -->
<Property Name="Disabled" Value="True" />
<!-- finally, this is the caption we want the button to have. -->
<Property Name="Text">Median Button</Property>
</Window>
</Window>
To summarise:
1. Displaying text on top of button
2. Changing font color and related attribute
3. <Property Name="UseStandardImagery" Value="False" /> is working for vanilla/buttons but not for vanilla/StaticText ....
Thanks
Saurabh