[flexcoders] Re: pop-up window x and y settings

2006-09-06 Thread efeminella
There are a few different ways in which you can specify the x and y
coordinates of a Pop-up window. One easy way to do it is as follows:

import mx.containers.TitleWindow;
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;

public function displayForm():void {
var helpWindow:IFlexDisplayObject = PopUpManager.createPopUp(this,
basics, false);
var window:TitleWindow = helpWindow as TitleWindow;
window.title="Basic Information";
window.showCloseButton = true;
window.x = 90;
window.y = 100;
}

First what we are doing is creating Pop-up window and Typing it as an
IFlexDisplayObject

Then we are casting it as an TitleWindow (change this to match the
type that is your class or component if need be)

That's pretty much it. If you need anything shoot me an email.

Hope that helps,
Eric Feminella


--- In flexcoders@yahoogroups.com, "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know how to set the x and way proprties of a popup window?
> 
> Here is my function.  This does not work for some reason.
> 
>   public function displayForm():void {
>   var helpWindow:basics = 
>   basics(PopUpManager.createPopUp(this, basics, 
> false));
>   helpWindow.title="Basic Information";
>   helpWindow.showCloseButton = true;
>   helpWindow.x = 90;
>   helpWindow.y = 100;
>   }
> 
> 
> I can not find the info anywhere.
>






 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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





[flexcoders] Re: pop-up window x and y settings

2006-09-06 Thread mthielman11
I tried the center thing and it centers.  Also I have removed the x and y 
thing.  This is one 
of the default values  iwill look it up again.


--- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> > basics(PopUpManager.createPopUp(this, basics, false));
> 
> What is 'this' refering to?
> 
> That is probably the problem. Are you loading into an Application from
> another Application?
> 
> Just for a test you can also comment out the x and y setting calls and try;
> 
> PopUpManager.centerPopUp(helpWindow);
> 
> If you cannot see it, do you happen to have the aplha or visible turned off
> on the basics component?
> 
> Peace, Mike
> 
> On 9/6/06, mthielman11 <[EMAIL PROTECTED]> wrote:
> >
> >   Does anyone know how to set the x and way proprties of a popup window?
> >
> > Here is my function. This does not work for some reason.
> >
> > public function displayForm():void {
> > var helpWindow:basics =
> > basics(PopUpManager.createPopUp(this, basics, false));
> > helpWindow.title="Basic Information";
> > helpWindow.showCloseButton = true;
> > helpWindow.x = 90;
> > helpWindow.y = 100;
> > }
> >
> > I can not find the info anywhere.
> >
> >  
> >
> 
> 
> 
> -- 
> What goes up, does come down.
>






 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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