Re: Coming From QBasic

new topic     » goto parent     » topic index » view thread      » older message » newer message

Lynn Kilroy wrote:
> 
> cc.ex:3
> Graphics_Mode has not been declared
> Graphics_Mode (260)
>             ^
> =============================================================
> 
> include ..\..\Include\graphics.e
> 
> Graphics_Mode (260)
> 
> print (1, 768 / 8)
> 
> =============================================================

Euphoria is case sensitive. Graphics_Mode(260) is not the same as
graphics_mode(260).

Try this:
include graphics.e -- needed for graphics_mode()
include get.e -- needed for wait_key()

integer old_gr -- a place to store the old graphics mode
integer key -- a place to store a keypress

old_gr = graphics_mode(260) -- note, this is a function, not a procedure
print(1, 768 / 8)

key = wait_key() -- wait until any key is pressed
old_gr = graphics_mode(-1) -- return to default graphics mode


I've tested this and it works under Windows XP pro. It's DOS, of course, but it
still works if run by ex.exe.

Does that clear anything up?

--
"Actually, I'm sitting on my butt staring at a computer screen."
                                                  - Tom Tomorrow

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu