Author Topic: Add-in - ?BUG? EA_OnContextItemDoubleClicked  (Read 614 times)

z.kadlec

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Add-in - ?BUG? EA_OnContextItemDoubleClicked
« on: January 26, 2008, 12:00:47 pm »
Hi all,

I write sometimes Add-ins...

Method EA_OnContextItemDoubleClicked is very usefull:

* if that method returns false, the standard EA dialog will be shown.
* if it returns true, nothing in shown.

But I have some problem with it:

If the function return true, the name of the doubleclicked element in the project browser disappers. Why? Is it my mistake?

I prepared simple example in C# to demonstrate this behavior:
- if you doubleclick in project Browseron an element with Shift key pressed, the function returns true, and the name should disappear in the project browser.
- if you doubleclick in project Browser on an element without any key, function returns false... and the standrad dialog will be shownd and the name of the element in the project browser stay visible.

Does somebody the same experience? Is it reproducable by anybody else?

Thanks for any hint

Zdenek Kadlec

Code: [Select]
public bool EA_OnContextItemDoubleClicked(EA.Repository repository, string GUID , EA.ObjectType ot)
       {
           if (( Control.ModifierKeys & Keys.Shift) > 0 )
               return true;
           return false;
       }
« Last Edit: January 26, 2008, 12:04:32 pm by z.kadlec »

thomaskilian

  • Guest
Re: Add-in - ?BUG? EA_OnContextItemDoubleClicked
« Reply #1 on: January 28, 2008, 07:03:45 am »
I was about to make use of this function in the neat future. So for now I'm not sure whether it is intended. But it looks quite suspicious. Could you report this as bug to Sparx via the registered users bug report page?