
-----------------------------------
sulaimanhakh
Mon Jan 12, 2009 9:33 pm

Display problem.
-----------------------------------
I'm making a program, but for some reason when i run it it doesn't show all the text.
here is the code.


var window : int
window := Window.Open ("graphics:640;480,offscreenonly;title:Sulaimans Geometry thing") %name and stuff
color (brightgreen)
colorback (black)
cls

% USEFULL THINGS: put "

When i run it and press 1 its supposed to display:

You Have Selected [1] Rectangle Area/Perimeter Calculator
You Have Selected [2] Triangle Area/Perimeter Calculator
You Have Selected [3] Cube Area/Perimeter Calculator

But instead it only displays "You Have Selected [1] Rectangle Area/Perimeter Calculator"

can someone tell me the problem?

-----------------------------------
The_Bean
Mon Jan 12, 2009 9:37 pm

Re: Display problem.
-----------------------------------
You have 'offscreenonly' turned on when you make the new window, so in order for the text to appear you need to call View.Update.

-----------------------------------
sulaimanhakh
Mon Jan 12, 2009 10:36 pm

RE:Display problem.
-----------------------------------
Thanks!!! It works!!!.
is there a way to make it clear instead of opening a new window?

-----------------------------------
The_Bean
Mon Jan 12, 2009 10:47 pm

Re: Display problem.
-----------------------------------
'cls' will clear the screen and all the text on it.

-----------------------------------
sulaimanhakh
Wed Jan 14, 2009 3:57 pm

RE:Display problem.
-----------------------------------
k.
