能移动的RichTextEdit

xml version="1.0" encoding="utf-8" ?>
< mx:Application  xmlns:mx ="http://www.adobe.com/2006/mxml"  xmlns ="*"  height ="100%" >
    
< mx:Style >     
        TitleWindow    
        {        
                backgroundAlpha: 0.9;
                backgroundColor: #9199A4;        
                borderColor: #9199A4;        
                borderAlpha: 1.0;        
                borderStyle: "none";        
                borderThickness: 0;        
                paddingBottom: 0;        
                paddingLeft: 0;        
                paddingRight: 0;        
                paddingTop: 0;        
         }
     
mx:Style >     
     
< mx:Script >
         
    
             import mx.managers.*;    
             private function floatControlBar() : void    
             {        
                 rteControl.parent.removeChild(rteControl);        
                 rteControl.addChild(DisplayObject(rte.toolbar));        
                 rte.showControlBar=false;        
                 mx.managers.PopUpManager.addPopUp(rteControl, rte, false);    
             }
]]>
     
mx:Script >     
     
< mx:RichTextEditor  id ="rte"  htmlText =""  headerHeight ="5"          
         creationComplete
="floatControlBar()" />     
    
< mx:TitleWindow  id ="rteControl"  width ="325"  title ="ToolBar" />     
mx:Application >

转载于:https://www.cnblogs.com/FireYang/archive/2007/01/16/622034.html

你可能感兴趣的:(能移动的RichTextEdit)