Yes, see my Q-Trans files window lists for how I work around this. If I have a directory with no or only one file listed, I have to ensure that the array passed to MAWDRAW or MAWSETUP always has 2 or more items. If I have less than 2 items, I display 2 but make the status of the extra ones to unavailable. It gets a border when the pointer is over it, but cannot be selected.Is this all? Nobody else any problems? I won't promise anything, but
if I don't know what's wrong I certainly cannot change it.
Think the only other things which spring to mind are:
You cannot create an application sub-window menu with MAWDRAW or MAWSETUP which only contains one item in the menu.
MITEM does not allow you to redraw the loose item - it should accept the , or \ separator in line with the other commands to force it to redraw the item. At the moment it ignores the separator.
Yes, you have to use MSTAT% or some such command to force a redraw.
One more VERY obscure problem.
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:
MDRAW#0,menu MWINDOW #0,-1 t$="something" MINPUT #0,t$
(I use it at one point in Launchpad and it refused to work at first, then I created the same menu from scratch and it now works, I have never been able to pin it down exactly).
-- Dilwyn Jones
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.6.2 - Release Date: 04/03/2005
_______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm