Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_screen.height?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00389965
Message ID:
00390757
Vues:
10
Thought I would poke in here about menus. I know we don't have OOP menus but there have been some done in VFP though. Have you guys seen any that have worked well. I wrote an Outlook Bar clone in a VFP class that supports drag and drop and I wanted the ability to coordinate multiple copies of the same Outlook Bar control so I ended up writing a MenuObject class to track each of the menus that are currently running on the system. Therefore you could drop an Icon onto the Outlook Bar control and then it would add the icon onto all of the other visible Outlook Bar controls at the same instant. It works quite well however, I had to create an Object Reference back to my Outlook Bar control upon instantiation to tell the MenuObject to update the control and be able to quickly update the control to match the new menu heiarchy.

Problem still not easily solved was how to destroy the object reference in the MenuObject. When the Outlook Bar container control is destroyed via the Form's Destroy the code I put into the Destroy method of the class doesn't fire. Since all objects in the container are destroyed first I thought it would fire but it doesn't.

Boy did I get off the subject here! OK, What would make a good OOP menu designer and what will be changed in VFP 7. I know they've shown support for the most recently used menuing (which I somewhat hate), but what is a good way to do it. My recent MenuObject more models what Delphi does with having a common control to manage functionality and menus and push buttons can point to the control to call it's methods.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform