Hi, 

Not really, My TitleWindow has a style like this:

.PopupHeader { 
   dropShadowEnabled: false;
   roundedBottomCorners: false;
   shadowDirection: center;
   textAlign: left;
   borderStyle: solid;
   borderAlpha: 0.17;
   highlightAlphas: 0.1, 0.16;
   headerColors: #cccccc, #ffffff;
} 

It is not transparent. I can cleary see it.

Thanks,

--- In [email protected], "jeremy lu" <[EMAIL PROTECTED]> wrote:
>
> hi,
> 
> I think the problem lies in your mxml component, the default 
titleBar color
> is transparent, hence it's pretty hard to drag it, try something 
like this
> in your TitleWindow component:
> 
> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns="*"
> layout="absolute" borderAlpha="1"
>  width="200" height="100" headerColors="[0xffcccc, 0xffeedd]">
>     <mx:Button label="test" />
> </mx:TitleWindow>
> 
> note the borderAlpha setting will make sure the tileBar of the 
panel is
> opaque, and setting random colors will ensure the window is easily
> draggable.
> 
> I can use both method to create the pop up window (zz is the 
component
> above):
> 
> 1. var b:zz = new zz();
>     PopUpManager.addPopUp(b, Application.application, false);
> 
> 2. PopUpManager.createPopUp(Application.application, zz, false);
> 
> 
> hth,
> jeremy.
> 
> 
> On 4/15/06, mvbaffa <[EMAIL PROTECTED]> wrote:
> >
> > Thanks Jeremy.
> >
> > I have tried Application.aplication as the parent and it did not
> > work. I cannot drag the window.
> >
> > What is the difference between addPopup and createPopup ????
> >
> > --- In [email protected], "jeremy lu" <wade.lu@> wrote:
> > >
> > > write off my head, try this:
> > >
> > > w = PopUpManager.createPopUp(Application.application,
> > EventsSettings,
> > > false);
> > >
> > > another way to do this would be extending Panel/TitleWindow 
then
> > listens to
> > > titleBar events to implement drag and drop.
> > >
> > > jeremy.
> > >
> > >
> > > On 4/15/06, mvbaffa <mvbaffa@> wrote:
> > > >
> > > > I have created, in Flex 2 Beta 2, a non modal Popup, that 
has a
> > > > component for data entry inside it. I would like to allow the
> > user
> > > > to drag the Popup Window around the screen and position it
> > wherever
> > > > he wants.
> > > >
> > > > I tried two approches:
> > > >
> > > > 1) The TitleWindow is defined in MXML, inside the component, 
as
> > the
> > > > container of the data entry components.
> > > > 2) The component does not have the TitleWindow and I create 
it in
> > > > actionscript.
> > > >
> > > > In both cases I have a  TitleWindow as the container of all 
the
> > data
> > > > entry controls.
> > > >
> > > > The problem is that if I create the Popup with createPopUp 
with
> > the
> > > > component that has the TitleWindow inside it, like this:
> > > >
> > > >         w = PopUpManager.createPopUp(this, EventsSettings,
> > false);
> > > >
> > > > It is not possible to drag the window. It works OK but it 
simply
> > > > cannot be dragged.
> > > >
> > > > If I create the TitleWindow in actionscript, add the 
component,
> > that
> > > > has only the data entry components, to the Titlewindow, and 
then
> > use
> > > > the addPopUp method to show the PopUp with the TitleWindow 
like
> > this:
> > > >
> > > >         public var settingsWindow:TitleWindow = new 
TitleWindow
> > ();
> > > >         settingsWindow.title = "My Window Title";
> > > >         settingsWindow.styleName="PopupHeader";
> > > >         settingsWindow.showCloseButton = true;
> > > >         settingsWindow.x = 300; settingsWindow.y = 300;
> > > >         var ctl:EventsSettings = new EventsSettings();
> > > >         settingsWindow.addChild(ctl);
> > > >         PopUpManager.addPopUp(settingsWindow, this, false);
> > > >
> > > > The created Popup can be dragged and everything works.
> > > >
> > > > The problem is that is more comfortable to have the 
TitleWindow
> > > > in MXML, we can modify more easily the properties.
> > > >
> > > > How Can I use createPopup and still be capable of dragging 
the
> > > > result Popup Window ????
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 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
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
>







--
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/
 


Reply via email to