GUI screen pack pure MMBasic


Author Message
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 10:44am 05 Apr 2021      

This is nice and has some good potential!

I've been playing around with it on my CMM2....with a few hiccups. In sub GetTouch, the GUI Cursor Mouse statement needs uncommented....that one had me scratching my head a bit.

After getting past that...oh...maybe add to the documentation that option mouse needs enabled for CMM2 users...I normally leave this off, since it's a bother to have to type 'mouse controller close' every time a program exits ungracefully. This also took me a few minutes to fathom.

Now for some nit picks...minor ones. As copied, the slider pointer is not redrawn after being moved, I fixed this by adding:

GUIObjDraw 71

inside the main loop. Not graceful...but it works. Also, the check/unchecked area for checkboxes doesn't seem to scale correctly to the frame around it...minor cosmetic issue. I haven't played with this...since I don't understand the usage of GUI Bitmap currently.

What I have been doing the last few days, is to make the objects relocatable...since on the CMM2, one can have alot of screen 'real estate' and to add a window sub to make these non-destructive 'popups'. I'm in the early stages of working out a way to have multiple 'popups' on screen simultaneously. The first step is adding a third dimension to the O() variable. Next, I need to think of a way to track window 'focus' and what objects belong to what window. The 'window' really should be added as an object....baby steps!

Steve


GUI_demo_3.zip