GUI screen pack pure MMBasic


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11472
Posted: 08:43am 24 Mar 2021      

  Quote  A good tweak, but fair warning - I plan to put support for different fonts in at some point. Having fixed Font H&W at the start will likely defeat this... i.e. FONTWIDTH & Co need to figure in the calculations at the point of use as they may change.


This is great code - thanks for posting and as Jim has pointed out is very useful on the CMM2 as well as the other MMbasic variants.

If you change mm.fontwidth to a function call e.g. get.mm.fontwidth then the code could be completely general and with a few  mm.device$ conditionals could fully support the CMM2 as well. This would be really appreciated.