Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoCenter does not work??
Message
From
23/11/2002 16:33:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00726182
Message ID:
00726196
Views:
23
>I've been traying with this code on Init:
>
>This.top = This.top - (mytoolbar.height /2) &&autocenter must be .t.

Oh, I see - you don't agree with what VFP calls "centered".

I assume you must run the above code after .AutoCenter-ing the form.

For instance, you could do something like this: first, define Form.AutoCenter = .F.

On Form.Init():
This.AutoCenter = .T.
This.Top = This.Top + (Additional Adjustment)
Saludos,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform