|
| WD21 - Variable Looper Row Height |
| Iniciado por guest, 20,jun. 2017 16:54 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 20,junio 2017 - 16: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.
Cheers André |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,junio 2017 - 17:24 |
Hi, 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
BR, Alen |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,junio 2017 - 17:30 |
Hi Allen
Thanks - will give it a shot.
Cheers André |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,junio 2017 - 19:40 |
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.
Cheers Andre |
| |
| |
| | | |
|
| | | | |
| | |
|