Board index » delphi » Detecting "active-file" change...

Detecting "active-file" change...


2006-02-20 04:21:13 PM
delphi256
Hi,
what are the needed events to detect a change of the current "active"
file in the editor?
* IOTAIDENotifier
* IOTAEditorNotifier
Am I missing anything?
Besides this, I am having problems with the IOTAEditorNotifier. I know
the IOTAEditorNotifier must be added for each Editor.... But how
exactly. A hint would be nice.
Thanks in advance,
Frank van Boven
 
 

Re:Detecting "active-file" change...

On 20 Feb 2006 00:21:13 -0800, bove027 writes:
Quote
A hint would be nice.
Hoi Frank
You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question.
Take a look here:
<tinyurl.com/8m5nw>
which links to
<delphi.wikicities.com/wiki/Delphi_Newsgroups>
 

Re:Detecting "active-file" change...

Hi,
what are the needed events to detect a change of the current "active"
file in the editor?
* IOTAIDENotifier
* IOTAEditorNotifier
Am I missing anything?
Besides this, I am having problems with the IOTAEditorNotifier. I know
the IOTAEditorNotifier must be added for each Editor.... But how
exactly. A hint would be nice.
Thanks in advance,
Frank van Boven
 

Re:Detecting "active-file" change...

Done...
Thanks (Also for the wiki site...)
Ignore this thread then!
 

Re:Detecting "active-file" change...

F. van Boven writes:
Quote
what are the needed events to detect a change of the current "active"
file in the editor?
In Delphi 7, for example, you can install a notifier for every editor and
wait for IOTAEditorNotifier.ViewActivated notifications.
Quote
Besides this, I am having problems with the IOTAEditorNotifier. I know
the IOTAEditorNotifier must be added for each Editor.... But how
exactly. A hint would be nice.
You need to call IOTAEditor.AddNotifier for each editor in the system you
want to listen in on. To detect newly opened files, you can implement
IOTAIDENotifier.FileNotification and watch for the ofnFileOpened callbacks.
The whole process is too complex to make it easy. I wish Borland had
implemented a global notification system instead.
Erik