How to Close a Dialog Box before Calling a Macro
(Originally posted by Masse on 3/24/2006)
How do I close a dialog box before calling a macro?:
example :
"""
Sub interface()
Begin Dialog...
text...
list...
End Dialog
show Dialog
End Sub
Function ...
case1
case2
case "function1" 'pushbutton
case "function2" 'pushbutton
Call MACRO()
End Select
End Select
End Function
"""
I would like close the Dialog box before Calling MACRO().
0
Comments
-
(Originally posted by YuriG on 3/24/2006)
You can exit the dialog and check the button index.
Dim dlg As UserDialog
ShowDlg:
ret=Dialog(dlg)
if ret=2 then 'check the button
Call MACRO()
GoTo ShowDlg 'display dialog again after executing the macro
end if
Look at IPBasic Help on "DialogFunc Prototype" or "Dialog Instruction/Function" pages for more examples.0
Categories
- All Categories
- 958 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 444 Image-Pro General Discussions
- 487 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 193 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 105 Image-Pro Plus General Discussions
- 85 Image-Pro Plus Automation with Macros
- 35 Legacy Products
- 15 Image-Pro Premier 3D General Discussions
- 20 Image-Pro Insight General Discussions
