1 Reply Latest reply on May 4, 2006 2:04 PM by Newsgroup_User

    Application with TaskBar

    FrogCdrom
      Hello Lingo-ites!

      Im writing an application which needs to run full screen but still display the Taskbar

      So...
      I just disabled the fullscreen option in the Publish Settings and tick the relevant boxes in the Display Template property box.
      No worries so far...

      The problem is that when the applciation runs, it runs in a window and when the user clicks the Maximize button, the window resizes to the desktop resolution and my stage goes to the top left corner.

      How can I:
      - start the application maximized;
      - center my stage on the maximized window?

      Thanks in advance of any help given
      ... and little chocolate gnomes for the best solution
        • 1. Re: Application with TaskBar
          Level 7
          > How can I:
          > - start the application maximized;
          > - center my stage on the maximized window?

          Try the following
          -- #movie script:
          on prepareMovie
          -- using Buddy API xtra:
          baSetWindowState(baStageHandle(), "maximised")
          end

          on zoomWindow
          mWindowResize()
          end

          on resizeWindow
          mWindowResize()
          end

          on mWindowResize
          sr = _player.activeWindow.sourceRect
          cr = _player.activeWindow.rect
          mW = cr.width/2
          mH = cr.height/2
          sw = sr.width/2
          sH = sr.height/2
          dr = rect(mW - sw, mH - sH, mW + sw, mH + sH)
          _player.activeWindow.drawRect = dr
          end