realbasic-plugins
[Top] [All Lists]

Re: Treating a class as a control... bummer?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Treating a class as a control... bummer?
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Mon, 25 Apr 2005 21:15:28 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <BE917C0D dot C73F%vanhoek at mac dot com>

On Apr 24, 2005, at 3:39 PM, Alfred Van Hoek wrote:
I know, but it is not an issue here. Both mac and windows show the same
problem with bytes 16-20 of a class' struct when the class instance becomes a control/rectControl. It is consistent. I wonder that is might be due to the different offsets classes and controls have. I have to investigate this further. The plug depends heavily on users "dropping", i.e. "control-click on the window and then choose your class" wanting to have an instance on the
window.

When you put a class on a window, it doesn't become a control. It still is your class, and your super does not change. In both cases, they are created with "New". On a window, if you have any properties set to be visible in the properties window, the properties will be set upon creation of that instance. That's really the only difference I can think of.

-Jon


--
Jonathan Johnson
REAL Software, Inc.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>