- enforceBoundaries
- resizeEnabled
- moveEnabled
I took bits of code from previous examples of Flex 3 re-sizable TitleWindows. Most of the resizing logic came from the MDI components in FlexLib. I just tweaked some of it to work with Flex 4 and its new skinning features.
Here are some other implementations of re-sizable Flex 4 TitleWindows.
http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/
http://flexdevtips.blogspot.com/2010/06/flex-4-spark-resizable-controls.html
Here's the example. In the sample project below, I have declared the required CSS for the TitleWindow in the defaults.css that get compiled in automatically. Don't forget that CSS when using the TitleWindow in your own projects. (right click to view source):
Do you know why it wont let me declare states in Reszable TitleWindow?
ReplyDeleteIssue resolved. I had to declare states using the namespace of the ResizableTitleWIndow, not s:states.
ReplyDeleteThat very nice Dan. I have often wanted to make it so that all four sides of the window were resizable instead of just the bottom right corner. Now I don't have to!
ReplyDeleteHi,Dan.
ReplyDeleteThere is something happended with your server.
I can not see the example you linked.
The server should be back up.
ReplyDelete