PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: Jeffrey Ferreira on September 03, 2019, 04:05:49 PM

Title: Right Click on Grid
Post by: Jeffrey Ferreira on September 03, 2019, 04:05:49 PM
Hello List,
When we make our own right click menu for a grid. We lose the pxplus print function that allows us to print grid.
I tried to make my own menu option to  fire off *LIB\_PLUS\WINUTL\LISTPOPUP;PRINT_LIST but it just hangs saying "Loading" in the viewer.
Is there any way for me to have the best of both worlds.
Custom Pop-Up and a PxPlus Print.

jeff
Title: Re: Right Click on Grid
Post by: Jeffrey Ferreira on September 03, 2019, 04:30:27 PM
Sorry about that.
I missed the List Options at bottom...
Title: Re: Right Click on Grid
Post by: Mike King on September 04, 2019, 07:30:31 AM
Yes, when you have your own pop up menu, the system automatically adds a Options selection at the bottom.
Title: Re: Right Click on Grid
Post by: Jeffrey Ferreira on September 04, 2019, 02:49:32 PM
Hi Mike,

I'm just curious would it be possible to invoke the "print" logic from the right click from say a  button on a panel?

Jeff
Title: Re: Right Click on Grid
Post by: Jane Raymond on September 05, 2019, 09:49:45 AM

In the manual in the List Box and Grid System Popup Menu section, about half way down it explains how to attach the popup menu and its individual features to events other than the right-click popup event:

https://manual.pvxplus.com/page/NOMADS%20Graphical%20Application/Creating%20Panel%20Controls/Popup%20Menu/List%20Box%20and%20Grid%20System%20Popup%20Menu.htm

So your button logic would be something like:

Popup_Ctlval =ctl_val  ! the ctl value of the associated list/grid control
Popup_Select =4 ! print option
PERFORM "*plus/winutl/listpopup;Popup_Menu"