The first macro file called MyDialog.scp contains a simple standard dialog with a dummy button. It has the following code:
Code: Select all
Dialog>Dialog1
object Dialog1: TForm
Left = 2167
Top = 96
HelpContext = 5000
BorderIcons = [biSystemMenu]
Caption = 'CustomDialog'
ClientHeight = 212
ClientWidth = 431
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
ShowHint = True
OnTaskBar = False
PixelsPerInch = 96
TextHeight = 13
object MSButton1: tMSButton
Left = 155
Top = 81
Width = 75
Height = 25
Caption = 'MSButton1'
DoubleBuffered = True
ParentDoubleBuffered = False
TabOrder = 8
DoBrowse = False
BrowseStyle = fbOpen
end
end
EndDialog>Dialog1
Show>Dialog1,result
let>MACRO_RESULT=1
Code: Select all
Macro>%SCRIPT_DIR%\MyDialog.scp
MessageModal>MACRO_RESULT=%MACRO_RESULT%
When I execute the MyDialog file, the dialog shows up. When I execute the MyTestMacro file, it immediately shows the messagebox with the text MACRO_RESULT=1. But the dialog in the MyDialog file never shows.
Can anyone explain what's going wrong?
kind regards,
Richard