The Delphi Open Tools API Book
Its here 🙂 The Delphi Open Tools API Book
In this chapter I’ll go through how to get the code from the editor and do something with it. For this example I’m simply going to allow you to select a method from the current module and move to its position. This will use some of the utility functions I’ve described before in (see Chapter… Read More »
For those interested, here's the fix to the Chapter 4's code. procedure TKeyboardBinding.AddBreakpoint(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult); var i: Integer; DS : IOTADebuggerServices; MS : IOTAModuleServices; strFileName : String; Source : IOTASourceEditor; CP: TOTAEditPos; BP: IOTABreakpoint; begin MS := BorlandIDEServices As IOTAModuleServices; Source := SourceEditor(MS.CurrentModule); strFileName := Source.FileName; CP := Source.EditViews[0].CursorPos; DS… Read More »
In this chapter I’ll solve a problem I’ve found with all the Borland/CodeGear IDE’s I've used. I like to use just the keyboard where possible rather than grab the mouse. With the keyboard (and I use the IDE Classic keyboard binding) you can create a breakpoint with Ctrl+F8 but you can not edit its properties.… Read More »