// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // // // string CBG(string $callProc, string $parent, string $whichCallback) // // // Generate a string for control callbacks in the form: // callbackProc "parent" "whichCallback" // // // string $callProc Name of procedure to be called // string $parent Parent widget of control where callback will live // string $whichCall Name of callback // // // string : Control callback string, ready for execution // // // string $cb = CBG("CallMe", "MyWidget", "AfterIHappen"); // // Result : CallMeCallback "MyWidget" "AfterIHappen" // // // global proc string CBG (string $callbackProc, string $parent, string $whichCallback) { return ($callbackProc + "Callback" + " \"" + $parent + "\" \"" + $whichCallback + "\""); }