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.
parameters to sdkAddCommandSeparator and sdkAddCommand
Generally it's AnsiChar on Win and UTF8Strings on MAC.
sdkAddCommandSeparator accepts pchar, considered as pAnsichar or PUTF8Char according the platform.
sdkAddCommandSeparator accepts pchar, considered as pAnsichar or PUTF8Char according the platform.
Olivier Sens
www.brainmodular.com
www.brainmodular.com
Who is online
Users browsing this forum: No registered users and 16 guests
