DIALOG: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {{Command|syntax=DIALOG <dialog filename> |description=*DESCRPTION* |param1=<dialog filename>|param1_desc={{dialog filename}} }} ===Example=== :- DIALOG Category:Dialog
 
Mikeo (talk | contribs)
No edit summary
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|syntax=DIALOG <dialog filename>
[[:Category:Dialog|{{Up}}]]
|description=*DESCRPTION*


|param1=<dialog filename>|param1_desc={{dialog filename}}
{{Command|syntax=DIALOG <dialog filename> [<modal>]
|description=:Show a macro dialog. The dialog will be displayed and processing of the current macro will stop until the dialog is closed.
 
|param1=<dialog filename>|param1_desc=Dialog filename. The dialog file must be a text file, it is recommended that the filename suffix ".dlg" is used<br>
|param2=<dialog filename>|param2_desc=Modal (0=modeless, 1=modal). Default 1.
 
<br>A modal dialog stops all other processing until the dialog is closed.
<br>When a a modeless dialog is shown, you can continue to use GibbsCAM (for example, to select geometry) and control will return the the macro when press a command button on the dialog.
}}
}}
===Example===
===Example===
:- DIALOG
:DIALOG "MyDialog.dlg"
 
:For an example macro see  [[Create_Contour.mac]]  [[Geo_Pattern]] [[Get_Commands]] [[Get_MTM_Data]] [[Use_Saved_Process]]
[[Category:Dialog]]
[[Category:Dialog]]

Latest revision as of 17:21, 13 January 2017

Up

Command

DIALOG <dialog filename> [<modal>]


Show a macro dialog. The dialog will be displayed and processing of the current macro will stop until the dialog is closed.

Parameters

<dialog filename>
Dialog filename. The dialog file must be a text file, it is recommended that the filename suffix ".dlg" is used
<dialog filename>
Modal (0=modeless, 1=modal). Default 1.


A modal dialog stops all other processing until the dialog is closed.
When a a modeless dialog is shown, you can continue to use GibbsCAM (for example, to select geometry) and control will return the the macro when press a command button on the dialog.

Example

DIALOG "MyDialog.dlg"
For an example macro see Create_Contour.mac Geo_Pattern Get_Commands Get_MTM_Data Use_Saved_Process