Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize prob. TreeView new height > form prev. ht. when m
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01143435
Message ID:
01143443
Vues:
18
>Hi all
>
>I have a form which has a lot of stuff on it, esp. an outlook bar style class that I have created. This class uses a TreeView for display of records between the bars. When I resize the form the outlook bar style class and it contained TV is supposed to resize and it does.
>
>The only resize problem is when I have maximized the form. It seems that first the OB style class and it's TV is resized but the TV irrespective of the code for resize, resizes only to the visible area of the form during the max process, finally the form is resized to max, but till then the damage is done, the TV is of shorter length then it should be for the OB style class's internal area.
>
>In short when the form is Max.ed, the new height of the TV is more than the prev. height of the form.
>
>This problem will disappear when after max of the form the tabs are cliked on. The resize calls the same routine that is called when the OB style class's tabs are cliked on, so there is no scope of double logic and only one logic is updated.
>
>IMO, This can be observed if you put a wait window in the resize() of the OB style class (or whatever class you may have containing a TV), max the form in such a manner that the final height of the TV will be greater than the height of the form before the max. button was clicked.
>
>Please advise.

Don't know whether this will solve your problem, but I set tv.visible to FALSE, then resize and finally reset the tv.Visible to what it was before
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform