Added the plugins directory to CVS and updated the files
This commit is contained in:
parent
7cc586bd0c
commit
3f36b51f6c
|
@ -0,0 +1,8 @@
|
|||
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
<o:MainFile HRef="../Functions%20and%20Events.htm"/>
|
||||
<o:File HRef="stylesheet.css"/>
|
||||
<o:File HRef="tabstrip.htm"/>
|
||||
<o:File HRef="sheet001.htm"/>
|
||||
<o:File HRef="sheet002.htm"/>
|
||||
<o:File HRef="filelist.xml"/>
|
||||
</xml>
|
664
editor/studio/plugins/Functions and Events-Dateien/sheet001.htm
Normal file
664
editor/studio/plugins/Functions and Events-Dateien/sheet001.htm
Normal file
|
@ -0,0 +1,664 @@
|
|||
<html xmlns:o="urn:schemas-microsoft-com:office:office"
|
||||
xmlns:x="urn:schemas-microsoft-com:office:excel"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
||||
<meta name=ProgId content=Excel.Sheet>
|
||||
<meta name=Generator content="Microsoft Excel 11">
|
||||
<link id=Main-File rel=Main-File href="../Functions%20and%20Events.htm">
|
||||
<link rel=File-List href=filelist.xml>
|
||||
<link rel=Edit-Time-Data href=editdata.mso>
|
||||
<link rel=Stylesheet href=stylesheet.css>
|
||||
<style>
|
||||
<!--table
|
||||
{mso-displayed-decimal-separator:"\,";
|
||||
mso-displayed-thousand-separator:"\.";}
|
||||
@page
|
||||
{margin:.98in .79in .98in .79in;
|
||||
mso-header-margin:.49in;
|
||||
mso-footer-margin:.49in;}
|
||||
-->
|
||||
</style>
|
||||
<![if !supportTabStrip]><script language="JavaScript">
|
||||
<!--
|
||||
function fnUpdateTabs()
|
||||
{
|
||||
if (parent.window.g_iIEVer>=4) {
|
||||
if (parent.document.readyState=="complete"
|
||||
&& parent.frames['frTabs'].document.readyState=="complete")
|
||||
parent.fnSetActiveSheet(0);
|
||||
else
|
||||
window.setTimeout("fnUpdateTabs();",150);
|
||||
}
|
||||
}
|
||||
|
||||
if (window.name!="frSheet")
|
||||
window.location.replace("../Functions%20and%20Events.htm");
|
||||
else
|
||||
fnUpdateTabs();
|
||||
//-->
|
||||
</script>
|
||||
<![endif]><!--[if gte mso 9]><xml>
|
||||
<x:WorksheetOptions>
|
||||
<x:DefaultColWidth>10</x:DefaultColWidth>
|
||||
<x:Print>
|
||||
<x:ValidPrinterInfo/>
|
||||
<x:PaperSizeIndex>9</x:PaperSizeIndex>
|
||||
<x:HorizontalResolution>600</x:HorizontalResolution>
|
||||
<x:VerticalResolution>600</x:VerticalResolution>
|
||||
</x:Print>
|
||||
<x:CodeName>Tabelle1</x:CodeName>
|
||||
<x:Selected/>
|
||||
<x:ProtectContents>False</x:ProtectContents>
|
||||
<x:ProtectObjects>False</x:ProtectObjects>
|
||||
<x:ProtectScenarios>False</x:ProtectScenarios>
|
||||
</x:WorksheetOptions>
|
||||
<x:Sorting>
|
||||
<x:Sort>Event</x:Sort>
|
||||
</x:Sorting>
|
||||
</xml><![endif]-->
|
||||
</head>
|
||||
|
||||
<body link=blue vlink=purple>
|
||||
|
||||
<table x:str border=0 cellpadding=0 cellspacing=0 width=1162 style='border-collapse:
|
||||
collapse;table-layout:fixed;width:872pt'>
|
||||
<col width=255 style='mso-width-source:userset;mso-width-alt:9325;width:191pt'>
|
||||
<col width=220 style='mso-width-source:userset;mso-width-alt:8045;width:165pt'>
|
||||
<col width=141 style='mso-width-source:userset;mso-width-alt:5156;width:106pt'>
|
||||
<col width=546 style='mso-width-source:userset;mso-width-alt:19968;width:410pt'>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 class=xl24 width=255 style='height:12.75pt;width:191pt'>Functions
|
||||
for AMXX-Studio</td>
|
||||
<td width=220 style='width:165pt'></td>
|
||||
<td width=141 style='width:106pt'></td>
|
||||
<td width=546 style='width:410pt'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=4 style='height:12.75pt;mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr class=xl25 height=17 style='height:12.75pt'>
|
||||
<td height=17 class=xl25 style='height:12.75pt'>Message</td>
|
||||
<td class=xl25>Data</td>
|
||||
<td class=xl25>IntData</td>
|
||||
<td class=xl25>Description</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_SHOWPROGRESS</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>ReadOnly (0/1)</td>
|
||||
<td>Shows the progress panel</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_HIDEPROGRESS</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Hides the progress panel</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_UPDATEPROGRESS</td>
|
||||
<td class=xl26>Progress caption</td>
|
||||
<td class=xl26>Position</td>
|
||||
<td>Sets the current progress</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_LOADCODESNIPPETS</td>
|
||||
<td class=xl26>Language</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Loads the Code-Snippets of a language</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MIRC_CMD</td>
|
||||
<td class=xl26>Command</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Performs a command in mIRC</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_RELOADINI</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Reloads the ini configuration (Hint: the ini configuration is not the
|
||||
whole config!)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_SELECTLANGUAGE</td>
|
||||
<td class=xl26>Language</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the highlighter for your active document</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_LOADFILE</td>
|
||||
<td class=xl26>File</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Loads a file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CURRPROJECTS</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the index of the current projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_COMPILE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Compiles the active document (only Pawn supported)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_COMPILE_UPLOAD</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Compiles the active document (only Pawn supported) and uploads the output</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_COMPILE_STARTHL</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Compiles the active document (only Pawn supported) and starts Half-Life</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MENU_LOADIMAGE</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Loads a bitmap and returns the image index</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MENU_ADDITEM</td>
|
||||
<td class=xl26>Category->Caption</td>
|
||||
<td class=xl26>Image Index</td>
|
||||
<td>Adds an item to the menu</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MENU_ADDSUBITEM</td>
|
||||
<td class=xl26>Category->Item</td>
|
||||
<td class=xl26>Image Index</td>
|
||||
<td>Adds a subitem to the menu</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MENU_FAKECLICK</td>
|
||||
<td class=xl26>Caption</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Simulates a click on the item</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MENU_SHOWITEM</td>
|
||||
<td class=xl26>Caption</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Shows a menu item</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_MENU_HIDEITEM</td>
|
||||
<td class=xl26>Caption</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Hides a menu item</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PLUGIN_LOAD</td>
|
||||
<td class=xl26>File in .\plugins\</td>
|
||||
<td class=xl26>or Plugin Index</td>
|
||||
<td>Loads a plugin</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PLUGIN_UNLOAD</td>
|
||||
<td class=xl26>File in .\plugins\</td>
|
||||
<td class=xl26>or Plugin Index</td>
|
||||
<td>Unloads a plugin</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_SETTINGS_CREATEPAGE</td>
|
||||
<td class=xl26>Caption</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Creates a new page in the Settings dialog</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_SETTINGS_REMOVEPAGE</td>
|
||||
<td class=xl26>Caption</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Removes a page from the Settings dialog</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_CLEAR</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Clears the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_ADD</td>
|
||||
<td class=xl26>Name\nCategory\nValue</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Adds a new item to the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_ADDCOMBO</td>
|
||||
<td class=xl26>Name\nCategory\nValue\nValues</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Adds a new combobox-item to the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_SETVALUE</td>
|
||||
<td class=xl26>Name\nValue</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the value of an item in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_SETNAME</td>
|
||||
<td class=xl26>Name\nNewName</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the name of an item in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_GETVALUE</td>
|
||||
<td class=xl26>Name</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Gets the value of an item in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_GETNAME</td>
|
||||
<td class=xl26>Value</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Gets the name of an item in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_COUNT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the number of items in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_BEGINUPDATE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>It's recommended to use this before you update the whole code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_ENDUPDATE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Use this when you've finished the update in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CODEINSPECTOR_DELETE</td>
|
||||
<td class=xl26>Name</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Deletes an item in the code-inspector</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_NEWFILE</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Adds a new file to the Pawn Projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_SAVEFILE</td>
|
||||
<td class=xl26>[Filename]</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Saves a Pawn file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_CLOSEFILE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Closes a file in the Pawn Projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_ISUNTITLED</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns 1 if Pawn document is untitled, otherwise 0</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_ACTIVATE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Activates the Pawn Projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_ACTIVATEDOC</td>
|
||||
<td class=xl26>Flags</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Activates a document in the Pawn Projects (Flags: r = Resore caret, s =
|
||||
Save last document)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_GETNOTES</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Gets the notes of a Pawn document as RTF</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_SETNOTES</td>
|
||||
<td class=xl26>Notes</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Sets the notes of a Pawn document</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_GETFILENAME</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns the filename of a Pawn document as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_SETFILENAME</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Sets the filename of a file (only in AMXX-Studio)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_FILECOUNT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the number of loaded Pawn scripts</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_PAWN_GETTEXT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns the text of a Pawn document as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_NEWFILE</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Creates a new C++ file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_SAVEFILE</td>
|
||||
<td class=xl26>[Filename]</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Saves a C++ file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_CLOSEFILE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Closes a C++ file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_ISUNTITLED</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns 1 if Pawn document is untitled, otherwise 0</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_ACTIVATE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Activates the C++ Projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_ACTIVATEDOC</td>
|
||||
<td class=xl26>Flags</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Activates a document in the C++ Projects (Flags: r = Resore caret, s =
|
||||
Save last document)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_ACTIVATEIDE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Enable (0/1)</td>
|
||||
<td x:str="Activate the C++ IDE ">Activate the C++ IDE<span
|
||||
style='mso-spacerun:yes'> </span></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_GETNOTES</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Gets the notes of a C++ document as RTF</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_SETNOTES</td>
|
||||
<td class=xl26>Notes</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Sets the notes of a C++ document</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_GETFILENAME</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns the filename of a C++ document as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_SETFILENAME</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Sets the filename of a file (only in AMXX-Studio)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_CPP_FILECOUNT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the number of loaded C(++) files</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_NEWFILE</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Creates a new file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_SAVEFILE</td>
|
||||
<td class=xl26>[Filename]</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Saves a file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_CLOSEFILE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Closes a file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_ISUNTITLED</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns 1 if the document is untitled, otherwise 0</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_ACTIVATE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Activates the Other Projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_ACTIVATEDOC</td>
|
||||
<td class=xl26>Flags</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Activates a document in the Other Projects (Flags: r = Resore caret, s =
|
||||
Save last document)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_GETNOTES</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Gets the notes of a document as RTF</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_SETNOTES</td>
|
||||
<td class=xl26>Notes</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Sets the notes of a document</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_GETFILENAME</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Returns the filename of a file</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_SETFILENAME</td>
|
||||
<td class=xl26>Filename</td>
|
||||
<td class=xl26>Index</td>
|
||||
<td>Sets the filename of a file (only in AMXX-Studio)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OTHER_FILECOUNT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the number of loaded textfiles</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_SHOW</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Shows the ouput list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_HIDE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Hides the output list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_ADD</td>
|
||||
<td class=xl26>Item</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Adds an item to the output list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_CLEAR</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Clears the output list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_DELETE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Item Index</td>
|
||||
<td>Deletes an item in the output list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_GETTEXT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the output list as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_GETITEM</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Item Index</td>
|
||||
<td>Returns an output item as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_OUTPUT_INDEXOF</td>
|
||||
<td class=xl26>Item</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the index of an item in the output list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_ACTIVE_DOCUMENT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the index of the active document</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_ACTIVE_PROJECTS</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the index of the active projects</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_SETTEXT</td>
|
||||
<td class=xl26>Text</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the text of the editor</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_GETTEXT</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the text of the editor as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDTIOR_SETCALLTIPS</td>
|
||||
<td class=xl26>Calltips</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the calltips</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_SHOWCALLTIP</td>
|
||||
<td class=xl26>Definition</td>
|
||||
<td class=xl26>Position</td>
|
||||
<td>Shows a calltip</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_SETAUTOCOMPLETE</td>
|
||||
<td class=xl26>List</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the autocomplete list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_SHOWAUTOCOMPLETE</td>
|
||||
<td class=xl26>List</td>
|
||||
<td class=xl26>Length Entered</td>
|
||||
<td>Shows the autocomplete list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_GETSELSTART</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the current selection start</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDTIOR_GETSELLENGTH</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the current selection length</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_EDITOR_SETSELSTART</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Selection Start</td>
|
||||
<td>Sets the selection start</td>
|
||||
</tr>
|
||||
<tr class=xl25 height=17 style='height:12.75pt'>
|
||||
<td height=17 class=xl29 style='height:12.75pt'>SCM_EDITOR_SETSELLENGH</td>
|
||||
<td class=xl28>-</td>
|
||||
<td class=xl28>Selection Length</td>
|
||||
<td class=xl29>Sets the selection length</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_REMOVE_MENUITEM</td>
|
||||
<td class=xl26>Caption</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Removes a menu item</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_REMOVE_IMAGE</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>Image Index</td>
|
||||
<td>Removes an image from the image list</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_SETTHEME</td>
|
||||
<td class=xl26>Theme</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Sets the current theme</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SCM_GETTHEME</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Returns the current theme as integer</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=4 style='height:12.75pt;mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 class=xl27 colspan=4 style='height:12.75pt;mso-ignore:colspan'>All
|
||||
functions should be called with SendStudioMsg(Message, Data, IntData). Each
|
||||
"normal" function returns 1 on succeed, othwise 0.</td>
|
||||
</tr>
|
||||
<![if supportMisalignedColumns]>
|
||||
<tr height=0 style='display:none'>
|
||||
<td width=255 style='width:191pt'></td>
|
||||
<td width=220 style='width:165pt'></td>
|
||||
<td width=141 style='width:106pt'></td>
|
||||
<td width=546 style='width:410pt'></td>
|
||||
</tr>
|
||||
<![endif]>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
379
editor/studio/plugins/Functions and Events-Dateien/sheet002.htm
Normal file
379
editor/studio/plugins/Functions and Events-Dateien/sheet002.htm
Normal file
|
@ -0,0 +1,379 @@
|
|||
<html xmlns:o="urn:schemas-microsoft-com:office:office"
|
||||
xmlns:x="urn:schemas-microsoft-com:office:excel"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
||||
<meta name=ProgId content=Excel.Sheet>
|
||||
<meta name=Generator content="Microsoft Excel 11">
|
||||
<link id=Main-File rel=Main-File href="../Functions%20and%20Events.htm">
|
||||
<link rel=File-List href=filelist.xml>
|
||||
<link rel=Edit-Time-Data href=editdata.mso>
|
||||
<link rel=Stylesheet href=stylesheet.css>
|
||||
<style>
|
||||
<!--table
|
||||
{mso-displayed-decimal-separator:"\,";
|
||||
mso-displayed-thousand-separator:"\.";}
|
||||
@page
|
||||
{margin:.98in .79in .98in .79in;
|
||||
mso-header-margin:.49in;
|
||||
mso-footer-margin:.49in;}
|
||||
-->
|
||||
</style>
|
||||
<![if !supportTabStrip]><script language="JavaScript">
|
||||
<!--
|
||||
function fnUpdateTabs()
|
||||
{
|
||||
if (parent.window.g_iIEVer>=4) {
|
||||
if (parent.document.readyState=="complete"
|
||||
&& parent.frames['frTabs'].document.readyState=="complete")
|
||||
parent.fnSetActiveSheet(1);
|
||||
else
|
||||
window.setTimeout("fnUpdateTabs();",150);
|
||||
}
|
||||
}
|
||||
|
||||
if (window.name!="frSheet")
|
||||
window.location.replace("../Functions%20and%20Events.htm");
|
||||
else
|
||||
fnUpdateTabs();
|
||||
//-->
|
||||
</script>
|
||||
<![endif]><!--[if gte mso 9]><xml>
|
||||
<x:WorksheetOptions>
|
||||
<x:DefaultColWidth>10</x:DefaultColWidth>
|
||||
<x:Print>
|
||||
<x:ValidPrinterInfo/>
|
||||
<x:PaperSizeIndex>9</x:PaperSizeIndex>
|
||||
<x:HorizontalResolution>600</x:HorizontalResolution>
|
||||
<x:VerticalResolution>600</x:VerticalResolution>
|
||||
</x:Print>
|
||||
<x:CodeName>Tabelle2</x:CodeName>
|
||||
<x:Panes>
|
||||
<x:Pane>
|
||||
<x:Number>3</x:Number>
|
||||
<x:ActiveRow>50</x:ActiveRow>
|
||||
<x:ActiveCol>2</x:ActiveCol>
|
||||
</x:Pane>
|
||||
</x:Panes>
|
||||
<x:ProtectContents>False</x:ProtectContents>
|
||||
<x:ProtectObjects>False</x:ProtectObjects>
|
||||
<x:ProtectScenarios>False</x:ProtectScenarios>
|
||||
</x:WorksheetOptions>
|
||||
<x:Sorting>
|
||||
<x:Sort>Event</x:Sort>
|
||||
</x:Sorting>
|
||||
</xml><![endif]-->
|
||||
</head>
|
||||
|
||||
<body link=blue vlink=purple>
|
||||
|
||||
<table x:str border=0 cellpadding=0 cellspacing=0 width=2687 style='border-collapse:
|
||||
collapse;table-layout:fixed;width:2016pt'>
|
||||
<col width=175 style='mso-width-source:userset;mso-width-alt:6400;width:131pt'>
|
||||
<col width=1186 style='mso-width-source:userset;mso-width-alt:43373;
|
||||
width:890pt'>
|
||||
<col width=870 style='mso-width-source:userset;mso-width-alt:31817;width:653pt'>
|
||||
<col width=456 style='mso-width-source:userset;mso-width-alt:16676;width:342pt'>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 class=xl24 width=175 style='height:12.75pt;width:131pt'>Events
|
||||
for AMXX-Studio</td>
|
||||
<td width=1186 style='width:890pt'></td>
|
||||
<td width=870 style='width:653pt'></td>
|
||||
<td width=456 style='width:342pt'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=4 style='height:12.75pt;mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 class=xl25 style='height:12.75pt'>Event</td>
|
||||
<td class=xl25>Parameters ( C )</td>
|
||||
<td class=xl25>Parameters ( Delphi )</td>
|
||||
<td class=xl25>Description</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>AppMessage</td>
|
||||
<td>HWND pHwnd; int pMessage; int pWParam; int pLParam; int pTime; POINT pPt</td>
|
||||
<td>pHwnd: HWND; pMessage: Integer; pWParam, pLParam: Integer; pTime:
|
||||
Integer; pPt: TPoint</td>
|
||||
<td>Called when a message has been sent to the application</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>AutoCompleteSelect</td>
|
||||
<td>CHAR *pText</td>
|
||||
<td>pText: PChar</td>
|
||||
<td>Called when an item in the autocomplete list has been selected</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>AutoCompleteShow</td>
|
||||
<td>CHAR *pList</td>
|
||||
<td>pList: PChar</td>
|
||||
<td>Called when the autocomplete list is being shown</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>CallTipClick</td>
|
||||
<td>int pPosition</td>
|
||||
<td>pPosition: Integer</td>
|
||||
<td>Called when a click on the calltip has been performed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>CallTipShow</td>
|
||||
<td>CHAR *pList</td>
|
||||
<td>pList: PChar</td>
|
||||
<td>Called when a calltip is being shown</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Click</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Called when a click on the editor has been performed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>CodeSnippetClick</td>
|
||||
<td>CHAR *pTitle; CHAR *pCategory; CHAR *pCode</td>
|
||||
<td>pTitle, pCategory: PChar; pCode: PChar</td>
|
||||
<td>Called when a click on a code-snippet has been performed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Compile</td>
|
||||
<td>int pCompileType; CHAR *Lang; CHAR *Filename</td>
|
||||
<td>pCompileType: Integer; Lang, Filename: PChar</td>
|
||||
<td>Called after a document has been compiled</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Compiling</td>
|
||||
<td>int pCompileType; CHAR *Lang; CHAR *Filename</td>
|
||||
<td>pCompileType: Integer; Lang, Filename: PChar</td>
|
||||
<td>Called right before a document is being compiled</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>CreatedNewFile</td>
|
||||
<td>byte Item</td>
|
||||
<td>Item: Byte</td>
|
||||
<td>Called after a document has been created (only called on a menu click)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>CreatingNewFile</td>
|
||||
<td>byte Item</td>
|
||||
<td>Item: Byte</td>
|
||||
<td>Called right before a document is being created (only called on a menu
|
||||
click)</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>CustomItemClick</td>
|
||||
<td>CHAR *pCaption</td>
|
||||
<td>pCaption: PChar</td>
|
||||
<td>Called when a click on a custom menu item has been performed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>DisplayingSearch</td>
|
||||
<td>CHAR *pExpression; CHAR *pSearchList; BOOL pCaseSensivity;BOOL
|
||||
pWholeWords; pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward</td>
|
||||
<td>pExpression, pSearchList: PChar; pCaseSensivity, pWholeWords,
|
||||
pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean</td>
|
||||
<td>Called when the Search-Dialog is being shown</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>DocChanged</td>
|
||||
<td>int pIndex; CHAR *pFilename; CHAR *pHighlighter; BOOL pRestoreCaret</td>
|
||||
<td>pIndex: Integer; pFilename: PChar; pHighlighter: PChar; pRestoreCaret:
|
||||
Boolean</td>
|
||||
<td>Called when the active document has changed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>DocChanging</td>
|
||||
<td>int pIndex; CHAR *pFilename; CHAR *pHighlighter; BOOL pRestoreCaret</td>
|
||||
<td>pIndex: Integer; pFilename: PChar; pHighlighter: PChar; pRestoreCaret:
|
||||
Boolean</td>
|
||||
<td>Called before the active document changes</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>KeyPress</td>
|
||||
<td>CHAR *pKey</td>
|
||||
<td>pKey: PChar</td>
|
||||
<td>Called when a key has been pressed in the editor</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Loaded</td>
|
||||
<td>CHAR *pFilename</td>
|
||||
<td>pFilename: PChar</td>
|
||||
<td>Called after a document has been opened</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Loading</td>
|
||||
<td>CHAR *pFilename</td>
|
||||
<td>pFilename: PChar</td>
|
||||
<td>Called when a new document is being loaded</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Modified</td>
|
||||
<td>CHAR *pModifiedText</td>
|
||||
<td>pModifiedText: PChar</td>
|
||||
<td>Called when the code has been changed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>OutputDoubleClick</td>
|
||||
<td>int pItemIndex</td>
|
||||
<td>pItemIndex: Integer</td>
|
||||
<td>Called when a double-click on the output list has been performed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>OutputPopup</td>
|
||||
<td>int pItemIndex</td>
|
||||
<td>pItemIndex: Integer</td>
|
||||
<td>Called when the popup-menu of the output-list is being shown</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>PluginLoad</td>
|
||||
<td>load_info *LoadInfo</td>
|
||||
<td>LoadInfo: PLoadInfo</td>
|
||||
<td>Called when the plugin is being loaded. Register menu items etc. here</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>PluginUnload</td>
|
||||
<td class=xl26>-</td>
|
||||
<td class=xl26>-</td>
|
||||
<td>Called when the plugin is being unloaded. Remove registered objects here.</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>ProjectsChanged</td>
|
||||
<td>int pOldIndex; int pNewIndex</td>
|
||||
<td>pOldIndex, pNewIndex: Integer</td>
|
||||
<td>Called after the active projects have been changed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>ProjectsChanging</td>
|
||||
<td>int pOldIndex; int pNewIndex</td>
|
||||
<td>pOldIndex, pNewIndex: Integer</td>
|
||||
<td>Called when the active projects change</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Saved</td>
|
||||
<td>CHAR *pFilename</td>
|
||||
<td>pFilename: PChar</td>
|
||||
<td>Called after a document has been saved</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Saving</td>
|
||||
<td>CHAR *pFilename</td>
|
||||
<td>pFilename: PChar</td>
|
||||
<td>Called when a document is being saved</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Search</td>
|
||||
<td>CHAR *pExpression; CHAR *pSearchList; BOOL pCaseSensivity;BOOL
|
||||
pWholeWords; pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward</td>
|
||||
<td>pExpression, pSearchList: PChar; pCaseSensivity, pWholeWords,
|
||||
pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean</td>
|
||||
<td>Called when an expression is being searched</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SearchAgain</td>
|
||||
<td>CHAR *pExpression; CHAR *pSearchList; BOOL pCaseSensivity;BOOL
|
||||
pWholeWords; pSearchFromCaret; BOOL pSelectedOnly; BOOL pRegEx; BOOL pForward</td>
|
||||
<td>pExpression, pSearchList: PChar; pCaseSensivity, pWholeWords,
|
||||
pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean</td>
|
||||
<td>Called when the user searches again an expression</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>SearchReplace</td>
|
||||
<td>CHAR *pExpression; CHAR *pReplace; CHAR pExpList; CHAR *pRepList; BOOL
|
||||
pCaseSensivity; BOOL pWholeWords; BOOL pSearchFromCaret; BOOL pSelectedOnly;
|
||||
BOOL pRegEx; BOOL pForward</td>
|
||||
<td>pExpression, pReplace, pExpList, pRepList: PChar; pCaseSensivity,
|
||||
pWholeWords, pSearchFromCaret, pSelectedOnly, pRegEx, pForward: Boolean</td>
|
||||
<td>Called when an expression is being replaced</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>Shortcut</td>
|
||||
<td>int pCharCode; int KeyData</td>
|
||||
<td>pCharCode, pKeyData: Integer</td>
|
||||
<td>Called when a shortcut is being pressed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>ShowHelp</td>
|
||||
<td>int pHelpType</td>
|
||||
<td>pHelpType: Integer</td>
|
||||
<td>Called when the help is being opened</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>ThemeChanged</td>
|
||||
<td>CHAR *pTheme</td>
|
||||
<td>pTheme: PChar</td>
|
||||
<td>Called after the current theme has changed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>UpdatedCodeExplorer</td>
|
||||
<td>CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects</td>
|
||||
<td>pLang, pFilename, pCurrProjects: PChar</td>
|
||||
<td>Called after the code-explorer has been updated</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>UpdatedCodeInspector</td>
|
||||
<td>CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects</td>
|
||||
<td>pLang, pFilename, pCurrProjects: PChar</td>
|
||||
<td>Called after the code-inspector has been updated</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>UpdateSel</td>
|
||||
<td>int pSelStart; int pSelLength; int pFirstVisibleLine</td>
|
||||
<td>pSelStart, pSelLength, pFirstVisibleLine: Integer</td>
|
||||
<td>Called when the selection has been changed</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>UpdatingCodeExplorer</td>
|
||||
<td>CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects</td>
|
||||
<td>pLang, pFilename, pCurrProjects: PChar</td>
|
||||
<td>Called when the code-explorer updates</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>UpdatingCodeInspector</td>
|
||||
<td>CHAR *pLang; CHAR *pFilename; CHAR *pCurrProjects</td>
|
||||
<td>pLang, pFilename, pCurrProjects: PChar</td>
|
||||
<td>Called when the code-inspector is being updated</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 style='height:12.75pt'>VisibleControlChange</td>
|
||||
<td>int pControl; BOOL pShow</td>
|
||||
<td>pControl: Integer; pShow: Boolean</td>
|
||||
<td>Called when a visible control has been hidden or shown</td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=4 style='height:12.75pt;mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=2 style='height:12.75pt;mso-ignore:colspan'>You should
|
||||
implement these events in this style:</td>
|
||||
<td colspan=2 style='mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=2 style='height:12.75pt;mso-ignore:colspan'>Delphi:
|
||||
function CustomItemClick(Caption: PChar): Integer; cdecl;</td>
|
||||
<td colspan=2 style='mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=2 style='height:12.75pt;mso-ignore:colspan'>C: EXPORT
|
||||
int CustomItemClick(CHAR *Caption)</td>
|
||||
<td colspan=2 style='mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=4 style='height:12.75pt;mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=17 style='height:12.75pt'>
|
||||
<td height=17 colspan=2 style='height:12.75pt;mso-ignore:colspan'>All events
|
||||
should return PLUGIN_CONTINUE, PLUGIN_HANDLED or PLUGIN_STOP</td>
|
||||
<td colspan=2 style='mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<![if supportMisalignedColumns]>
|
||||
<tr height=0 style='display:none'>
|
||||
<td width=175 style='width:131pt'></td>
|
||||
<td width=1186 style='width:890pt'></td>
|
||||
<td width=870 style='width:653pt'></td>
|
||||
<td width=456 style='width:342pt'></td>
|
||||
</tr>
|
||||
<![endif]>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,75 @@
|
|||
tr
|
||||
{mso-height-source:auto;}
|
||||
col
|
||||
{mso-width-source:auto;}
|
||||
br
|
||||
{mso-data-placement:same-cell;}
|
||||
.style0
|
||||
{mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
color:windowtext;
|
||||
font-size:10.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial;
|
||||
mso-generic-font-family:auto;
|
||||
mso-font-charset:0;
|
||||
border:none;
|
||||
mso-protection:locked visible;
|
||||
mso-style-name:Standard;
|
||||
mso-style-id:0;}
|
||||
td
|
||||
{mso-style-parent:style0;
|
||||
padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:windowtext;
|
||||
font-size:10.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial;
|
||||
mso-generic-font-family:auto;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
border:none;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
mso-protection:locked visible;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;}
|
||||
.xl24
|
||||
{mso-style-parent:style0;
|
||||
font-weight:700;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
text-align:center;}
|
||||
.xl25
|
||||
{mso-style-parent:style0;
|
||||
text-decoration:underline;
|
||||
text-underline-style:single;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
text-align:center;}
|
||||
.xl26
|
||||
{mso-style-parent:style0;
|
||||
text-align:center;}
|
||||
.xl27
|
||||
{mso-style-parent:style0;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;}
|
||||
.xl28
|
||||
{mso-style-parent:style0;
|
||||
text-align:center;}
|
||||
.xl29
|
||||
{mso-style-parent:style0;
|
||||
text-align:left;}
|
|
@ -0,0 +1,33 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
||||
<meta name=ProgId content=Excel.Sheet>
|
||||
<meta name=Generator content="Microsoft Excel 11">
|
||||
<link id=Main-File rel=Main-File href="../Functions%20and%20Events.htm">
|
||||
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
if (window.name!="frTabs")
|
||||
window.location.replace(document.all.item("Main-File").href);
|
||||
//-->
|
||||
</script>
|
||||
<style>
|
||||
<!--
|
||||
A {
|
||||
text-decoration:none;
|
||||
color:#000000;
|
||||
font-size:9pt;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=0 bgcolor="#808080">
|
||||
<table border=0 cellspacing=1>
|
||||
<tr>
|
||||
<td bgcolor="#FFFFFF" nowrap><b><small><small> <a href="sheet001.htm" target="frSheet"><font face="Arial" color="#000000">Functions</font></a> </small></small></b></td>
|
||||
<td bgcolor="#FFFFFF" nowrap><b><small><small> <a href="sheet002.htm" target="frSheet"><font face="Arial" color="#000000">Events</font></a> </small></small></b></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
344
editor/studio/plugins/Functions and Events.htm
Normal file
344
editor/studio/plugins/Functions and Events.htm
Normal file
|
@ -0,0 +1,344 @@
|
|||
<html xmlns:o="urn:schemas-microsoft-com:office:office"
|
||||
xmlns:x="urn:schemas-microsoft-com:office:excel"
|
||||
xmlns="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
<head>
|
||||
<meta name="Excel Workbook Frameset">
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
||||
<meta name=ProgId content=Excel.Sheet>
|
||||
<meta name=Generator content="Microsoft Excel 11">
|
||||
<link rel=File-List href="Functions%20and%20Events-Dateien/filelist.xml">
|
||||
<link rel=Edit-Time-Data href="Functions%20and%20Events-Dateien/editdata.mso">
|
||||
<link rel=OLE-Object-Data href="Functions%20and%20Events-Dateien/oledata.mso">
|
||||
<!--[if gte mso 9]><xml>
|
||||
<o:DocumentProperties>
|
||||
<o:Author>Basic-Master</o:Author>
|
||||
<o:LastAuthor>Basic-Master</o:LastAuthor>
|
||||
<o:Created>2005-09-03T23:06:02Z</o:Created>
|
||||
<o:LastSaved>2005-12-11T17:11:29Z</o:LastSaved>
|
||||
<o:Company>.</o:Company>
|
||||
<o:Version>11.6360</o:Version>
|
||||
</o:DocumentProperties>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:DownloadComponents/>
|
||||
<o:LocationOfComponents HRef="file:///E:\msowc.cab"/>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml><![endif]--><![if !supportTabStrip]>
|
||||
<link id="shLink" href="Functions%20and%20Events-Dateien/sheet001.htm">
|
||||
<link id="shLink" href="Functions%20and%20Events-Dateien/sheet002.htm">
|
||||
|
||||
<link id="shLink">
|
||||
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
var c_lTabs=2;
|
||||
|
||||
var c_rgszSh=new Array(c_lTabs);
|
||||
c_rgszSh[0] = "Functions";
|
||||
c_rgszSh[1] = "Events";
|
||||
|
||||
|
||||
|
||||
var c_rgszClr=new Array(8);
|
||||
c_rgszClr[0]="window";
|
||||
c_rgszClr[1]="buttonface";
|
||||
c_rgszClr[2]="windowframe";
|
||||
c_rgszClr[3]="windowtext";
|
||||
c_rgszClr[4]="threedlightshadow";
|
||||
c_rgszClr[5]="threedhighlight";
|
||||
c_rgszClr[6]="threeddarkshadow";
|
||||
c_rgszClr[7]="threedshadow";
|
||||
|
||||
var g_iShCur;
|
||||
var g_rglTabX=new Array(c_lTabs);
|
||||
|
||||
function fnGetIEVer()
|
||||
{
|
||||
var ua=window.navigator.userAgent
|
||||
var msie=ua.indexOf("MSIE")
|
||||
if (msie>0 && window.navigator.platform=="Win32")
|
||||
return parseInt(ua.substring(msie+5,ua.indexOf(".", msie)));
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
function fnBuildFrameset()
|
||||
{
|
||||
var szHTML="<frameset rows=\"*,18\" border=0 width=0 frameborder=no framespacing=0>"+
|
||||
"<frame src=\""+document.all.item("shLink")[0].href+"\" name=\"frSheet\" noresize>"+
|
||||
"<frameset cols=\"54,*\" border=0 width=0 frameborder=no framespacing=0>"+
|
||||
"<frame src=\"\" name=\"frScroll\" marginwidth=0 marginheight=0 scrolling=no>"+
|
||||
"<frame src=\"\" name=\"frTabs\" marginwidth=0 marginheight=0 scrolling=no>"+
|
||||
"</frameset></frameset><plaintext>";
|
||||
|
||||
with (document) {
|
||||
open("text/html","replace");
|
||||
write(szHTML);
|
||||
close();
|
||||
}
|
||||
|
||||
fnBuildTabStrip();
|
||||
}
|
||||
|
||||
function fnBuildTabStrip()
|
||||
{
|
||||
var szHTML=
|
||||
"<html><head><style>.clScroll {font:8pt Courier New;color:"+c_rgszClr[6]+";cursor:default;line-height:10pt;}"+
|
||||
".clScroll2 {font:10pt Arial;color:"+c_rgszClr[6]+";cursor:default;line-height:11pt;}</style></head>"+
|
||||
"<body onclick=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" onselectstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+" topmargin=0 leftmargin=0><table cellpadding=0 cellspacing=0 width=100%>"+
|
||||
"<tr><td colspan=6 height=1 bgcolor="+c_rgszClr[2]+"></td></tr>"+
|
||||
"<tr><td style=\"font:1pt\"> <td>"+
|
||||
"<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(0);\" onmouseout=\"parent.fnMouseOutScroll(0);\"><a>«</a></td>"+
|
||||
"<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(0);\" ondblclick=\"parent.fnScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(1);\" onmouseout=\"parent.fnMouseOutScroll(1);\"><a><</a></td>"+
|
||||
"<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(1);\" ondblclick=\"parent.fnScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(2);\" onmouseout=\"parent.fnMouseOutScroll(2);\"><a>></a></td>"+
|
||||
"<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(3);\" onmouseout=\"parent.fnMouseOutScroll(3);\"><a>»</a></td>"+
|
||||
"<td style=\"font:1pt\"> <td></tr></table></body></html>";
|
||||
|
||||
with (frames['frScroll'].document) {
|
||||
open("text/html","replace");
|
||||
write(szHTML);
|
||||
close();
|
||||
}
|
||||
|
||||
szHTML =
|
||||
"<html><head>"+
|
||||
"<style>A:link,A:visited,A:active {text-decoration:none;"+"color:"+c_rgszClr[3]+";}"+
|
||||
".clTab {cursor:hand;background:"+c_rgszClr[1]+";font:9pt Arial;padding-left:3px;padding-right:3px;text-align:center;}"+
|
||||
".clBorder {background:"+c_rgszClr[2]+";font:1pt;}"+
|
||||
"</style></head><body onload=\"parent.fnInit();\" onselectstart=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+
|
||||
" topmargin=0 leftmargin=0><table id=tbTabs cellpadding=0 cellspacing=0>";
|
||||
|
||||
var iCellCount=(c_lTabs+1)*2;
|
||||
|
||||
var i;
|
||||
for (i=0;i<iCellCount;i+=2)
|
||||
szHTML+="<col width=1><col>";
|
||||
|
||||
var iRow;
|
||||
for (iRow=0;iRow<6;iRow++) {
|
||||
|
||||
szHTML+="<tr>";
|
||||
|
||||
if (iRow==5)
|
||||
szHTML+="<td colspan="+iCellCount+"></td>";
|
||||
else {
|
||||
if (iRow==0) {
|
||||
for(i=0;i<iCellCount;i++)
|
||||
szHTML+="<td height=1 class=\"clBorder\"></td>";
|
||||
} else if (iRow==1) {
|
||||
for(i=0;i<c_lTabs;i++) {
|
||||
szHTML+="<td height=1 nowrap class=\"clBorder\"> </td>";
|
||||
szHTML+=
|
||||
"<td id=tdTab height=1 nowrap class=\"clTab\" onmouseover=\"parent.fnMouseOverTab("+i+");\" onmouseout=\"parent.fnMouseOutTab("+i+");\">"+
|
||||
"<a href=\""+document.all.item("shLink")[i].href+"\" target=\"frSheet\" id=aTab> "+c_rgszSh[i]+" </a></td>";
|
||||
}
|
||||
szHTML+="<td id=tdTab height=1 nowrap class=\"clBorder\"><a id=aTab> </a></td><td width=100%></td>";
|
||||
} else if (iRow==2) {
|
||||
for (i=0;i<c_lTabs;i++)
|
||||
szHTML+="<td height=1></td><td height=1 class=\"clBorder\"></td>";
|
||||
szHTML+="<td height=1></td><td height=1></td>";
|
||||
} else if (iRow==3) {
|
||||
for (i=0;i<iCellCount;i++)
|
||||
szHTML+="<td height=1></td>";
|
||||
} else if (iRow==4) {
|
||||
for (i=0;i<c_lTabs;i++)
|
||||
szHTML+="<td height=1 width=1></td><td height=1></td>";
|
||||
szHTML+="<td height=1 width=1></td><td></td>";
|
||||
}
|
||||
}
|
||||
szHTML+="</tr>";
|
||||
}
|
||||
|
||||
szHTML+="</table></body></html>";
|
||||
with (frames['frTabs'].document) {
|
||||
open("text/html","replace");
|
||||
charset=document.charset;
|
||||
write(szHTML);
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
function fnInit()
|
||||
{
|
||||
g_rglTabX[0]=0;
|
||||
var i;
|
||||
for (i=1;i<=c_lTabs;i++)
|
||||
with (frames['frTabs'].document.all.tbTabs.rows[1].cells[fnTabToCol(i-1)])
|
||||
g_rglTabX[i]=offsetLeft+offsetWidth-6;
|
||||
}
|
||||
|
||||
function fnTabToCol(iTab)
|
||||
{
|
||||
return 2*iTab+1;
|
||||
}
|
||||
|
||||
function fnNextTab(fDir)
|
||||
{
|
||||
var iNextTab=-1;
|
||||
var i;
|
||||
|
||||
with (frames['frTabs'].document.body) {
|
||||
if (fDir==0) {
|
||||
if (scrollLeft>0) {
|
||||
for (i=0;i<c_lTabs&&g_rglTabX[i]<scrollLeft;i++);
|
||||
if (i<c_lTabs)
|
||||
iNextTab=i-1;
|
||||
}
|
||||
} else {
|
||||
if (g_rglTabX[c_lTabs]+6>offsetWidth+scrollLeft) {
|
||||
for (i=0;i<c_lTabs&&g_rglTabX[i]<=scrollLeft;i++);
|
||||
if (i<c_lTabs)
|
||||
iNextTab=i;
|
||||
}
|
||||
}
|
||||
}
|
||||
return iNextTab;
|
||||
}
|
||||
|
||||
function fnScrollTabs(fDir)
|
||||
{
|
||||
var iNextTab=fnNextTab(fDir);
|
||||
|
||||
if (iNextTab>=0) {
|
||||
frames['frTabs'].scroll(g_rglTabX[iNextTab],0);
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
function fnFastScrollTabs(fDir)
|
||||
{
|
||||
if (c_lTabs>16)
|
||||
frames['frTabs'].scroll(g_rglTabX[fDir?c_lTabs-1:0],0);
|
||||
else
|
||||
if (fnScrollTabs(fDir)>0) window.setTimeout("fnFastScrollTabs("+fDir+");",5);
|
||||
}
|
||||
|
||||
function fnSetTabProps(iTab,fActive)
|
||||
{
|
||||
var iCol=fnTabToCol(iTab);
|
||||
var i;
|
||||
|
||||
if (iTab>=0) {
|
||||
with (frames['frTabs'].document.all) {
|
||||
with (tbTabs) {
|
||||
for (i=0;i<=4;i++) {
|
||||
with (rows[i]) {
|
||||
if (i==0)
|
||||
cells[iCol].style.background=c_rgszClr[fActive?0:2];
|
||||
else if (i>0 && i<4) {
|
||||
if (fActive) {
|
||||
cells[iCol-1].style.background=c_rgszClr[2];
|
||||
cells[iCol].style.background=c_rgszClr[0];
|
||||
cells[iCol+1].style.background=c_rgszClr[2];
|
||||
} else {
|
||||
if (i==1) {
|
||||
cells[iCol-1].style.background=c_rgszClr[2];
|
||||
cells[iCol].style.background=c_rgszClr[1];
|
||||
cells[iCol+1].style.background=c_rgszClr[2];
|
||||
} else {
|
||||
cells[iCol-1].style.background=c_rgszClr[4];
|
||||
cells[iCol].style.background=c_rgszClr[(i==2)?2:4];
|
||||
cells[iCol+1].style.background=c_rgszClr[4];
|
||||
}
|
||||
}
|
||||
} else
|
||||
cells[iCol].style.background=c_rgszClr[fActive?2:4];
|
||||
}
|
||||
}
|
||||
}
|
||||
with (aTab[iTab].style) {
|
||||
cursor=(fActive?"default":"hand");
|
||||
color=c_rgszClr[3];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function fnMouseOverScroll(iCtl)
|
||||
{
|
||||
frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[7];
|
||||
}
|
||||
|
||||
function fnMouseOutScroll(iCtl)
|
||||
{
|
||||
frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[6];
|
||||
}
|
||||
|
||||
function fnMouseOverTab(iTab)
|
||||
{
|
||||
if (iTab!=g_iShCur) {
|
||||
var iCol=fnTabToCol(iTab);
|
||||
with (frames['frTabs'].document.all) {
|
||||
tdTab[iTab].style.background=c_rgszClr[5];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function fnMouseOutTab(iTab)
|
||||
{
|
||||
if (iTab>=0) {
|
||||
var elFrom=frames['frTabs'].event.srcElement;
|
||||
var elTo=frames['frTabs'].event.toElement;
|
||||
|
||||
if ((!elTo) ||
|
||||
(elFrom.tagName==elTo.tagName) ||
|
||||
(elTo.tagName=="A" && elTo.parentElement!=elFrom) ||
|
||||
(elFrom.tagName=="A" && elFrom.parentElement!=elTo)) {
|
||||
|
||||
if (iTab!=g_iShCur) {
|
||||
with (frames['frTabs'].document.all) {
|
||||
tdTab[iTab].style.background=c_rgszClr[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function fnSetActiveSheet(iSh)
|
||||
{
|
||||
if (iSh!=g_iShCur) {
|
||||
fnSetTabProps(g_iShCur,false);
|
||||
fnSetTabProps(iSh,true);
|
||||
g_iShCur=iSh;
|
||||
}
|
||||
}
|
||||
|
||||
window.g_iIEVer=fnGetIEVer();
|
||||
if (window.g_iIEVer>=4)
|
||||
fnBuildFrameset();
|
||||
//-->
|
||||
</script>
|
||||
<![endif]><!--[if gte mso 9]><xml>
|
||||
<x:ExcelWorkbook>
|
||||
<x:ExcelWorksheets>
|
||||
<x:ExcelWorksheet>
|
||||
<x:Name>Functions</x:Name>
|
||||
<x:WorksheetSource HRef="Functions%20and%20Events-Dateien/sheet001.htm"/>
|
||||
</x:ExcelWorksheet>
|
||||
<x:ExcelWorksheet>
|
||||
<x:Name>Events</x:Name>
|
||||
<x:WorksheetSource HRef="Functions%20and%20Events-Dateien/sheet002.htm"/>
|
||||
</x:ExcelWorksheet>
|
||||
</x:ExcelWorksheets>
|
||||
<x:Stylesheet HRef="Functions%20and%20Events-Dateien/stylesheet.css"/>
|
||||
<x:WindowHeight>13170</x:WindowHeight>
|
||||
<x:WindowWidth>11580</x:WindowWidth>
|
||||
<x:WindowTopX>480</x:WindowTopX>
|
||||
<x:WindowTopY>15</x:WindowTopY>
|
||||
<x:ProtectStructure>False</x:ProtectStructure>
|
||||
<x:ProtectWindows>False</x:ProtectWindows>
|
||||
</x:ExcelWorkbook>
|
||||
</xml><![endif]-->
|
||||
</head>
|
||||
|
||||
<frameset rows="*,39" border=0 width=0 frameborder=no framespacing=0>
|
||||
<frame src="Functions%20and%20Events-Dateien/sheet001.htm" name="frSheet">
|
||||
<frame src="Functions%20and%20Events-Dateien/tabstrip.htm" name="frTabs" marginwidth=0 marginheight=0>
|
||||
<noframes>
|
||||
<body>
|
||||
<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht unterstützt.</p>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
BIN
editor/studio/plugins/Hello World - CPP.dll
Normal file
BIN
editor/studio/plugins/Hello World - CPP.dll
Normal file
Binary file not shown.
BIN
editor/studio/plugins/Hello World - Delphi.dll
Normal file
BIN
editor/studio/plugins/Hello World - Delphi.dll
Normal file
Binary file not shown.
113
editor/studio/plugins/Hello_World CPP/Hello_World.dsp
Normal file
113
editor/studio/plugins/Hello_World CPP/Hello_World.dsp
Normal file
|
@ -0,0 +1,113 @@
|
|||
# Microsoft Developer Studio Project File - Name="Hello_World" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=Hello_World - Win32 Debug
|
||||
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Hello_World.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Hello_World.mak" CFG="Hello_World - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Für die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "Hello_World - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "Hello_World - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "Hello_World - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HELLO_WORLD_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HELLO_WORLD_EXPORTS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x407 /d "NDEBUG"
|
||||
# ADD RSC /l 0x407 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "Hello_World - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HELLO_WORLD_EXPORTS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HELLO_WORLD_EXPORTS" /YX /FD /GZ /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x407 /d "_DEBUG"
|
||||
# ADD RSC /l 0x407 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "Hello_World - Win32 Release"
|
||||
# Name "Hello_World - Win32 Debug"
|
||||
# Begin Group "Quellcodedateien"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\sample.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header-Dateien"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\sample.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\studio_api.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Ressourcendateien"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
29
editor/studio/plugins/Hello_World CPP/Hello_World.dsw
Normal file
29
editor/studio/plugins/Hello_World CPP/Hello_World.dsw
Normal file
|
@ -0,0 +1,29 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "Hello_World"=".\Hello_World.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
BIN
editor/studio/plugins/Hello_World CPP/Hello_World.opt
Normal file
BIN
editor/studio/plugins/Hello_World CPP/Hello_World.opt
Normal file
Binary file not shown.
33
editor/studio/plugins/Hello_World CPP/Hello_World.plg
Normal file
33
editor/studio/plugins/Hello_World CPP/Hello_World.plg
Normal file
|
@ -0,0 +1,33 @@
|
|||
<html>
|
||||
<body>
|
||||
<pre>
|
||||
<h1>Erstellungsprotokoll</h1>
|
||||
<h3>
|
||||
--------------------Konfiguration: Hello_World - Win32 Release--------------------
|
||||
</h3>
|
||||
<h3>Befehlszeilen</h3>
|
||||
Erstellen der temporären Datei "C:\DOKUME~1\BASIC-~1\LOKALE~1\Temp\RSP9.tmp" mit Inhalten
|
||||
[
|
||||
/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HELLO_WORLD_EXPORTS" /Fp"Release/Hello_World.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c
|
||||
"C:\Dokumente und Einstellungen\Basic-Master\Eigene Dateien\Programmieren\AMXX-Studio\plugins\Hello_World CPP\sample.cpp"
|
||||
]
|
||||
Creating command line "cl.exe @"C:\DOKUME~1\BASIC-~1\LOKALE~1\Temp\RSP9.tmp""
|
||||
Erstellen der temporären Datei "C:\DOKUME~1\BASIC-~1\LOKALE~1\Temp\RSPA.tmp" mit Inhalten
|
||||
[
|
||||
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/Hello_World.pdb" /machine:I386 /out:"Release/Hello_World.dll" /implib:"Release/Hello_World.lib"
|
||||
".\Release\sample.obj"
|
||||
]
|
||||
Erstellen der Befehlzeile "link.exe @"C:\DOKUME~1\BASIC-~1\LOKALE~1\Temp\RSPA.tmp""
|
||||
<h3>Ausgabefenster</h3>
|
||||
Kompilierung läuft...
|
||||
sample.cpp
|
||||
Linker-Vorgang läuft...
|
||||
Bibliothek Release/Hello_World.lib und Objekt Release/Hello_World.exp wird erstellt
|
||||
|
||||
|
||||
|
||||
<h3>Ergebnisse</h3>
|
||||
Hello_World.dll - 0 Fehler, 0 Warnung(en)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
20
editor/studio/plugins/Hello_World CPP/Hello_World.sln
Normal file
20
editor/studio/plugins/Hello_World CPP/Hello_World.sln
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual C++ Express 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Hello_World", "Hello_World.vcproj", "{A6E5B144-7439-4F23-A679-B6E8B42B606E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A6E5B144-7439-4F23-A679-B6E8B42B606E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{A6E5B144-7439-4F23-A679-B6E8B42B606E}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{A6E5B144-7439-4F23-A679-B6E8B42B606E}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{A6E5B144-7439-4F23-A679-B6E8B42B606E}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
BIN
editor/studio/plugins/Hello_World CPP/Hello_World.suo
Normal file
BIN
editor/studio/plugins/Hello_World CPP/Hello_World.suo
Normal file
Binary file not shown.
255
editor/studio/plugins/Hello_World CPP/Hello_World.vcproj
Normal file
255
editor/studio/plugins/Hello_World CPP/Hello_World.vcproj
Normal file
|
@ -0,0 +1,255 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="Hello_World"
|
||||
ProjectGUID="{A6E5B144-7439-4F23-A679-B6E8B42B606E}"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\Release"
|
||||
IntermediateDirectory=".\Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="true"
|
||||
SuppressStartupBanner="true"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Release/Hello_World.tlb"
|
||||
HeaderFileName=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;HELLO_WORLD_EXPORTS"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="0"
|
||||
EnableFunctionLevelLinking="true"
|
||||
PrecompiledHeaderFile=".\Release/Hello_World.pch"
|
||||
AssemblerListingLocation=".\Release/"
|
||||
ObjectFile=".\Release/"
|
||||
ProgramDataBaseFileName=".\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1031"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib user32.lib"
|
||||
OutputFile=".\Release/Hello_World.dll"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="true"
|
||||
ProgramDatabaseFile=".\Release/Hello_World.pdb"
|
||||
ImportLibrary=".\Release/Hello_World.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
SuppressStartupBanner="true"
|
||||
OutputFile=".\Release/Hello_World.bsc"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\Debug"
|
||||
IntermediateDirectory=".\Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
MkTypLibCompatible="true"
|
||||
SuppressStartupBanner="true"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Debug/Hello_World.tlb"
|
||||
HeaderFileName=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;HELLO_WORLD_EXPORTS"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
PrecompiledHeaderFile=".\Debug/Hello_World.pch"
|
||||
AssemblerListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1031"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib"
|
||||
OutputFile=".\Debug/Hello_World.dll"
|
||||
LinkIncremental="2"
|
||||
SuppressStartupBanner="true"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile=".\Debug/Hello_World.pdb"
|
||||
ImportLibrary=".\Debug/Hello_World.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
SuppressStartupBanner="true"
|
||||
OutputFile=".\Debug/Hello_World.bsc"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Quellcodedateien"
|
||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
>
|
||||
<File
|
||||
RelativePath="sample.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions=""
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions=""
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header-Dateien"
|
||||
Filter="h;hpp;hxx;hm;inl"
|
||||
>
|
||||
<File
|
||||
RelativePath="sample.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="studio_api.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Ressourcendateien"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -0,0 +1,65 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="PC-BASIC"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="PC-BASIC"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
26
editor/studio/plugins/Hello_World CPP/sample.cpp
Normal file
26
editor/studio/plugins/Hello_World CPP/sample.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "sample.h"
|
||||
#include "studio_api.h"
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
EXPORT void PluginLoad(load_info *LoadInfo) {
|
||||
LoadInfo->sPluginName = "C(++) Example"; // Set PlugIn-name
|
||||
LoadInfo->sPluginDescription = "Simple example for creating plugins with C(++)"; // Set description
|
||||
SendStudioMsg(SCM_MENU_ADDITEM, "Tools->Hello World! [C++]", -1); // Register menu items
|
||||
/* [...] */
|
||||
}
|
||||
|
||||
EXPORT void PluginUnload() {
|
||||
SendStudioMsg(SCM_REMOVE_MENUITEM, "Hello World! [C++]", 0);
|
||||
}
|
||||
|
||||
EXPORT int CustomItemClick(CHAR *Caption) {
|
||||
if (strcmp(Caption, "Hello World! [C++]") == 0) { // If caption is equal set text and return PLUGIN_HANDLED
|
||||
SendStudioMsg(SCM_EDITOR_SETTEXT, "Hello World!\n\nThis is an example for C(++) plugins for AMXX-Studio.", 0);
|
||||
return PLUGIN_HANDLED;
|
||||
}
|
||||
else
|
||||
return PLUGIN_CONTINUE;
|
||||
}
|
9
editor/studio/plugins/Hello_World CPP/sample.h
Normal file
9
editor/studio/plugins/Hello_World CPP/sample.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#ifndef _MYPLUGIN_INCLUDE_H
|
||||
#define _MYPLUGIN_INCLUDE_H
|
||||
|
||||
#include "studio_api.h"
|
||||
|
||||
EXPORT void PluginLoad(load_info *pInfo);
|
||||
EXPORT void PluginUnload();
|
||||
|
||||
#endif //_MYPLUGIN_INCLUDE_H
|
195
editor/studio/plugins/Hello_World CPP/studio_api.h
Normal file
195
editor/studio/plugins/Hello_World CPP/studio_api.h
Normal file
|
@ -0,0 +1,195 @@
|
|||
/* studio_api.h by the AMX Mod X Dev Team */
|
||||
|
||||
#ifndef _INCLUDE_STUDIO_H
|
||||
#define _INCLUDE_STUDIO_H
|
||||
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <string.h>
|
||||
|
||||
// DLL Export
|
||||
#define EXPORT extern "C" __declspec(dllexport)
|
||||
// Return values for functions
|
||||
#define PLUGIN_CONTINUE 0
|
||||
#define PLUGIN_STOP 1
|
||||
#define PLUGIN_HANDLED 2
|
||||
// Important values for events
|
||||
#define COMP_DEFAULT 0
|
||||
#define COMP_STARTHL 1
|
||||
#define COMP_UPLOAD 2
|
||||
#define HELP_DEFAULT 0
|
||||
#define HELP_SEARCH 1
|
||||
#define HELP_FORUMS 2
|
||||
#define HELP_ABOUT 3
|
||||
#define CTRL_OUTPUT 0 // Output list
|
||||
#define CTRL_CODETOOLS_MAIN 1 // Code-Tools window
|
||||
#define CTRL_CODETOOLS_ITEM 2 // Code-Tools tab
|
||||
#define CTRL_NOTES 3 // Notes tab
|
||||
#define NEW_PAWN_PLUGIN 0
|
||||
#define NEW_PAWN_EMPTYPLUGIN 1
|
||||
#define NEW_PAWN_HEADER 2
|
||||
#define NEW_CPP_MODULE 3
|
||||
#define NEW_CPP_UNIT 4
|
||||
#define NEW_CPP_HEADER 5
|
||||
#define NEW_OTHER_TEXTFILE 6
|
||||
#define NEW_OTHER_HTML 7
|
||||
#define NEW_OTHER_SQL 8
|
||||
#define NEW_OTHER_XML 9
|
||||
|
||||
// Messages (see "Functions and Events.txt" for further information)
|
||||
#define SCM_SHOWPROGRESS WM_USER + 0x100 // Show progressbar
|
||||
#define SCM_HIDEPROGRESS WM_USER + 0x101 // Hide progressbar
|
||||
#define SCM_UPDATEPROGRESS WM_USER + 0x102 // Update progress
|
||||
#define SCM_LOADCODESNIPPETS WM_USER + 0x103 // Load Code-Snippets of a language
|
||||
#define SCM_CODESNIPPETCLICK WM_USER + 0x104 // Simulate click on a Code-Snippet
|
||||
#define SCM_MIRC_CMD WM_USER + 0x105 // Send a command to mIRC (like /msg #amxmodx hello)
|
||||
#define SCM_RELOADINI WM_USER + 0x106 // Reload configuration ini (Hint: This is not the whole configuration!)
|
||||
#define SCM_SELECTLANGUAGE WM_USER + 0x107 // Set the highlighter language of the active document
|
||||
#define SCM_LOADFILE WM_USER + 0x108 // Load a custom file
|
||||
#define SCM_CURRPROJECTS WM_USER + 0x109 // Returns the current projects index
|
||||
#define SCM_COMPILE WM_USER + 0x110 // Simulate click on the "Compile"-button
|
||||
#define SCM_COMPILE_UPLOAD WM_USER + 0x111 // Simulate click on the "Compile and upload"-button
|
||||
#define SCM_COMPILE_STARTHL WM_USER + 0x112 // Simulate click on the "Compile and Start HL"-button
|
||||
#define SCM_MENU_LOADIMAGE WM_USER + 0x113 // Load an image (bitmap), returns the image index
|
||||
#define SCM_MENU_ADDITEM WM_USER + 0x114 // Add a menu item
|
||||
#define SCM_MENU_ADDSUBITEM WM_USER + 0x115 // Add a submenu item
|
||||
#define SCM_MENU_FAKECLICK WM_USER + 0x116 // Fake a click on a custom menu item
|
||||
#define SCM_MENU_SHOWITEM WM_USER + 0x117 // Show an item
|
||||
#define SCM_MENU_HIDEITEM WM_USER + 0x118 // Hide an item
|
||||
#define SCM_PLUGIN_LOAD WM_USER + 0x119 // Load a plugin
|
||||
#define SCM_PLUGIN_UNLOAD WM_USER + 0x120 // Unload a plugin
|
||||
#define SCM_SETTINGS_CREATEPAGE WM_USER + 0x121 // Create a new settings-page, returns the new HWND
|
||||
#define SCM_SETTINGS_REMOVEPAGE WM_USER + 0x194 // Removes a page from the settings dialog
|
||||
#define SCM_CODEINSPECTOR_CLEAR WM_USER + 0x122 // Clear the code-inspector
|
||||
#define SCM_CODEINSPECTOR_ADD WM_USER + 0x123 // Add a field to the code-inspector
|
||||
#define SCM_CODEINSPECTOR_ADDCOMBO WM_USER + 0x124 // Add a combobox-item to the code-inspector
|
||||
#define SCM_CODEINSPECTOR_SETVALUE WM_USER + 0x125 // Set a field of the code-inspector
|
||||
#define SCM_CODEINSPECTOR_SETNAME WM_USER + 0x126 // Set the name of an item
|
||||
#define SCM_CODEINSPECTOR_GETVALUE WM_USER + 0x127 // Get the value of an item
|
||||
#define SCM_CODEINSPECTOR_GETNAME WM_USER + 0x128 // Get the name of an item
|
||||
#define SCM_CODEINSPECTOR_COUNT WM_USER + 0x129 // Gets the count
|
||||
#define SCM_CODEINSPECTOR_BEGINUPDATE WM_USER + 0x130 // Begin update
|
||||
#define SCM_CODEINSPECTOR_ENDUPDATE WM_USER + 0x131 // End update
|
||||
#define SCM_CODEINSPECTOR_DELETE WM_USER + 0x132 // Deletes a field in the code-inspector
|
||||
|
||||
#define SCM_PAWN_NEWFILE WM_USER + 0x133 // Create new Pawn-file
|
||||
#define SCM_PAWN_SAVEFILE WM_USER + 0x134 // Save a Pawn-file
|
||||
#define SCM_PAWN_CLOSEFILE WM_USER + 0x135 // Close a Pawn-file
|
||||
#define SCM_PAWN_ISUNTITLED WM_USER + 0x136 // Returns 1 if untitled, otherwise 0
|
||||
#define SCM_PAWN_ACTIVATE WM_USER + 0x137 // Activate the Pawn Projects
|
||||
#define SCM_PAWN_ACTIVATEDOC WM_USER + 0x138 // Activate a Pawn document
|
||||
#define SCM_PAWN_GETNOTES WM_USER + 0x139 // Gets the notes text (RTF)
|
||||
#define SCM_PAWN_SETNOTES WM_USER + 0x140 // Set the notes text (RTF)
|
||||
#define SCM_PAWN_GETFILENAME WM_USER + 0x141 // Gets the filename of a document
|
||||
#define SCM_PAWN_SETFILENAME WM_USER + 0x142 // Sets the filename
|
||||
#define SCM_PAWN_FILECOUNT WM_USER + 0x195 // Returns the number of loaded scripts
|
||||
#define SCM_PAWN_GETTEXT WM_USER + 0x143 // Gets the text of a document
|
||||
#define SCM_PAWN_SETTEXT WM_USER + 0x144 // Sets the text of a document
|
||||
|
||||
#define SCM_CPP_NEWFILE WM_USER + 0x145 // Create new Pawn-file
|
||||
#define SCM_CPP_SAVEFILE WM_USER + 0x146 // Save a Pawn-file
|
||||
#define SCM_CPP_CLOSEFILE WM_USER + 0x147 // Close a Pawn-file
|
||||
#define SCM_CPP_ISUNTITLED WM_USER + 0x148 // Returns 1 if untitled, otherwise 0
|
||||
#define SCM_CPP_ACTIVATE WM_USER + 0x149 // Activate the Pawn Projects
|
||||
#define SCM_CPP_ACTIVATEDOC WM_USER + 0x150 // Activate a Pawn document
|
||||
#define SCM_CPP_ACTIVATEIDE WM_USER + 0x151 // Activate the C++ IDE
|
||||
#define SCM_CPP_GETNOTES WM_USER + 0x152 // Gets the notes text (RTF)
|
||||
#define SCM_CPP_SETNOTES WM_USER + 0x153 // Set the notes text (RTF)
|
||||
#define SCM_CPP_GETFILENAME WM_USER + 0x154 // Gets the filename of a document
|
||||
#define SCM_CPP_SETFILENAME WM_USER + 0x155 // Sets the filename
|
||||
#define SCM_CPP_FILECOUNT WM_USER + 0x196 // Returns the number of loaded C(++) files
|
||||
#define SCM_CPP_GETTEXT WM_USER + 0x156 // Gets the text of a document
|
||||
#define SCM_CPP_SETTEXT WM_USER + 0x157 // Sets the text of a document
|
||||
|
||||
#define SCM_OTHER_NEWFILE WM_USER + 0x158 // Create a new file
|
||||
#define SCM_OTHER_SAVEFILE WM_USER + 0x159 // Save a file
|
||||
#define SCM_OTHER_CLOSEFILE WM_USER + 0x160 // Close a file
|
||||
#define SCM_OTHER_ISUNTITLED WM_USER + 0x161 // Returns 1 if untitled, otherwise 0
|
||||
#define SCM_OTHER_ACTIVATE WM_USER + 0x162 // Activate a file
|
||||
#define SCM_OTHER_ACTIVATEDOC WM_USER + 0x163 // Activate a document
|
||||
#define SCM_OTHER_GETNOTES WM_USER + 0x164 // Gets the notes text (RTF)
|
||||
#define SCM_OTHER_SETNOTES WM_USER + 0x165 // Set the notes text (RTF)
|
||||
#define SCM_OTHER_GETFILENAME WM_USER + 0x166 // Gets the filename of a document
|
||||
#define SCM_OTHER_SETFILENAME WM_USER + 0x167 // Sets the filename
|
||||
#define SCM_OTHER_FILECOUNT WM_USER + 0x197 // Returns the number of loaded files
|
||||
#define SCM_OTHER_GETTEXT WM_USER + 0x168 // Gets the text of a document
|
||||
#define SCM_OTHER_SETTEXT WM_USER + 0x169 // Sets the text of a document
|
||||
|
||||
#define SCM_OUTPUT_SHOW WM_USER + 0x170 // Show the output
|
||||
#define SCM_OUTPUT_HIDE WM_USER + 0x171 // Hide the output
|
||||
#define SCM_OUTPUT_ADD WM_USER + 0x172 // Add an item to the output
|
||||
#define SCM_OUTPUT_CLEAR WM_USER + 0x173 // Clear the output
|
||||
#define SCM_OUTPUT_DELETE WM_USER + 0x174 // Delete an item in the output
|
||||
#define SCM_OUTPUT_GETTEXT WM_USER + 0x175 // Get the whole output
|
||||
#define SCM_OUTPUT_GETITEM WM_USER + 0x176 // Get the text of a specific item
|
||||
#define SCM_OUTPUT_INDEXOF WM_USER + 0x177 // Gets the item index of an item, returns -1 if not found
|
||||
#define SCM_ACTIVE_DOCUMENT WM_USER + 0x178 // Returns the index of the active document
|
||||
#define SCM_ACTIVE_PROJECTS WM_USER + 0x179 // Returns the index of the active projects
|
||||
#define SCM_EDITOR_SETTEXT WM_USER + 0x180 // Sets the editor's text
|
||||
#define SCM_EDITOR_GETTEXT WM_USER + 0x181 // Gets the editor's text
|
||||
#define SCM_EDTIOR_SETCALLTIPS WM_USER + 0x182 // Sets the calltips
|
||||
#define SCM_EDITOR_SHOWCALLTIP WM_USER + 0x183 // Shows the calltip
|
||||
#define SCM_EDITOR_SETAUTOCOMPLETE WM_USER + 0x184 // Sets the autocomplete list
|
||||
#define SCM_EDITOR_SHOWAUTOCOMPLETE WM_USER + 0x185 // Show the autocomplete list
|
||||
#define SCM_EDITOR_GETSELSTART WM_USER + 0x186 // Gets the sel start
|
||||
#define SCM_EDITOR_GETSELLENGTH WM_USER + 0x187 // Gets the sel length
|
||||
#define SCM_EDITOR_SETSELSTART WM_USER + 0x188 // Set sel start
|
||||
#define SCM_EDITOR_SETSELLENGH WM_USER + 0x189 // Set sel length
|
||||
|
||||
#define SCM_REMOVE_MENUITEM WM_USER + 0x190 // Remove an item from the menu
|
||||
#define SCM_REMOVE_IMAGE WM_USER + 0x191 // Remove an image from the image list
|
||||
#define SCM_SETTHEME WM_USER + 0x192 // Set theme
|
||||
#define SCM_GETTHEME WM_USER + 0x193 // Get theme
|
||||
|
||||
|
||||
struct load_info {
|
||||
/* Plugin Values */
|
||||
const CHAR *sPluginName;
|
||||
const CHAR *sPluginDescription;
|
||||
/* Form Handles */
|
||||
HWND *hModuleHandle;
|
||||
HWND *hAllFilesForm;
|
||||
HWND *hAutoIndent;
|
||||
HWND *hClose;
|
||||
HWND *hConnGen;
|
||||
HWND *hGoToLine;
|
||||
HWND *hHTMLPreview;
|
||||
HWND *hHudMsgGenerator;
|
||||
HWND *hInfo;
|
||||
HWND *hIRCPaster;
|
||||
HWND *hMainForm;
|
||||
HWND *hMenuGenerator;
|
||||
HWND *hMOTDGen;
|
||||
HWND *hPluginsIniEditor;
|
||||
HWND *hReplace;
|
||||
HWND *hSearch;
|
||||
HWND *hSelectColor;
|
||||
HWND *hSettings;
|
||||
HWND *hSocketsTerminal;
|
||||
HWND *hParamEdit;
|
||||
/* Important Control Handles */
|
||||
HWND *hOutput;
|
||||
HWND *hCodeExplorer;
|
||||
HWND *hCodeInspector;
|
||||
HWND *hNotes;
|
||||
/* Other */
|
||||
void *pApplication;
|
||||
};
|
||||
|
||||
int SendStudioMsg(int Message, const CHAR *Data, int IntData) {
|
||||
HWND StudioHandle;
|
||||
StudioHandle = FindWindow("TfrmMain", "AMXX-Studio");
|
||||
if (StudioHandle != 0) {
|
||||
COPYDATASTRUCT sMessage;
|
||||
sMessage.dwData = IntData;
|
||||
sMessage.cbData = strlen(Data) + 1;
|
||||
sMessage.lpData = (void *) Data;
|
||||
return SendMessage(StudioHandle, WM_COPYDATA, (WPARAM)Message, (LPARAM)&sMessage);
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
||||
// If you receive strings as integer, simply cast them with (CHAR *) SendStudioMsg(...);
|
||||
|
||||
#endif
|
38
editor/studio/plugins/Hello_World Delphi/HelloWorld.cfg
Normal file
38
editor/studio/plugins/Hello_World Delphi/HelloWorld.cfg
Normal file
|
@ -0,0 +1,38 @@
|
|||
-$A8
|
||||
-$B-
|
||||
-$C+
|
||||
-$D+
|
||||
-$E-
|
||||
-$F-
|
||||
-$G+
|
||||
-$H+
|
||||
-$I+
|
||||
-$J-
|
||||
-$K-
|
||||
-$L+
|
||||
-$M-
|
||||
-$N+
|
||||
-$O+
|
||||
-$P+
|
||||
-$Q-
|
||||
-$R-
|
||||
-$S-
|
||||
-$T-
|
||||
-$U-
|
||||
-$V+
|
||||
-$W-
|
||||
-$X+
|
||||
-$YD
|
||||
-$Z1
|
||||
-cg
|
||||
-AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;
|
||||
-H+
|
||||
-W+
|
||||
-M
|
||||
-$M16384,1048576
|
||||
-K$00400000
|
||||
-LE"c:\programme\borland\delphi7\Projects\Bpl"
|
||||
-LN"c:\programme\borland\delphi7\Projects\Bpl"
|
||||
-w-UNSAFE_TYPE
|
||||
-w-UNSAFE_CODE
|
||||
-w-UNSAFE_CAST
|
49
editor/studio/plugins/Hello_World Delphi/HelloWorld.dpr
Normal file
49
editor/studio/plugins/Hello_World Delphi/HelloWorld.dpr
Normal file
|
@ -0,0 +1,49 @@
|
|||
library HelloWorld;
|
||||
|
||||
|
||||
uses
|
||||
SysUtils,
|
||||
Classes,
|
||||
Windows,
|
||||
Messages,
|
||||
studioapi;
|
||||
|
||||
{$R *.res}
|
||||
|
||||
{ Commands here }
|
||||
|
||||
procedure PluginLoad(LoadInfo: PLoadInfo); cdecl;
|
||||
begin
|
||||
// Set Plugin infos after load
|
||||
LoadInfo.sPluginName := 'Hello World';
|
||||
LoadInfo.sPluginDescription := 'Simple Hello World example (Delphi).';
|
||||
// Create menu item in Tools with the caption "Hello World! [Delphi]" and with ImageIndex -1 (no image)
|
||||
SendStudioMsg(SCM_MENU_ADDITEM, 'Tools->Hello World! [Delphi]', -1);
|
||||
end;
|
||||
|
||||
procedure PluginUnload; cdecl;
|
||||
begin
|
||||
// Remove menu stuff etc.
|
||||
SendStudioMsg(SCM_REMOVE_MENUITEM, 'Hello World! [Delphi]', -1);
|
||||
end;
|
||||
|
||||
function CustomItemClick(pCaption: PChar): Integer; cdecl;
|
||||
begin
|
||||
// Handle custom click
|
||||
if pCaption = 'Hello World! [Delphi]' then begin
|
||||
SendStudioMsg(SCM_EDITOR_SETTEXT, 'Hello World!' + #13 + #13 + 'This is a simple example for creating plugins for AMXX-Studio in Delphi.', 0);
|
||||
Result := PLUGIN_HANDLED;
|
||||
end
|
||||
else
|
||||
Result := PLUGIN_CONTINUE;
|
||||
end;
|
||||
|
||||
exports // Export all DLL functions
|
||||
PluginLoad,
|
||||
PluginUnload,
|
||||
CustomItemClick;
|
||||
|
||||
begin
|
||||
|
||||
end.
|
||||
|
BIN
editor/studio/plugins/Hello_World Delphi/HelloWorld.res
Normal file
BIN
editor/studio/plugins/Hello_World Delphi/HelloWorld.res
Normal file
Binary file not shown.
194
editor/studio/plugins/Hello_World Delphi/studioapi.pas
Normal file
194
editor/studio/plugins/Hello_World Delphi/studioapi.pas
Normal file
|
@ -0,0 +1,194 @@
|
|||
unit studioapi;
|
||||
|
||||
interface
|
||||
|
||||
uses SysUtils, Windows, Messages;
|
||||
|
||||
type TLoadInfo = record
|
||||
{ Plugin values }
|
||||
sPluginName: PChar;
|
||||
sPluginDescription: PChar;
|
||||
{ Form Handles }
|
||||
hAllFilesForm: PHandle;
|
||||
hAutoIndent: PHandle;
|
||||
hClose: PHandle;
|
||||
hConnGen: PHandle;
|
||||
hGoToLine: PHandle;
|
||||
hHTMLPreview: PHandle;
|
||||
hHudMsgGenerator: PHandle;
|
||||
hInfo: PHandle;
|
||||
hIRCPaster: PHandle;
|
||||
hMainForm: PHandle;
|
||||
hMenuGenerator: PHandle;
|
||||
hMOTDGen: PHandle;
|
||||
hPluginsIniEditor: PHandle;
|
||||
hReplace: PHandle;
|
||||
hSearch: PHandle;
|
||||
hSelectColor: PHandle;
|
||||
hSettings: PHandle;
|
||||
hSocketsTerminal: PHandle;
|
||||
{ Important Control Handles }
|
||||
hOutput: PHandle;
|
||||
hCodeExplorer: PHandle;
|
||||
hCodeInspector: PHandle; // even if it won't be useful
|
||||
hNotes: PHandle;
|
||||
{ Other }
|
||||
pApplication: Pointer; // this is only useful for Delphi developers
|
||||
end;
|
||||
|
||||
type PLoadInfo = ^TLoadInfo;
|
||||
TLoadPlugin = procedure (LoadInfo: PLoadInfo); cdecl;
|
||||
TUnloadPlugin = procedure; cdecl;
|
||||
|
||||
const { Return values for dlls }
|
||||
PLUGIN_CONTINUE = 0; // continue...
|
||||
PLUGIN_STOP = 1; // stop calling funcs and don't handle the command
|
||||
PLUGIN_HANDLED = 2; // don't handle the command
|
||||
{ Compile values }
|
||||
COMP_DEFAULT = 0;
|
||||
COMP_STARTHL = 1;
|
||||
COMP_UPLOAD = 2;
|
||||
{ Help values }
|
||||
HELP_DEFAULT = 0;
|
||||
HELP_SEARCH = 1;
|
||||
HELP_FORUMS = 2;
|
||||
HELP_ABOUT = 3;
|
||||
{ Controls for visible state }
|
||||
CTRL_OUTPUT = 0; // Output list
|
||||
CTRL_CODETOOLS_MAIN = 1; // Code-Tools window
|
||||
CTRL_CODETOOLS_ITEM = 2; // Code-Tools tab
|
||||
CTRL_NOTES = 3; // Notes tab
|
||||
{ Languages }
|
||||
NEW_PAWN_PLUGIN = 0;
|
||||
NEW_PAWN_EMPTYPLUGIN = 1;
|
||||
NEW_PAWN_HEADER = 2;
|
||||
NEW_CPP_MODULE = 3;
|
||||
NEW_CPP_UNIT = 4;
|
||||
NEW_CPP_HEADER = 5;
|
||||
NEW_OTHER_TEXTFILE = 6;
|
||||
NEW_OTHER_HTML = 7;
|
||||
NEW_OTHER_SQL = 8;
|
||||
NEW_OTHER_XML = 9;
|
||||
|
||||
const SCM_SHOWPROGRESS = WM_USER + $100;
|
||||
SCM_HIDEPROGRESS = WM_USER + $101;
|
||||
SCM_UPDATEPROGRESS = WM_USER + $102;
|
||||
SCM_LOADCODESNIPPETS = WM_USER + $103;
|
||||
SCM_CODESNIPPETCLICK = WM_USER + $104;
|
||||
SCM_MIRC_CMD = WM_USER + $105;
|
||||
SCM_RELOADINI = WM_USER + $106;
|
||||
SCM_SELECTLANGUAGE = WM_USER + $107;
|
||||
SCM_LOADFILE = WM_USER + $108;
|
||||
SCM_CURRPROJECTS = WM_USER + $109;
|
||||
SCM_COMPILE = WM_USER + $110;
|
||||
SCM_COMPILE_UPLOAD = WM_USER + $111;
|
||||
SCM_COMPILE_STARTHL = WM_USER + $112;
|
||||
SCM_MENU_LOADIMAGE = WM_USER + $113;
|
||||
SCM_MENU_ADDITEM = WM_USER + $114;
|
||||
SCM_MENU_ADDSUBITEM = WM_USER + $115;
|
||||
SCM_MENU_FAKECLICK = WM_USER + $116;
|
||||
SCM_MENU_SHOWITEM = WM_USER + $117;
|
||||
SCM_MENU_HIDEITEM = WM_USER + $118;
|
||||
SCM_PLUGIN_LOAD = WM_USER + $119;
|
||||
SCM_PLUGIN_UNLOAD = WM_USER + $120;
|
||||
SCM_SETTINGS_CREATEPAGE = WM_USER + $121;
|
||||
SCM_CODEINSPECTOR_CLEAR = WM_USER + $122;
|
||||
SCM_CODEINSPECTOR_ADD = WM_USER + $123;
|
||||
SCM_CODEINSPECTOR_ADDCOMBO = WM_USER + $124;
|
||||
SCM_CODEINSPECTOR_SETVALUE = WM_USER + $125;
|
||||
SCM_CODEINSPECTOR_SETNAME = WM_USER + $126;
|
||||
SCM_CODEINSPECTOR_GETVALUE = WM_USER + $127;
|
||||
SCM_CODEINSPECTOR_GETNAME = WM_USER + $128;
|
||||
SCM_CODEINSPECTOR_COUNT = WM_USER + $129;
|
||||
SCM_CODEINSPECTOR_BEGINUPDATE = WM_USER + $130;
|
||||
SCM_CODEINSPECTOR_ENDUPDATE = WM_USER + $131;
|
||||
SCM_CODEINSPECTOR_DELETE = WM_USER + $132;
|
||||
|
||||
SCM_PAWN_NEWFILE = WM_USER + $133;
|
||||
SCM_PAWN_SAVEFILE = WM_USER + $134;
|
||||
SCM_PAWN_CLOSEFILE = WM_USER + $135;
|
||||
SCM_PAWN_ISUNTITLED = WM_USER + $136;
|
||||
SCM_PAWN_ACTIVATE = WM_USER + $137;
|
||||
SCM_PAWN_ACTIVATEDOC = WM_USER + $138;
|
||||
SCM_PAWN_GETNOTES = WM_USER + $139;
|
||||
SCM_PAWN_SETNOTES = WM_USER + $140;
|
||||
SCM_PAWN_GETFILENAME = WM_USER + $141;
|
||||
SCM_PAWN_SETFILENAME = WM_USER + $142;
|
||||
SCM_PAWN_GETTEXT = WM_USER + $143;
|
||||
SCM_PAWN_SETTEXT = WM_USER + $144;
|
||||
|
||||
SCM_CPP_NEWFILE = WM_USER + $145;
|
||||
SCM_CPP_SAVEFILE = WM_USER + $146;
|
||||
SCM_CPP_CLOSEFILE = WM_USER + $147;
|
||||
SCM_CPP_ISUNTITLED = WM_USER + $148;
|
||||
SCM_CPP_ACTIVATE = WM_USER + $149;
|
||||
SCM_CPP_ACTIVATEDOC = WM_USER + $150;
|
||||
SCM_CPP_ACTIVATEIDE = WM_USER + $151;
|
||||
SCM_CPP_GETNOTES = WM_USER + $152;
|
||||
SCM_CPP_SETNOTES = WM_USER + $153;
|
||||
SCM_CPP_GETFILENAME = WM_USER + $154;
|
||||
SCM_CPP_SETFILENAME = WM_USER + $155;
|
||||
SCM_CPP_GETTEXT = WM_USER + $156;
|
||||
SCM_CPP_SETTEXT = WM_USER + $157;
|
||||
|
||||
SCM_OTHER_NEWFILE = WM_USER + $158;
|
||||
SCM_OTHER_SAVEFILE = WM_USER + $159;
|
||||
SCM_OTHER_CLOSEFILE = WM_USER + $160;
|
||||
SCM_OTHER_ISUNTITLED = WM_USER + $161;
|
||||
SCM_OTHER_ACTIVATE = WM_USER + $162;
|
||||
SCM_OTHER_ACTIVATEDOC = WM_USER + $163;
|
||||
SCM_OTHER_GETNOTES = WM_USER + $164;
|
||||
SCM_OTHER_SETNOTES = WM_USER + $165;
|
||||
SCM_OTHER_GETFILENAME = WM_USER + $166;
|
||||
SCM_OTHER_SETFILENAME = WM_USER + $167;
|
||||
SCM_OTHER_GETTEXT = WM_USER + $168;
|
||||
SCM_OTHER_SETTEXT = WM_USER + $169;
|
||||
|
||||
SCM_OUTPUT_SHOW = WM_USER + $170;
|
||||
SCM_OUTPUT_HIDE = WM_USER + $171;
|
||||
SCM_OUTPUT_ADD = WM_USER + $172;
|
||||
SCM_OUTPUT_CLEAR = WM_USER + $173;
|
||||
SCM_OUTPUT_DELETE = WM_USER + $174;
|
||||
SCM_OUTPUT_GETTEXT = WM_USER + $175;
|
||||
SCM_OUTPUT_GETITEM = WM_USER + $176;
|
||||
SCM_OUTPUT_INDEXOF = WM_USER + $177;
|
||||
SCM_ACTIVE_DOCUMENT = WM_USER + $178;
|
||||
SCM_ACTIVE_PROJECTS = WM_USER + $179;
|
||||
SCM_EDITOR_SETTEXT = WM_USER + $180;
|
||||
SCM_EDITOR_GETTEXT = WM_USER + $181;
|
||||
SCM_EDTIOR_SETCALLTIPS = WM_USER + $182;
|
||||
SCM_EDITOR_SHOWCALLTIP = WM_USER + $183;
|
||||
SCM_EDITOR_SETAUTOCOMPLETE = WM_USER + $184;
|
||||
SCM_EDITOR_SHOWAUTOCOMPLETE = WM_USER + $185;
|
||||
SCM_EDITOR_GETSELSTART = WM_USER + $186;
|
||||
SCM_EDITOR_GETSELLENGTH = WM_USER + $187;
|
||||
SCM_EDITOR_SETSELSTART = WM_USER + $188;
|
||||
SCM_EDITOR_SETSELLENGH = WM_USER + $189;
|
||||
|
||||
SCM_REMOVE_MENUITEM = WM_USER + $190;
|
||||
SCM_REMOVE_IMAGE = WM_USER + $191;
|
||||
SCM_SETTHEME = WM_USER + $192;
|
||||
SCM_GETTHEME = WM_USER + $193;
|
||||
|
||||
function SendStudioMsg(eMessage: Integer; eData: String; eIntData: Integer): Integer;
|
||||
|
||||
implementation
|
||||
|
||||
function SendStudioMsg(eMessage: Integer; eData: String; eIntData: Integer): Integer;
|
||||
var eStudioHandle: HWND;
|
||||
eCopyDataStruct: TCopyDataStruct;
|
||||
begin
|
||||
with eCopyDataStruct do begin
|
||||
dwData := eIntData;
|
||||
cbData := Length(eData) + 1;
|
||||
lpData := PChar(eData);
|
||||
end;
|
||||
|
||||
eStudioHandle := FindWindow('TfrmMain', 'AMXX-Studio');
|
||||
if eStudioHandle <> 0 then
|
||||
Result := SendMessage(eStudioHandle, WM_COPYDATA, eMessage, LongInt(@eCopyDataStruct))
|
||||
else
|
||||
Result := 0;
|
||||
end;
|
||||
|
||||
end.
|
Loading…
Reference in New Issue
Block a user