FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WD21 - Variable Looper Row Height
WD21 - Variable Looper Row Height
Débuté par André Labuschagné, 20 juin 2017 16:54 - 3 réponses
Connectez-vous…
André Labuschagné
#1
Posté le 20 juin 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é
Signaler
0
0
Alen U.
#2
Posté le 20 juin 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
Signaler
0
0
André Labuschagné
#3
Posté le 20 juin 2017 - 17:30
Hi Allen
Thanks - will give it a shot.
Cheers
André
Signaler
0
0
André Labuschagné
#4
Posté le 20 juin 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
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte