![]() |
Forum Index : Microcontroller and PC projects : GUI Objects Create Question...
Author | Message | ||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 767 |
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..! ![]() |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3287 |
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. Geoff Geoff Graham - http://geoffg.net |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |