Project

General

Profile

Dialog » History » Revision 4

Revision 3 (Per Amundsen, 08/14/2015 01:55 PM) → Revision 4/19 (Per Amundsen, 08/14/2015 01:55 PM)

_Added in 1.9.0_ 

 */dialog -abcdeghikmnoprstvx <name> [newname|table] [x y w h] [text]* 

 Allows you to create a modeless dialog with the -m switch. 

 _See also [[$dialog]]._ 

 *Switches* 

 -a - Used with -m, uses currently active window as the parent. (TODO) 
 -b - Interprets size as dbu. (TODO) 
 -c - Click cancel button.  
 -d - Open dialog on the desktop, used with -m. 
 -e - Restores the dialog if created on the desktop. 
 -g - Renames existing dialog using <name> <newname>. 
 -h - Make dialog work with active server connection. (TODO) 
 -i - Minimize the dialog if created on the desktop. 
 -k - Click ok button. 
 -m - Create a modeless dialog using 'table'. 
 -n - Unset ontop setting. 
 -o - Set dialog ontop of all windows. 
 -p - Interprets size as pixels. (TODO) 
 -r - Centers dialog. 
 -s - Set dialog size/position. 
 -t - Set dialog title to 'text'. 
 -v - Makes the dialog the active window. 
 -x - Close a dialog without triggering any events. 

 *Parameters* 

 <name> - Name of the dialog to creae. 
 [newname] - Newname used with -g 
 [table] - Name of the dialog table to use. 
 [x y w h] - X/Y Position on the desktop and the Height/Width of the dialog. 
 [text] - Dialog title text. 

 *Example* 

 <pre> 
 : Create a dialog table. 
 Dialog Example1 { 
   title "This is Example 1" 
   size -1 -1 172 129 
   option dbu 
   tab "Tab A", 14, 2 0 165 123 
   tab "Tab B", 15 
   tab "Tab C", 16 
   edit "", 17, 8 16 154 104, tab 16 multi return autohs vsbar 
   menu "&File", 1 
   item "&New", 6, 1 
   item "&Open", 7, 1 
   item break, 8, 1 
   item "&Save", 9, 1 
   item "Save &as", 10, 1 
   menu "&Edit", 2 
   item "&Copy", 11, 2 
   item "P&aste", 12, 2 
   menu "&view", 3 
   item "&All", 13, 3 
   menu "&Help", 4 
   item "&About", 5, 4 
 } 

 ; Create and show the dialog as modeless and on the desktop. 
 /dialog -md Example1 Example1 
 </pre>