My widget layout manager disappears after I resize my Windows Netscape 4.76
browser. What should I do differently?
Here's the main script for the page:
<script language='javascript'>
DynImage.getImage('img/button/file.png');
DynImage.getImage('img/button/edit.png');
DynImage.onLoaderDone = function()
{
//render
fileButton = new Button('img/button/file.png');
fileButtonListener = new EventListener(fileButton);
fileButtonListener.onpressed = function(e)
{
//do nothing
}
fileButton.addEventListener(fileButtonListener);
editButton = new Button('img/button/edit.png');
editButtonListener = new EventListener(editButton);
editButtonListener.onpressed = function(e)
{
//do nothing
}
editButton.addEventListener(editButtonListener);
layout = new Layout();
layout.addChild(fileButton);
layout.addChild(editButton);
DynAPI.document.addChild(layout);
//layout
layout.layout();
}
</script>
The Button and Layout widgets are DynLayers (of course) made the the
template in the tutorial. Both are initially setVisible(false). The layout()
function iterates through the children of the object and lays them out
(right now, it works like a java FlowLayout, except it will wrap when it
reaches the edge of the parent of the layout object).
This seems to work fine, until I resize my netscape browser. Then all
objects disappear. I know netscape re-renders when it is resized, so I tried
adding DynAPI.onLoad to call layout.layout(), but it doesn't seem to call
this method. What should I do?
I'm doing all this so that I can have windows style dockable toolbars in my
web application. Again, if this has been done already, please tell me.
-joe
> -----Original Message-----
> From: Rochi Febo Dommarco [mailto:[EMAIL PROTECTED]]
>
> Joseph,
>
> I was looking for such kind of widgets but I wasn't unable to
> find it.
> I think these widgets will be very useful.
>
> Regards,
> -rochi
>
> ----- Messaggio originale-----
> Da: Joseph Bui <[EMAIL PROTECTED]>
>
> > I was thinking of writing a set of widgets that will do
> control layout
> > similar to java layout managers. Are there any widget sets that do
> > thisalready? I thought I should check before starting on
> this project.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help