Re: Context Menu Functions in .NET client
From: Neil Konitzer (konitzer_at_freisoft.com)
Date: 01/22/05
- Previous message: junethesecond: "Re: Runtime error assigning formula in macro"
- In reply to: Markus Breugst: "Re: Context Menu Functions in .NET client"
- Next in thread: Markus Breugst: "Re: Context Menu Functions in .NET client"
- Reply: Markus Breugst: "Re: Context Menu Functions in .NET client"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 Jan 2005 18:31:32 -0500
I think that there is something that I am missing here. For some reason,
the cell changed event is not being raised when I select the menu item
from the context menu item. If I manually go and change the user
property in the drawing control, then the cell changed event is firing
and I am able to do what I need to do.
I have the ActionText property set to...
SETF(GetRef(User.Action);1)
Am I missing anything else? What about the AddonName property? I am not
sure if this is indeed a required property value and if so, what value
needs to go in here for a .NET client?
Markus Breugst wrote:
> 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
>
>
>
- Previous message: junethesecond: "Re: Runtime error assigning formula in macro"
- In reply to: Markus Breugst: "Re: Context Menu Functions in .NET client"
- Next in thread: Markus Breugst: "Re: Context Menu Functions in .NET client"
- Reply: Markus Breugst: "Re: Context Menu Functions in .NET client"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|