Jump to content

Can I use a UniMask fo global actions ?


KingOrmon
 Share

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

 

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...