Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr
Letzter Beitrag:
vor 1 Jahr
Beteiligte Autoren:
André Labuschagné, Alen U.

WD21 - Variable Looper Row Height

Startbeitrag von André Labuschagné am 20.06.2017 14:54

Hi All

Is it possible to have a variable looper height based on the contents of a variable in a looper? I have a multi-line text in a static in a looper and have no idea how much data will be in that static. Is it possible for the static to automatically change size and display the full contents of the static and the row size to also change size?

This does not have to be a static - it can be html or whatever.



try something like this .. you'll get idea

//In "Displaying a row of LOOP_something"
nIndex is int = CurrentSubscript()
nHeight is int = TextHeight(EDT_text,ATT_text)
nHeight += 10 // just to make sure there is some space left on bottom of control
MySelf[nIndex].EDT_text..Height = nHeight
MySelf[nIndex]..Height = nHeight+50

Hope it helps


von Alen U. - am 20.06.2017 15:24
Hi Allen

Thanks - will give it a shot.


von André Labuschagné - am 20.06.2017 15:30
Hi Allen

That worked a treat. The only thing I am left with is the refreshing of the looper with new sizes. If I go to the top and scroll down it is fine. But if I programmatically select a row that would not display on the first page then the size is wrong. What I want to do is have a specific row selected and it must display as the first row in the looper with the correct size. I am fiddling around with various functions but am not getting it right.

Any ideas are welcome.


von André Labuschagné - am 20.06.2017 17:40
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.