Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoArrangeForms and Class Browser
Message
 
To
07/07/1998 14:17:53
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00115002
Message ID:
00115139
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform