Posted: 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.
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.