On 5/30/05, Mike Anderson <[EMAIL PROTECTED]> wrote:
> No matter which container I choose however, it would be nice to have
> them be able to be dragged across the desktop space. Just like the
> Alert box - which is automatically dragable.
[...]
The TitleWindow is automatically draggable. The TitleWindow
implements the Box layout by default. If you want to use some other
layout, you can put all your stuff within another container inside
your TitleWindow-derived class.
Pseudocode for sample TitleWindow-based MXML component:
<mx:TitleWindow>
<mx:Tile>
<!-- stuff -->
<mx:Tile>
</mx:TitleWindow>
Then you can pop up the TitleWindow-based component using
PopUpManager.createPopUp()
> With all this said, is there anything I should keep in mind, when
> selecting the proper containers (which will act like popup windows with
> title bars), etc.?
The only container that support automatic dragging is the TitleWindow.
As mentioned above, you can wrap all your stuff inside a TitleWindow
inside another container like Tile or Canvas to get the desired
effect.
> What is the proper method, of giving any type of window (or container
> for that matter), the ability to be dragged around?
TitleWindow is the best option. If you still want to write your own
dragging code, here's an example of draggable images:
http://www.flexauthority.com/Samples/delicious/WhatsCooking.mxml?versionChecked=true
http://manish.revise.org/flash/flex/delicious.zip
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/