<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 4 Nov 2023 at 16:37, BB <<a href="mailto:adamnt42@gmail.com">adamnt42@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p><br>
    </p>
    <div>On 5/11/23 12:41 am, Bruce Steers
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>I have tried to add a Control.class
          to my project and add a property to it.</div>
        <div><br>
        </div>
        <div>My expectation is by doing that then
          ALL controls should get the new property because all controls
          inherit Control.class?</div>
        <div><br>
        </div>
        <div>but it does not work.</div>
        <div><br>
        </div>
        <div>it does not work with
          UserControl.class either.</div>
        <div><br>
        </div>
        <div>Is there a way to add a property to
          everything by adding it to one class file?</div>
        <div><br>
        </div>
        <div>Respects</div>
        <div>BruceS</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----
</pre>
    </blockquote>
    <p>No, somewhere from the mists of time : your Control class is
      loaded after all component classes have been loaded. That is so
      overriding a class works. Thus the symbol tables for components
      dont have you Control.class, they have the originals.</p>
    </div></blockquote><div><br></div><div style="font-size:small" class="gmail_default">daaaag nabbit !!</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Could something like this be possible Benoit?</div><div style="font-size:small" class="gmail_default"></div><div style="font-size:small" class="gmail_default">My only other option is to create override files for every single control/container :(<br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Could the interpreter realize auto-inheritance for Control.class so i can add somethings to all controls in one go?</div><div style="font-size:small" class="gmail_default"></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">The reason is I am making a DBus control component that gives my applications a dbus interface and can use Object methods , </div><div style="font-size:small" class="gmail_default">so far it uses GetProperty() SetProperty() and Call()<br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">I wish for a way to add a DBusVisible property to EVERY Control/Container so i can enable/disable as required in the ide..</div><div style="font-size:small" class="gmail_default">I think possible security risk would be the case if the DBus port could get/set any control.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Respects</div><div style="font-size:small" class="gmail_default">BruceS</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"><br></div></div></div>