Hi everyone!
That's my problem: When multiple documents are opened, if I change the active document (clicking on an upper tab) or I close one of them (clicking on the X of the tab), the notification of the operation performed is not raised.
In my specific case, it's important to be notified of these two events, to synchronize the container application with the active document in the moment this event happens.
At least, I didn't find it in the docs... any help would be appreciated.
Greetings!
Fabrizio
Document Change/Close Notification is missing (?)
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 25
- Joined: Wed Feb 10, 2010 11:37 am
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Document Change/Close Notification is missing (?)
Hi, Fabrizio.
You may intercept next events:
Best
Regards.
You may intercept next events:
Code: Select all
OnEvent(type, name)
{
...
if (type == PXCVA_OnPropertyChanged)
{
if (name == "Documents.Active")
{
// the other document is activated
}
else if (name == "Documents.Count")
{
// opened or closed any document
}
}
...
}
Regards.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 25
- Joined: Wed Feb 10, 2010 11:37 am
Re: Document Change/Close Notification is missing (?)
I got it!
Thanks for the quick and accurate answer.
Greetings!
Fabrizio!
Thanks for the quick and accurate answer.
Greetings!
Fabrizio!
-
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: Document Change/Close Notification is missing (?)
Our Pleasure Fabrizio!
And Kudos to Vasyl
Best,
Stefan
And Kudos to Vasyl
Best,
Stefan