On Nov 29, 2006, at 12:38 AM, 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 :-)



Once embedded correctly, nothing is required in the Change event to maintain it.

Example in TabPanel1_Open:

  dim cc1 as new ContainerControl1
  cc1.EmbedWithinPanel(me, 1, 0, 50) // embeds into page 1


Alternately you can drag the ContainerControl onto the tab page from the IDE. From the Window Editor, select ProjectControls from the popup menu above the Controls Pane.

Best,

Jack

_______________________________________________
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