Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Making Object Animation With a Macro

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

2 Replies
Not applicable
Author

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.

fernandotoledo
Partner - Specialist
Partner - Specialist

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)]