473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Runtime-determined ShortcutMenus, best course of action

My Customers/Sales/Contacts management database interface is modeled
as if Customers are objects, Sales are objects owned by Customer
objects, etc. (I'm running Access 11)

I have Listviews located just about everywhere for the purpose of
finding/acting on these objects.

I want to design a coherent model to handle contextual popup (shortcut
menus) for the different kinds of objects that will be clicked on.
Each object will (naturally) have different methods that apply
(Customers: Print mailing envelope, Sales: View PO, etc). These
objects and their methods are mapped in a few "meta-tables" in my
BE.

I should note, these object-specific menu-items will coinhabit the
Shortcut Menu with a few global menu items (Open, Delete, etc).

So far, after reading around on MSDN, it looks like I have two general
options (although I could be missing something):

1) Create the toolbars manually in design-mode, as Shortcut menus,
mirroring the data I have in the BE. Then, before I show the popup at
runtime, copy the object-centric shortcutmenu onto the "Global menu."

2) Mash up each toolbar at runtime, creating each menu item by reading
the relevant data from the BE tables.

Does anyone have experience with the kind of thing? What would you
do?

Also, when you create a command bar (or copy items onto one), what is
its scope? Does it persist absolutely, per session, per sub-routine?

Any pointers are appreciated.
Dec 18 '07 #1
2 1566
"JohnH" <Jo**********@gmail.comwrote in message
news:92**********************************@s8g2000p rg.googlegroups.com...
My Customers/Sales/Contacts management database interface is modeled
as if Customers are objects, Sales are objects owned by Customer
objects, etc. (I'm running Access 11)

I have Listviews located just about everywhere for the purpose of
finding/acting on these objects.

I want to design a coherent model to handle contextual popup (shortcut
menus) for the different kinds of objects that will be clicked on.
Each object will (naturally) have different methods that apply
(Customers: Print mailing envelope, Sales: View PO, etc). These
objects and their methods are mapped in a few "meta-tables" in my
BE.

I should note, these object-specific menu-items will coinhabit the
Shortcut Menu with a few global menu items (Open, Delete, etc).

So far, after reading around on MSDN, it looks like I have two general
options (although I could be missing something):

1) Create the toolbars manually in design-mode, as Shortcut menus,
mirroring the data I have in the BE. Then, before I show the popup at
runtime, copy the object-centric shortcutmenu onto the "Global menu."

2) Mash up each toolbar at runtime, creating each menu item by reading
the relevant data from the BE tables.

Does anyone have experience with the kind of thing? What would you
do?

Also, when you create a command bar (or copy items onto one), what is
its scope? Does it persist absolutely, per session, per sub-routine?

Any pointers are appreciated.
When you say Listview, do you mean the Activex listview control? I ask
because if you mean an Access listbox then you can create the menu at design
time and set the listbox's Shortcut menu bar property to the name of your
menu.

If (as I suspect) you do mean a Listview control, I'd probably go with your
option 2, because in my experience, the menus can be built quite quickly in
code.

As to your 2nd question re persistence, commandbars can be made to have
cross-session persistence, ie they can survive a database restart. When you
use the CommandBars.Add method, set the 'Temporary' parameter to False.
Dec 18 '07 #2
On Dec 18, 2:46 pm, "Stuart McCall" <smcc...@myunrealbox.comwrote:
"JohnH" <JohnHarri...@gmail.comwrote in message

news:92**********************************@s8g2000p rg.googlegroups.com...
My Customers/Sales/Contacts management database interface is modeled
as if Customers are objects, Sales are objects owned by Customer
objects, etc. (I'm running Access 11)
I have Listviews located just about everywhere for the purpose of
finding/acting on these objects.
I want to design a coherent model to handle contextual popup (shortcut
menus) for the different kinds of objects that will be clicked on.
Each object will (naturally) have different methods that apply
(Customers: Print mailing envelope, Sales: View PO, etc). These
objects and their methods are mapped in a few "meta-tables" in my
BE.
I should note, these object-specific menu-items will coinhabit the
Shortcut Menu with a few global menu items (Open, Delete, etc).
So far, after reading around on MSDN, it looks like I have two general
options (although I could be missing something):
1) Create the toolbars manually in design-mode, as Shortcut menus,
mirroring the data I have in the BE. Then, before I show the popup at
runtime, copy the object-centric shortcutmenu onto the "Global menu."
2) Mash up each toolbar at runtime, creating each menu item by reading
the relevant data from the BE tables.
Does anyone have experience with the kind of thing? What would you
do?
Also, when you create a command bar (or copy items onto one), what is
its scope? Does it persist absolutely, per session, per sub-routine?
Any pointers are appreciated.

When you say Listview, do you mean the Activex listview control? I ask
because if you mean an Access listbox then you can create the menu at design
time and set the listbox's Shortcut menu bar property to the name of your
menu.

If (as I suspect) you do mean a Listview control, I'd probably go with your
option 2, because in my experience, the menus can be built quite quickly in
code.

As to your 2nd question re persistence, commandbars can be made to have
cross-session persistence, ie they can survive a database restart. When you
use the CommandBars.Add method, set the 'Temporary' parameter to False.
Yes I did mean the activex listview.

Thank you for your concise and helpful direction. I'm going to try to
get it working today.
Dec 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jon morgan | last post by:
Hi, I am trying to clean out all the VB specific code in a project before porting to C#. Having removed all the import references I still see the VB runtime is loaded at startup. How can I pin...
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
8
by: Subra Mallampalli | last post by:
Hi, I am trying to use <runtime> section within the web.config file. However, the contents of the <runtime> section seem to be ignored. What am i missing here? Is <runtime> section not used by...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
3
by: =?Utf-8?B?R3JhaGFt?= | last post by:
I've added 2 tracking services to the wf runtime; one is the standard SqlTrackingService: trackingService = new SqlTrackingService(<trackingConnectionString>); <workflow...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
4
by: David Kates | last post by:
I was one of the few who was able to download the Access 2007 runtime when it was available for a short time. I installed it but cannot figure out how it runs an Access 2007 database. There is no...
6
by: SMcK | last post by:
I have a PDA-based (Syware Visual CE) database which I need to sync to an Access database. The Access database contains three tables: 1 is the data itself, 2 is a linked table that prefills...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
2
by: mohi | last post by:
hello every one , this may be very basic question and may be a bit out of topic ,, can anyone please tell me what are the functions of runtime library and are they the one which create the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.