Author |
Message |
mike200015
|
Posted: Sat Feb 26, 2005 6:24 pm Post subject: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Flikerator
|
Posted: Sat Feb 26, 2005 6:28 pm Post subject: (No subject) |
|
|
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. |
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Feb 26, 2005 6:31 pm Post subject: (No subject) |
|
|
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? |
|
|
|
|
![](images/spacer.gif) |
Flikerator
|
Posted: Sat Feb 26, 2005 6:32 pm Post subject: (No subject) |
|
|
Alright I will write up a tutorial
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. |
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Feb 26, 2005 6:42 pm Post subject: (No subject) |
|
|
kk thnx!...... and yea.. dimention.. i mean like size position |
|
|
|
|
![](images/spacer.gif) |
Flikerator
|
Posted: Sat Feb 26, 2005 6:48 pm Post subject: (No subject) |
|
|
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()
code: |
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;
code: |
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 ![Laughing Laughing](http://compsci.ca/v3/images/smiles/icon_lol.gif) |
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Feb 26, 2005 6:49 pm Post subject: (No subject) |
|
|
lol.. kk thnx alot ![Smile Smile](images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Flikerator
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Feb 26, 2005 7:05 pm Post subject: (No subject) |
|
|
I didn't try it yet, i will in a few mins, and ill tell you how it worked out. Thank so much |
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Feb 26, 2005 7:13 pm Post subject: (No subject) |
|
|
Yea, works great Thanx Flickerator ![Very Happy Very Happy](images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
Flikerator
|
Posted: Sat Feb 26, 2005 8:38 pm Post subject: (No subject) |
|
|
No problem. If you need any other help just say the word 8) |
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Feb 26, 2005 9:52 pm Post subject: (No subject) |
|
|
kk.. thnx ![Exclamation Exclamation](images/smiles/icon_exclaim.gif) |
|
|
|
|
![](images/spacer.gif) |
|