how to disable default smartbrowser right-click menu?

Posted by carlos@lux.mx on 25-Aug-2015 16:00

Hi, 

I'm using smart objets (am2) and I need to turn off the right-click menu in a smartbrowser... 

Progress 11.5 

Thanks

Posted by Frank Meulblok on 26-Aug-2015 03:31

As per KB article How to disable the standard popup on SmartDataBrowser :

"

To disable this default pop-up menu for a single SmartDataBrowser, override the initializeObject procedure and add the line following line before the "RUN SUPER." :

{set PopupActive FALSE}. 

To disable the menu for all SmartDataBrowsers, customize the browser class by creating the appropriate browsercustom.i and browsercustom.p, and place the override for initializeObject in the browsercustom.p instead.

"

All Replies

Posted by Frank Meulblok on 26-Aug-2015 03:31

As per KB article How to disable the standard popup on SmartDataBrowser :

"

To disable this default pop-up menu for a single SmartDataBrowser, override the initializeObject procedure and add the line following line before the "RUN SUPER." :

{set PopupActive FALSE}. 

To disable the menu for all SmartDataBrowsers, customize the browser class by creating the appropriate browsercustom.i and browsercustom.p, and place the override for initializeObject in the browsercustom.p instead.

"

Posted by carlos@lux.mx on 26-Aug-2015 09:54

Thanks Frank, that work perfect!

This thread is closed