Same dynamic panel working on one page, doesn't on the other one

Hi guys,

I’m trying to understand what Czaki has done in here:

And I think I’m missing something quite obvious - could anyone please explain to me why the same scene works on one page but doesn’t on the other?

– EDIT –

I think it must be something with the “controler” box not moving/following the mouse movement but I can’t figure out why it’s not doing it…

working-notworking.rp (68.6 KB)

Hi @Romanded

You missed the local variables in the “non working” version. For each move action, you have set one or more rules using local variables.
In your example the widget “text2” must be moved, using the expression: [[LVAR1.width/2 - LVAR2.width/2]], but you didn’t specify the variables (LVAR1 and LVAR2).
In order to do that, you need to click on the “fx” controller next to the X/Y fields in the case editor. There you will say what are the variables. In your example LVAR1 should be the width of the widget “Dynamic Panel” and LVAR2 is the width of the widget “txt” (the red square).

I’ve attached your file, with my fix…
Hope that it help’s…

working-notworking-fixed.rp (69.4 KB)

1 Like

My god, thank you so much!

1 Like