Op Wed, 18 Dec 2013 00:39:26 +0100 schreef Tobias Fröschle <[email protected]>:

Francois,

on second (or third...) thought (and a close reading of the EasyPtr Manual), you might (maybe) be able to directly draw into an application menu item by

MWINDOW #x, <item> * 65536 + <appwin#>

where <item> is the number of the application menu item number from top left (row-wise, starting at 1) to bottom right and <appwin#> is the number of the application window.

After that you should be able to draw directly into the Menu item.

If your menu is pannable or scrollable, things would get kind of tricky, however. You would use MAWNUM to find out the top left item that is visible.

I do seem to recall, however, that exactly this wouldn't work because the vector for it it has never been implemented in the Window Manager. George Gwilt has explored this a while ago, I think.

Back to the Sprite, then ;)

Regards,
Tobias

Looking at EasyMenu the CSIZE item is disabled for loose items and appl. menu items and only active for info windows. Looking at a disassembled menu this is confirmed, there are 2 bytes reserved for char.size, only for info objects and not for any menu objects.
This means some trickery is needed.
Print the text in a window, convert that to a pic or spr and change the menu cell. Beware that the cell is big enough to hold this pic or spr, it's not truncated as normal menu text would be.
I have used this trick in SuQcess and QCP but not for menu items.

My question is: can a print window be made off screen, so the conversion is invisible to the user? This is usually fast enough for a single item but may be noticeable for a number of appl. rows and columns.

Bob

--
The BSJR QL software site at: http://members.upc.nl/b.spelten/ql/
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to