[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2016-07-24T14:20:17-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/4143 2016-07-24T14:20:17-05:00 2016-07-24T14:20:17-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=24180#p24180 <![CDATA[Re: Clickable Area]]>
QB64 code:

Code:

SCREEN 12 'must not use SCREEN 0LINE (1, 1)-(100, 100), 12, BFDO    _LIMIT 1000 'QB64 code    DO WHILE _MOUSEINPUT 'QB64 code or use another mouse routine    LOOP    mx = _MOUSEX: my = _MOUSEY: LB = _MOUSEBUTTON(1) 'QB64 code    IF mx >= 1 AND mx <= 100 THEN ' columns        IF my > 1 AND my <= 100 THEN ' rows            IF LB THEN                LOCATE 10, 10: PRINT "Mouse clicked in box"                SLEEP 1                LOCATE 10, 10: PRINT SPACE$(30)            END IF        END IF    END IFLOOP UNTIL INKEY$ <> "" 'any key press exits
Edited. Try my QB Demonstrator below

Statistics: Posted by burger2227 — Sun Jul 24, 2016 2:20 pm


]]>
2016-07-23T22:53:39-05:00 2016-07-23T22:53:39-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=24179#p24179 <![CDATA[Clickable Area]]> I'm currently using a Mouse Subroutine I found on the internet, When called (e.g. MOUSE 3) it returns H (X), V(Y), and the button presses(1 for left, 2 for right and 3 for both).

Anyways, I would want to set a clickable area like, for example (0,0)-(10,10). When the mouse is in that area and presses the left button, It'll do something, and when pressed within (11,11)-(21,21), It'll do something else.

Thanks in advance! :D

Statistics: Posted by Aureal — Sat Jul 23, 2016 10:53 pm


]]>