Hi Caroline, thanks for replying so quickly. My scalemode is set to 3.
Tracy
>>Hi all, I have the following code in my main.prg which works in most instances. However, on some systems (doesn't matter the screen resolution or the OS) for some reason autocenter does not work and neither does setting the top of the form. The form and main screen will appear so high on the screen that the menu is not visible. I have not been able to isolate this problem and determine what is causing it. To fix it, we have been allowing the user to move the window down to where it is visible. However, the same monitor on a different system will show the window exactly where it should be. If there is not a resolution for what is causing this, then I would like to save the new location (.top=4 on some systems) to a registry key and restore it everytime that system starts the vfp app again. Any ideas anyone?
>>
>>Here is the code in main.prg:
>>
>>
>> With _Screen
>> .LockScreen=.T.
>> .fontname="foxfont"
>> .fontsize=10
>> .fontbold=.f.
>>* .BorderStyle=1
>> .BorderStyle=1
>> .WindowState=0
>> .Closable=.F.
>> .ControlBox=.T.
>> .MaxButton=.F.
>> .MinButton=.T.
>>* .Width = 640
>> .Width = 640
>>* .Height = 320
>> .Height = 380
>>* .MaxWidth = 670
>>* .MaxHeight = 320
>> .MinWidth = 640
>> .MinHeight = 380
>> .Caption="Policy Profiler 32"
>> .autocenter=.T.
>> .LockScreen=.F.
>> .visible=.T.
>> Endwith
>>
>
>I'm sure this is a silly question but what is your ScaleMode set to?
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"