while changing the color of a TextOut layer I found a situation where GetLayerStyle did not return the changed color. If I change font size or style, then it works.
Code: Select all
@DISPLAY {Color = #GRAY, Layers = True}
name$="line"
SetFont(#SERIF, 50)
SetFontColor(#BLACK)
TextOut(#CENTER, #CENTER, "Test", {Name=name$})
DebugPrint("Color 1: ",GetLayerStyle(name$).color)
Wait(50)
SetLayerStyle(name$, {Color=#WHITE})
DebugPrint("Color 2: ",GetLayerStyle(name$).color)
Wait(50)
SetLayerStyle(name$, {Color=#WHITE, Font=#SANS})
;SetLayerStyle(name$, {Color=#WHITE, Fontsize=70})
DebugPrint("Color 3: ",GetLayerStyle(name$).color)
Wait(50)
Ralf