Found a little hack to change the transparency color, I don't think this is officialy supported (oops I did it again ;))
 
<mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" title="Logon" modalTransparency="50" creationComplete="var my_color:Color = new Color(this.modalWindow);my_color.setRGB(0xFF0000);">
 
Philippe Maegerman


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman
Sent: mercredi 24 août 2005 13:23
To: [email protected]
Subject: RE: [flexcoders] [flexcodrs] Pop up and background(abdul, manish,matt chotin.... anybody)

Indeed I didn't try with a popup.
You can adjust the TitleWindow transparency with the 'modalTransparency' attribute, I found this in the doc:
 
 modalTransparency Type: Number   CSS Inheritance: yes
Modality is simulated by creating a large transparent window underneath the TitleWindow component. Due to the way transparent windows are rendered, you may notice a slight dimming of the objects under the transparent window. The effective transparency can be set by changing the modalTransparency value from 0 (fully transparent) to 100 (opaque). If you make the window partially transparent, you can also set the color of the window by changing the Modal skin in the default theme.
 
So if you add <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" title="Logon" modalTransparency="90">
The application will almost disapear.
It looks like you can effectively change the color of the 'transparency' clip by changing the 'Modal Skin' but I don't know what that means, nothing came from google :((
 
Anyone, anyone, Bueler? ;)
 
Philippe Maegerman


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
Sent: mercredi 24 août 2005 12:34
To: [email protected]
Subject: RE: [flexcoders] [flexcodrs] Pop up and background(abdul, manish,matt chotin.... anybody)

thanks a lot philippe... it works well exceot for the diabled color.... it doesnt work.... my code is:
 
popupwindow.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF"  >
    <mx:Script>
        function showWindow(modal) {
   mx.core.Application.application.pnl.enabled = false;
            var popup = mx.managers.PopUpManager.createPopUp(_root, LogonWindow, modal, {deferred: true});
   popup.centerPopUp(this);
        }
 //createPopUp( parent: MovieClip, className: Object, modal: Boolean, initobj: Object, broadcastOutsideEvents: Boolean)
    </mx:Script>
    <mx:Panel id="pnl" width="500" height="400" disabledColor="#cccccc">
    <mx:Button label="Show Modal Window" click="showWindow(true)" width="150"/>
    <mx:TextArea width="200" height="100"
        text="Once the window is opened, click here to check its modality"/>
  </mx:Panel>
</mx:Application>
 
 
logonwindow.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" title="Logon">
    <mx:Form>
        <mx:FormItem label="UserId" required="true">
            <mx:TextInput id="userId" width="150"/>
        </mx:FormItem>
        <mx:FormItem label="Password" required="true">
            <mx:TextInput id="password" width="150"/>
        </mx:FormItem>
        <mx:FormItem>
            <mx:HBox horizontalGap="30">
                <mx:Button label="Logon"/>
                <mx:Button label="Cancel" click="this.deletePopUp();parentApplication.pnl.enabled = true;"/>
            </mx:HBox>
        </mx:FormItem>
    </mx:Form>
</mx:TitleWindow>
 
 
could you please tell me why disabled color doen't work?
 
nithya


Philippe Maegerman <[EMAIL PROTECTED]> wrote:
On your application tag, or in your style sheet you can add the attribute disabledColor="#999999", I don't know if the PopupManager is making the Application disabled (or its target), but if not, you could do it by yourself : mx.core.Application.application.enabled = false;  then re-enabling it when closing the popup
 
Philippe Maegerman


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
Sent: mercredi 24 août 2005 8:27
To: [email protected]
Subject: RE: [flexcoders] [flexcodrs] Pop up and background(abdul, manish,matt chotin.... anybody)

hai jeff,
 
thanks... i went thru the sample.. but what i need is, ofcourse making the UI inactive but also i want the UI to be changed to pale gray in color...ie, the user nust know that the main application is inactive just by seeing the color... it is just like when you go to file menu and fing certain things inactive with the grey color text...hope you can understand my question now.. any way of doing it?
 
thanks
nithya

Jeff Steiner <[EMAIL PROTECTED]> wrote:

Nithya,

 

While I am not explicitly listed in the subject line I thought that I might offer some insight here.

 

What you are venturing into is the Modality of the popup.  In order to render the "application inactive" I would probably use the Blocking Cursor example in the Flex Samples Explorer as a starter.

 

Let me know if that doesn't make sense - or answer your question.

 

Jeff

Founder

Flex Authority

http://www.flexauthority.com

 

We are actively seeking contributors for the site.  Have a sample that you want to share with the world?  Send it to us!


From: [email protected] [mailto:[email protected]] On Behalf Of Nithya R
Sent: Tuesday, August 23, 2005 9:56 PM
To: flexcoders
Subject: [flexcoders] [flexcodrs] Pop up and background(abdul, manish,matt chotin.... anybody)

 

hai

 

i have a main application and when i click a button on it a pop up appears... when the popup opens i want the main application to be inactive and turn pale gray in color.... how to make the main application inactive during a popup is open? i have no idea of doing this... is there any link or thread related to this?

 

thanks

nithya

Send instant messages to your online friends http://uk.messenger.yahoo.com

Send instant messages to your online friends http://uk.messenger.yahoo.com

------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS




Reply via email to