Everything algin well before i apply [Container] to Image,
but when I applied [Container] to Image, it moved the image.
Does anyone know how to fix this?
Ps:Sr for my bad english
Before
Code: Select all
Meter=Image
X = (#XX#-#IMGW#/2)
Y = (#XX#-#IMGW#/2)
W = #IMGW#
Code: Select all
Meter=Image
X =0
Y =0
W = #IMGW#
Code: Select all
[Variables]
;Content
TextC=PLOT
TextCT=先行
TextCB=手配
;show/hide
Shapehide=0
TextChide=1
TextCTBhide=1
IMGhide=0
;other
ShapeColor=128,210,011
TextColor=255,255,244
TextFont=Arial Black
FontW=550
ShapeD=220
ShapeS=1
=========
LMUA=["#@#\Links\Daiwa\plot.lnk"]
ImgName=#@#Images\Daiwa\PDFsam2.png
ShapeD2=(#ShapeD#*1.732)
ShapeS2=(#ShapeS#*0.94)
ShapeColor2=255,255,255,0
StrokeColor=66,241,244,255
StrokeW=(#ShapeD#*0.12)
IMGW=(#ShapeD#*2*#ShapeS#)
TextS=(#ShapeD#*0.4)
TextSize=#TextS#*#ShapeS#
XX=(#ShapeD#*#ShapeS#*2)
YY=(#ShapeD#*#ShapeS#*2)
[MeterShape1]
Meter=Shape
X=(#XX#-(#ShapeD2#/2))
Y=(#YY#-#ShapeD#/2)
Shape=Rectangle 0,0,#ShapeD2#,#ShapeD#,1,1| Extend MySharedModifiers
Shape2=Rectangle 0,0,#ShapeD2#,#ShapeD#,1,1| Extend MySharedModifiers| Rotate 60
Shape3=Rectangle 0,0,#ShapeD2#,#ShapeD#,1,1| Extend MySharedModifiers| Rotate 120
MySharedModifiers=Fill Color #ShapeColor# | StrokeWidth 0 | Stroke Color #ShapeColor#
Shape4=Combine Shape | Union Shape2| Union Shape3| Scale #ShapeS#,#ShapeS#
MouseOverAction=[!SetOption MeterShape0 HIDDEN "0"][!UpdateMeter MeterShape0][!Redraw]
MouseLeaveAction=[!SetOption MeterShape0 HIDDEN "1"][!UpdateMeter MeterShape0][!Redraw]
LeftMouseUpAction=#LMUA#
Hidden=#Shapehide#
[Image]
Meter=Image
X =0
Y =0
W = #IMGW#
ImageAlpha=255
ImageName=#ImgName#
Hidden=#IMGhide#
Container=MeterShape1
[MeterShape0]
Meter=Shape
X=(#XX#-(#ShapeD2#/2))
Y=(#YY#-#ShapeD#/2)
Shape=Rectangle 0,0,#ShapeD2#,#ShapeD#,1,1| Extend MySharedModifiers
Shape2=Rectangle 0,0,#ShapeD2#,#ShapeD#,1,1| Extend MySharedModifiers| Rotate 60
Shape3=Rectangle 0,0,#ShapeD2#,#ShapeD#,1,1| Extend MySharedModifiers| Rotate 120
MySharedModifiers=Fill Color #ShapeColor2# | StrokeWidth #StrokeW# | Stroke Color #StrokeColor#
Shape4=Combine Shape | Union Shape2| Union Shape3| Scale #ShapeS2#,#ShapeS2#
Hidden=1
[Text Center]
Meter=String
X=(#XX#-#TextSize#/10)
Y=#YY#
Text=#TextC#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringAlign=CenterCenter
AntiAlias=1
Hidden=#TextChide#
[Text Top]
Meter=String
X=(#XX#-#TextSize#/10)
Y=(#YY#+#TextSize#/2.5)
Text=#TextCT#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringAlign=CenterBottom
AntiAlias=1
Hidden=#TextCTBhide#
[Text Bottom]
Meter=String
X=(#XX#-#TextSize#/10)
Y=(#YY#-#TextSize#/8)
Text=#TextCB#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringAlign=CenterTop
AntiAlias=1
Hidden=#TextCTBhide#