Rex,
>In the new ProjMgr demo, I found a bug. If you have the Class Browser open and run an application using a subclass of the cSideBar class the following message:
>
>Message: File 'PARENT' does not exist.
>Line: 41
>Code: IF TYPE("loForm") == "O" AND UPPER(loForm.BaseClass) != 'TOOLBAR' AND loForm.lAutoCenter = .T.
>As you can see, the Class Browser does not have a lAutoCenter property.
>
>I hate it when it does that
Me too <g>. Another astute MM developer found this also...I was getting ready to post a message regarding a workaround. Here it is:
You can make the following change to CFormMgr.AutoArrangeForms() to get around this problem:
Change...
IF TYPE("loForm") == "O" AND ;
UPPER(loForm.BaseClass) != 'TOOLBAR' AND ;
loForm.lAutoCenter = .T.
To...
IF TYPE("loForm") == "O" AND ;
UPPER(loForm.BaseClass) != 'TOOLBAR' AND ;
TYPE('loForm.lAutoCenter') == 'O' AND ;
loForm.lAutoCenter = .T.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com