An idea so nice, you included it twice. <grin>
You are correct. There is no native support for context menus in our XML
UI. The idea has been noted before, and perhaps, some day, we will add
that functionality. That being said, the majority of the time, the items
found in an application's context menu are typically found in the
application's main menu, and since we do have support for a main menu in
a dialog, I think that's the way to go rather than finding some
alternative hack to do what you want. After all, what's the different
between pressing Shift-F10 vs. Alt-Whatever? Granted, there's an
application key on some keyboards, but not all. In addition, you can
assign accelerators to main menu items.
Can you give me more detail on the context of what you'd use a context
menu for?
Aaron
On 4/16/2011 6:40 AM, Jared Wright wrote:
Hey everyone, Perusing the docs I see no immediately evident method
of attaching elements in a WE dialog to right click context menus, be
they items in a listbox, listview, tree, or maybe a couple others I'm
forgetting that this sort of UI could be appropriate for. Nor have I
seen any apps that use them. Assuming I am correct in their being no
native support for this, I'm seeking any suggestions that might not be
as drastic as completely rolling my own dialogs to accomplish this
functionality. If that's what it takes, well, no worries, it won't
really surprise me since we don't usually need to access any of the
under-the-hood stuff for the WE dialogs beyond what can be
accomplished with XML. But before I started experimenting with making
my dialogs from scratch I thought I'd field the question here. I could
always just use other UI elements (and probably will if it ends up
being a bunch of trouble), but right click functionality is pretty
widespread and I personally use it frequently. I'd like to be able to
have a little consistency in the UI's I make for WE apps if it's at
all practical. Thanks for any and all thoughts!Perusing the docs I see
no immediately evident method of attaching elements in a WE dialog to
right click context menus, be they items in a listbox, listview, tree,
or maybe a couple others I'm forgetting that this sort of UI could be
appropriate for. Nor have I seen any apps that use them. Assuming I am
correct in their being no native support for this, I'm seeking any
suggestions that might not be as drastic as completely rolling my own
dialogs to accomplish this functionality. If that's what it takes,
well, no worries, it won't really surprise me since we don't usually
need to access any of the under-the-hood stuff for the WE dialogs
beyond what can be accomplished with XML. But before I started
experimenting with making my dialogs from scratch I thought I'd field
the question here. I could always just use other UI elements (and
probably will if it ends up being a bunch of trouble), but right click
functionality is pretty widespread and I personally use it frequently.
I'd like to be able to have a little consistency in the UI's I make
for WE apps if it's at all practical. Thanks for any and all thoughts!
--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.