Re: Context Menu Functions in .NET client

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Markus Breugst (markus.breugst__AT__gedilan-technologies.de)
Date: 01/17/05


Date: Mon, 17 Jan 2005 09:32:29 +0100

Hi Neil,

We are not using the ActiveX control. However, our way of handling context
menus may be applicable for you:

1. We have inserted a User property into the shape. Let's say its name is
"User.ACTION_NUMBER".
2. We inserted the following formula into the "Action" column of the context
menu table: "SETF(GetRef(User.ACTION_NUMBER);22)" where 22 is known by our
.NET application as the number of a specific context menu function.

Now, when you click on the context menu item, Visio puts the value 22 into
the cell "User.ACTION_NUMBER". This fires a CellChanged event.
Our application receives this event, reads the new cell value 22 and
processes the function that is associated with this number.

Best regards,
Markus

"Neil Konitzer" <konitzer@freisoft.com> schrieb im Newsbeitrag
news:SqfGd.4717$Wp.107@lakeread07...
> We are using the Visio Drawing Control (2003) in a VS.NET client
> application. We have added a menu item to one of the context menus. What
> is the correct method for calling a WinForms function or sub procedure
> when the menu item is clicked? It appears that the only acceptable
> methods are VBA macros or functions.
>
> Thanks in advance!
>
> ~Neil Konitzer



Relevant Pages

  • Re: OT: Win 7... coming unpinned
    ... jump-lists and context menus slightly inconsistent. ... Wording, capitalization and icons are different. ... Research shows that making changes in looks from one context to another ...
    (comp.sys.mac.advocacy)
  • Re: Hook system mouse down?
    ... I am building my own Context Menu. ... menus when a user clicks somewhere outside of the popup menus. ... different version of msvsmon from the real remote debugging. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Strange case of the disappearing menus
    ... The toolbar vanishes too. ... > Autotext control to the Text/Fields menu. ... some shortcut menus have placeholders ... and are modified during run-time to fit the context. ...
    (microsoft.public.mac.office.word)
  • Re: OT: Win 7... coming unpinned
    ... that the menus look different, but I have no problem with that (for reasons ... Surely that's the same context. ... It adds the phrase "this program" and the icon when the icon you got the ...
    (comp.sys.mac.advocacy)
  • Re: OT: Win 7... coming unpinned
    ... Context menus have short commands, and jump lists have ... but even it if it were it is gratuitously inconsistent to ...
    (comp.sys.mac.advocacy)