And I really can't set

        ContainerControl.Visible = False

as soon as it gets instantiated?

Am 29.01.2007 um 02:09 schrieb Tom Benson:

Yes, Container Controls are a bit of an anomaly. They behave like windows in some manners, and like controls in others. It's very confusing when yo go beyond the basics.

Anyway, you are correct. you can pass references to a container control as parameters, just as you can with controls and windows. but as soon as you call EmbedWithin or EmbedWithinPanel on that reference then a new instance of that container control is created. The old one is not moved. Took me quite some time to work out a practical means of moving containers between windows, and I have no drop in solution unfortunately, it's customised for each instance I need to move.

- Tom


On 29/01/2007, at 9:53 AM, Chris Halford wrote:

Odd. I can programatically create a container control and pass it around from function to function. But you are saying as soon as it is visibly instantiated it loses its ability to exist in a non- visible state???

C.

On Jan 28, 2007, at 5:24 PM, Aliacta wrote:

Is there a way to detach a container control from a window or panel without closing the container control? This may sound pointless, but in some cases a container control is generated programatically and attached to a window. Detaching from the window without closing would enable it to then be attached to a subsequent view without having to reconstruct it and re-implement any state that may be present.

AFAIK everything on an RB window is integrally part of it so you can't do that. You'll have to save the 'state' of your container to some App.property for instance, close it, open a new one on the new window, and read in the 'state' to set it like the previous one.

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

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

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

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

Reply via email to