[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reordering components in HPanel fails
[Thread Prev] | [Thread Next]
- Subject: Re: Reordering components in HPanel fails
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Wed, 17 Jul 2024 20:09:39 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 17/07/2024 à 17:53, Stéphane Aulery a écrit :
Le 17/07/2024 à 14:39, T Lee Davidson a écrit :On 7/16/24 22:29, Stéphane Aulery wrote:I was wrong, it's not an HPanel but a Panel. I think it doesn't change anything because the Arrangement property is on Vertical.In the left column all elements have the same value for property X (7).excution.png, form.png and FMain.form show that controls inside Panel3 are ordered by their order in FMain.form.I also tried to set the X of LabelSearchOptions to 5 and the X LabelSearchText to 9, to check if X values change the ordering inside the panel in execution. It's still not better.If a container has its Arrangement property set to Vertical, then their Y properties should determine their vertical order. Their width attempts to fill the horizontal space within the container. So, it is expected that you would not see any difference when changing their X properties.The screenshots also show that Y plays no role.
Sorry, it does.When you have a container that arranges its children, its arrangement is applied when the form is saved.
The children control are sorted in a way depending on the arrangement. For exemple, for a vertical arrangement, controls are sorted by their Y property. It's done so that the result is similar to how you layout the children controls in the form editor.
This order is the z-order of the children controls. So, if you use the Raise() and Lower() method on these children, it will arrange them again.
Note that you can see the control order in the Hierarchy tab of the form editor.
Please post your full project if you want me to look at it. Regards, -- Benoît Minisini.
Re: Reordering components in HPanel fails | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Reordering components in HPanel fails | Bruce Steers <bsteers4@xxxxxxxxx> |
Reordering components in HPanel fails | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Reordering components in HPanel fails | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Reordering components in HPanel fails | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Reordering components in HPanel fails | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Reordering components in HPanel fails | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: Reordering components in HPanel fails | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: Reordering components in HPanel fails | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Reordering components in HPanel fails | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Reordering components in HPanel fails | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: Reordering components in HPanel fails | Stéphane Aulery <lkppo@xxxxxxx> |