Thread View: borland.public.delphi.opentoolsapi
3 messages
3 total messages
Started by David Novo
Sun, 27 Jan 2008 22:38
adding packages into the IDE via the Open Tools API
Author: David Novo
Date: Sun, 27 Jan 2008 22:38
Date: Sun, 27 Jan 2008 22:38
17 lines
1300 bytes
1300 bytes
Hello, Does anyone know a way to add/remove packages via the toosl API? I found the IOTAPackageServices which seems like it will give you the list of all the current packages that are loaded, but I cannot seem to find a way to add or remove them. My idea is to hook the IOTAProjectFileStorageNotifier and then depending on which project is loaded, add or remove some packages via the ToolsAPI. Can this be done? Thanks, Dave --
Re: adding packages into the IDE via the Open Tools API
Author: Michael
Date: Sun, 24 Feb 2008 17:58
Date: Sun, 24 Feb 2008 17:58
29 lines
1732 bytes
1732 bytes
Theoretically, supplied with the package name. GetModuleHandle returns a handle to be used with UnloadPackage(Windows::HINST Module); -- Michael "David Novo" <dave@xxx.denovosoftware.com> wrote in message news:479d15fe$1@newsgroups.borland.com... > > Hello, > > Does anyone know a way to add/remove packages via the toosl API? I > found the IOTAPackageServices which seems like it will give you the > list of all the current packages that are loaded, but I cannot seem to > find a way to add or remove them. > > My idea is to hook the IOTAProjectFileStorageNotifier and then > depending on which project is loaded, add or remove some packages via > the ToolsAPI. > > Can this be done? > > Thanks, > Dave > -- >
Re: adding packages into the IDE via the Open Tools API
Author: Erik Berry
Date: Sun, 24 Feb 2008 21:35
Date: Sun, 24 Feb 2008 21:35
13 lines
1615 bytes
1615 bytes
David Novo wrote: > Does anyone know a way to add/remove packages via the toosl API? I > found the IOTAPackageServices which seems like it will give you the > list of all the current packages that are loaded, but I cannot seem to > find a way to add or remove them. This is a common request, but there is nothing built into the OTA for this. There is a request somewhere in QC for this feature you can vote for, I believe. In addition to LoadPackage and friends in the RTL you might use to to simulate this feature, you might also need to call Register/IDERegister on the package after loading it to get the components loaded, etc. Erik
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads