Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior. Need Help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00597484
Message ID:
00597715
Vues:
16
>In the Resize of my form I have:
>
>
>WITH ThisForm
>
>  WAIT WIND "Resize!" NOWAIT
>
>  .cntActionBar.Height = .Height - 30
>  .shpSplitter1.Height = .Height - 1
>  .cntTreeView.Height = .Height - 1
>  .shpSplitter2.Height = .Height - 1
>  .pgfPages.Height = .Height - 1
>  .pgfPages.Width = .Width - .shpSplitter2.Left - 2
>
>ENDWITH
>
>RETURN
>

>
>The Wait Window displays, but none of the objects are being resized.
>
>I also put a Wait Window in the Resize of the cntActionBar and it does
>NOT display. So why aren’t my controls resizing????


Not sure ...

Within the Resize the properties subjective to the resize aren't adjusted "yet", depending how you address them; I'm sure I had a similar problem which took me a day to resolve, and this was about the place within the Resize these things are being done. My suggestion : use .cntActionBar.Height = THISFORM.Height - 30

Note that a Wait within a WITH always somehow influences, so better have that out now you know you will be in there (or use ??CHR(7)).

Be careful that when you adjusted the .Height etc. of the form withing this Resize as well (earlier), you may encounter some recursivity problems, while the Resize is NOT designed for that. I mean, it will do it, but the Resize will not call itself. So this might be your problem too.

HTH,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform