PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WM20] Anchoring Looper control
[WM20] Anchoring Looper control
Iniciado por guest, 17,may. 2016 18:32 - 2 respuestas
Publicado el 17,mayo 2016 - 18:32
Hi guys,

in my app I'm changing the y-value of my looper control.

Now i want the looper control to fill rest of the screen (so from the y-value till the bottom). I thought about using an anchor but in the help I found ..anchor doesn't apply to looper controls.
Is there another solution which stretch the looper automatically to the bottom of my window?

Best Regards
Patrick
Publicado el 17,mayo 2016 - 19:10
Something like this in the resize-event of your window will do
looper1..height = window1..height - looper1..x

The opening-section may also by sufficient. And there's also a "change orientation" event. I;m not sure if a resize is fired whenever the user turns a device.
Publicado el 17,mayo 2016 - 21:12
I tried it before, but the looper..height was still too high. Maybe because I'm using a actionbar. I also testet it with a button so btn..y = win..height-btn.heigth but the button was outside of the screen. And I couldn't find the exact height of the actionbar.
My solution is now storing the inital height of the looper in a variable and calculation the new height out of this. But I hoped for a smarter solution.

Patrick