i want to create different widgets use one widget type.
change looks in program.
can anyone help me?
here is my looknfeel :
<?xml version="1.0" ?>
<Falagard>
<WidgetLook name="WindowsLook/MYStaticShared">
<ImagerySection name="frame">
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="Lborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Tborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="TLImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<PropertyDim name="Lborder" />
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<PropertyDim name="Rborder" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Tborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="TImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Tborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="TRImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<AbsoluteDim value="0" />
</Dim>
</Area>
<ImageProperty name="BLImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="BottomEdge">
<AbsoluteDim value="0" />
</Dim>
</Area>
<ImageProperty name="BRImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Lborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Tborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<AbsoluteDim value="0" />
</Dim>
</Area>
<ImageProperty name="BImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Tborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="Lborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="LImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Tborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="RImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="background">
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<ImageDim imageset="WindowsLook" image="StaticFrameLeft" dimension="Width" />
</Dim>
<Dim type="TopEdge">
<ImageDim imageset="WindowsLook" image="StaticFrameTop" dimension="Height" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="WindowsLook" image="StaticFrameRight" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="WindowsLook" image="StaticFrameBottom" dimension="Height" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Image imageset="WindowsLook" image="Background" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="background_noframe">
<ImageryComponent>
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
<Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
<Image imageset="WindowsLook" image="Background" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
</WidgetLook>
<!--
***************************************************
WindowsLook/MYStatic
***************************************************
-->
<WidgetLook name="WindowsLook/MYStatic">
<PropertyDefinition name="FrameColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
<PropertyDefinition name="BackgroundColours" initialValue="tl:FFDFDFDF tr:FFDFDFDF bl:FFDFDFDF br:FFDFDFDF" redrawOnWrite="true" />
<PropertyDefinition name="TextPadding" initialValue="0" redrawOnWrite="true" />
<PropertyDefinition name="HorzFormatting" initialValue="LeftAligned" redrawOnWrite="true" />
<PropertyDefinition name="VertFormatting" initialValue="CentreAligned" redrawOnWrite="true" />
<PropertyDefinition name="TLImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="TRImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="BLImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="BRImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="TImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="LImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="RImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="BImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="Lborder" initialValue="2" layoutOnWrite="true" />
<PropertyDefinition name="Rborder" initialValue="2" layoutOnWrite="true" />
<PropertyDefinition name="Tborder" initialValue="2" layoutOnWrite="true" />
<PropertyDefinition name="Bborder" initialValue="2" layoutOnWrite="true" />
<Property name="BackgroundEnabled" value="True" />
<Property name="FrameEnabled" value="True" />
<ImagerySection name="label">
<TextComponent>
<Area>
<Dim type="LeftEdge">
<PropertyDim name="TextPadding" />
</Dim>
<Dim type="TopEdge">
<PropertyDim name="TextPadding" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="TextPadding" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="TextPadding" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Colours topLeft="FF000000" topRight="FF000000" bottomLeft="FF000000" bottomRight="FF000000" />
<VertFormatProperty name="VertFormatting" />
<HorzFormatProperty name="HorzFormatting" />
</TextComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="label" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="label" />
</Layer>
</StateImagery>
<StateImagery name="EnabledFrame">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="frame" />
</Layer>
</StateImagery>
<StateImagery name="DisabledFrame">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="frame" />
</Layer>
</StateImagery>
<StateImagery name="WithFrameEnabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="WithFrameDisabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="NoFrameEnabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background_noframe">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="NoFrameDisabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background_noframe">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
</Falagard>
when codeing like this:
static=cwin.CWin(parent=root,position=(50,100),size=(100,200),wintype="WindowsLook/MYStatic")
static.text="MYstatic"
static._win.setProperty("BackgroundEnabled" ,"False")
static._win.setProperty("FrameEnabled" ,"True")
static._win.setProperty("Lborder" ,"5")
static._win.setProperty("TextPadding" ,"15")
static._win.setProperty("LImage","set:login image:l_bg" )
static._win.setProperty("BImage","set:login image:b_bg" )
static._win.setProperty("RImage","set:login image:r_bg" )
static._win.setProperty("TImage","set:login image:t_bg" )
static._win.setProperty("FrameColours","tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000" )
but i got no error , the result lose the frame
help,want to create different widget by on looknfeel
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
on closer inspection, there were some issues with the areas defined for the imagery components.
Here is the complete, fixed, versions of the widget looks:
HTH
CE
on closer inspection, there were some issues with the areas defined for the imagery components.
Here is the complete, fixed, versions of the widget looks:
Code: Select all
<!--
***************************************************
WindowsLook/MYStaticShared
***************************************************
-->
<WidgetLook name="WindowsLook/MYStaticShared">
<ImagerySection name="frame">
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="Width">
<PropertyDim name="Lborder" />
</Dim>
<Dim type="Height">
<PropertyDim name="Tborder" />
</Dim>
</Area>
<ImageProperty name="TLImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<PropertyDim name="Lborder" />
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<PropertyDim name="Tborder" />
</Dim>
</Area>
<ImageProperty name="TImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge" />
</Dim>
<Dim type="Height">
<PropertyDim name="Tborder" />
</Dim>
</Area>
<ImageProperty name="TRImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge" />
</Dim>
<Dim type="Height">
<PropertyDim name="Bborder" />
</Dim>
</Area>
<ImageProperty name="BLImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge" />
</Dim>
</Area>
<ImageProperty name="BRImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<PropertyDim name="Lborder" />
</Dim>
<Dim type="TopEdge">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge" />
</Dim>
</Area>
<ImageProperty name="BImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge">
<PropertyDim name="Tborder" />
</Dim>
<Dim type="Width">
<PropertyDim name="Lborder" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="LImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<UnifiedDim scale="1" type="LeftEdge">
<DimOperator op="Subtract">
<PropertyDim name="Rborder" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="TopEdge">
<PropertyDim name="Tborder" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge" />
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="Bborder" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<ImageProperty name="RImage" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="background">
<ImageryComponent>
<Area>
<Dim type="LeftEdge">
<ImageDim imageset="WindowsLook" image="StaticFrameLeft" dimension="Width" />
</Dim>
<Dim type="TopEdge">
<ImageDim imageset="WindowsLook" image="StaticFrameTop" dimension="Height" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="WindowsLook" image="StaticFrameRight" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="WindowsLook" image="StaticFrameBottom" dimension="Height" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Image imageset="WindowsLook" image="Background" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="background_noframe">
<ImageryComponent>
<Area>
<Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
<Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
<Image imageset="WindowsLook" image="Background" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
</WidgetLook>
<!--
***************************************************
WindowsLook/MYStatic
***************************************************
-->
<WidgetLook name="WindowsLook/MYStatic">
<PropertyDefinition name="FrameColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
<PropertyDefinition name="BackgroundColours" initialValue="tl:FFDFDFDF tr:FFDFDFDF bl:FFDFDFDF br:FFDFDFDF" redrawOnWrite="true" />
<PropertyDefinition name="TextPadding" initialValue="0" redrawOnWrite="true" />
<PropertyDefinition name="HorzFormatting" initialValue="LeftAligned" redrawOnWrite="true" />
<PropertyDefinition name="VertFormatting" initialValue="CentreAligned" redrawOnWrite="true" />
<PropertyDefinition name="TLImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="TRImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="BLImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="BRImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="TImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="LImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="RImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="BImage" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="Lborder" initialValue="2" layoutOnWrite="true" />
<PropertyDefinition name="Rborder" initialValue="2" layoutOnWrite="true" />
<PropertyDefinition name="Tborder" initialValue="2" layoutOnWrite="true" />
<PropertyDefinition name="Bborder" initialValue="2" layoutOnWrite="true" />
<Property name="BackgroundEnabled" value="True" />
<Property name="FrameEnabled" value="True" />
<ImagerySection name="label">
<TextComponent>
<Area>
<Dim type="LeftEdge">
<PropertyDim name="TextPadding" />
</Dim>
<Dim type="TopEdge">
<PropertyDim name="TextPadding" />
</Dim>
<Dim type="RightEdge">
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<PropertyDim name="TextPadding" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge">
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<PropertyDim name="TextPadding" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Colours topLeft="FF000000" topRight="FF000000" bottomLeft="FF000000" bottomRight="FF000000" />
<VertFormatProperty name="VertFormatting" />
<HorzFormatProperty name="HorzFormatting" />
</TextComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="label" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="label" />
</Layer>
</StateImagery>
<StateImagery name="EnabledFrame">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="frame" />
</Layer>
</StateImagery>
<StateImagery name="DisabledFrame">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="frame" />
</Layer>
</StateImagery>
<StateImagery name="WithFrameEnabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="WithFrameDisabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="NoFrameEnabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background_noframe">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="NoFrameDisabledBackground">
<Layer>
<Section look="WindowsLook/MYStaticShared" section="background_noframe">
<ColourRectProperty name="BackgroundColours" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
HTH
CE
thanks a lot!!!
the problem is resolved.
thanks a lot
static=cwin.CWin(parent=Framewindow,position=(50,100),size=(100,200),wintype="WindowsLook/MYStatic")
static.text="MYstatic"
static._win.setProperty("BackgroundEnabled" ,"True")
static._win.setProperty("FrameEnabled" ,"True")
static._win.setProperty("Lborder" ,"10")
static._win.setProperty("Tborder" ,"10")
static._win.setProperty("Bborder" ,"10")
static._win.setProperty("Rborder" ,"10")
it works!
it shows the left, right,top and bottom edge!
thanks a lot
static=cwin.CWin(parent=Framewindow,position=(50,100),size=(100,200),wintype="WindowsLook/MYStatic")
static.text="MYstatic"
static._win.setProperty("BackgroundEnabled" ,"True")
static._win.setProperty("FrameEnabled" ,"True")
static._win.setProperty("Lborder" ,"10")
static._win.setProperty("Tborder" ,"10")
static._win.setProperty("Bborder" ,"10")
static._win.setProperty("Rborder" ,"10")
it works!
it shows the left, right,top and bottom edge!
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 4 guests