I have encountered an issue with some of my forms. All of my forms are based
on a class called cform. Cform has its autocenter set to .t. and this works
just fine.

I have a few forms that I don't want to autocenter to I changed that forms
value to .f..

But, their still autocentering.

Its not the foxuser , and ini or some registry setting. I have no code in
cform to force it back to .t. And after the form has run a check of that
property reveals it to still be .f.


Suggestions?

Alan

Re: forrm.autocenter by Mark

Mark
Fri Feb 11 14:19:27 CST 2005

Open a method in your cForm class, then search for AutoCenter in ALL
OBJECTS. My guess is you have some code in either an Init, SHow, Activate or
some other method that is firing that is issuing an THIS(form).AutoCenter =
.T. command. You may have to search the methods of the offending forms as
well.

You can also set a breakpoint in the debugger for when the value of
THISFORM.AutoCenter = .T. or when its value changes.

"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> I have encountered an issue with some of my forms. All of my forms are
based
> on a class called cform. Cform has its autocenter set to .t. and this
works
> just fine.
>
> I have a few forms that I don't want to autocenter to I changed that forms
> value to .f..
>
> But, their still autocentering.
>
> Its not the foxuser , and ini or some registry setting. I have no code in
> cform to force it back to .t. And after the form has run a check of that
> property reveals it to still be .f.
>
>
> Suggestions?
>
> Alan
>
>



Re: forrm.autocenter by Alan

Alan
Fri Feb 11 18:08:55 CST 2005

I have looked for code that does that and have not found any.

I have check the value of autocenter after the form is displayed and it is
still .F. and a breakpoint set on the value never fires. So its not changing
to .t. and then back to .f.

Alan


"Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
news:%23JKSBcHEFHA.2824@tk2msftngp13.phx.gbl...
> Open a method in your cForm class, then search for AutoCenter in ALL
> OBJECTS. My guess is you have some code in either an Init, SHow, Activate
or
> some other method that is firing that is issuing an THIS(form).AutoCenter
=
> .T. command. You may have to search the methods of the offending forms as
> well.
>
> You can also set a breakpoint in the debugger for when the value of
> THISFORM.AutoCenter = .T. or when its value changes.
>
> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
> news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> > I have encountered an issue with some of my forms. All of my forms are
> based
> > on a class called cform. Cform has its autocenter set to .t. and this
> works
> > just fine.
> >
> > I have a few forms that I don't want to autocenter to I changed that
forms
> > value to .f..
> >
> > But, their still autocentering.
> >
> > Its not the foxuser , and ini or some registry setting. I have no code
in
> > cform to force it back to .t. And after the form has run a check of that
> > property reveals it to still be .f.
> >
> >
> > Suggestions?
> >
> > Alan
> >
> >
>
>



Re: forrm.autocenter by Fred

Fred
Fri Feb 11 19:07:04 CST 2005

Then maybe you actually have some code that's mucking with the form .Left
and .Top properties that makes it *look like* AutoCenter is happening.

--
Fred
Microsoft Visual FoxPro MVP


"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:uR9nsdJEFHA.392@TK2MSFTNGP14.phx.gbl...
>I have looked for code that does that and have not found any.
>
> I have check the value of autocenter after the form is displayed and it is
> still .F. and a breakpoint set on the value never fires. So its not
> changing
> to .t. and then back to .f.
>
> Alan
>
>
> "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
> news:%23JKSBcHEFHA.2824@tk2msftngp13.phx.gbl...
>> Open a method in your cForm class, then search for AutoCenter in ALL
>> OBJECTS. My guess is you have some code in either an Init, SHow, Activate
> or
>> some other method that is firing that is issuing an THIS(form).AutoCenter
> =
>> .T. command. You may have to search the methods of the offending forms as
>> well.
>>
>> You can also set a breakpoint in the debugger for when the value of
>> THISFORM.AutoCenter = .T. or when its value changes.
>>
>> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
>> news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
>> > I have encountered an issue with some of my forms. All of my forms are
>> based
>> > on a class called cform. Cform has its autocenter set to .t. and this
>> works
>> > just fine.
>> >
>> > I have a few forms that I don't want to autocenter to I changed that
> forms
>> > value to .f..
>> >
>> > But, their still autocentering.
>> >
>> > Its not the foxuser , and ini or some registry setting. I have no code
> in
>> > cform to force it back to .t. And after the form has run a check of
>> > that
>> > property reveals it to still be .f.
>> >
>> >
>> > Suggestions?
>> >
>> > Alan
>> >
>> >
>>
>>
>
>



Re: forrm.autocenter by Jan

Jan
Sat Feb 12 04:50:21 CST 2005

Alan,

In the init of the form set the top and left properties of the form to what
you want. Whilst this doesn't explain whats happening, it should solve your
problem.

HTH
Jan

"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
>I have encountered an issue with some of my forms. All of my forms are
>based
> on a class called cform. Cform has its autocenter set to .t. and this
> works
> just fine.
>
> I have a few forms that I don't want to autocenter to I changed that forms
> value to .f..
>
> But, their still autocentering.
>
> Its not the foxuser , and ini or some registry setting. I have no code in
> cform to force it back to .t. And after the form has run a check of that
> property reveals it to still be .f.
>
>
> Suggestions?
>
> Alan
>
>



Re: forrm.autocenter by Alan

Alan
Wed Feb 16 15:19:12 CST 2005

I know that I can do this. I just hate hacking things that "should" work.

My current suspicion is VFP is still seeing the class as autocenter and
ignoring my override.

"Jan" <nomail@nowhere.com> wrote in message
news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> Alan,
>
> In the init of the form set the top and left properties of the form to
what
> you want. Whilst this doesn't explain whats happening, it should solve
your
> problem.
>
> HTH
> Jan
>
> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
> news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> >I have encountered an issue with some of my forms. All of my forms are
> >based
> > on a class called cform. Cform has its autocenter set to .t. and this
> > works
> > just fine.
> >
> > I have a few forms that I don't want to autocenter to I changed that
forms
> > value to .f..
> >
> > But, their still autocentering.
> >
> > Its not the foxuser , and ini or some registry setting. I have no code
in
> > cform to force it back to .t. And after the form has run a check of that
> > property reveals it to still be .f.
> >
> >
> > Suggestions?
> >
> > Alan
> >
> >
>
>



Re: forrm.autocenter by Alan

Alan
Wed Feb 16 15:20:11 CST 2005

nope, left and top ate still 0

I changed the size of the forum during its development and it still
autocenters.

Alan
"Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
news:OWVxq8JEFHA.3888@TK2MSFTNGP10.phx.gbl...
> Then maybe you actually have some code that's mucking with the form .Left
> and .Top properties that makes it *look like* AutoCenter is happening.
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
> news:uR9nsdJEFHA.392@TK2MSFTNGP14.phx.gbl...
> >I have looked for code that does that and have not found any.
> >
> > I have check the value of autocenter after the form is displayed and it
is
> > still .F. and a breakpoint set on the value never fires. So its not
> > changing
> > to .t. and then back to .f.
> >
> > Alan
> >
> >
> > "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
> > news:%23JKSBcHEFHA.2824@tk2msftngp13.phx.gbl...
> >> Open a method in your cForm class, then search for AutoCenter in ALL
> >> OBJECTS. My guess is you have some code in either an Init, SHow,
Activate
> > or
> >> some other method that is firing that is issuing an
THIS(form).AutoCenter
> > =
> >> .T. command. You may have to search the methods of the offending forms
as
> >> well.
> >>
> >> You can also set a breakpoint in the debugger for when the value of
> >> THISFORM.AutoCenter = .T. or when its value changes.
> >>
> >> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
message
> >> news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> >> > I have encountered an issue with some of my forms. All of my forms
are
> >> based
> >> > on a class called cform. Cform has its autocenter set to .t. and this
> >> works
> >> > just fine.
> >> >
> >> > I have a few forms that I don't want to autocenter to I changed that
> > forms
> >> > value to .f..
> >> >
> >> > But, their still autocentering.
> >> >
> >> > Its not the foxuser , and ini or some registry setting. I have no cod
e
> > in
> >> > cform to force it back to .t. And after the form has run a check of
> >> > that
> >> > property reveals it to still be .f.
> >> >
> >> >
> >> > Suggestions?
> >> >
> >> > Alan
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Re: forrm.autocenter by Fred

Fred
Wed Feb 16 19:23:07 CST 2005

Then set Autocenter to .F. in the Load of the form.

--
Fred
Microsoft Visual FoxPro MVP


"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:Od7Nm2GFFHA.3384@tk2msftngp13.phx.gbl...
> nope, left and top ate still 0
>
> I changed the size of the forum during its development and it still
> autocenters.
>
> Alan
> "Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
> news:OWVxq8JEFHA.3888@TK2MSFTNGP10.phx.gbl...
>> Then maybe you actually have some code that's mucking with the form .Left
>> and .Top properties that makes it *look like* AutoCenter is happening.
>>
>> --
>> Fred
>> Microsoft Visual FoxPro MVP
>>
>>
>> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
>> news:uR9nsdJEFHA.392@TK2MSFTNGP14.phx.gbl...
>> >I have looked for code that does that and have not found any.
>> >
>> > I have check the value of autocenter after the form is displayed and it
> is
>> > still .F. and a breakpoint set on the value never fires. So its not
>> > changing
>> > to .t. and then back to .f.
>> >
>> > Alan
>> >
>> >
>> > "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
>> > news:%23JKSBcHEFHA.2824@tk2msftngp13.phx.gbl...
>> >> Open a method in your cForm class, then search for AutoCenter in ALL
>> >> OBJECTS. My guess is you have some code in either an Init, SHow,
> Activate
>> > or
>> >> some other method that is firing that is issuing an
> THIS(form).AutoCenter
>> > =
>> >> .T. command. You may have to search the methods of the offending forms
> as
>> >> well.
>> >>
>> >> You can also set a breakpoint in the debugger for when the value of
>> >> THISFORM.AutoCenter = .T. or when its value changes.
>> >>
>> >> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
> message
>> >> news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
>> >> > I have encountered an issue with some of my forms. All of my forms
> are
>> >> based
>> >> > on a class called cform. Cform has its autocenter set to .t. and
>> >> > this
>> >> works
>> >> > just fine.
>> >> >
>> >> > I have a few forms that I don't want to autocenter to I changed that
>> > forms
>> >> > value to .f..
>> >> >
>> >> > But, their still autocentering.
>> >> >
>> >> > Its not the foxuser , and ini or some registry setting. I have no
>> >> > cod
> e
>> > in
>> >> > cform to force it back to .t. And after the form has run a check of
>> >> > that
>> >> > property reveals it to still be .f.
>> >> >
>> >> >
>> >> > Suggestions?
>> >> >
>> >> > Alan
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Re: forrm.autocenter by Cyrus

Cyrus
Wed Feb 16 19:58:49 CST 2005

Alan C. Sheffield wrote:
> I know that I can do this. I just hate hacking things that "should" work.
>
> My current suspicion is VFP is still seeing the class as autocenter and
> ignoring my override.
>
> "Jan" <nomail@nowhere.com> wrote in message
> news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
>
>>Alan,
>>
>>In the init of the form set the top and left properties of the form to
>
> what
>
>>you want. Whilst this doesn't explain whats happening, it should solve
>
> your
>
>>problem.
>>
>>HTH
>>Jan
>>
>>"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
>>news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
>>
>>>I have encountered an issue with some of my forms. All of my forms are
>>>based
>>>on a class called cform. Cform has its autocenter set to .t. and this
>>>works
>>>just fine.
>>>
>>>I have a few forms that I don't want to autocenter to I changed that
>
> forms
>
>>>value to .f..
>>>
>>>But, their still autocentering.
>>>
>>>Its not the foxuser , and ini or some registry setting. I have no code
>
> in
>
>>>cform to force it back to .t. And after the form has run a check of that
>>>property reveals it to still be .f.
>>>
>>>
>>>Suggestions?
>>>
>>>Alan
>>>
>>>
>>
>>
>
>
Maybe there is some code running somewhere in the inheritence chain that
is changing the setting?

--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com

Re: forrm.autocenter by Alan

Alan
Thu Feb 17 08:42:01 CST 2005

If their was some code doing this I'd expect the autocenter to be .t. when
the form is done loading. But that is not the case. A check of the
autocenter property reveals that is is still .f. A breakpoint in the
debugger never changes from .f. during the form load.

Alan

> Maybe there is some code running somewhere in the inheritence chain that
> is changing the setting?
>
> --
> Cy Welch
> Senior Programmer
> MetSYS Inc
> http://www.metsysinc.com

"Cyrus Welch" <cywelch@hotmail.com> wrote in message
news:tTSQd.669$DC6.576@newssvr14.news.prodigy.com...
> Alan C. Sheffield wrote:
> > I know that I can do this. I just hate hacking things that "should"
work.
> >
> > My current suspicion is VFP is still seeing the class as autocenter and
> > ignoring my override.
> >
> > "Jan" <nomail@nowhere.com> wrote in message
> > news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> >
> >>Alan,
> >>
> >>In the init of the form set the top and left properties of the form to
> >
> > what
> >
> >>you want. Whilst this doesn't explain whats happening, it should solve
> >
> > your
> >
> >>problem.
> >>
> >>HTH
> >>Jan
> >>
> >>"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
message
> >>news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> >>
> >>>I have encountered an issue with some of my forms. All of my forms are
> >>>based
> >>>on a class called cform. Cform has its autocenter set to .t. and this
> >>>works
> >>>just fine.
> >>>
> >>>I have a few forms that I don't want to autocenter to I changed that
> >
> > forms
> >
> >>>value to .f..
> >>>
> >>>But, their still autocentering.
> >>>
> >>>Its not the foxuser , and ini or some registry setting. I have no code
> >
> > in
> >
> >>>cform to force it back to .t. And after the form has run a check of
that
> >>>property reveals it to still be .f.
> >>>
> >>>
> >>>Suggestions?
> >>>
> >>>Alan
> >>>
> >>>
> >>
> >>
> >
> >



Re: forrm.autocenter by Alan

Alan
Thu Feb 17 08:43:21 CST 2005

No effect. But, I did not expect one as the autocenter property always shows
.f. after the form is done loading.

Alan

"Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
news:%23QYy$8IFFHA.2180@TK2MSFTNGP10.phx.gbl...
> Then set Autocenter to .F. in the Load of the form.
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
> news:Od7Nm2GFFHA.3384@tk2msftngp13.phx.gbl...
> > nope, left and top ate still 0
> >
> > I changed the size of the forum during its development and it still
> > autocenters.
> >
> > Alan
> > "Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
> > news:OWVxq8JEFHA.3888@TK2MSFTNGP10.phx.gbl...
> >> Then maybe you actually have some code that's mucking with the form
.Left
> >> and .Top properties that makes it *look like* AutoCenter is happening.
> >>
> >> --
> >> Fred
> >> Microsoft Visual FoxPro MVP
> >>
> >>
> >> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
message
> >> news:uR9nsdJEFHA.392@TK2MSFTNGP14.phx.gbl...
> >> >I have looked for code that does that and have not found any.
> >> >
> >> > I have check the value of autocenter after the form is displayed and
it
> > is
> >> > still .F. and a breakpoint set on the value never fires. So its not
> >> > changing
> >> > to .t. and then back to .f.
> >> >
> >> > Alan
> >> >
> >> >
> >> > "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
> >> > news:%23JKSBcHEFHA.2824@tk2msftngp13.phx.gbl...
> >> >> Open a method in your cForm class, then search for AutoCenter in ALL
> >> >> OBJECTS. My guess is you have some code in either an Init, SHow,
> > Activate
> >> > or
> >> >> some other method that is firing that is issuing an
> > THIS(form).AutoCenter
> >> > =
> >> >> .T. command. You may have to search the methods of the offending
forms
> > as
> >> >> well.
> >> >>
> >> >> You can also set a breakpoint in the debugger for when the value of
> >> >> THISFORM.AutoCenter = .T. or when its value changes.
> >> >>
> >> >> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
> > message
> >> >> news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> >> >> > I have encountered an issue with some of my forms. All of my forms
> > are
> >> >> based
> >> >> > on a class called cform. Cform has its autocenter set to .t. and
> >> >> > this
> >> >> works
> >> >> > just fine.
> >> >> >
> >> >> > I have a few forms that I don't want to autocenter to I changed
that
> >> > forms
> >> >> > value to .f..
> >> >> >
> >> >> > But, their still autocentering.
> >> >> >
> >> >> > Its not the foxuser , and ini or some registry setting. I have no
> >> >> > cod
> > e
> >> > in
> >> >> > cform to force it back to .t. And after the form has run a check
of
> >> >> > that
> >> >> > property reveals it to still be .f.
> >> >> >
> >> >> >
> >> >> > Suggestions?
> >> >> >
> >> >> > Alan
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Re: forrm.autocenter by Fernando

Fernando
Thu Feb 17 12:20:40 CST 2005

Hi Alan:

And what happens if you leave the autocenter property to .F. en the main
class?
May be this is a bug and you must set this property for each form.

Regards,

Fernando D: Bozzo
------


"Alan C. Sheffield" <asheffield @ park west gallery.com> escribió en el
mensaje news:#cMVz8PFFHA.2876@TK2MSFTNGP12.phx.gbl...
> If their was some code doing this I'd expect the autocenter to be .t. when
> the form is done loading. But that is not the case. A check of the
> autocenter property reveals that is is still .f. A breakpoint in the
> debugger never changes from .f. during the form load.
>
> Alan
>
> > Maybe there is some code running somewhere in the inheritence chain that
> > is changing the setting?
> >
> > --
> > Cy Welch
> > Senior Programmer
> > MetSYS Inc
> > http://www.metsysinc.com
>
> "Cyrus Welch" <cywelch@hotmail.com> wrote in message
> news:tTSQd.669$DC6.576@newssvr14.news.prodigy.com...
> > Alan C. Sheffield wrote:
> > > I know that I can do this. I just hate hacking things that "should"
> work.
> > >
> > > My current suspicion is VFP is still seeing the class as autocenter
and
> > > ignoring my override.
> > >
> > > "Jan" <nomail@nowhere.com> wrote in message
> > > news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> > >
> > >>Alan,
> > >>
> > >>In the init of the form set the top and left properties of the form to
> > >
> > > what
> > >
> > >>you want. Whilst this doesn't explain whats happening, it should solve
> > >
> > > your
> > >
> > >>problem.
> > >>
> > >>HTH
> > >>Jan
> > >>
> > >>"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
> message
> > >>news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> > >>
> > >>>I have encountered an issue with some of my forms. All of my forms
are
> > >>>based
> > >>>on a class called cform. Cform has its autocenter set to .t. and this
> > >>>works
> > >>>just fine.
> > >>>
> > >>>I have a few forms that I don't want to autocenter to I changed that
> > >
> > > forms
> > >
> > >>>value to .f..
> > >>>
> > >>>But, their still autocentering.
> > >>>
> > >>>Its not the foxuser , and ini or some registry setting. I have no
code
> > >
> > > in
> > >
> > >>>cform to force it back to .t. And after the form has run a check of
> that
> > >>>property reveals it to still be .f.
> > >>>
> > >>>
> > >>>Suggestions?
> > >>>
> > >>>Alan
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
>
>



Re: forrm.autocenter by Dan

Dan
Thu Feb 17 13:36:21 CST 2005

Alan C. Sheffield wrote:
> If their was some code doing this I'd expect the autocenter to be .t.
> when the form is done loading. But that is not the case. A check of
> the autocenter property reveals that is is still .f. A breakpoint in
> the debugger never changes from .f. during the form load.
>

Could a Foxuser entry be causing this? What happens if you set top&left to 0
in load?

Dan



Re: forrm.autocenter by Mark

Mark
Fri Feb 18 08:33:27 CST 2005

Set a break point on when the .Top and/or .Left properties change. Your
problem may not be AutoCenter at all. There may be code somewhere that is
calculating these values to center the form.

"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:uELgD2GFFHA.3032@TK2MSFTNGP12.phx.gbl...
> I know that I can do this. I just hate hacking things that "should" work.
>
> My current suspicion is VFP is still seeing the class as autocenter and
> ignoring my override.
>
> "Jan" <nomail@nowhere.com> wrote in message
> news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> > Alan,
> >
> > In the init of the form set the top and left properties of the form to
> what
> > you want. Whilst this doesn't explain whats happening, it should solve
> your
> > problem.
> >
> > HTH
> > Jan
> >
> > "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
message
> > news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> > >I have encountered an issue with some of my forms. All of my forms are
> > >based
> > > on a class called cform. Cform has its autocenter set to .t. and this
> > > works
> > > just fine.
> > >
> > > I have a few forms that I don't want to autocenter to I changed that
> forms
> > > value to .f..
> > >
> > > But, their still autocentering.
> > >
> > > Its not the foxuser , and ini or some registry setting. I have no code
> in
> > > cform to force it back to .t. And after the form has run a check of
that
> > > property reveals it to still be .f.
> > >
> > >
> > > Suggestions?
> > >
> > > Alan
> > >
> > >
> >
> >
>
>



Re: forrm.autocenter by Alan

Alan
Fri Feb 18 08:50:10 CST 2005

I think I have found a VFP bug.

I created a new form class no code based directly off the VFP base form
object. The only change was to turn autocenter on.

I created a new form based this new class. Overrode the default and set
autocenter to .f. the form still autocenters.

The class has no code its a totally new form so foxuser can't be doing
anything.

I think its a bug.

Alan
"Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
news:u$SiXbcFFHA.2568@TK2MSFTNGP10.phx.gbl...
> Set a break point on when the .Top and/or .Left properties change. Your
> problem may not be AutoCenter at all. There may be code somewhere that is
> calculating these values to center the form.
>
> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
> news:uELgD2GFFHA.3032@TK2MSFTNGP12.phx.gbl...
> > I know that I can do this. I just hate hacking things that "should"
work.
> >
> > My current suspicion is VFP is still seeing the class as autocenter and
> > ignoring my override.
> >
> > "Jan" <nomail@nowhere.com> wrote in message
> > news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> > > Alan,
> > >
> > > In the init of the form set the top and left properties of the form to
> > what
> > > you want. Whilst this doesn't explain whats happening, it should solve
> > your
> > > problem.
> > >
> > > HTH
> > > Jan
> > >
> > > "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
> message
> > > news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> > > >I have encountered an issue with some of my forms. All of my forms
are
> > > >based
> > > > on a class called cform. Cform has its autocenter set to .t. and
this
> > > > works
> > > > just fine.
> > > >
> > > > I have a few forms that I don't want to autocenter to I changed that
> > forms
> > > > value to .f..
> > > >
> > > > But, their still autocentering.
> > > >
> > > > Its not the foxuser , and ini or some registry setting. I have no
code
> > in
> > > > cform to force it back to .t. And after the form has run a check of
> that
> > > > property reveals it to still be .f.
> > > >
> > > >
> > > > Suggestions?
> > > >
> > > > Alan
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: forrm.autocenter by Alan

Alan
Fri Feb 18 09:08:52 CST 2005

more info. this is something with the screen designer/scx's

If I create a vcx or code based class based on the form class autocenter can
be overridden. Its only scx based forms that do not override properly.

Alan

I quick test if the form is created
"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:O6AUAmcFFHA.1396@tk2msftngp13.phx.gbl...
> I think I have found a VFP bug.
>
> I created a new form class no code based directly off the VFP base form
> object. The only change was to turn autocenter on.
>
> I created a new form based this new class. Overrode the default and set
> autocenter to .f. the form still autocenters.
>
> The class has no code its a totally new form so foxuser can't be doing
> anything.
>
> I think its a bug.
>
> Alan
> "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
> news:u$SiXbcFFHA.2568@TK2MSFTNGP10.phx.gbl...
> > Set a break point on when the .Top and/or .Left properties change. Your
> > problem may not be AutoCenter at all. There may be code somewhere that
is
> > calculating these values to center the form.
> >
> > "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
message
> > news:uELgD2GFFHA.3032@TK2MSFTNGP12.phx.gbl...
> > > I know that I can do this. I just hate hacking things that "should"
> work.
> > >
> > > My current suspicion is VFP is still seeing the class as autocenter
and
> > > ignoring my override.
> > >
> > > "Jan" <nomail@nowhere.com> wrote in message
> > > news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> > > > Alan,
> > > >
> > > > In the init of the form set the top and left properties of the form
to
> > > what
> > > > you want. Whilst this doesn't explain whats happening, it should
solve
> > > your
> > > > problem.
> > > >
> > > > HTH
> > > > Jan
> > > >
> > > > "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
> > message
> > > > news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> > > > >I have encountered an issue with some of my forms. All of my forms
> are
> > > > >based
> > > > > on a class called cform. Cform has its autocenter set to .t. and
> this
> > > > > works
> > > > > just fine.
> > > > >
> > > > > I have a few forms that I don't want to autocenter to I changed
that
> > > forms
> > > > > value to .f..
> > > > >
> > > > > But, their still autocentering.
> > > > >
> > > > > Its not the foxuser , and ini or some registry setting. I have no
> code
> > > in
> > > > > cform to force it back to .t. And after the form has run a check
of
> > that
> > > > > property reveals it to still be .f.
> > > > >
> > > > >
> > > > > Suggestions?
> > > > >
> > > > > Alan
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: forrm.autocenter by Fred

Fred
Fri Feb 18 09:18:43 CST 2005

It appears you're correct about the form not respecting that property if
it's changed. Just add a thisform.Left = 0, thisform.Top = 0 to your
form.Load() (and a DODEFAULT() if you've got code there in your base class)
as a work-around.

--
Fred
Microsoft Visual FoxPro MVP


"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:O6AUAmcFFHA.1396@tk2msftngp13.phx.gbl...
>I think I have found a VFP bug.
>
> I created a new form class no code based directly off the VFP base form
> object. The only change was to turn autocenter on.
>
> I created a new form based this new class. Overrode the default and set
> autocenter to .f. the form still autocenters.
>
> The class has no code its a totally new form so foxuser can't be doing
> anything.
>
> I think its a bug.
>
> Alan
> "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
> news:u$SiXbcFFHA.2568@TK2MSFTNGP10.phx.gbl...
>> Set a break point on when the .Top and/or .Left properties change. Your
>> problem may not be AutoCenter at all. There may be code somewhere that is
>> calculating these values to center the form.
>>
>> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
>> news:uELgD2GFFHA.3032@TK2MSFTNGP12.phx.gbl...
>> > I know that I can do this. I just hate hacking things that "should"
> work.
>> >
>> > My current suspicion is VFP is still seeing the class as autocenter and
>> > ignoring my override.
>> >
>> > "Jan" <nomail@nowhere.com> wrote in message
>> > news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
>> > > Alan,
>> > >
>> > > In the init of the form set the top and left properties of the form
>> > > to
>> > what
>> > > you want. Whilst this doesn't explain whats happening, it should
>> > > solve
>> > your
>> > > problem.
>> > >
>> > > HTH
>> > > Jan
>> > >
>> > > "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
>> message
>> > > news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
>> > > >I have encountered an issue with some of my forms. All of my forms
> are
>> > > >based
>> > > > on a class called cform. Cform has its autocenter set to .t. and
> this
>> > > > works
>> > > > just fine.
>> > > >
>> > > > I have a few forms that I don't want to autocenter to I changed
>> > > > that
>> > forms
>> > > > value to .f..
>> > > >
>> > > > But, their still autocentering.
>> > > >
>> > > > Its not the foxuser , and ini or some registry setting. I have no
> code
>> > in
>> > > > cform to force it back to .t. And after the form has run a check of
>> that
>> > > > property reveals it to still be .f.
>> > > >
>> > > >
>> > > > Suggestions?
>> > > >
>> > > > Alan
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Re: forrm.autocenter by Alan

Alan
Fri Feb 18 10:01:13 CST 2005

I hate having to hack stuff. 8-(

But, being a fox programmer for over 20 years I guess I should be used to it
;-)

Alan
"Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
news:unuEV0cFFHA.3608@TK2MSFTNGP14.phx.gbl...
> It appears you're correct about the form not respecting that property if
> it's changed. Just add a thisform.Left = 0, thisform.Top = 0 to your
> form.Load() (and a DODEFAULT() if you've got code there in your base
class)
> as a work-around.
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
> news:O6AUAmcFFHA.1396@tk2msftngp13.phx.gbl...
> >I think I have found a VFP bug.
> >
> > I created a new form class no code based directly off the VFP base form
> > object. The only change was to turn autocenter on.
> >
> > I created a new form based this new class. Overrode the default and set
> > autocenter to .f. the form still autocenters.
> >
> > The class has no code its a totally new form so foxuser can't be doing
> > anything.
> >
> > I think its a bug.
> >
> > Alan
> > "Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
> > news:u$SiXbcFFHA.2568@TK2MSFTNGP10.phx.gbl...
> >> Set a break point on when the .Top and/or .Left properties change. Your
> >> problem may not be AutoCenter at all. There may be code somewhere that
is
> >> calculating these values to center the form.
> >>
> >> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
message
> >> news:uELgD2GFFHA.3032@TK2MSFTNGP12.phx.gbl...
> >> > I know that I can do this. I just hate hacking things that "should"
> > work.
> >> >
> >> > My current suspicion is VFP is still seeing the class as autocenter
and
> >> > ignoring my override.
> >> >
> >> > "Jan" <nomail@nowhere.com> wrote in message
> >> > news:uqGmKCPEFHA.2756@TK2MSFTNGP15.phx.gbl...
> >> > > Alan,
> >> > >
> >> > > In the init of the form set the top and left properties of the form
> >> > > to
> >> > what
> >> > > you want. Whilst this doesn't explain whats happening, it should
> >> > > solve
> >> > your
> >> > > problem.
> >> > >
> >> > > HTH
> >> > > Jan
> >> > >
> >> > > "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in
> >> message
> >> > > news:O6IaDIHEFHA.2232@TK2MSFTNGP14.phx.gbl...
> >> > > >I have encountered an issue with some of my forms. All of my forms
> > are
> >> > > >based
> >> > > > on a class called cform. Cform has its autocenter set to .t. and
> > this
> >> > > > works
> >> > > > just fine.
> >> > > >
> >> > > > I have a few forms that I don't want to autocenter to I changed
> >> > > > that
> >> > forms
> >> > > > value to .f..
> >> > > >
> >> > > > But, their still autocentering.
> >> > > >
> >> > > > Its not the foxuser , and ini or some registry setting. I have no
> > code
> >> > in
> >> > > > cform to force it back to .t. And after the form has run a check
of
> >> that
> >> > > > property reveals it to still be .f.
> >> > > >
> >> > > >
> >> > > > Suggestions?
> >> > > >
> >> > > > Alan
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
> >
>
>