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

>By definition a child window can not have a menu -- SetMenu API function will not work with a handle to a child window.

Which definition ? In VFP you can create a non grahical menu by using DEFINE MENU ... AT LINE .05 and ACTIVE WINDOW .... NOWAIT.

In various windows apps I do see child menu with windows. Look at the Active directory and users in W2K. There you´ve got child form menus.

>I have been trying to find some ways. One idea was to create a proper window with a menu and "glue" it on top of a FoxPro form using API functions.

>I developed an ActiveX control in VB -- it worked not too bad, it was really close to a regular menu, and it was on a child window, ShowWindow was not set to 2. Though several things I was not able to program. One of those was hot keys.

I´d rather create a new class in VFP mimicing the menubar with pure VFP code (cetainly is possible) than including lots of external files, the menubar class on its turn activate menu popups. All should be well. However, there is a significant amount of programming to do...

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

Click here to load this message in the networking platform