Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize control programmatically
Message
De
10/09/2006 09:51:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Resize control programmatically
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01152640
Message ID:
01152640
Vues:
65
Hi,
I have an proxy control that add outlook bar programmatically to my main form during runtime.
I have set my outlookbar's anchor property to have relative resize.
I would like to resize my control in runtime, and still keeping the anchor setting.

I tried :
**FORM.ACTIVATE()
IF NOT THISFORM.lOutlookInit
  THISFORM.AddObject("OutlookBar", "Outlookbar")
  THISFORM.OutlookBar.Height = THISFORM.Height
  THISFORM.lOutlookInit = .T.
ENDIF
The outlookbar resize accordingly. However, when I resize my form the outlookbar's height will back to "original" before I change it programmatically. What should I do so that VFP respect the outlookbar.height?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform