Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:08 21 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 Objects Create Question...

Author Message
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 03:50pm 08 Aug 2015
Copy link to clipboard 
Print this post

Ok... How to deal with this:

Your display backlight is wired always on.

Your GUI panel design needs to look like 3 different "screens" of objects.
Each "screen" has (let's say) 5 objects, for a total of 15.
As objects are created, they are put on the display with the object set to "active".

When you first run the program, the user will see what looks like a jumble of crazy stuff being drawn on the display as each object in every "screen" is created.

Of course, after the programs INIT part, you set the correct "screen_state" and call the redraw sub... Everything then looks and works OK from there...

Now, the asking part...

Is there a way to set a "draw state" when an object gets created..?

Now, of course, when you are first designing the GUI layout, you want to see the objects as you create and position them... But when that's done, can you set this "draw state" to "hidden"...?

I will try to set each object to "hidden" right after creation, but this will still show a "bunch of flashy things" during INIT...

Anyway, nuff babble... Any ideas out there..?

Thanks Gents..!
Edited by Zonker 2015-08-10
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3287
Posted: 07:21pm 08 Aug 2015
Copy link to clipboard 
Print this post

Excellent point, thanks Zonker. There needs to be some way for GUI controls to start out hidden. Some thought is needed on that one.

Probably the best solution would be for GUI DISABLE ALL to apply also to new controls as they are created. Or, even better, have a new variant of the command. eg, GUI DISABLE DEFAULT.

This needs more thought.

GeoffEdited by Geoffg 2015-08-10
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