Results 1 to 3 of 3

Thread: Show MessageBox over mask window

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2012
    Posts
    66
    Vote Rating
    2
      0  

    Default 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
    6,154
    Vote Rating
    247
      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 human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2012
    Posts
    66
    Vote Rating
    2
      0  

    Default It worked

    Hi slemmon,

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •