Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:42 23 May 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 Commands - Changing Radio Button Caption Colour

Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 03:46am 23 Feb 2025
Copy link to clipboard 
Print this post

Hello all,
I am trying to draw all my GUI commands (Pico to an LCD) in BLACK so they don't appear on start up (I have 40+). When I need to see them I use GUI FCOLOUR and GUI SHOW.

All except GUI RADIO work because its captions' colours are set by the preceding COLOUR command. Even doing a GUI HIDE ALL immediately after it there is a perceptible flicker.

Any suggestions?

Cheers,

Andrew

(If I set the caption in black it's zone still works so I could TEXT the caption as I wanted it)
Edit: using GUI FCOLOUR changes the buttons and 'LED' but not the captions.
Edited 2025-02-23 13:49 by Andrew_G
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7584
Posted: 10:35am 23 Feb 2025
Copy link to clipboard 
Print this post

Use multiple pages instead of drawing a lot? You only see one page at once then.
The colour commands can make things disappear but they don't disable them.

GUI SHOW is to reveal controls that have been hidden by a GUI HIDE list.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 06:12am 24 Feb 2025
Copy link to clipboard 
Print this post

Thanks Mick (the non-big one).
Yes that works!
When I tried it x months ago I couldn't crack it (maybe pre-Pico?).

I'm still intrigued that RADIO BUTTON appears to be the only(?) control that you can't directly change the caption colour?

Crisis averted and now I'm changing my GUIs to various pages.
Off hand - do you know the limit of page Nos?

Cheers,

Andrew
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7584
Posted: 07:56am 24 Feb 2025
Copy link to clipboard 
Print this post

I never went past 3, I don't think. Then I abandoned the project. Like you do sometimes. :)

  Quote  To allocate controls to a page you use the GUI SETUP nn command where nn refers to the page in the range of
1 to 32. When you have used this command any newly created controls will be assigned to that page. You can
use GUI SETUP as many times that you want. For example, in the program fragment below the first two
controls will be assigned to page 1, the second to page 2, etc.
- Advanced Graphics manual
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
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