Author Topic: Shut down of my Add.in Form when tooltip hide  (Read 3389 times)

z.kadlec

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Shut down of my Add.in Form when tooltip hide
« on: September 14, 2006, 09:02:11 am »
Dears,

I have prepared plug-in implementing Broadcast Event :

Function EA_OnContextItemDoubleClicked(Repository As EA.Repository, GUID As String, ot As EA.ObjectType) As Boolean

If ot = otElement Then
   EA_OnContextItemDoubleClicked = openFormByType(Repository, Repository.GetElementByGuid(GUID))
ElseIf ot = otPackage Then
   EA_OnContextItemDoubleClicked = openFormByType(Repository, Repository.GetPackageByGuid(GUID))
ElseIf ot = otConnector Then
   EA_OnContextItemDoubleClicked = openFormByConnType(Repository, Repository.GetConnectorByGuid(GUID))
Else
   EA_OnContextItemDoubleClicked = False
   Repository.SuppressEADialogs = False
End If

End Function

This funciton call function openFormByType(…) which opens my dialog.

It works well, but if I would like to open this dialog in situation, when the name of the element is too long, then:
a)I select the element in repository
b)EA show „tool tip“ with whole name of element (the yellow box)
c)I doubleclick on the element (the tooltip is visible)
d)my plug-in opens the dialog (the tooltip is visible)
e)EA hides the tool tip with the element name (after some time period 1-2 sec)
f)=> EA shut down my plug-in and whole EA is in deadlock


If the name of the element is short and EA don’t show any tool tip, the plug-in has any problem and works well.

This error was also in EA 6.1.

Trick:
if before opening my dialog I open simply msgbox like:

msgbox "Hey, wait 3 seconds“

then if there is shown the tool tip with full name of the selected element, then after the tool tip is hidden, EA shuts down the msgbox. My plug-in continues with processing of my target form and evrithing is OK…but….it is not nice to explain to others, why they should wait 3 sec…

This is for me very crucial to solve this problem – we plan to use EA to model whole Bank processes, but we need do store more information about them (I use Tags) and we need to have our own form (simplification of data input – we have more then 1000 processes)

Thanks

Zdenek Kadlec
Business Process Architect
(I’m sorry for my english)

thomaskilian

  • Guest
Re: Shut down of my Add.in Form when tooltip hide
« Reply #1 on: September 15, 2006, 01:34:32 am »
This looks like you should send a bug report. Use the report page on Sparx' site and refer to your post here.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Shut down of my Add.in Form when tooltip hide
« Reply #2 on: September 16, 2006, 03:20:19 am »
Hi Zdenek, greetings,

please refer here the sparxian solution; I had similar problem with my add-in before. I don't remember what I changed but it works well now.
« Last Edit: September 16, 2006, 03:24:06 am by Bary »
Jan 'Bary' Glas