Flickering Screen
Author |
Message |
Jas
|
Posted: Sat May 14, 2005 5:11 pm Post subject: Flickering Screen |
|
|
I am using the cls command in a loop, and evertime it goes through the loop, it makes the screen flicker. Here is my program:
code: |
import GUI
procedure List
cls
put "NAME ADDRESS"
var a : string (1)
put "press any key to continue"
getch (a)
end List
procedure BILL
cls
put "Enter account number: "
var a : string (1)
put "press any key to continue"
getch (a)
end BILL
procedure QuitPressed
GUI.Quit
end QuitPressed
loop
var button1, button2, button3 : int
put "Choose one of the following:"
button1 := GUI.CreateButtonFull (100, 150, 2, "List All Customers",
List, 50, GUI.NONE, false)
button2 := GUI.CreateButtonFull (250, 150, 2, "Choose Specific Custoer",
BILL, 50, GUI.NONE, false)
button3 := GUI.CreateButtonFull (430, 150, 110, "Quit", QuitPressed, 50, GUI.NONE, false)
exit when GUI.ProcessEvent
GUI.Refresh
cls
end loop
|
First i had to get past the GUI.ProcessEvent problem, and when i did that, i got the flickering screen problem. GUI.Refresh helped, but the screen still flickered a little. is there a way to prevent this? (These are not my actual procedures, because my real ones are too long and involve inputting data files) |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: Sat May 14, 2005 5:56 pm Post subject: (No subject) |
|
|
Look for and read the tutorial dealing with View.Update() and 'offscreenonly'. |
|
|
|
|
|
Jas
|
Posted: Sat May 14, 2005 9:07 pm Post subject: (No subject) |
|
|
i tried looking for the tutorial using the search option at the top, but all i got was programs from other users which had "setscreen("offscreenonly") and View.Update commands in them. I couldn't find a tutorial on it. can u tell me where the totorial is, if there is any? |
|
|
|
|
|
Cervantes
|
|
|
|
|
|
|