var winID :int
winID :=Window.Open("position:center;center")
var font1 :int
font1 :=Font.New("calibri:16:bold") Font.Draw("Copyright Muhammad Osama 2010",0, 5, font1, blue)
var inputwait :string(1) var exitinput :string(1)
put"Welcome to the Geo Website Developer!" put"To run the website manually, run Main Page.html in the Geography Project folder." put"If the website is not compatible with your browser, please use one of the \npre-installed browsers in the Alternative Browsers folder." put"\nPress any key to start the website..." getch(inputwait)
put" " ifSys.Exec("\"Geography Project\\Main Page.html\"")then put"Executing now..." delay(1000) Window.Close(winID) else put"Uh oh: ",Error.LastMsg, " You may have to run the file manually." put"\nPress any key to terminate this program..." getch(exitinput) Window.Close(winID) endif
Ah, I see your problem. You have your View.Set at the very start of your program, but later on you have a Window.Open call.
The first call made to Window.Open resets the default window and then gives it the parameters given to Window.Open, so all the stuff from your View.Set is overridden by your Window.Open. Either move your View.Set to after the Window.Open, or incorporate the View.Set parameters into the Window.Open call.
Ah, I see your problem. You have your View.Set at the very start of your program, but later on you have a Window.Open call.
The first call made to Window.Open resets the default window and then gives it the parameters given to Window.Open, so all the stuff from your View.Set is overridden by your Window.Open. Either move your View.Set to after the Window.Open, or incorporate the View.Set parameters into the Window.Open call.