Closed kursatturkay closed 4 months ago
I cannot reproduce the issue: wich versione are you using?
latest version of StyledComponents. bug12024_0610(22;54).zip 1-create new project. add a StyledSpeedButton. Set button1.Tag=1 in designtime. than test if Tag=1 in button1 click event result=Tag=0
sample project attached.
Sorry, I've tested with TStyledButton... to solve add those lines into Vcl.StyledButton.pas unit: line 963: property Tag; line 1481: property Tag; In the next release it will be fixed...
Fixed in the latest release
eg: Btn1:TStyledSpeedButton; ..... Btn1.Tag:=9; caption:=Btn1.Tag.ToString; // returns 0
tag property cannot be set in runtime. and designtime. its always 0. tested.
GetTag func returns wrong Tag. returns Btn1.Render.Tag. not Btn1.Tag also SetTag has same behaviour.
temporary using "HelpContext" property instead of Tag.