Page 1 of 1

Windows

Posted: Sat Aug 29, 2009 2:42 pm
by izidor
It's me again! (who would say)

I am having trouble with PUT statement and I really can't (i do not know how, English isn't my mother language) explain what is the problem so if anyone has some time to look at it I'd be really thankful.


QB64 code!

Code: Select all

SCREEN 9

LINE (100,100)-(300,200),2,BF
GET (100,100)-(300,200),window
CLS
LINE (0,0)-(640,390),1,BF
GET (0,0)-(639,349),back
CLS
PUT (0,0),back,pset

DO
DO WHILE _MOUSEINPUT
IF _MOUSEBUTTON(1) then

PUT (0,0),back,pset
PUT (__MOUSEX,_MOUSEY),window,pset
CLS
PUT (0,0),back,pset
PUT (__MOUSEX,_MOUSEY),window,pset

end if

LOOP
LOOP

Posted: Sat Aug 29, 2009 3:20 pm
by Nodtveidt
Shouldn't you be using the same coordinates for your back as you do for your window? Also, why are you doing cls and then using the exact same code a second time?

Posted: Sat Aug 29, 2009 4:15 pm
by burger2227
I sorta like how this place changes the QB64 _ M O U S E X command to _MOUSEX.

You would think that _MOUSEX would not be a good word here :P

Posted: Sat Aug 29, 2009 4:57 pm
by izidor
@Nodtvedit

I am sorry but really do not understand it ("
Shouldn't you be using the same coordinates for your back as you do for your window?"),why would be need to move a window if it is big as the whole screen?


@burger2227

Yeah, it's very strange.

Are people from phpBB group perverts? :)

Posted: Sun Sep 06, 2009 1:42 pm
by coma8coma1
don't we first have to define an array to store the GETted data in?

Posted: Sun Sep 06, 2009 4:32 pm
by burger2227
LOL at GETTed :P

You are right though. I assumed he had done that before the code he submitted.

He actually uses 2 arrays not shown.

Ted

Posted: Mon Sep 07, 2009 9:21 am
by Nodtveidt
Maybe this forum needs a QB64-specific subforum...