PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WD22 - Internal window in a looper
WD22 - Internal window in a looper
Iniciado por guest, 20,dic. 2017 19:21 - 3 respuestas
Publicado el 20,diciembre 2017 - 19:21
Hi,
can i use an internal window control in a looper??

I want to set by programming the internal window for each row.

Thanks
Publicado el 21,diciembre 2017 - 10:07
Hi Giovanni,

I have once tried to use a simple control template in a looper. Even such a simple thing was not possible, so I wouldn't bet my money on it that an internal window should work.

For a looper, you need to work with attributes to address his members, so you should create an attribute for your internal window / control template and that is not possible as far as I know.

regards,
Bart
Publicado el 21,diciembre 2017 - 11:00
Hi,
thanks for attention Bart.

I found a solution.

in WD22 have the ability to add a list of internal window in "Internal window Control" by IWListAdd() function. In the description of the "Internal window control", in the GUI tab, uncheck "Identical content for all the rows".

After that add the "Internal window control" in a looper.

Add the line in the looper, and in the "Display a row" of the looper change the Internal windows by ChangeSourceWindow() function.
Publicado el 23,diciembre 2017 - 22:50
Internal Windows work in loopers just fine. In fact I use Internal Windows inside Internal Windows inside a looper,. Gone about 4 levels deep on Internal Windows inside Internal Windows which then end up in a looper.

No need to do it with code either, I used the standard Window editor.

Rgds
Paul