This code never compiles!



"Age Mooy" <[EMAIL PROTECTED]> wrote:
>1)>I had to look for this pretty hard... these methods are not documented at
>all :(
>The below code is a way to manually add a subpage to another page.
>
>----------------------------------------------------------------------------
> CSpCommonPagesList   _subpages;
> CSpAwtPanel          _peer
>
> public int this_onAfterInitEvent(CSpInitEvent event)
> {
>  _subpages = new CSpCommonPagesList();
>  setStudioSubpagesList(_subpages);
>
>  _peer = (Panel) getJavaPanelPeer();
> }
>
> private void addPage(String name) {
>  _subpages.addElement(name, CSpider.getCommonPage(name));
>
>  // now you can add page with the specified name to your page by doing
>something like this:
>  CSpAwtPanel page = (CSpAwtPanel) ((CSpJavaPanel)
>CSpider.getCommonPage(name)).getJavaPanelPeer();
>  _peer.add(page);
> }
>---------------------------------------------------------------------------
>
>2) dunno, never tried.
>
>Age
>
>
>[EMAIL PROTECTED] wrote in message <[EMAIL PROTECTED]>...
>>Hi,
>>
>>Pardon my newbie-ness with NetD, but I have two quick
>>questions regarding the use of CSpPage:
>>
>>1) Is it possible to subclass a CSpPage and override the
>>construction of the subpages list (instead of using the
>>Properties box)? I want to do this because 2) I have
>>objects (subpages) I want to reuse across pages in my
>>project. Possible?
>>
>>I searched the site (tech notes, etc), but most of the
>>pertinent message refer to 3x versions of NetD. I read
>>in an old note that this wasn't possible (!!) in
>>3x. Is it the same case for 4.1?
>>
>>Thanks!
>>
>>Mike
>
>

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to