Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Anchors do not work when windowstate = 2
Message
De
30/09/2004 07:32:52
 
 
À
30/09/2004 05:58:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00947437
Message ID:
00947464
Vues:
14
>This is not a issue relative to Anchor or WindowState behaviours.
>When a form is Visible = .F., the Resize event is not fired,
>and then the Anchor is not fired too.

Hi Fabio, thank you for your reply.

I am aware that the anchors work correctly if the form is visible. However, if I in design-time set the WindowState property to 2 (maximized) (so that the form starts up maximized), the controls are still not resized. The trick with setting the height +1 and then -1 cannot be used in this scenario, because the form will then no longer be maximized. I would say this is indeed a bug. (See code below.)

Eyvind.

PS: How do you get that neat syntax coloring on your code in your posts?



Local loForm As Form
loForm = CreateObject("Testform2")
loForm.Show()
Wait window 'Observe that the edit box is not resized'

DEFINE CLASS testform2 AS form


DoCreate = .T.
Caption = "Form"
Name = "testform2"
Windowstate = 2

ADD OBJECT edit1 AS editbox WITH ;
Anchor = 15, ;
Height = 216, ;
Left = 36, ;
Top = 12, ;
Width = 300, ;
Name = "Edit1"

ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform