Re: Context Menu Functions in .NET client
From: Markus Breugst (markus.breugst__AT__gedilan-technologies.de)
Date: 01/17/05
- Next message: rc: "Page name already in use"
- Previous message: Zonker27: "I'm having trouble updating a sql database from visio 2002."
- In reply to: Neil Konitzer: "Context Menu Functions in .NET client"
- Next in thread: Neil Konitzer: "Re: Context Menu Functions in .NET client"
- Reply: Neil Konitzer: "Re: Context Menu Functions in .NET client"
- Reply: Neil Konitzer: "Re: Context Menu Functions in .NET client"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: rc: "Page name already in use"
- Previous message: Zonker27: "I'm having trouble updating a sql database from visio 2002."
- In reply to: Neil Konitzer: "Context Menu Functions in .NET client"
- Next in thread: Neil Konitzer: "Re: Context Menu Functions in .NET client"
- Reply: Neil Konitzer: "Re: Context Menu Functions in .NET client"
- Reply: Neil Konitzer: "Re: Context Menu Functions in .NET client"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|