Hi. Accidentally I could drag TitleWindow with HeaderHeight=0 but I don't know why.
Here is a sample source of a component (name is DraggableCanvas). <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" headerHeight="0" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" horizontalGap="0" verticalGap="0" height="70" width="100"> <mx:VBox width="100%" height="100%" marginTop="10" marginBottom="10" verticalAlign="center" horizontalAlign="center"> <mx:Button label="I Can Drag?" /> </mx:VBox> </mx:TitleWindow> Here is a sample source of application. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="this.initApp()"> <mx:Script> <![CDATA[ import mx.managers.PopUpManager; private function initApp():Void { var obj:Object = new DraggableCanvas(); var popupSample:Object = PopUpManager.popUpWindow(obj, this, false,false); } ]]> </mx:Script> <mx:Canvas width="100%" height="100%"> </mx:Canvas> </mx:Application> --Shigeru --- In [email protected], Manish Jethani <[EMAIL PROTECTED]> wrote: > > On 12/21/05, Nithya R <[EMAIL PROTECTED]> wrote: > > > but how do i make the titlewindow draggable when header height is 0? i want to drag the titleWindow with the help of the controlbar instead which i have placed on top... > > You'll have to add your own code to implement dragging. Listen for > the mouseDown/mouseUp/mouseOver events and move the object > accordingly. > > Manish > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/

