Michael Brösdorf
michael.broesdorf at web.de
Tue Jul 20 03:11:42 CDT 2004
Hi Charlotte, sorry, I already got it to work using WithEvents - should have 'closed' my question here! Basically, I do not like the idea of having a public function for every button on every shortcut menu bar. Using Withevents I can bind the buttons on the shortcut menus to a set of event procedures and program them just I would do with normal command buttons on a form. Anyhow, thank you for offering help!!! Michael -----Ursprüngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Montag, 19. Juli 2004 21:17 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Create custom shortcut menu What do you mean, "global" functions? All public functions are global in the application. What are you trying to do? Charlotte Foust -----Original Message----- From: Michael Brösdorf [mailto:michael.broesdorf at web.de] Sent: Saturday, July 17, 2004 8:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] Create custom shortcut menu Dear group, I am trying to create a custom shortcut menu for a third-party ActiveX-Control that does not have a ShortcutMenuBar-property. I created the menu and open it in the MouseDown-event of the control and it displays just fine. The only problem now is: how do I respond to the clicks on the MenuBarButtons without using global functions? I've seen a couple of examples using WithEvents, but I just can't get it to work... Michael -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com