Questions tagged [toolsapi]

ToolsAPI is the API for extending and customizing the Delphi IDE using interfaces.

61 questions
16
votes
1 answer

How to explore the symbols of a dcu files in Delphi IDE?

We know that the specification of Dcu files is a secret and it will be changed every version. Is there ANY POSSIBLE way to explore the symbols in a dcu file in Delphi IDE? (Instead of using a decompile library such as DCU32INT project.)
Baoquan Zuo
  • 652
  • 4
  • 15
12
votes
2 answers

How instruct to the Delphi IDE refresh the modified syntax highlight colors using OTA (Open Tools API)?

I'm writting a plugin to integrate the Delphi IDE Theme Editor with the Rad Studio IDE (the current version of this tool run as an external application) so far everything is working fine (see the below image), except the fact which I can't figure…
RRUZ
  • 134,889
  • 20
  • 356
  • 483
12
votes
1 answer

How to fold an inserted region with Open Tools API?

I wanna insert a region in an edit view and then fold this region. // fEditView: IOTAEditView; var writer: IOTAEditWriter; begin writer := fEditView.Buffer.CreateUndoableWriter; //... writer.Insert('{$REGION…
Baoquan Zuo
  • 652
  • 4
  • 15
10
votes
3 answers

How do I get Welcome Page browser navigate to some URI from within OTA package wizard?

What I'm trying to do is to create an ability to view (not to edit) the HTML pages included into project. The Welcome Page already has embedded web browser, so it appears to be a good candidate for that. Curios why? Here is a question with…
OnTheFly
  • 2,059
  • 5
  • 26
  • 61
10
votes
1 answer

Can I ignore an exception only once?

When an exception occurs the debugger gives me the following message: I can choose to ignore the exception by checking ignore this exception type. However doing this ignores this exception in all future projects, which is worse than useless…
Johan
  • 74,508
  • 24
  • 191
  • 319
9
votes
2 answers

Uncheck "Enable Runtime Themes" or remove the internal manifest in Delphi XE?

I have a component that I am building in Delphi XE that I want to be used in the following way: User creates a new blank project. User drops my component on the form. Some special Designtime code in my component is executed, that will change…
Warren P
  • 65,725
  • 40
  • 181
  • 316
9
votes
3 answers

Improve speed of own debug visualizer for Delphi 2010

I wrote Delphi debug visualizer for TDataSet to display values of current row, source + screenshot: http://delphi.netcode.cz/text/tdataset-debug-visualizer.aspx . Working good, but very slow. I did some optimalization (how to get fieldnames) but…
netcodecz
  • 312
  • 2
  • 9
7
votes
1 answer

Add my own items to Delphi IDE Insight (F6) with in Delphi Open Tools API

I want to use INTAIDEINsightService perhaps AddItem or AddActionList to add an entry to the IDE insight feature in Delphi. According to the Delphi OTA wiki, INTAIDEINsightService allows you to register your own action. The only reference I can…
Warren P
  • 65,725
  • 40
  • 181
  • 316
6
votes
2 answers

How do I get the version number of the current project using ToolsAPI in Delphi 10.2

In Delphi 2007 I can easily get the version information of the current project using the following ToolsAPI calls: procedure Test; var ProjectOptions: IOTAProjectOptions; Project: IOTAProject; Major: Variant; Minor: Variant; Release:…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
5
votes
1 answer

Delphi 5 component that will automatically add "db.pas" unit to uses clause?

I'm writing my own component, and I wish it to add "db" unit to the interface uses clause when ever I drop it on the form, since it has a published event like: TMyDBEvent = procedure(Sender: TObject; DataSet: TDataSet) of object; TDataSet is…
zig
  • 4,524
  • 1
  • 24
  • 68
5
votes
1 answer

How to hide 'non-user' stack frames in Delphi call stack window?

Is it possible to hide/collapse stack frames, which does not have source code, and correspondingly, are not marked with these blue dots, in Delphi Call Stack? Just for reference, Visual Studio is able to do this: In managed code, by default. the…
Serhii Kheilyk
  • 933
  • 1
  • 8
  • 24
5
votes
1 answer

How I can detect when the modules window is open in the Delphi IDE?

I'm writing a Delphi plugin and I need detect when the Modules (View - Debug windows - Modules) window is open (attached to IDE Editor). I'm using the IOTAEditorNotifier to get notified when a new Editor window is open, but only works for source…
Salvador
  • 16,132
  • 33
  • 143
  • 245
5
votes
1 answer

How to highlight a specific line in source editor using OpenToolsAPI

Is it possible to highlight a specific line in active editor window just like Delphi IDE does when highlighting compiler errors?
Roman Yankovsky
  • 1,207
  • 11
  • 23
5
votes
1 answer

How to distinguish between compile and build with D2007?

I have successfully registered an IDE notifier (IOTAIDENotifier80) so I get AfterCompile notifications. Is it possible to find out whether the project was built versus just being compiled/made? I've found this answer about implementing a…
msohn
  • 326
  • 2
  • 12
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
1
2 3 4 5