Containers are the bastard offspring of windows and controls ;-)

You should be able to simply call

ccPC.hide //don't call close, it will destroy the instance
ccPC.EmbedWithinPanel(TPanel, page_number_where_I_Want_it_now, c_cc_LEFT, c_cc_TOP)

Cheers,
Tom

On 29/11/2006, at 7:38 PM, Michael wrote:

I get the container control to show itself, with the following code in the open-event of the tab panel.

  dim ccPC as new ccPrefControl
ccPC.EmbedWithinPanel (TPanel,c_anesDocs_Page,c_cc_LEFT,c_cc_TOP)// c_cc are constant integers

but, I cannot get the container control to show itself in the correct panel when I change panels.

have tried

(in the change event of the tab-panel)


ccPC.panelIndex=1 // This method or property does not exist
control(ccPC).panelIndex = 2// Illegal cast exception...I guess a containerControl is not a control :-)


Any help would be appreciated.

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