[Gambas-user] Cannot change hierarchy of controls in Panel unless Arrangement=None/Fill

T Lee Davidson t.lee.davidson at gmail.com
Thu Jan 18 01:42:33 CET 2024


On 1/17/24 18:32, Benoît Minisini wrote:
> Le 17/01/2024 à 16:57, T Lee Davidson a écrit :
>> With a Panel having its Arrangement set to Horizontal (or Vertical, Row, or Column), changing the hierarchy of its children 
>> does not "stick" upon Save or Compile. If I set the Panel's Arrangement to None or Fill, the hierarchy changes persist as they 
>> should. But, if I then change the Arrangement back to Horizontal, the hierarchy reverts to what it was originally.
>>
>> This may be intended behavior, but I think it is a bug. Should I report it on the Bug Tracker?
>>
>>
> 
> It's feature. It always worked like that. As soon as a container arranges its children, the IDE sort them according to their 
> position so that the arrangement follows the visual order.
> 
> For example, if a Panel arrangement is set to 'Horizontal', children are sorted by their X property.

I must have missed something while testing the behavior. Because, I had a button all the way to the right of other buttons in a 
Panel, and when I ran the program, it moved to the middle. So, I tried to rearrange the buttons by rearranging the hierarchy.

I see now that when the Arrangement is manually changed to Horizontal, the hierarchy is automatically changed to respect the X 
properties.

Okay. Thank you.


-- 
Lee



More information about the User mailing list