![]() |
Forum Index : Microcontroller and PC projects : GUI numberbox issue...
Author | Message | ||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9643 |
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..... Smoke makes things work. When the smoke gets out, it stops! |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3303 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |