Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows System Menu
Message
From
08/05/2006 14:25:52
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01119993
Message ID:
01120123
Views:
24
>What should be done to run it? I saved the code from the site into prg and just ran it. I see the form with a textbox and a focus in the textbox, but clicking on the title bar of the form doesn't activate menu at all. Only the screen has right click standard menu.
>

Just Click the form Icon, on the left top corner. :) (That was all we had in old Win 3.11, the "control box" that you had to double click to close the window, or click to display the control menu, and Min Max buttons on the right)

That menu is called the "window menu", and only the main window of an application has one provided by Windows. The one you see in a VFP non top level form, is provided by VFP itself, copied from its own "window menu" (I guess)

From MSDN:

"The GetSystemMenu function allows the application to access the window menu (also known as the system menu or the control menu) for copying and modifying"

Maybe thats why the right click on title bar only works for main window or top level forms. VFP may not have implemented right click in title bar-show window menu for non top level forms.

I have Windows in spanish, and the "window menu" menu items are in spanish of course, except for the "Close" menu item of VFP non top level forms forms, that have "Close" instead of "Cerrar" that is why I pressume that VFP generates that menu for non top level forms.

Maybe all the menu items for non top level forms are just copied from VFP's own "window menu" along with their function, but the "Close" menu has different code, to just close a non top level form, and they forgot to retrieve the "Close" string from the Windows locale language.

Of course, I may be wrong, I am just guessing here.

Carlos
Previous
Reply
Map
View

Click here to load this message in the networking platform