1. Jean-Marc SCHULER
  2. PowerBuilder
  3. Thursday, 1 February 2024 14:31 PM UTC

Hello,

Is it possible to display a popup menu from a ribbon menu button, as seen here in outlook ?

Thank you for your answers

 

 

René Ullrich Accepted Answer Pending Moderation
  1. Friday, 2 February 2024 08:45 AM UTC
  2. PowerBuilder
  3. # 1

AFAIK it is not a supported by PB ribbonbar.

But I think you could implement it yourself. You could open a classic menu as popmenu (see function PopMenu) on click to the ribbonbar item. 

Comment
There are no comments made yet.
Jean-Marc SCHULER Accepted Answer Pending Moderation
  1. Friday, 2 February 2024 09:21 AM UTC
  2. PowerBuilder
  3. # 2

Thank you for the answer René

We use the ribbon menu for several purposes, launching functions, managing favorites and triggering actions. Our ERP has hundreds of functions, my problem is to allow the user to add the most used functions in a favorites menu.

It is indeed a popup menu that I would like to display via the "popmenu" function of PB but the "clicked" event is already currently used to launch the function associated with the ribbon menu button (open the customer order entry window for example ) ...

I would like to be able to detect the right click to open the popup menu and for example allow the customer order entry function to be added to the user's shortcuts menu. I can't use the "clicked" event for 2 uses.

I have the impression that we can only define the call of 2 events from the ribbon menu buttons (clicked and selected)...

Comment
  1. René Ullrich
  2. Monday, 12 February 2024 06:28 AM UTC
I thought you can use the rbuttondown event. But after a test I see that it will only fire on a rightclick on the ribbon bar header or a tab but not on other parts. So I don't have another idea.
  1. Helpful
There are no comments made yet.
Tobias Roth Accepted Answer Pending Moderation
  1. Saturday, 10 February 2024 10:58 AM UTC
  2. PowerBuilder
  3. # 3

Hi Jean-Marc,

One possible solution would be to read the object at the pointer position, as with DWs GetObjectAtPointer.
Unfortunately, as far as I know, there is no such function.
Perhaps you could create a ticket with an enhancement request for this. I think such a function would be very useful to have in general.
We would also be very interested in such a function.

It's not exactly what you were looking for, but it may help you as an alternative.
you may find this article helpful, in which Julie explains how to create a cascade menu:
https://community.appeon.com/index.php/qna/q-a/ribbon-bar-cascade-on-pb-2022-r2#reply-44659 

Regards Tobi

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.