Re: [ql-users] Easyptr MAWDRAW
Dilwyn Jones writes: > 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 I use a similar workaround ;) mawsetup#cm, 1, qseld$(c0% to qcount% + (qcount% = c0%)) mstat#cm, 1, qstat%(c0% to qcount% + (qcount% = c0%)) Same problem with the other MAWDRAW/SETUP parameters and MSTAT. The only fix is for someone to update the package. Is that going anywhere? My offer of the loan a fine pair of Sheffield thumb screws was never called upon. Per
Re: [ql-users] Easyptr MAWDRAW
In a message dated 20/04/02 16:41:41 GMT Daylight Time, [EMAIL PROTECTED] writes: Anyone any idea will app window menus in Easyptr will not display a single item list (1x1) correctly? Dilwyn, I have come across the same problem some time ago... can't remember my work-around, but think that I added line of spaces as the next entry in the array and simply set it to unavailable... Rich Mellor RWAP Software 7 Common Road, Kinsley, Pontefract, West Yorkshire, WF9 5JR TEL: 01977 614299 http://hometown.aol.co.uk/rwapsoftware
[ql-users] Easyptr MAWDRAW
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