Shortcut menus

P

Petr Danes

I make extensive use of right-click (shortcut) menus on a form. 14 textboxes
and comboboxes have associated shortcut menus, geared to the contents of the
database, some of which go three levels deep and have selections that run
into the thousands. The contents of the database change and so necessitate
changing the shortcut menus to match. Doing this by hand would obviously be
insane, so I have code that clears and rebuilds the shortcut menus according
to the current contents of the database.

Occasionally the database needs to be rebuilt (it's in a relatively constant
state of development and some of my experiments ruin things). I have almost
all the rebuild process automated, except the shortcut menus. I can create
and populate the appropriate toolbars, and add them to the controls
properties, but I haven't been able to figure out how to convert a toolbar,
once created, to a shortcut menu.

Does anyone know the code for this? It's a PIA to have to do this one part
by hand every time.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top