>> if it is a control, then it has an open event. call the constructor
>> method from the open event.
>> if it is another class, then you are generally better off declaring it
>> as
>> a property than draging it to the window. then, you create a new
>> instance
>> in the open event of the window and the constructor is called.
>>
>>
>
>You can drag non-control classes to a window as well; their constructors
>are not called when the window opens.
that's what i was saying. if your class is not a control, you should not
drag it to the window, but declare it as a window property.
the only advantage of draging it of the window would be to get an
automatic instance on window creator, which only works, as you say, if it
does not have a constructor.
you can call this a bug and realbug it. but in the time you are waiting
REALsoftware to fix it, you need your program to work, so you are better
off adapting your code.
matthias
-----------------------------------------------------
matthias buercher belle nuit montage fax 4112742114
matti at belle-nuit dot com http://www.belle-nuit.com
-----------------------------------------------------
|