Questions tagged [opentools]
17 questions
11
votes
1 answer
How to always persist PixelsPerInch = 96 in DFM files even if Windows use medium font size (125%)
I set my Windows 7 font size to medium (125%). When I open a form Delphi XE2 IDE, the PixelsPerInch in DFM files always set to 120 automatically. Using smaller font size in Windows (100%) makes PixelsPerInch to 96 in Delphi DFM files.
This create…

Chau Chee Yang
- 18,422
- 16
- 68
- 132
8
votes
2 answers
Delphi-IDE: how to change the way class-completion works?
Class completion in Delphi is a big time-saver, but I haven't found a way to customize it.
I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly,…

Wouter van Nifterick
- 23,603
- 7
- 78
- 122
7
votes
3 answers
How do you retrieve a new unit name from Delphi's open tools API
I have written a wizard in Delphi XE, and it is working fine. However, I have not figured out yet how to access the generated default unit name (or form name or project name) that Delphi's OTA can create.
In my old-style wizard I was able to call…

Cary Jensen
- 3,751
- 3
- 32
- 55
6
votes
2 answers
How to detect if file in IDE is being edited using Open Tools API
I made a small IDE plug-in using Open Tools API that accesses ClearCase. It has menu items "Check In", "Check Out", etc. It works OK but I want it to check out a read-only file automatically if I start typing in IDE editor or if I attempt to save…
user112365
5
votes
2 answers
Can I call ToolsAPI from code in the DUnit GUITestrunner?
Is there a way to initialize the global variable BorlandIDEServices in ToolSAPI unit so that it can be used from the DUnit GUITestrunner code?
procedure TGUITestRunner.FailureListViewClick(Sender: TObject);
var
Project: IOTAProject;
begin
if…

mjn
- 36,362
- 28
- 176
- 378
5
votes
3 answers
Adding a unit automatically to the project
I am working on a component in Delphi 7 and Delphi 2006, where I am using a unit which I need to add to the .dpr file of the project on which the component is dropped automatically.
Like the way Eureka Log automatically adds the unit 'ExceptionLog'…

PresleyDias
- 3,657
- 6
- 36
- 62
4
votes
1 answer
How to get errors of the file using OTA?
I'd like to access the errors on the active file (.pas).
Now a days I can find it on the left side of the IDE, as you can see on image.
I found on OTA the interface IOTAModuleErrors, that seems to be what I want. But I didn't found it on…

Rodrigo Farias Rezino
- 2,687
- 3
- 33
- 60
4
votes
2 answers
Where can I find DeskUtil documentation?
Where I can find DeskUtil documentation/help? I am trying to build Delphi add-in and I have some troubles with saving/registering/loading the add-in docking form into the active IDE desktop. I am using the DeskUtil methods after reading some…

Robin-Hood
- 345
- 3
- 11
4
votes
1 answer
Delphi's OTA: is there a way to get active configuration while building (D2010)?
I can ask Delphi to build all configurations at once - by clicking on "Build configurations" and invoking "Make" command:
(source: free.fr)
This will build all configurations, one after another.
The problem is that we have an IDE expert, which…

Alex
- 5,477
- 2
- 36
- 56
4
votes
2 answers
Supply method bodies in Tools API
Years ago, I wrote a code template that took a few simple parameters (points) and produced a class skeleton. Since some of the method bodies had code in them, I couldn't call InvokeClassCompletion and just placed the implementations with the…

Cobus Kruger
- 8,338
- 3
- 61
- 106
2
votes
1 answer
Delphi OpenTools API: How to get target exe name?
How can i get the name of the target executable given an IOTAProject?
From GExpert's OpenTools API FAQ:
How can I determine the filename of the binary/exe/dll/bpl/ocx/etc. generated by a compile or build?
- For Delphi 8 or greater, use…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
2
votes
1 answer
Delphi OpenTools API - Editing the project requires clause
I have written an OpenTools wizard for creating a skeleton for a custom project type. It does work, and the project and units are properly created. But, how do I edit the .dpk or .dpk file's requires clause?
A call to…

RED MONKEY
- 3,025
- 2
- 21
- 23
0
votes
1 answer
Delphi OpenTools API: How to get AfterCompile notifications?
The OpenTools API defines an interface for being notified before and after a compile:
IOTAIDENotifier = interface(IOTANotifier)
['{E052204F-ECE9-11D1-AB19-00C04FB16FB3}']
procedure FileNotification(NotifyCode: TOTAFileNotification; const…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
0
votes
0 answers
Delphi Open Tools - How to Use IOTABuildEventProvider and IOTABuildEvent?
I'm developing a project group manager now that DDEVExtensions is no longer supported, I've got a handle on the version info and other project attributes - however I want to access the build events as well.
I've found the two interfaces to use,…

Christopher Burke
- 41
- 1
- 3
0
votes
0 answers
Delphi Expert: How to register IOTAEditorNotifier callback
I am writing a Delphi IDE expert (OpenToolsAPI). I want to receive callbacks for the IOTAEditorNotifier interface.
IOTAEditorNotifier = interface(IOTANotifier)
['{0E3B9D7B-E119-11D1-AB0C-00C04FB16FB3}']
{ Called when a new edit view is…

Ranga B.
- 627
- 10
- 20