Page 1 of 1
Hiding panels
Posted: Fri Jan 12, 2018 5:47 pm
by SDeanD
Is there a method to hide a panel. ( like the migrated Function key panel) and auto justify the screen to use the display area? like many GUI apps do today.
thanks,
Dean
Re: Hiding panels
Posted: Fri Jan 12, 2018 6:02 pm
by Scott Klement
Panels (like all widgets) can be hidden by setting their visibility property to "hidden". That makes the most sense to do if you want it hidden/unhidden at different times, the program can change the visibility as needed. If you never want to see the panel, just remove it.
With regards to making a display that expands/shrinks to the display area, that's harder to explain. This isn't something that magically happens... displays that work that way are designed to work that way when they are built.
We have layout widgets that can be set to a percentage size, and can divide the screen up into sections. Each section expands/shrinks when the screen size expands/shrinks. Using that, and positioning/sizing other widgets based on percentages, or anchoring them to the left/right allows you to design a screen that adjusts to different display sizes. There are also tools in the Visual Designer that let you design and preview your screen in different canvas sizes so you can see that it correctly expands/shrinks.
That's about as well as I can explain it in a forum post -- admittedly, it is just an overview.