Can you discover if a DRAWMENU is on-screen?
05-16-2016, 07:30 AM
Post: #1
 StephenG1CMZ Senior Member Posts: 818 Joined: May 2015
Can you discover if a DRAWMENU is on-screen?
In version 0.1 of my accessibility fingerspelling program, it would be useful if there were a way of discovering whether a DRAWMENU was on-screen or whether that area of the screen could be used for something else.

Also, how do you delete a drawmenu? This leaves a blank Drawmenu on screen.

Code:
 EXPORT TRYD() BEGIN   LOCAL OKC;      OKC:=DRAWMENU("");   WAIT;//A BLANK MENU IS SHOWN:HOW TO ERASE?   MSGBOX(OKC);//IS THERE A WAY OF ASKING IF A MENU IS ONSCREEN? END;

Stephen Lewkowicz (G1CMZ)
05-16-2016, 10:07 AM (This post was last modified: 05-16-2016 10:07 AM by DrD.)
Post: #2
 DrD Senior Member Posts: 1,104 Joined: Feb 2014
RE: Can you discover if a DRAWMENU is on-screen?
Something like this, perhaps? (You could do a GETPIX_P test to check for a menu presence, for a not-so-elegant means to an end ...)

RECT_P(); // clear the entire screen -or-
RECT_P(G0,0,220,330,240); // clear only the menu rectangular area.

-Dale-
05-16-2016, 10:39 AM (This post was last modified: 05-16-2016 10:41 AM by StephenG1CMZ.)
Post: #3
 StephenG1CMZ Senior Member Posts: 818 Joined: May 2015
RE: Can you discover if a DRAWMENU is on-screen?
(05-16-2016 10:07 AM)DrD Wrote:  Something like this, perhaps? (You could do a GETPIX_P test to check for a menu presence, for a not-so-elegant means to an end ...)

RECT_P(); // clear the entire screen -or-
RECT_P(G0,0,220,330,240); // clear only the menu rectangular area.

-Dale-
I think you mean 320 not 330.
I didn't think you could ask if DRAWMENU was on-screen (ideally, by returning a list of its buttons), but I am surprised the DRAWMENU can't delete itself.

Stephen Lewkowicz (G1CMZ)
05-16-2016, 10:51 AM
Post: #4
 DrD Senior Member Posts: 1,104 Joined: Feb 2014
RE: Can you discover if a DRAWMENU is on-screen?
Yes, it was a boo boo on that 330, I had it right, when I was messing with it, but wouldn't you just know ...

Maybe "they" could just use "DRAWMENU()," with no arguments, to do a menu erase trick, in their spare time, over at the house of cubes!

-Dale-
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)