> > Create a small menu, say one info window and one loose item. Do not  
> > MCALL, just MDRAW then try to MWINDOW to the loose item followed by  
> > MINPUT. Sometimes it works, sometimes it doesn't, sometimes it only  
> > works if the menu has not been changed since it was originally designed  
> > in Easymenu. Although to be fair I'm not sure it's a 'legal' routine:
> 
> This is indeed an EP-bug. I have known it for years but never found it a  
> real problem. In my programs
> loose Item no. 1 is always "ESC". There is no need to give it another text  
> or sprite.
I was simply using it as an input window, without any ESC or MOVE icons or 
anything like that. The loose item was defined with just a dot or a single 
space in Easymenu IIRC

+--------------------------+
| Info Window 1 with text  |
| +--------------------+   |
| |Loose item -1       |   |
| +--------------------+   |
+--------------------------+

MDRAW #0,menu
MWINDOW #0,-1
t$='text'
MINPUT #0,t$
MCLEAR #0

As you say, not a great problem at all, quite easy to work around. It didn't 
even fail every time - sometimes it would work, sometimes you'd get an obscure 
error. Probably tied up with the other problems mentioned on this list about 
the first loose item.

Dilwyn Jones

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to