Basic Examples of how to use SH_NAME_SETPARAMETERS



Example 1:    Turn on debug printing for node "/Joe".

    BMessage msg(SH_COMMAND_SETPARAMETERS);
    msg.AddString(SH_NAME_TO, "/Joe");
    msg.AddInt32(SH_PARAMNAME_DEBUG, 1);        // debug level 1 == debug printing on
    root->PostMessage(&msg);



Example 2:    Make the default sorter for node "/Joe" be the one named "custSorter".  This code assumes you have already added a custom sorter to "/Joe", and that custom sorter's GetName() method returns the string "custSorter".

    BMessage msg(SH_COMMAND_SETPARAMETERS);
    msg.AddString(SH_NAME_TO, "/Joe");
    msg.AddString(SH_PARAMNAME_DEFAULTSORTER, "custSorter");
    root->PostMessage(&msg);