<div dir="ltr"><div id=":2ed" class="Am aO9 Al editable LW-avf" tabindex="1" style="direction:ltr;min-height:85px">The both are logical... In the real life a qt component don't show it's internal... In Gambas yes ... but how to get the widget root ?<div><br></div><div>In my mind if I put something in a container .parent must return the global container ... not it's structure.</div><div>If I put myObject in a MyContainer ... MyObject.Parent is a MyContainer ... no ?</div><div><br></div><div>Maybe it need two property to manage this case ... A way to get the class container (MyContainer) and a way to get the true container (panel)</div></div><img src="https://signl.online/tracker/open?dID=1542628594114&eId=1072048d5e417e023e48463fa1d979f9" width="1" height="1" border="0"></div><br><div class="gmail_quote"><div dir="ltr">Le sam. 17 nov. 2018 à 18:30, Karl Reinl <<a href="mailto:karl.reinl@fen-net.de" target="_blank">karl.reinl@fen-net.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Samstag, den 17.11.2018, 17:53 +0100 schrieb Benoît Minisini:<br>
> Le 17/11/2018 à 17:36, Charlie Reinl a écrit :<br>
> > Salut Benoît,<br>
> > <br>
> > when I designed on a ScrollView before ( Gambas <= 3.11.90 12c0ebda4 (master))<br>
> > and asked Object.Type(item.Parent)  I got "ScrollView".<br>
> > <br>
> > Now the same with : Gambas > 3.11.90 12c0ebda4 (master)<br>
> > Object.Type(item.Parent)            I get "Panel",<br>
> > Object.Type(item.Parent.Parent)     I get "DrawingArea",<br>
> > Object.Type(item.Parent.Parent.Parent)      finally gives "ScrollView"<br>
> > <br>
> > But my Parent has to be  found with Object.Type(item.Parent) like<br>
> > before, no?<br>
> > <br>
> <br>
> It's normal, as soon as a container is rewritten in Gambas. You see the <br>
> internal structure.<br>
> <br>
> Why is it a problem for you?<br>
> <br>
<br>
yes, my project loops through my forms elements and queries theirs<br>
properties, here a locked state, but  Panel and DrawingArea don't have<br>
my locked property, nor my GET method.<br>
<br>
And for me Parent means Parent and not their home where they life, and<br>
looking  in the rooms to find them. <br>
<br>
-- <br>
Amicalement<br>
Charlie<br>
<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="m_-7657475095506620842gmail_signature" data-smartmail="gmail_signature">Fabien Bodard </div>