Welcome to %s forums

BrainModular Users Forum

Login Register

parameters to sdkAddCommandSeparator and sdkAddCommand

Create your own modules in C++
Post Reply
sm_jamieson
Member
Posts: 551
Contact:

Unread post by sm_jamieson » 10 Dec 2015, 17:38

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.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 17 Dec 2015, 20:38

Generally it's AnsiChar on Win and UTF8Strings on MAC.
sdkAddCommandSeparator accepts pchar, considered as pAnsichar or PUTF8Char according the platform.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests