PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Right Click on Grid  (Read 1891 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 176
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Right Click on Grid
« 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

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 176
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Right Click on Grid
« Reply #1 on: September 03, 2019, 04:30:27 PM »
Sorry about that.
I missed the List Options at bottom...

Mike King

  • Diamond Member
  • *****
  • Posts: 3817
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Right Click on Grid
« Reply #2 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.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 176
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Right Click on Grid
« Reply #3 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

Jane Raymond

  • Staff
  • Diamond Member
  • *****
  • Posts: 280
    • View Profile
    • PVX Plus Technologies
Re: Right Click on Grid
« Reply #4 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"
Jane Raymond
Software Developer
PVX Plus Technologies Ltd.