Re: Context Menu Functions in .NET client

From: Neil Konitzer (konitzer_at_freisoft.com)
Date: 01/22/05

  • Next message: Markus Breugst: "Re: Context Menu Functions in .NET client"
    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
    >
    >
    >


  • Next message: Markus Breugst: "Re: Context Menu Functions in .NET client"

    Relevant Pages

    • Re: How can I get mouse shortcuts to work in Excel
      ... The Intermediate window is from the Visual Basic Editor. ... There is no right click menu (context menu missing). ... > Hi Dave, Thanks for the response. ...
      (microsoft.public.excel.setup)
    • Get(RecordNumber) already, please!!!
      ... in the table but that produced the same junky result. ... "If you specify the context for the current calculation, ... suckier and suckier as time went on. ... I don't even care what it is I'm missing here - surely ...
      (comp.databases.filemaker)
    • question about ucontext_t and friends
      ... Where *context is a pointer to a `struct ucontext', ... Concerning the 'missing members' in ucontext_t, ... alter things in uc_mcontext (machine context) ?? ... incidah njs (dot) netlab cz ...
      (freebsd-arch)
    • Re: A twist on OTP for an outstandingly secure channel?
      ... You are missing that there are no "magnitudes beyond ... ... In this particular context, I perceive that ... plaintexts it is impossible to distinguish one from the other, ... unbreakability is probably incorrectly used in this ...
      (sci.crypt)
    • Re: [PATCH 1/2] Traffic control cgroups subsystem
      ... which doesn't execute in the context of the sending ... Or am I missing something? ... You claimed "In the most common case, the packet is not queued before ...
      (Linux-Kernel)