[edit]found half of the solution. read next post to see the actual problem[/edit]
I got some reasons to use an ImageButton that has some StaticWidget as a child, instead of using a simple PushButton:
Code: Select all
<Window Type="TaharezLook/ImageButton" Name="btnOptions">
<Property Name="UnifiedPosition" Value="{{1,-280},{1,-290}}" />
<Property Name="UnifiedSize" Value="{{0,256},{0,50}}" />
<Property Name="NormalImage" Value="set:FTSUI image:btnNormal" />
<Property Name="HoverImage" Value="set:FTSUI image:btnHover" />
<Property Name="PushedImage" Value="set:FTSUI image:btnPushed" />
<Property Name="DisabledImage" Value="set:FTSUI image:btnDisabl" />
<Window Type="TaharezLook/StaticText" Name="btnOptions_text__">
<Property Name="UnifiedPosition" Value="{{0,0},{0,0}}" />
<Property Name="UnifiedSize" Value="{{1,0},{1,0}}" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="HorzFormatting" Value="WordWrapCentred" />
<Property Name="Text" Value="Einstellungen" />
</Window>
</Window>
But now there comes the problem: the static text item "eats" all user input. Is there a possibility to make it bekome a zombie widget, that means a widget that has absolutely no user interaction, so that all user input (mouse hover and click) goes to the ImageButton widget ??
Ok I *could* intercept all user input i want in the code and send it to the ImageButton but it's not the solution i want ... some suggestions ??