Mike 12.14.2010

Started work on DynamicPanel for Flex 4 today:

  • Started by making a Resizeable panel that extends the Spark TitleWindow
  • Added logic for drag / drop moving of the panel
  • added in a resize button and a listener to the title bar for double-click maximizing
  • Created a SparkSkin to be the layout for the panel, including the buttons, title, content, and resize handle
  • Tried to put the minimized and maximized dimension stuff in the skin but it turns out that if explicit(Width|Height) is set in actionscript, the skin can no longer resize itself
    • This is a pretty annoying fact because if we want to reskin out minimizable panel down the road with, say, a title bar that’s smaller, we have to go in to the non-skin related code and change the minimized height instead of doing it in the skin where it belongs
  • Started putting logic in for minimize/maximize/restore size and position but either I’m making a mistake saving/setting values, the transitions are screwing things up, or the states are getting mixed up/overlapped somewhere