Today, I read the contents in Gambit plugins and found the dgui command. After searching, this command is not described in the document, and there is little information on the Internet. In desperation, let's talk about our own hack.
First, let's look at the usage of the built-in plug-in gtpump.
The plugin Load file is as follows:
If cond (cstrcmp (getenv ("fluent_arch"), "ntx86"). eq.0)
Dgui plugin (getenv ("gambit_root") + "/plugins/gtpump") "451"
Else
Dgui plugin (getenv ("gambit_root") + "/plugins/gtpump") "451"
Endif
The syntax of this Sub-command is
Dgui plugin plugin_master_file_path button
When loading the plug-in, you need to specify the main file of the plug-in (master. DG
), And the plug-in button.
"Indicates the first button on the plug-in panel.
There are many dgui commands, including
(1) createform
(2) createitem
(3) Message
(4) hookup
(5) deleteform
(6) showitem
(7) hideitem
(8) updateitem
(9) modifyitem
(10) resetitem
(11) printreport
(12) plugin
The usage of these commands is waiting for hack.
* ** Valid gambit commands are:
Abort, Blyer, break, CAD, check, coordinate, debug, default,
Dgui, do, edge, else, end, enddo, endif, export,
Face, facet, filterparameters, fog, gcleanup, graphics, group, hardcopy,
Identifier, if, import, label, list, Macro, macrorun, model,
Next, object, parameter, physics, plot, readfile, redo, repair,
Reset, runsolver, save, sfunction, sleep, solver, system, tempfile,
Timer, Turbo, undo, unit, vertex, volume, window, xyplot
* ** Valid minor keys for command "dgui" are:
Createform/createitem/message/hookup/deleteform/showitem/
Hideitem/updateitem/modifyitem/resetitem/printreport/plugin,
Formname/setdefault, position/All, separator/label/
Image/Pushbutton/togglebutton/radiobuttonbox/optionmenu/textentry/
Intentry/realentry/LIST/fileselect/picker/vector/
Rowcolumn/dialog/scroll/form, labelname/formtitle,
Name/formmenu, enable, parameter, activatecb/okcb,
Updatecb/cancelcb, bdefault/tdefault/IDefault/rdefault,
Imin/rmin, IMAX/rmax, items/actionbuttons,
Pattern, unit/message/buttonlabel/nrank/nrow,
Vertex/EDGE/face/volume/group, horizontal/
Vertical/fixedsize, information/warning/error, noteditable/
Onlytext/single/noborder, top, bottom, left,
Right, alignleft/aligncenter/alignright, pixmap, xxmap,
Fontxs/fonts/fontm/fontl/fontxl/fontxxl,
Rowchar/index, ON/OFF, entrysize, entryoffset