Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I was wondering if it's possible to make simple object animation in Qlik.
I was thinking about something like a for next cycle applied to the following subroutine
sub Move
set p1 = ActiveDocument.GetSheetObject("TX01")
set fr = p1.GetFrameDef
set pos = fr.Rect
pos.Left = 0
p1.SetFrame fr,true, ""
end sub
Does anyone have tried something like that before ?
rb
I have tried to do this through a number of different routes. The problem is that QlikView does not repaint the canvas until after a macro returns. I've even tried binding macro execution such that it initially evaluates and returns, and fires the animation when a field value changes. No use, it counts it as the same macro evaluation, and as such doesn't repaint the canvas. The effect ends up being: Click, wait one second, object blinks from position 1 to position 2. No animation.
I really hope someone else has had better experience with this and may know a way that it can be implemented.
I used once the layout´s now() function, that refreshes the screen each second.
Then, associated with some variables and some text boxes conditional show/hide settings I got the effect of an animated text box going up and down slooooowly when a button is pressed...
Hope it gives an idea...
Fernando [8)]