public static void _TextPadOnOk()
        {
            ScriptEditorDlg   ScriptEditorDlg = "ScriptEditorDlg";
            GuiMLTextEditCtrl textpad         = ScriptEditorDlg.FOT("TextPad");

            if (ScriptEditorDlg["callback"] != "")
            {
                string text    = textpad.getText();
                string command = ScriptEditorDlg["callback"] + "( text );";
                omni.Util.eval(command);
            }
            ScriptEditorDlg["callback"] = "";
            ((GuiCanvas)ScriptEditorDlg.getRoot()).popDialog(ScriptEditorDlg);
        }
        public static void TextPad(string text, string callback, GuiCanvas root)
        {
            ScriptEditorDlg   ScriptEditorDlg = "ScriptEditorDlg";
            GuiMLTextEditCtrl textpad         = ScriptEditorDlg.FOT("TextPad");
            GuiCanvas         Canvas          = "Canvas";

            textpad.setText(text);
            ScriptEditorDlg["callback"] = callback;

            if (!root.isObject())
            {
                root = Canvas;
            }

            root.pushDialog(ScriptEditorDlg);
        }