The example below is NOT the actual code, but an example of what I want to do. I Whant to have the Edit field filled out at the first view of the Dialog. If I remove the // bellow it will do as i want. But then all the Buttons and text in the Dialog gets wierd (%MyDialog.% all over the place)
I know that I can put %tÃÂme% directly in the Dialog, but that will not help me in the real code I am working on. There, when I put ResetDialogAction in a SRT after the Show>MyDialog, I will have to "reload" my Dialog twice to get the real values into the Dialog.
Code: Select all
Dialog>MyDialog
Caption=This is My Dialog
Left=300
Top=300
Width=305
Height=120
Label=Type Something Here:,5,5
Edit=MyEdit,5,22,230,
Button=Update,240,22,50,20,3
Button=Exit Macro,5,50,100,20,2
EndDialog>MyDialog
GetTime>time
Let>MyDialog.MyEdit=%time%
// ResetDialogAction>MyDialog
Label>MainLoop
Show>MyDialog,result
If>result=2,End
If>result=3,SayHello
Goto>MainLoop
SRT>SayHello
GetTime>time
Let>MyDialog.MyEdit=%time%
ResetDialogAction>MyDialog
END>SayHello
Label>End
/tomas