1. Philip Troise
  2. PowerBuilder
  3. Saturday, 6 February 2021 19:08 PM UTC

 

I do not know how to capture a click from the vertical drop on the RibbonBar menu.

 

 <ApplicationButton Text="Application" Enabled="true" Tag="RibbonBar Demo" Visible="true">
      <ApplicationMenu>
        <Master>

          <Item Text="File" PictureName="" Checked="false" Enabled="true" Tag="" Type="0" Visible="true"                            Clicked="ue_appbutton">

I cannot figure out what is triggered after selecting an item. 

 

PS: I am Working from the RibbonBar Demo logic.

 

I already created the logic I need from the large button clicks.

I capture clicks on the large buttons on the RibbonBar Menu using event  "ue_largebuttonclicked", which calls function "of_largebuttonclicked".

 

 

 <Categories>    

   <Category Text="Reservation" Enabled="true" Tag="" Visible="true">

      <LargeButton Text="Add" PictureName="AddBig!" Checked="false" DefaultCommand="true" Enabled="true"       PowerTipText="" PowerTipDescription="" Tag="" Visible="true" Clicked="ue_largebuttonclicked"/>

 

Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 8 February 2021 03:05 AM UTC
  2. PowerBuilder
  3. # 1

Hi Philip,

 

In the RibbonBar Demo logic, the name of the Click event you defined in the RibbonBar menu should be ue_mastermenu or ue_menuitemclicked clicked instead of ue_appbutton.

 

If you want to add this ue_appbutton event, you should add the related custom event in the Ribbonbar control and add parameter & return value which is the same as that of ue_mastermenu clicked.

 

 <ApplicationButton Text="Application" Enabled="true" Tag="RibbonBar Demo" Visible="true">
      <ApplicationMenu>
        <Master>
          <Item Text="File" PictureName="" Checked="false" Enabled="true" Tag="" Type="0" Visible="true"  Clicked="ue_mastermenuclicked">

 

You can refer to a similar issue in the link below:

https://community.appeon.com/index.php/qna/q-a/ribbonbar-shortcut-keys 

 

You can find more descriptions of the RibbonBar from the following link:

https://docs.appeon.com/pb2019r2/pbug/ch13s04.html#_Important_notes 

The ribbon item controls have no events and must be bound with user events. For more, see the section called "Clicked" in Objects and Controls, the section called "Selected" in Objects and Controls, the section called "Modified" in Objects and Controls, and the section called "SelectionChanged" in Objects and Controls.

 

Regards,

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.