Built-in Callbacks
This page contains a full list of Gsharp's built-in callbacks.
To use one of these functions for your own object specify
it using XuNguiCallback. For some functions you may also need to set XuNguiCallbackData.
For example:
create Button gsharp_1.menubar.help.myhelp
( XuNguiLabel = "My Help ...",
XuNguiCallback = "GuiHelp",
XuNguiCallbackData = "'$UNIDIR/help/myhelp.htm'"
);
N.B. All the built-in functions use string callback data.
You will need to enclose your string in single quotes inside double quotes,
as shown above.
| GuiAutoApply |
Callback for a toggle controlling auto apply |
| GuiAutoRepaint |
Callback for a toggle controlling auto repaint |
| GuiAutoRepaintOnDataChanged |
Callback for a toggle controlling auto repaint on data
change |
| GuiCommandClear |
Clear commands from command line |
| GuiCommandLogging |
Callback for a toggle controlling command
logging |
| GuiCreateObject |
Create Graphical Object |
| GuiDeleteSelected |
Delete Selected Object |
This callback pops up a dialog for confirmation and then Gsharp exits
| GuiFileOpen |
Display File Open dialog |
The callback data to GuiFileOpen must contain an array of strings specifying
the file-types which the dialog will support: Possible options are "report",
"ascii", "binary", "field", "folder"
and "script". e.g.
gsharp_1.menubar.file.open.XuNguiCallbackData = '"script"//"folder"';
| GuiFilePrintSetup |
Display Print Setup dialog |
This dialog is used to control which printer to use, the paper size and
the position of the plot on the paper. The GSL function print can
be used to make the print.
| GuiGraphPicking |
Callback for a toggle controlling graph picking |
The callback data must contain the name of the web page
to open.
- Gsharp will first look for the specified file in $UNIDIR/help
- If it can't find a matching file, it will then try the name as a normal
filename
- Finally, If no file exists, it will try the name as a web page.
| GuiMessageClear |
Clear Message Area |
| GuiMessageLogging |
Callback for a toggle controlling message logging |
| GuiToolsBrowser |
Display Hierarchy Browser |
| GuiToolsDatapool |
Display DataManager |
| GuiToolsFunctionEditor |
Display FunctionEditor |
| GuiToolsProgramEditor |
Display ScriptBuilder |
These callbacks bring up the three Gsharp tools. The are no callbacks
to pop them down again.
|