Posted By: Starina Undocument API function - 11/10/16 02:33 PM
Hi.

Tell me please what do undocument functions:

1. ide_showtoolbuttonmenu.
2. ide_getsyntaxanalizer.


Posted By: Marco Kalter Re: Undocument API function - 11/11/16 02:51 PM
procedure IDE_ShowToolButtonMenu(ID, Index: Integer; Name, Items: PAnsiChar); cdecl;

Will Show a PopupMenu with items as defined in Items as:

n1=item1<crlf>n2=Item2

n is the index for the menu, item is the description.


function IDE_GetSyntaxAnalyzer(Name: PAnsiChar): PAnsiChar; cdecl;

Returns the definition of the SyntaxAnalyzer with the given name. It's for internal use only.
Posted By: Starina Re: Undocument API function - 01/07/23 05:54 PM
what functions are hidden behind indices 155, 170, 171, 172, 178, 179, 290, 291?
Posted By: lost Re: Undocument API function - 01/18/23 07:28 PM
I got functions' list, coming into plugin through RegisterCallback() in v.14.0.6.1988.
Unknown functions for me are: 155, 170, 171, 172, 177, 290, 291
178 is
Code
int  (*IDE_GetAppHandleEx)() = (int(*)()) 178;

178 : @IDE_GetAppHandleEx := Addr;
it is described in \PlugInDoc\Interface\PlugInIntf.pas

155 seems to be IDE_SetSelectedText(char*) don't know what it returns;
170 is IDE_MainApplication() without parameters, returns pointer to some heavy struct;
171 is IDE_MainForm() - no params, return - ?;
172 IDE_Mouse() - seems to have one 32-bit parameter;
177 IDE_GetSyntaxAnalyzer() - 1 out parameter and some return value;
290 unnamed function, returning some flag, based on some internal variable;
291 much more complex unnamed function with 1 out param.
Posted By: lost Re: Undocument API function - 01/18/23 07:44 PM
summary
Code
void (*IDE_SetSelectedText)(char *p) = (void(*)(char*)) 155;
char*(*IDE_MainApplication)() = (char*(*)()) 170;
int  (*IDE_MainForm)() = (int(*)()) 171;
int  (*IDE_Mouse)(int) = (int(*)(int)) 172;
char*(*IDE_GetSyntaxAnalyzer)(char *Name) = (char*(*)(char*)) 177;
int  (*IDE_290)() = (int(*)()) 290;
void*(*IDE_291)(char *p) = (void*(*)(char*)) 291;
© Allround Automations forums