{ From user Lonnie, Model A15345b at 4-Feb-2016 5:32:58 PM, encoding="UTF-8" } SoftwareVersion 4.6.1 { System Variables with non-default values: } Time := [0,1,2] TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 Model A15345b Author: Lonnie Date: Thu, Feb 4, 2016 5:12 PM SaveAuthor: Lonnie SaveDate: Thu, Feb 4, 2016 5:32 PM DiagState: 2,1,0,960,320,17 FontStyle: Arial,15 FileInfo: 0,Model A15345b,2,2,0,0,W:\Testmodels\15345b.ana Variable Test Title: Test Definition: ShowProgressBar("Calling AskMsgText","Starting test",0.1); ~ Var txt := AskMsgText("Testing the callback for AskMsgText","Title for AskMsgText",default:"Type something");~ ShowProgressBar("Calling AskMsgNumber", "AskMsgText returned: " & txt, 0.2);~ Var n := AskMsgNumber("Enter a number", "Testing AskMsgNumber", 13);~ ShowProgressBar("Calling AskMsgChoice as choice", "AskMsgNumber returned " & n, 0.3);~ Index opts:='a'..'z';~ Var ch := AskMsgChoice("Should be no All option. 'd' should be selected initially", "Test AskMsgChoice", opts, 'd', false, false );~ ShowProgressBar("Calling AskMsgChoice as combo box", "AskMsgChoice returned " & ch, 0.4);~ ch := AskMsgChoice("Now there is an All option. 'm' should be selected initially", "Test AskMsgChoice", opts, 'm', true, false ); ~ ShowProgressBar("Calling AskMsgChoice as combo box", "AskMsgChoice returned " & (if size(ch)=1 then ch else Join(ch,opts)), 0.5);~ ch := AskMsgChoice("Now a combo box", "Testing AskMsgChoice combo", opts, "start", true, true );~ ShowProgressBar("Testing Get File Name", "AskMsgChoice combo returned " & (if size(ch)=1 then ch else Join(ch,opts)), 0.6);~ txt := ReadTextFile("abc.txt",showDialog:true,title:"Select a text file");~ ShowProgressBar("Testing MsgBox", "Read " & TextLength(txt) & " characters from file", 0.7);~ MsgBox("Going to open web page");~ ShowProgressBar("Testing OpenURL", "Opening Lumina.com in browser", 0.8);~ OpenURL("http://Lumina.com");~ MsgBox("When you press OK, the progress bar should hide");~ ShowProgressBar("Testing hide progress","hidden",2);~ MsgBox("Press OK again to bring it back");~ ShowProgressBar("Almost done", "Last step...",0.9);~ MsgBox("Progress bar should have re-appeared. Now computation will end. Progress bar should close.") NodeLocation: 128,80,1 NodeSize: 48,24 Close A15345b