I need to change Runtime absolutly because mine menù are Temp
menù...!
No, the fact that you need to create some menus that travel with the
application, and belong to a particular form does NOT requite that you use
code, or use temp menus.
Unless those menus are going to change for the ONE form, then I see little,
if any advantage to using code to generate the menu.
If you build a custom menu (using the mouse + drag and drop), then that menu
WILL REMAIN with your application, and not touch, or change the ms-access
built in menus.
If you have some minutes look at this Demo to generate my Popup
Runtime:
http://www.alessandrobaraldi.it/DettaglioFaq.asp?IdFAQ=103
yes, but why use code to build a menu that you can make with the mouse?
Remember, that custom menu you build stays with the access appcation, not
ms-access.
The API LoadPicture solution probably is the only Way to solve the
problem, i need to integrate on my basCode...!
You don't need a api here. Your other post mentioned the picture property of
a menu button. You are correct, the following code does work:
CommandBars("test1").Controls("testb").Picture =
LoadPicture("c:\peoplesmall.bmp")
So, your don't need a api. further, as mentioned, if you build a custom menu
with the mouse, and in the forms "other" property, you can have that menu
bar load with the form. You can do ALL OF THIS without writing one line of
code. Further, you can set the image of the menu also, and again not have to
use code. You can also make right-click context menus for a form, and again,
you don't nee to write code to do this.
I mean, you *can* write code to build a form, but it is difficult, and most
of us use the mouse to build a form and save it. The same idea applies to
custom menus, and you can build them with the mouse, and using code is not
normally needed.
Try downloading and running the 3rd example at my following web site that
shows a hidden ms-access interface, and NO CODE is required to do
this....but just some settings in the start-up.
Check out:
http://www.members.shaw.ca/AlbertKallal/msaccess/DownLoad.htm
Note how in the above sample that the menus for each form *change* for each
form loaded, but again, NO CODE was needed...