Page 1 of 1

GetAttribute on scaled layers

Posted: Wed Jul 06, 2022 5:55 pm
by Flinx
If I scale a layer to different dimensions then GetAttribute reports the original dimensions. Is that correct?

Code: Select all

@DISPLAY {Width = 300, Height = 200, Layers = True}
SetFillStyle(#FILLCOLOR)
Const #Name$="n"
Box(10, 20, 100, 50, #WHITE, {Name=#Name$})
DebugPrint("ATTRWIDTH",GetAttribute(#LAYER, #Name$, #ATTRWIDTH))
DebugPrint("ATTRHEIGHT",GetAttribute(#LAYER, #Name$, #ATTRHEIGHT))
Wait(1,#SECONDS)
SetLayerStyle(#Name$,{Width=250, Height=77})
DebugPrint("ATTRWIDTH",GetAttribute(#LAYER, #Name$, #ATTRWIDTH))
DebugPrint("ATTRHEIGHT",GetAttribute(#LAYER, #Name$, #ATTRHEIGHT))
Wait(10,#SECONDS)
Ralf

Re: GetAttribute on scaled layers

Posted: Thu Jul 14, 2022 2:20 pm
by Flinx
Meanwhile I have found the answer in the GetAttribute() description of #ATTRRAWWIDTH and #ATTRRAWHEIGHT.