Grouping parts using Forms
There is one more thing to watch out for if the user can change the font or font size of certain parts: parts incorrectly overlaying one another.
In the previous example window, if the font size of labels is made large, all four labels on the window part enlarge and everything repositions correctly. Label1 enlarges and its text part remains attached to its top edge. Label2 shifts down and enlarges and its text view remains attached to its top edge. Label3 and Label4 shift down and enlarge and the top edges of the list and table shift down.
But, notice what happens if the font size of text parts is made large instead. The Label1 text part enlarges and remains attached to the top edge of Label1, incorrectly overlaying the text part below it. Likewise, the Label2 text part enlarges and incorrectly overlays the labels below it.
This is because Label2 and its text part are attached to Label1 rather than to the text part beside Label1. If you attach them to the text part instead, you have the reverse problem--overlaying if the font size of the labels is made large.
What is needed is a way to group Label1 and its text part into a single entity that can resize automatically to accommodate the larger of the two parts. The way to group them is to use a form part.
Tip icon
Two or more parts that could have varying heights individually, but as a group need to maintain the same height, can be placed on a form.
Last modified date: 05/14/2020