extend ImageProperty label of looknfeel
Posted: Thu Mar 05, 2009 03:35
when we create a looknfeel file.
we extend the "ImageProperty " label function
here this like:
old looknfeel :
new looknfeel code :
u can see .
change to
after do this . u can use property name image to modify FrameComponent 's look
i hope this function code can add into CE's source if you like.
another function is the
<ImagePropertyDim name="TImage" dimension="Height" />
it can get the property "TImage" 's image dimension .
like
<ImageDim imageset="TaharezLook" image="RadioButtonNormal" dimension="Width">
but approve the dim from property image .
if you like this, i hope can give the source to you to add into CE source.
we extend the "ImageProperty " label function
here this like:
old looknfeel :
Code: Select all
<ImagerySection name="hover">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image type="LeftEdge" imageset="TaharezLook" image="ButtonLeftHighlight" />
<Image type="RightEdge" imageset="TaharezLook" image="ButtonRightHighlight" />
<Image type="Background" imageset="TaharezLook" image="ButtonMiddleHighlight" />
</FrameComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<ImageProperty name="HoverImage" />
<VertFormatProperty name="VertImageFormatting" />
<HorzFormatProperty name="HorzImageFormatting" />
</ImageryComponent>
</ImagerySection>
new looknfeel code :
Code: Select all
<ImagerySection name="hover">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<ImageProperty type="LeftEdge" name="LeftEdgeFrameImage" />
<ImageProperty type="RightEdge" name="RightEdgeFrameImage" />
<ImageProperty type="BackGround" name="BackgroundFrameImage" />
</FrameComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<ImageProperty name="HoverImage" />
<VertFormatProperty name="VertImageFormatting" />
<HorzFormatProperty name="HorzImageFormatting" />
</ImageryComponent>
</ImagerySection>
u can see .
Code: Select all
<Image type="LeftEdge" imageset="TaharezLook" image="ButtonLeftHighlight" />
<Image type="RightEdge" imageset="TaharezLook" image="ButtonRightHighlight" />
<Image type="Background" imageset="TaharezLook" image="ButtonMiddleHighlight" />
change to
Code: Select all
<ImageProperty type="LeftEdge" name="LeftEdgeFrameImage" />
<ImageProperty type="RightEdge" name="RightEdgeFrameImage" />
<ImageProperty type="BackGround" name="BackgroundFrameImage" />
after do this . u can use property name image to modify FrameComponent 's look
i hope this function code can add into CE's source if you like.
another function is the
<ImagePropertyDim name="TImage" dimension="Height" />
it can get the property "TImage" 's image dimension .
like
<ImageDim imageset="TaharezLook" image="RadioButtonNormal" dimension="Width">
but approve the dim from property image .
if you like this, i hope can give the source to you to add into CE source.