Op 5/08/2016 om 14:48 schreef [email protected]:
Francois,

to my knowledge, a simple MDRAW (or MSETUP) will not fill the pointer array 
retrieved by PVAL with useful values. Only MCALL will.

I have made an alternative proposal in the QL Forum to Giorgio that looks like

1000 MSETUP #ch,menu_name$
1010 wwdef = MWDEF(#ch)
1020 width = PEEK_W (wwdef + 32)
1030 height = PEEK_W (wwdef + 34)

This doesn't do anything to the screen but still finds the menu size by looking 
into the working definition.

This works even if the menu wouldn't draw because it would be too large for the 
current screen resolution. (Note the working definition holds the INNER SIZE of 
the menu, without the border)

Tobias



<SNIP>
You're right but I thought  Giorgio knew that already.
Your solution is an elegant alternative... I think I will use it in the future.
Thanks

François Van Emelen


_______________________________________________
QL-Users Mailing List

Reply via email to