delphi - How to use TRectAnimation for a check box -
i trying modify check box animations using custom styled check mark it. known, normal check box has 4 trectanimations associated default cater combinations of ismouseover , ischecked triggers. tried no avail.
so purpose of understanding how animation works, reduced animations 1 works on ischecked trigger , inverse. following non-default settings set animation in style designer:-
duration := 1 enabled := true propertyname := sourcerect start bottom := 0 left := 0 right := 0 top := 0 stop bottom := 46 left := 0 right := 46 top := 0 trigger := ischecked=true triggerinverse := ischecked=false i facing following oddities:-
the check mark appears , disappears correctly when manually manipulate ischecked field of check box in object inspector when app run, check mark remains there , no activity ensues on repeated clicks (the events fired though).
if try manually set sourcerect fields of tsubiimage 0, never gets saved , reverts previous values.
the same behavior duration field of animation. reverts 1e-5 every time.
please me correctly, want mark animate , appear/disappear when check box's ischecked field changed.
edit 1 - new findings
turns out sourcerect field reset caused out of bounds values. doesn't give error...
the duration field has same error doesn't reset when set 0.2.
the animations inherit triggers control captured in area covered latest parent layout/panel. don't captured behind object, animation child of. checked changing triggers ismouseover , observing reactions in style designer.
Comments
Post a Comment