ToolsAPI is the API for extending and customizing the Delphi IDE using interfaces.
Questions tagged [toolsapi]
61 questions
2
votes
2 answers
How to filter Delphi 2010 compiler output (hints)?
I'm trying to get rid of some hints(*) the Delphi compiler emits. Browsing through the ToolsAPI I see a IOTAToolsFilter that looks like it might help me accomplish this through it's Notifier, but I'm not sure how to invoke this (through what…

Paul-Jan
- 16,746
- 1
- 63
- 95
2
votes
1 answer
How to close (in code) a Form which the IDE has open, without closing its associated .Pas file
The code below is simplified from something I'm doing in a design-time .BPL for D7.
Update: Since posting this, I've found one way to do what I'm after, namely just send the form a WM_Close message, but I'd still be interested to know whether…

MartynA
- 30,454
- 4
- 32
- 73
2
votes
0 answers
How can I keep track of editor modifications and line position changes in the IDE?
I am writing an IDE plugin that tracks specific lines - consider it similar to the IDE's inbuilt bookmark functionality. When a user edits source code, the position of a specific line changes - what might have been line 100 becomes line 101 when…

David
- 13,360
- 7
- 66
- 130
2
votes
1 answer
Is IOTAProjectResource broken (again!) in Delphi XE2 (and probalbly XE3 too)?
I was doing some legwork for this question, specifically, for the following sentence:
I even could not get this interface from IOTAProject.
By again I mean well-known defect present in Delphi 2005 and 2006 outlined by Erik Berry. Please visit…

Free Consulting
- 4,300
- 1
- 29
- 50
1
vote
2 answers
Does de NewImplSource from IOTAModuleCreator automatically "shows" the new unit on the IDE?
I'm trying to implement an IDE Wizard with ToolsApi and using the GExperts FAQ (http://www.gexperts.org/examples/GXModuleCreator.pas) as reference.
Although the bpl compiles, the unit doesn't shows up on the IDE.
I'm Using Delphi 10.3.2 Rio.
unit…

Leo Bruno
- 474
- 3
- 16
1
vote
1 answer
How to retrieve the value of $(Config) using ToolsAPI?
When writing the Delphi expert using ToolsAPI, we may use GetEnvironmentVariable to retrieve the environment variables available to the current Delphi IDE process. However, this only works if the variables are define in your current user account…

Chau Chee Yang
- 18,422
- 16
- 68
- 132
1
vote
0 answers
Delphi IDE Expert - intercept "View Source" or DPR-file loading
Trying to tune AutoOpenUnit IDE Expert (implementing I-OTA-IDE-Notifier and implementing FileNotification event) for my Delphi XE2 I stumbled upon a problem...
I need to scan every source file opened by Code Editor (or by IDE itself).
I made a test…

Arioch 'The
- 15,799
- 35
- 62
1
vote
0 answers
Delphi [find declaration] using OTA
I am working on an IDE expert in D10 Seattle, and can't figure out how to access "Find Declaration" (aka Ctrl+Click) in code. I need to use it in my own keybinding so I can drop a breadcrumb first.
If it's not available, is there a workaround by…

mether
- 11
- 1
1
vote
1 answer
How create a inheritable custom form from package by Object Repository on Delphi?
I've created a wizard for creating a custom form. It's working normal. I can create it from the File> Other> 'MyWizards' menu. But, I would like to add the common options of forms and dialogs: "Use", "Inherit" and "Copy". How to do this? Is there…

AnselmoMS
- 467
- 3
- 18
1
vote
0 answers
Can the Option Set file for Delphi 10 be set programmatically using the OTAPI?
Is it possible to automate setting the Option Set file reference programmatically when creating a new Delphi project using the IOTAProjectOptions respectively IOTAProjectOptionsConfigurations interface1?
Or can I do that using any of the other OTAPI…

user0042
- 7,917
- 3
- 24
- 39
1
vote
0 answers
How do I get RTTI information on the IDE
I want to get the VMT entry for TExceptionNotificationDlg which resides in dbkdebugidexxx.bpl.
The IDE loads this module shortly after startup.
I want to prevent the exception report dialog from displaying and substitute my own display instead. …

Johan
- 74,508
- 24
- 191
- 319
1
vote
2 answers
Create a Simple Delphi IDE Expert
I want to create a simple IDE Expert for Delphi 7, like in the following image:
I've verified the links gave for this question but OTA Api newsgroup is dead, and most of the documentation is unavailable (broken links). Can someone give a starting…

RBA
- 12,337
- 16
- 79
- 126
1
vote
1 answer
What is a Frame in the debugAPI?
In the Delphi debugAPI there are a couple of references to a FrameIndex e.g. in:
unit DebugAPI;
interface
type
IOTADebugger = interface(IInterface)
function CanToggleBreakpointOnFrame(FrameIndex: Integer): Boolean;
function…

Johan
- 74,508
- 24
- 191
- 319
1
vote
1 answer
Insert text at cursor position in Embarcadero Tools API
I'm writing an extension for the Embarcadero C++ Builder IDE and want to programmatically insert text inside the code editor at the cursor position. I searched the Tools API header files but only found an interface which allows me to insert text at…

coffee_addict
- 926
- 9
- 15
1
vote
2 answers
How to write and show something on Delphi IDE status bar
I want to know how can I write a module to show something like clock or other thing on Borland Delphi 7 IDE status bar, because I know it's possible but I couldn't find how!

user3615169
- 31
- 1
- 1
- 2