Page 1 of 1

Posted: 10 Dec 2015, 17:38
by sm_jamieson
In the example from the SDK manual

void DrawBoxExample::onCreateCommands() {
sdkAddCommandSeparator("cmd_edit");
sdkAddCommand("cmd_reset", 0);
sdkAddCommand("cmd_randomize", 1);
}

** What strings are accepted by these sdkAdd routines ?
It does not seem to be documented anywhere.
Why are the possible strings not defined in the header files ?

Or is there some algorithm to turn the supplied string into the name of the button or separator ?

Thanks,
Simon.

Posted: 17 Dec 2015, 20:38
by senso
Generally it's AnsiChar on Win and UTF8Strings on MAC.
sdkAddCommandSeparator accepts pchar, considered as pAnsichar or PUTF8Char according the platform.