I thought this code should work; but it doesn't.
Code: Select all
EnableLayers()
Line(5, 5, 20, 20, #WHITE, {Name="TestLine"})
t=GetLayerStyle("TestLine")
DebugPrint(t.x1, t.y1)
Code: Select all
EnableLayers()
Line(5, 5, 20, 20, #WHITE, {Name="TestLine"})
t=GetLayerStyle("TestLine")
DebugPrint(t.x1, t.y1)
Oops, yes, x1/y1/x2/y2 are currently not set by GetLayerStyle(). It's fixed now.I thought this code should work; but it doesn't.
This code reports the following error: Table field "x1" was not initialized!Code: Select all
EnableLayers() Line(5, 5, 20, 20, #WHITE, {Name="TestLine"}) t=GetLayerStyle("TestLine") DebugPrint(t.x1, t.y1)