realbasic-nug
[Top] [All Lists]

Re: Create virtually a CANVAS subclass

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Create virtually a CANVAS subclass
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Wed, 28 Dec 2005 11:33:51 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BFD894E6 dot 2C52B%realbasiclist at fusina dot net>

On Dec 28, 2005, at 11:15 AM, Dominik Fusina - The Captain wrote:

Hi,

I create a CANVAS subclass (myCanvas) and I generate CANVAS objects
dynamically into a window with “new” operator.
To do this, today I must to create a (empty) CANVAS object with superclass
“myCanvas” and an index number to “0”.

But I would like to create “myCanvas” instances without that default and physical object, just like that, with using “new” operator only (virtual
action).
- I want my main window empty ! -
Why ? Because I need to initialize differents default values before
“myCanvas” object be created (open).
Is it possible ?

(I hope to be clear ;) )

Thanx,

Not with plain canvas subclasses or most other control subclasses.

IF you use a container control you might be able to do something like this. Basically each container would just hold one standard control and then you can instantiate those at run time and embed them using embedwithin.


_______________________________________________
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>