1. #1
    Sencha Premium Member
    Join Date
    Dec 2012
    Posts
    54
    Vote Rating
    0
    k_cire0426 is on a distinguished road

      0  

    Default Show MessageBox over mask window

    Show MessageBox over mask window


    How to show a message box over a mask window in modal mode? I don't want to mask the whole document. I just want to mask the current floating window.

    I've tried to manually mask the window and set the modal of messagebox to false but whenever i click the window the messagebox goes behind.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,971
    Vote Rating
    212
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    See if this example helps:

    Code:
    Ext.widget({
        xtype: 'window',
        autoShow: true,
        title: 'Modal Window',
        modal: true,
        height: 160,
        width: 300,
        listeners: {
            show: function (win) {
                var msgBox = win.add(new Ext.window.MessageBox());
                msgBox.alert('Title', 'Message');
            },
            delay: 2000
        }
    });
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2012
    Posts
    54
    Vote Rating
    0
    k_cire0426 is on a distinguished road

      0  

    Default It worked

    It worked


    Hi slemmon,

    I just want to point out the specific solution.
    The messagebox should be added on window before calling show method.

Thread Participants: 1

Tags for this Thread