Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu on non-toplevel form
Message
De
11/06/2003 03:19:33
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00798293
Message ID:
00798780
Vues:
42
Hi george,

>I think that there are really two things going on as to why you can't do this.
>
>First, I think the problem in understanding may be due to perhaps some understated documentation. The Window's Platform SDK does state that the window may not be a child window. If you look at the properties (via Spy++) of the Console Root window in the SQL Server Enterprise Manager, you can see that it's clearly WS_CHILDWINDOW, yet it has it has a menu as does the Manager. Looking at the Extended Styles, it also has WS_EX_MDICHILD. This may be the reason why it can display a menu. This is a guess.

I think something else is going on. I don't think the menubar we see on the child window is a menubar, but a composition of regular windows controls. If you open a menu on the manager and you can browse through all menus when you move the mouse to the pad of another menu. This is the normal behaviour of a Windows menu. However the menu of the child windows don't work that way, you first have to close the currently open menupopup and open another.

>Unfortunately, VFP does not (at least in 8.0) create any windows with this extended style. You might want to try a test by setting the MDIForm property to true. Even with this property set this way, the extended style above is not utilized.

I think I'll be wasting my time on investigating this. I'd better start programming a menuclass consiting out of graphical checkboxes for each menupad with autoresizing capabilities, which call a menupopup when activated.

Thanks,

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform