
-----------------------------------
mike200015
Sat Feb 26, 2005 6:24 pm

New window?
-----------------------------------
How do i make a new window open. In my program, i want to make it so if the user presses "7".. it will open a new window with a different dimension

-----------------------------------
Flikerator
Sat Feb 26, 2005 6:28 pm


-----------------------------------
I know how to open a window, but what do you mean a different dimension? Like size?

Window.Open()

If you need an explanation just ask.

-----------------------------------
Cervantes
Sat Feb 26, 2005 6:29 pm


-----------------------------------
Use Window.Open().  
ex:

var winID := Window.Open ("text")

Check the help file for it.
Hopefully, Flikerator will post a brand new, shiny tutorial on the topic soon.  :D

EDIT: heh.  :?

-----------------------------------
mike200015
Sat Feb 26, 2005 6:31 pm


-----------------------------------
i want a new window to open but like make it a diff. dimension than the original window.. and like how would i put it into my prog.. i hav:

(procedure)
....
....
....
end (procedure)

if ch :=('7') then
(procedure)
end if


Also, is there a way of actually not opening a new window, but when the user presses '7' then the window size will change, instead of opening a new window?

-----------------------------------
Flikerator
Sat Feb 26, 2005 6:32 pm


-----------------------------------
Alright I will write up a tutorial :P

It will have to be in a phew days as I have too many projects do, im still here because I like making fun of that stupud DrViper. He is pathetic.

Sry for offtopic

EDIT
------
Alright what do you mean by dimension, size, position?

EDIT AGAIN!

Yes give me a phew minutes to test something ill post an answer.

-----------------------------------
mike200015
Sat Feb 26, 2005 6:42 pm


-----------------------------------
kk thnx!...... and yea.. dimention.. i mean like size position

-----------------------------------
Flikerator
Sat Feb 26, 2005 6:48 pm


-----------------------------------
Just posting so you know I didn't abandoned you, I will edit this with the answer.

Alright now since you have it in a procedure I will make one so it will be similar. Then loop it to show that it when you hit '7' it will change position. Its as easy as using View.Set()


var ch : array char of boolean

View.Set ("position:center,bottom")

procedure windowchange
    View.Set ("position:center,top")
end windowchange

loop
    Input.KeyDown (ch)
    if ch ('7') then
        windowchange
    end if
end loop


Now to change size it is very similar, like this;


var ch : array char of boolean

[b]View.Set ("graphics:400,400")[/b]

procedure windowchange
[b]    View.Set ("graphics:1280,720")[/b]
end windowchange

loop
    Input.KeyDown (ch)
    if ch ('7') then
        windowchange
    end if
end loop


I bolded the differences. If you need something else, it doesnt work, or such just say so and Ill help out.

EDIT AGAIN
Okay the bold didnt work but I will leave it in there anyway..lolz sry bout that  :lol:

-----------------------------------
mike200015
Sat Feb 26, 2005 6:49 pm


-----------------------------------
lol.. kk thnx alot :!:  :)

-----------------------------------
Flikerator
Sat Feb 26, 2005 7:02 pm


-----------------------------------
lol.. kk thnx alot :!:  :)

Did it work out well? (Btw I posted the help stuff :P)

-----------------------------------
mike200015
Sat Feb 26, 2005 7:05 pm


-----------------------------------
I didn't try it yet, i will in a few mins, and ill tell you how it worked out. Thank so much

-----------------------------------
mike200015
Sat Feb 26, 2005 7:13 pm


-----------------------------------
Yea, works great :!:  :!:    Thanx Flickerator :!:  :D

-----------------------------------
Flikerator
Sat Feb 26, 2005 8:38 pm


-----------------------------------
No problem. If you need any other help just say the word  8)

-----------------------------------
mike200015
Sat Feb 26, 2005 9:52 pm


-----------------------------------
:D kk.. thnx :!:
