See if you can reset the drawRect in the zoomWindow and/or resizeWindow handlers. The stage has two rect properties, (the stage).rect which crops/expands the stage, and (the stage).drawRect which actually scales the stage. It sounds like the auto maximize button is using both, when it should only be using (the stage).rect and not (the stage).drawRect. So if you can reset the drawRect in those handlers, it would take care of the problem (although it might flash big and then small again; I'm not sure of when those handlers are called in regards to the stage updating after the maximize button is clicked...)
Charlie Fiskeaux II Interactive Media Developer Cre8tive Group cre8tivegroup.com > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Andrew Dempsey > Sent: Monday, May 17, 2004 7:11 AM > To: Lingo L submission > Subject: <lingo-l> bitmap distortion on zoomWindow and resizeWindow > > Hi all, > > I am working in MX2004 on Win XP (although the problem also > occurs in 2000 and 98), using that nice new 2004 feature > where you can build projectors with maximize and normalize > buttons in the title bar (using the "Display Template"). > > I have created a movie with a stage size of 1200 x 1024 > pixels, but I run it out of a stub projector that is 800 x > 600. So part of the movie is not showing at the beginning, > when the user runs the projector. Initially, there is a menu > bar (custom Director menu) and a toolbar showing, with a web > Xtra member below that is sized to fit the 800 x 600 window. > > I am trying to achieve the effect that you get in, say, > Internet Explorer, when you maximize a window and the > interface expands (gets wider and longer), without resizing > any of the toolbar buttons. In other words, all of the menus > and buttons remain in the same locH and locV, but the width > and height of the web xtra member below the menu/toolbar > increases to fill the maximized projector. > > I first tried this with no bitmap members on the stage (I was > using the osControl xtra for buttons and tabs instead) and it > worked great. I could capture the changing of projector size > using the on zoomWindow and on resizeWindow handlers, and > change width and height accordingly. However, once I added > bitmap members on the stage, I found that maximizing and > normalizing the projector window caused all the bitmaps to > become hugely distorted (expanded 2x or 3x their size). > > I have spent a few days trying to figure out how to prevent > this bitmap distortion, but I now feel like I am going around > in circles. Anyone have any thoughts? > > Thanks, > Andrew > > > > > [To remove yourself from this list, or to change to digest > mode, go to http://www.penworks.com/lingo-l.cgi To post > messages to the list, email [EMAIL PROTECTED] (Problems, > email [EMAIL PROTECTED]). Lingo-L is for learning and > helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
