From: Michael P. <mp...@ph...> - 2001-03-17 13:38:02
|
you should be able to recreate the dyndocument object that points to the main frame and simple repeat the code that ADDs the menu. (it may also require repeating the floatLayer() method. "Vancamp, Todd (T.S.)" wrote: > Is there any way to "repaint" all of the dynlayers once dynDocument > does a load(newpage)?Project Background:First of all, I'm working with > framed windows. I'm loading the dynAPI's in a header frame and > creating a floating menu in the main display frame. When a user > selects an item on the menu I do a menu.load(new page location) which > loads the new page into the main display area. Is there any way of > "repainting" my menu onto the new document or do I have to recreate > the menu all over?It seems to me that all of the layer information is > stored in the dyno document, I just can't figure out how to "repaint" > them. I've tried .recreateAll() but that didn't seem to work. Any > suggestions? Thanks in advance.This is some example code that I'm > using in the header > frame:DynAPI.setLibraryPath('/t525/dynapi/dynapi/src/lib/') DynAPI.include('dynapi.api.*') > > DynAPI.include('dynapi.NVHInc.systemMenuStyle.js') > DynAPI.include('dynapi.gui.tvcpopup.js') > DynAPI.include('dynapi.coreGui.label.js') > DynAPI.include('dynapi.gui.loadpanel.js') > DynAPI.include('dynapi.ext.float.js') > DynAPI.include('dynapi.gui.dynimage.js') > DynAPI.include('dynapi.apidragevent.js') > DynAPI.include('dynapi.util.thread.js') > DynAPI.include('dynapi.util.pathanim.js') > function BuildMenu() { mainWindow =new > DynDocument(parent.mainFrame) /* create dyndoc for main display > area. var menuwidth = 150 /* /* a bunch of menu > building options /* upon clicking a menu item the script exec > the JS command LoadPage('location of new page') /* > tmp=MainMenu.add('HowTo',"javascript:LoadPage('/t525/nvh_system/isolation/literature.html#sds')") > > tmp.SubMenu=HowToSubMenu /* /* > MainMenu.Lock = 'true' > mainWindow.addChild(MainMenu) MainMenu.Pop(5,1) > MainMenu.floatLayer(mainWindow.id) /* ext crated to float the > menu, need to pass the frame information.}DynAPI.onLoad=function() > { BuildMenu()}function LoadPage(thePage) { > mainWindow.load(thePage) > } -- Michael Pemberton mp...@ph... ICQ: 12107010 |