Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:37 17 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : GUI numberbox issue...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9643
Posted: 01:51am 06 Jan 2016
Copy link to clipboard 
Print this post

Hi folks.

Is there anyway to stop the numberbox from wiping the text in the background?

Here is how the screen looks like when initially called:





...and with the numberbox up so you can enter numbers:





...and what it looks like once the numberbox is closed:





This last image is my problem.

I thought there was a GUI REDRAW command, but perhaps I am dreaming, cos I can't find that in the manual. I tried putting a GUI DISPLAYBOX around the text, but all that did was erase it. I issued the displaybox command before I attempted to draw text within it. It is quite possible I am not using the command quite right.

I will keep playing around.

EDIT: 'GUI REDRAW', if there was such a command, would not help, as the GUI is fine, it is the background text, so forget that bit above where I talk about that command - I must have indeed been dreaming.......

EDIT: Yes, I am using the command wrong. I need to define a displaybox, set the font then ram the text I want in the box into the CtrlVal for that displaybox, then it comes up on the LCD and is not bothered by the numberbox overlaying it. I will tinker some more.....Edited by Grogster 2016-01-07
Smoke makes things work. When the smoke gets out, it stops!
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 03:17am 06 Jan 2016
Copy link to clipboard 
Print this post

You need to use the GUI CAPTION command rather than the TEXT command for drawing your captions. This is because MMBasic can track the status of GUI CAPTIONs and redraw them when needed. It cannot do that with the non GUI commands (text, circle, line, etc). This is something that I need to look at before taking the MM+ firmware out of beta.

Also, better documentation would help

Geoff
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025