<i><font color="#663300">Running Step-By-Step i noticed that the forms does not get added to the Window menu pulldown ? Is this because i choosed to use mpr-based menu instead of class-based ? It must be the following IF statement in cbaseform.init() that returns .F. or ? IF TYPE("goApp.oMenu.oWindowPad.oPopup.Name") == "C" goApp.oMenu.oWindowPad.oPopup.Add( "oWindowPad", This.cWindowBarClass, This.Caption, This.Name ) ENDIF</font></i>
Yes, you're correct that the windows aren't being added to the menu, but it's not because of that code. It seems that the menu pad and popup have to have exactly the same names as the default VFP menu items for that to "auto-magically" work. The code above is an attempt to duplicate that magic in class-based menus.
I've renamed the appropriate items in the MNX file, and things seem to be working correctly now. That will be included in the next release, but since the change is in the Template application, you'll have to copy over the menus from template into any existing app and re-modify it to include your customizations.
<font color="#cc0000"> ___/ / __/ / ____/</font> Ed Leafe ©2002 Ed Leafe |