<div dir="ltr"><div id=":4n9" class="Am aO9 Al editable LW-avf" tabindex="1" style="direction:ltr;min-height:85px">Let's see ... It's more rational this way for me</div><img src="https://signl.live/tracker/open?dID=1542697817473&eId=1072048d5e417e023e48463fa1d979f9" width="1" height="1" border="0"></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 19 nov. 2018 à 23:25, Benoît Minisini <<a href="mailto:g4mba5@gmail.com">g4mba5@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 19/11/2018 à 22:09, Benoît Minisini a écrit :<br>
> Le 19/11/2018 à 12:56, Fabien Bodard a écrit :<br>
>> The both are logical... In the real life a qt component don't show <br>
>> it's internal... In Gambas yes ... but how to get the widget root ?<br>
>><br>
>> In my mind if I put something in a container .parent must return the <br>
>> global container ... not it's structure.<br>
>> If I put myObject in a MyContainer ... MyObject.Parent is a <br>
>> MyContainer ... no ?<br>
>><br>
>> Maybe it need two property to manage this case ... A way to get the <br>
>> class container (MyContainer) and a way to get the true container (panel)<br>
>><br>
> <br>
> I know that a container is used as the official container of a control <br>
> made in Gambas.<br>
> <br>
> So I can make the Parent property returns the expected container (the <br>
> control made in Gambas) and not the real one.<br>
> <br>
> I will try it, but it may break things : everything that browse the <br>
> control hierarchy from bottom to top.<br>
> <br>
> Or I can make an option in the UserContainer class that makes the Parent <br>
> property return the UserContainer control instead of the inner container <br>
> used by the implementation.<br>
> <br>
> I will try it too.<br>
> <br>
<br>
Done in commit <br>
<a href="https://gitlab.com/gambas/gambas/commit/44a3f5f664f3aa5c202fd25c51c7d25608cc48e0" rel="noreferrer" target="_blank">https://gitlab.com/gambas/gambas/commit/44a3f5f664f3aa5c202fd25c51c7d25608cc48e0</a>.<br>
<br>
Now Control.Parent ignore the inner containers of controls made in Gambas.<br>
<br>
Let's see if something breaks...<br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Fabien Bodard </div>