All-

I am new to DynAPI and have been very impressed so
far.  However, I was wondering if it was possible to
implement the following...  

1. Create a scrollpanel which has a loadpanel for the
child... this I can do (see below).

2. When I user setURL, resize loadpanel and
scrollpanel so that they will show only the HTML that
has been loaded.

<html>
<head><title>test</title>
<Script language="Javascript"
src="../src/dynapi.js"></script>
<Script language="Javascript">

DynAPI.setLibraryPath('../src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*')
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');
DynAPI.include('dynapi.gui.button.js');
DynAPI.include('dynapi.gui.scrollbar.js');
DynAPI.include('dynapi.gui.viewport.js');
DynAPI.include('dynapi.gui.scrollpane.js');
DynAPI.include('dynapi.gui.dynimage.js');
DynAPI.include('dynapi.gui.label.js');
DynAPI.include('dynapi.gui.loadpanel.js');
</script>

<Script language="Javascript">
DynAPI.onLoad=function() {

        contentLayer = new LoadPanel()
        contentLayer.setHTML('Layer is empty')
        contentLayer.setBgColor( 'white' )

    scrollLayer = new ScrollPane(contentLayer)  //
loadpanel will be set as the content
        scrollLayer.setSize(200,150)
        scrollLayer.moveTo(100,100)

        DynAPI.document.addChild(scrollLayer)
}

function changeContent( layer, URL ) {

        layer.setURL( URL );

layer.setSize(layer.getContentWidth(),layer.getContentHeight());
        //maybe change scrollpanel size here?
}


</script>

</head>
<body bgcolor="#000000" link="#ffffff" alink="#ffffff"
vlink="#ffffff">
<a href="javascript: changeContent( contentLayer,
'main.htm');">main.htm</a>
<br>
<a href="javascript: changeContent( contentLayer,
'table.htm');">table.htm</a>
</body>


</html>

Thanks for your time,
Shawn Paige

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to