PDA

View Full Version : Do not block window specifies - modal: true



fabiojpoli
29 Oct 2010, 4:29 PM
Good afternoon everyone,

I know that in the show () of a window, if I put modal: true in this window, tdo the bottom of this application will be blocked. How would I specify? Type, block all background application, but do not block the Window "Help" if it is open.

If you did not like, would like a suggestion.

I have to lock the bottom of the application, but if the window "Help" system is open, it will be useful for the window that was open window (eg registration). Therefore, I want it (help window) accessible to the user.

I'm trying to like the code below, but sometimes a window blocks the Help window and sometimes it works.


var Ajuda = Ext.extend(Ext.Window,{
$depends: [strPastaUx + 'Ext.ux.tree.TreeFilterX', strPastaUx + 'Ext.ux.tree.RemoteTreePanel'],
layout: 'border',
title : 'Ajuda',
height : 400,
width : 600,
iconCls : 'silk-question',
constrainHeader: true,
closeAction: 'hide',
border: false,
manager: new Ext.WindowGroup({zseed: 10000}),
resizable: false,
...

Thanks!

fabiojpoli
6 Nov 2010, 7:59 AM
someone ???

Condor
6 Nov 2010, 8:28 AM
Use a different WindowGroup with a much higher zindex for the Help window.

fabiojpoli
6 Nov 2010, 8:59 AM
Hello Condor, that's exactly what I did using the zseed now did with ZIndex continues in the following situation:

When opening a first window and click 'Help', works perfectly (img1), after that closing the help window (closeAction: 'hide'), after that I open a new listing and a new window of another module, the problem occurs, the help window is behind the mask (img2).

Code

var Ajuda = Ext.extend(Ext.Window,{
$depends: [strPastaUx + 'Ext.ux.tree.TreeFilterX', strPastaUx + 'Ext.ux.tree.RemoteTreePanel'],
layout: 'border',
title : 'Ajuda',
height : 400,
width : 610,
iconCls : 'silk-question',
constrainHeader: true,
closeAction: 'hide',
border: false,
manager: new Ext.WindowGroup({zIndex: 100000000}),
resizable: false,
...

23164


23163

Condor
7 Nov 2010, 4:07 AM
That syntax is not supported. You need to use:

var manager = new WindowGroup();
manager.zseed = 31000;
var helpWindow = new Ext.Window({
manager: manager,
...
});

fabiojpoli
7 Nov 2010, 5:34 AM
Condor Very good!
I thought it would not have solution for this.
Thank you so much!

:D:D



this.manager = new Ext.WindowGroup();
this.manager.zseed = 31000;

Ext.apply(this,{
items: [this.menuAjuda, this.tabConteudoAjuda],
manager: this.manager
})


Thanks!