Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Centering a Form
Message
From
01/01/1998 12:25:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/01/1998 11:44:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00068786
Message ID:
00068793
Views:
45
>I use the following to set the screen size:
>
>_screen.width = 792
>_screen.height = 521
>
>However, when I open forms that are auto centering, they always appear in the center of the screen and not in the center of the form. Anyone know how I can correct this? The screen only starts out that size the user can expand/shring the form as they see fit. What I'm looking for is a method to center a form within the main visual foxpro screen and not the actual monitor screen. Thanks!
>
>Gary
In the init of form :
this.autocenter=.f.
this.left = max((_screen.width - this.width) / 2,0) && If width could be greater than _screen.width
this.top = max((_screen.height - this.height) / 2,0)
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform