Events for AMXX-Studio
Event Parameters ( C ) Parameters ( Delphi ) Description
AppMessage HWND pHwnd; int pMessage; int pWParam; int pLParam; int pTime; POINT pPt pHwnd: HWND; pMessage: Integer; pWParam, pLParam: Integer; pTime: Integer; pPt: TPoint Called when a message has been sent to the application
AutoCompleteSelect CHAR *pText pText: PChar Called when an item in the autocomplete list has been selected
AutoCompleteShow CHAR *pList pList: PChar Called when the autocomplete list is being shown
CallTipClick int pPosition pPosition: Integer Called when a click on the calltip has been performed
CallTipShow CHAR *pList pList: PChar Called when a calltip is being shown
Click - - Called when a click on the editor has been performed
CodeSnippetClick CHAR *pTitle; CHAR *pCategory; CHAR *pCode pTitle, pCategory: PChar; pCode: PChar Called when a click on a code-snippet has been performed
Compile int pCompileType; CHAR *Lang; CHAR *Filename pCompileType: Integer; Lang, Filename: PChar Called after a document has been compiled
Compiling int pCompileType; CHAR *Lang; CHAR *Filename pCompileType: Integer; Lang, Filename: PChar Called right before a document is being compiled
CreatedNewFile byte Item Item: Byte Called after a document has been created (only called on a menu click)
CreatingNewFile byte Item Item: Byte Called right before a document is being created (only called on a menu click)
CustomItemClick CHAR *pCaption pCaption: PChar Called when a click on a custom menu item has been performed
DisplayingSearch CHAR *pExpression; CHAR *pSearchList; BOOL pCaseSensivity;BOOL pWholeWords; pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward pExpression, pSearchList: PChar; pCaseSensivity, pWholeWords, pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean Called when the Search-Dialog is being shown
DocChanged int pIndex; CHAR *pFilename; CHAR *pHighlighter; BOOL pRestoreCaret pIndex: Integer; pFilename: PChar; pHighlighter: PChar; pRestoreCaret: Boolean Called when the active document has changed
DocChanging int pIndex; CHAR *pFilename; CHAR *pHighlighter; BOOL pRestoreCaret pIndex: Integer; pFilename: PChar; pHighlighter: PChar; pRestoreCaret: Boolean Called before the active document changes
KeyPress CHAR *pKey pKey: PChar Called when a key has been pressed in the editor
Loaded CHAR *pFilename pFilename: PChar Called after a document has been opened
Loading CHAR *pFilename pFilename: PChar Called when a new document is being loaded
Modified CHAR *pModifiedText pModifiedText: PChar Called when the code has been changed
OutputDoubleClick int pItemIndex pItemIndex: Integer Called when a double-click on the output list has been performed
OutputPopup int pItemIndex pItemIndex: Integer Called when the popup-menu of the output-list is being shown
PluginLoad load_info *LoadInfo LoadInfo: PLoadInfo Called when the plugin is being loaded. Register menu items etc. here
PluginUnload - - Called when the plugin is being unloaded. Remove registered objects here.
ProjectsChanged int pOldIndex; int pNewIndex pOldIndex, pNewIndex: Integer Called after the active projects have been changed
ProjectsChanging int pOldIndex; int pNewIndex pOldIndex, pNewIndex: Integer Called when the active projects change
Saved CHAR *pFilename pFilename: PChar Called after a document has been saved
Saving CHAR *pFilename pFilename: PChar Called when a document is being saved
Search CHAR *pExpression; CHAR *pSearchList; BOOL pCaseSensivity;BOOL pWholeWords; pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward pExpression, pSearchList: PChar; pCaseSensivity, pWholeWords, pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean Called when an expression is being searched
SearchAgain CHAR *pExpression; CHAR *pSearchList; BOOL pCaseSensivity;BOOL pWholeWords; pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward pExpression, pSearchList: PChar; pCaseSensivity, pWholeWords, pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean Called when the user searches again an expression
SearchReplace CHAR *pExpression; CHAR *pReplace; CHAR pExpList; CHAR *pRepList; BOOL pCaseSensivity; BOOL pWholeWords; BOOL pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward pExpression, pReplace, pExpList, pRepList: PChar; pCaseSensivity, pWholeWords, pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean Called when an expression is being replaced
Shortcut int pCharCode; int KeyData pCharCode, pKeyData: Integer Called when a shortcut is being pressed
ShowHelp int pHelpType pHelpType: Integer Called when the help is being opened
ThemeChanged CHAR *pTheme pTheme: PChar Called after the current theme has changed
UpdatedCodeExplorer CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects pLang, pFilename, pCurrProjects: PChar Called after the code-explorer has been updated
UpdatedCodeInspector CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects pLang, pFilename, pCurrProjects: PChar Called after the code-inspector has been updated
UpdateSel int pSelStart; int pSelLength; int pFirstVisibleLine pSelStart, pSelLength, pFirstVisibleLine: Integer Called when the selection has been changed
UpdatingCodeExplorer CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects pLang, pFilename, pCurrProjects: PChar Called when the code-explorer updates
UpdatingCodeInspector CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects pLang, pFilename, pCurrProjects: PChar Called when the code-inspector is being updated
VisibleControlChange int pControl; BOOL pShow pControl: Integer; pShow: Boolean Called when a visible control has been hidden or shown
You should implement these events in this style:
Delphi: function CustomItemClick(Caption: PChar): Integer; cdecl;
C: EXPORT int CustomItemClick(CHAR *Caption)
All events should return PLUGIN_CONTINUE, PLUGIN_HANDLED or PLUGIN_STOP