JaedenRuiner
Registered User.
- Local time
- Today, 09:01
- Joined
- Jun 22, 2005
- Messages
- 154
Okay,
There are things that are true about programming, one primary facet is Minimalistic Code. Basic concept: never write the same thing twice. Now, I have several list boxes on different forms, and I want to provide a command bar (pop up menu, or context menu as it is called in other programming circles) that offers the add/remove/rename functionality that I've programmed in. However, I do not want to create 5 menus with the same 3 items. I just want one menu, that executes MyAdd(), MyRemove(), MyRename(), and in those functions I want to determine which listbox control on what form opened up the popup.
Now, the parent property seems to point back to the Applicaiton object, which does me now help. How can i determine what control & form opened the pop up menu.
Jaeden "Sifo Dyas" al'Raec Ruiner
There are things that are true about programming, one primary facet is Minimalistic Code. Basic concept: never write the same thing twice. Now, I have several list boxes on different forms, and I want to provide a command bar (pop up menu, or context menu as it is called in other programming circles) that offers the add/remove/rename functionality that I've programmed in. However, I do not want to create 5 menus with the same 3 items. I just want one menu, that executes MyAdd(), MyRemove(), MyRename(), and in those functions I want to determine which listbox control on what form opened up the popup.
Now, the parent property seems to point back to the Applicaiton object, which does me now help. How can i determine what control & form opened the pop up menu.
Jaeden "Sifo Dyas" al'Raec Ruiner