DIALOG: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[:Category:Dialog|{{Up}}]]
[[:Category:Dialog|{{Up}}]]


{{Command|syntax=[[Image:Dialog.png|right|DIALOG]]DIALOG <dialog filename>
{{Command|syntax=DIALOG <dialog filename> [<modal>]
|description=:Define the filename to be shown in the GibbsCam macro menu (Must be one of these in every macro dialog).
|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=Name of the filename shown<br><br><br><br><br>
|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 "Connors Contour Macro"  
:DIALOG "MyDialog.dlg"  
:For an example macro see  [[Create_Contour.mac]]  [[Geo_Pattern]] [[GeoPattern_Part.dlg]]  [[GeoPattern_Repeats.dlg]] [[Get_Commands]] [[GetCommands.dlg]] [[Get_MTM_Data]] [[GetMTMData.dlg]] [[Use_Saved_Process]] [[GeoSavedProcess.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