I'm having a spot of bother with Application Window menus in Easyptr - can anyone help?
If I set up a simple menu in app window 1 based on an array like DIM array$(36,200) and call it with MDRAW #0,"flp1_mymenu_menu" MAWDRAW #0,1,array$ all seems well. Even if I split the array, it seems to work: MAWDRAW #0,1,array$(0 to 10) What doesn't seem to work though is when it stops being a 2 dimensional array: MAWDRAW #0,1,array$(0 to 0) This is used to display and select a list of filenames on a disk and the problem happens when there is only one file on a disk (see my MakeDirs and SystemSet program file menus). I am currently using a workaround based on: MAWDRAW #0,1,array$(0 to 0+(number_of_files=1)) IF number_of_files = 1 THEN REMark set status of second item in list to unavailable stat% = MSTAT%(#0,65536*2+1,-1) END IF (apologies to non-easyptr users, the above code will be totally meaningless). Anyone any idea will app window menus in Easyptr will not display a single item list (1x1) correctly? The workaround does work, and is what I'll use in my program if nobody comes up with a better solution to avoid having to test for a unique situation each time. -- Dilwyn Jones [EMAIL PROTECTED] http://www.soft.net.uk/dj/index.html
