[email protected] schreef op 17/12/2013 18:15:
Francois,
the only objects in a window definition actually accepting a CSIZE parameter are
Information Objects (And this is not an EasyPtr restriction, but rather one of the Window
Manager). Maybe because they are intended as titles and "other decoration".
Unfortunately, Information Objects won't go into an Application window Menu -
That basically means it won't work.
A perfectly valid work-around would be to put your CSIZE x,y-text into a bitmap
(i.e., prepare a sprite with that content) and use that in the application
window. Looks the same, will just need a bit more memory. You could even build
those sprites at run-time.
Tobias
<SNIP>
Tobias,
Thanks for your help. Actually Csize can also be used with Loose Items
. It can't be specified from within Easymenu but in your own program
(line 295).
140 DIM erg%(16)
145
165 REPEAT main
170
175 k = mcallt(#cd\ ev%,timep%)
180
185 PVAL #cd,erg%
190 sel on k
275 =-1: mclear#cd:close#cd:exit main
280 =-3:
285 =-2:beep 2,2:WMOV#cd:
290 =-4 :wmove mwdef(#cd)
295 =-5:mwindow#cd,k:beep 2000,2000,20:csize#cd,1,2
:mitem#cd,k,1,"Large": ss%=mstat%(#cd,k to 0):csize#cd,0,0:next main
320 =2^16 TO 2^32
375 END SELECT
380
385 ENDREPEAT main
390 stop
395
Thanks for your help.
Regards
François VanEmelen
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm