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.
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 07:11pm 10 Mar 2018
Copy link to clipboard
Print this post
I want to make my display look something "similar" to this
Can anyone tell me how to make the boxes that I can put the text in so they "look good"? I've tried to use this the Frame command but it doesn't seem to actually do anything, I can't see it on the screen I've made the program so simple even I should be able to get it right* [code] cls white GUI FRAME #2, "Time", 00, 00, 400, 120, red[/code]
That was just to see if I could make a box to put text in I've read both manuals and while there are a lot of drawing controls, I can't find anything that will let me draw all the boxes I need and have each one a different colour
I don't want (at this stage anyway) for the boxes to be touch sensitive
It's an Explore 100 with the 7 inch SSD1963 display
Any suggestions?
Edited by lew247 2018-03-12
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959
Posted: 07:37pm 10 Mar 2018
Copy link to clipboard
Print this post
Hi Lewis,
Use the BOX or RBOX commands to draw the 'frame' (or 'border'). Then use TEXT command with appropriate position, size, and colour of the font you desire.
I always teach the principle that everything on a 'page-layout' only concerns three main parameters: Size, position, and colour. Everything in your photo above can be covered by multiple sets of the aforementioned.
Simply alter the parameters of the (R)BOX/TEXT commands and you will get the 'looking good' result you're after
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 08:01pm 10 Mar 2018
Copy link to clipboard
Print this post
Thanks WW I did try those earlier and I'm getting nothing on the screen I thought my display might be broken so I tried the sample code in the MM Plus Manual and also Matherp's code
[Code] CLS WHITE [/code] This should clear the screen and leave it white? but all I'm getting is a black screen
The backlight works, I tried it when I was using the sample code and I was able to turn it up and down
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959
Posted: 08:05pm 10 Mar 2018
Copy link to clipboard
Print this post
CLS RGB(white)
What you're doing is passing a variable value by the name of 'white' and this will equal zero. So CLS 0 is the same as CLS black (i.e. the RGB value of 0 equates to black!!)
Hope this helps
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959
Posted: 08:07pm 10 Mar 2018
Copy link to clipboard
Print this post
With multiple (R)BOX commands you can define the 'fill' colour of the boxes (as opposed to using a single CLS). If you look closely at your image, the boxes are not all black.
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 08:10pm 10 Mar 2018
Copy link to clipboard
Print this post
I did try this [code]cls blue RBOX 50, 50, 400, 200, 10, red, green [/code] Which I "believe" should give me a red box with rounded corners with the inside green?
It doesn't I still can't figure out why the simple CLS blue doesn't work
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959
Posted: 08:20pm 10 Mar 2018
Copy link to clipboard
Print this post
Hi Lewis,
You must use 'RGB(colour)' rather than just 'colour'
Note that only a few colour 'names' are recognised (see manual). Alternatively use RGB(r,g,b) where r,g, and b are values between 0 and 255.
Simply try CLS RGB(RED) and you will see it cls to a red screen
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 08:25pm 10 Mar 2018
Copy link to clipboard
Print this post
Thanks WW I feel so stupid now, I have had it working before but because it was quite a while ago I simply forgot the proper format and reading the manual didn't help. My fault, result of that stupid brain surgery, if I don't do something for a while I completely forget It's working perfectly now Thanks
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2959
Posted: 08:29pm 10 Mar 2018
Copy link to clipboard
Print this post
Hey - that happens to all of us Lewis! The good thing is that you have this fantastic forum to turn to whenever you need help. Not sure what others think, but I reckon this is one of the best technical forums in terms of friendliness and quality of information.
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 08:49pm 10 Mar 2018
Copy link to clipboard
Print this post
I definitely have to agree I've go the "circles" done to use for the wind direction No idea how to do the small triangle on the outside, I did consider using Peter's pointer routing but I can't figure out a way to only have the very tip of the pointer showing and the rest of it "invisible"