Book a Demo

Author Topic: Closing a tab added with Repository.AddTab().  (Read 3315 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Closing a tab added with Repository.AddTab().
« on: October 23, 2012, 01:15:30 am »
Hi guys,

I have added a control using the AddTab method. I would really like to know when the user decides to close this tab. Like if the user closes a diagram, the EA_OnPostCloseDiagram event is fired.

Any suggestions?

Cheers
Knut

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Closing a tab added with Repository.AddTab().
« Reply #1 on: October 23, 2012, 05:07:59 pm »
Knut,

I would try to see if there isn't some kind of event fired by your control that you can catch (something like "dispose", or a change in the reference count)
If so you can doublecheck with Repository.IsTabOpen(string TabName)

If there really isn't any event you can catch, you might even considering polling IsTabOpen :-/

Geert