[Solved] Controlling text formatting in lookandfeel
Posted: Wed Dec 09, 2009 14:35
Hi,
I'm trying to change how WindowsLook/StaticText aligns the text. If I create an instance of WindowsLook/StaticText in a layout file and add: <Property Name="HorzFormatting" Value="HorzCentred" /> as a property, then it will correctly center the text. However, if I add the very same property under <WidgetLook> in the lookandfeel nothing happens. I was under the impression that you could create defaults using this method but I seem to either be doing something wrong or misunderstood. Looking in the manual HorizontalTextFormat is mentioned, however, the enumerations are mentioned without much context and I've tried to search for a usage of HorizontalTextFormat without much luck.
I'm trying to change how WindowsLook/StaticText aligns the text. If I create an instance of WindowsLook/StaticText in a layout file and add: <Property Name="HorzFormatting" Value="HorzCentred" /> as a property, then it will correctly center the text. However, if I add the very same property under <WidgetLook> in the lookandfeel nothing happens. I was under the impression that you could create defaults using this method but I seem to either be doing something wrong or misunderstood. Looking in the manual HorizontalTextFormat is mentioned, however, the enumerations are mentioned without much context and I've tried to search for a usage of HorizontalTextFormat without much luck.