Coding plugins

ScottMattes

Member³
Is there more information available on writing plugins?

I want to write a plugin that shows all lines that contain the search string and then when you click on a line in the results the editor window that was searched will change to show that line. I think that I need to know what class the edit window is so that I can tell it to move to a line number. I probably also need to know how to position that line in the middle of the window.

Also, are there plans to expand the API to include more access (like CodeRush does, you can get to most anything with it)?

Thank you.
 
The PluginDoc directory contains the documentation and some examples. There is no additional information.

The API exposes the handles of windows and editor controls. You can use these handles to send the standard Windows Messages to these windows and controls, so that you can access the text of an editor any way you like. You can for example obtain the cursor position, obtain the line and column number from this position, place the cursor at a specific location, select ranges of text, and so on.

------------------
Marco Kalter
Allround Automations
 
OK, I see from WinDowse that the edit control is a TSyntaxMemo, that is a starting point.

Do you have a suggestion of where one can learn what Windows msgs TSyntaxMemo's respond to (book, web site, program with source code)?

Anxious to learn, always short on time.
 
It will respond to all Edit Control Messages (em_xxxxx), and all wm_xxxxx messages that are applicable to Edit controls (such as wm_GetText).

------------------
Marco Kalter
Allround Automations
 
Back
Top