Jump to content

Can I use a UniMask fo global actions ?


KingOrmon

Recommended Posts

Hi,

 

TUniScreenMask works very well, the problem is when you have many buttons, menus (here does not supported),...

Exists any way for show a screenmask for all button click,... ? Actually I have a TUniScreenMask per button.

 

Regards

Link to comment
Share on other sites

Hi,

 

TUniScreenMask works very well, the problem is when you have many buttons, menus (here does not supported),...

Exists any way for show a screenmask for all button click,... ? Actually I have a TUniScreenMask per button.

 

Regards

 

Hi KingOrmon,

 

I put the code above on MainForm.Scripts property:

 

 

Ext.Ajax.on('beforerequest',

function(conn, request){

if (request.e == 'click') {

Ext.getBody().mask('Wait, please...', 'Loading')

}

},

Ext.getBody()

);

 

 

Ext.Ajax.on('requestcomplete', Ext.getBody().unmask, Ext.getBody());

Ext.Ajax.on('requestexception', Ext.getBody().unmask, Ext.getBody());

 

 

Ps.: It even works with menus!

 

Regards

Link to comment
Share on other sites

Can check belong to menu?

 

You can try to check request.params property to identify anothers properties on request. But be careful, because some requests do not pass this parameter in the same format.

Link to comment
Share on other sites

  • 2 weeks later...
  • 11 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...