dude, modifying the object itself to make something center when you resize the window is wrong. This means that every time you download a new copy of the DynAPI you will have to re-implement your changes As well as running the risk that the code will change in such a way as to make it impossable to re-apply your changes..
No, if you want to respond to an event (such as resizing the qwindow) then you need to use an event handler.. Have you read the tutorials yet? I would strongly trecommend it (RTFM and all).. Tutorials: http://dynapi.sourceforge.net/doccenter/index.php?DynAPITutorials ----- Original Message ----- From: "Chun Wah Chan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 9:09 AM Subject: [Dynapi-Help] keep layer center when resize! > Hi all: > > I've made a layer center to the DynAPI.document layer > by using one of the tutorial on the web, however, it > doesn't center when I tried to resize the window? > > I notice that there is a addEventListener method for > the DynDocument object, but do I really need to add an > eventListener to the DybDocument if I need to center a > layer in it? or i can modify some code in the > Dyndocument object? > > Thanks in advance! > > Herman > > _______________________________________________________ > Build your own website in minutes and for free at http://ca.geocities.com > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help