GUI screen pack pure MMBasic


Author Message
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 07:08am 24 Mar 2021      

  TassyJim said  A wet day in Tasmania today so I thought I would have a play.
I am interested in how portable code can be and this is a good example of 'very portable'

To run it on a CMM2, I had to include the MOUSE and CURSOR initialisation and change the TOUCH(X|Y) to a function that reads the mouse
Simple enough.

The only other gotcha I have seen is GUI BITMAP
Not available on the CMM2 so I simply put a tick character in the box.
(Image has it as a cross)

The other obvious thing is the alignment of the text boxes. I haven't chased that one down yet.

Jim


Ah! that is a nice variation - I hadn't even considered using it with a CMM because it has mouse and stuff but I guess it is just as relevant.

Good work Jim. what was the tweak necessary to straighten things up? In my head, it shouldn't have been necessary as I was using fontwidth etc and positioning things relative to the screen co-ordinates of the gadget. I don't have a CMM2 (not my "thing") but I am pleased to see it works there - truly portable.

I think some of the mechanisms for graphics handling could take this to the moon - you could fork it on the wiki if you wanted, there is a custom CMM2 namespace.
Edited 2021-03-24 17:08 by CaptainBoing