Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:41 05 Jul 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 Caption error....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9588
Posted: 11:24pm 12 Dec 2016
Copy link to clipboard 
Print this post

Hi folks - what gives?





I've checked this a couple of times, but the syntax matches the manual, but it won't accept it.

EDIT: I checked the version of the MM+ manual on Geoff's site, but the syntax for this command is the same in that manual, so I guess it is right?Edited by Grogster 2016-12-14
Smoke makes things work. When the smoke gets out, it stops!
 
MM_Wombat
Senior Member

Joined: 12/12/2011
Location: Australia
Posts: 139
Posted: 12:19am 13 Dec 2016
Copy link to clipboard 
Print this post

I checked the syntax and the command is missing the (Top,Middle,Bottom) character for the justification.


ie:

GUI caption #1,"Main Menu:",85,15,LT,RGB(magenta)

MM_Wombat
Keep plugging away, it is fun learning
But can be expensive (if you keep blowing things up).

Maximite, ColourMaximite, MM+
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 12:32am 13 Dec 2016
Copy link to clipboard 
Print this post

G,

I can confirm this on 5.2 on a 470 driving a 7" screen.

If you omit the justify and colour arguments, it works; If you omit the justify and do use colour it also works.

eg.
GUI CAPTION #1,"Test",85,15
.... works
GUI CAPTION #4,"Test2",185,45,,RGB(BLUE)
.... works
but using l(lower case) or L or LEFT or LT fails as you indicate

panky

Wrong!!! As mentioned, you need both x and y justification even though the manual says 1 or 2 characters. So LT works!
Edited by panky 2016-12-14
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9588
Posted: 08:37am 13 Dec 2016
Copy link to clipboard 
Print this post

Yeah, manual says justification can be one or two letters, so I only tried one.

I will play with this some more when I get back at the end of the day. Right now, I am off to a day-long job, but will check this thread again later. I will use LT if that works.
Smoke makes things work. When the smoke gets out, it stops!
 
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