Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Width adjusts itself - PITA
Message
De
08/10/2001 21:31:55
Ken Dibble
Southern Tier Independence Center
Binghamton, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00563613
Message ID:
00565775
Vues:
12
Hi Colin,

What you are describing is not necessarily related to either of the links Tracy provided.

This bug has been widely observed though I don't think MS has specifically acknowledged it. I don't think it's limited to cases when the Title Bar is turned off. It does seem to occur more often when controls are positioned close to the edges of a form. The bug seems to be in the Form Designer itself, rather than in the Foxpro engine.

As far as I know, there is no fix that will prevent the form width from changing when you save the form in the Form Designer. If you insert a width=x statement in the form's Init() method, it should definitely cause the form to appear with the correct width at runtime. Are you saying that a width statement in the Init() method has no effect at runtime?

>Hi John,
>
>I tried that and it didn't solve the problem. Also, I don't turn off the TitleBar. I'm pretty sure it's related in some way to the bug that Tracy directed me too because the Width is changing when the form is saved.
>
>http://support.microsoft.com/support/kb/articles/Q193/7/49.ASP?LN=EN-US&SD=gn&FR=0&qry=%26quot%3Bform%20width%26quot%3B&rnk=165&src=DHCS_MSPSS_gn_SRCH&SPR=FOX
>
>
>>Colin,
>> I had the same problem. Found out there is a bug in VFP 6.0 if you turn off the Title Bar (TitleBar = 0) it does what you are seeing. I fixed it by simply putting a command in the form init - Thisform.Width = nnn. The init happens last so it works every time even if the titlebar is not your problem.
>>
>>>I have a form that has a vertical scrollbar. The forms width is set to 695 but after the form is saved and run the width is changing to 672. Any ideas on how to stop this? TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform