Organizing commands and UI matters



I'm creating an application that has should have a style like VS.NET
(or any other IDE).

What I would like to know is what is the best way to handle menus, tool
bars
and context menus. How can this be done? The menus are dynamic so they
have
to be determined with each click. But how does it work?

Let's take VS itself: If I single-click in the project view on a file
node
some things happens. I.e. the properties view is refreshed. But also
the
menu and the tool bars. If I even right click on the node a context
menu
appears. What do you think how this works?

Is there a selection event that is received by the 'main app' which
then
determines which menu and tool bar items to show? Or are those items
provided by the project view which gets merged into the main menu and
tool
bars somehow?

And where is the logic which determines which items has to be enabled
or
checked or visualized? Is there one intelligent class or package that
controls that for the whole application? Conside that I select a file
node,
a project node and a folder at the same time. Who or what determines
the
available commands?

Consider also that I'd like to establish a MVC architecture. So I have
commands somewhere and I have the graphical representation of those. As
menu entries, tool bar items or context menu items. But not the
graphical presentation is the problem. And also not the command
pattern. It is about the logic when to make which command available for
the user.

Also I'm not clear how to organize the commands. I guess there will
usually be quite a lot. Am I right that commands tend to be flat and
broad and less deep (not much inheritance)?

Quite sophistacted for me. Do you know links, articles or books about
this subject?


Thanks in advance,
Robert

.



Relevant Pages

  • Re: Drawing Tool bar in 2007 Verisons
    ... Picking the "All Commands" option of this, I can see some of the specific drawing commands, but I would like to add the entire drawing set of commands as one tool bar as could be done in 2003 version. ... This Ribbon can be minimized, but I don't see any way to add addtional tool bars. ...
    (microsoft.public.access.gettingstarted)
  • Re: Dialing from an Access form / Access 97 & Access 2000
    ... > home) to be used in an Access 2000 data base elsewhere. ... Click in the Phone field, ... Right-click on an empty section of any tool bar. ... Find Records in the Commands list. ...
    (microsoft.public.access.forms)
  • how to create a goal seek button?
    ... I dragged something else onto a tool bar. ... else, when clicked, shows all tool commands, ncluding Goal Seek. ... ffind the Goal Seek command to drag. ...
    (microsoft.public.excel.misc)
  • RE: Using forms to print reports based off of queries
    ... right click on the tool bar, choose customise, commands, choose tools ... >>> I have a couple of reports that pull their information off of a single query ...
    (microsoft.public.access.forms)