1. Clarence Chamorro
  2. PowerBuilder
  3. Monday, 8 August 2022 18:09 PM UTC
I want you to know that I'm completely new about using RibbonBar. Now here my problem.

I created a ribbonbar thru the RibbonBar Tool. Everything looks good in the design. When I run the application thru the IDE the ribbonbar is loaded 
and it display in the window expectacular. Now when I Click in any of the RibbonBar control in the different section no action is executed.
I create the ribbonbar and I placed the user event in the clicked section of it in the xml file. here one of the actual xml line: under the Master Section:
 <Item Text="Client Module" PictureName="AccountBig!" Checked="false" Enabled="true" Shortcut="F2" Tag="Client Module" Type="0" Visible="true" Clicked="ue_clientmodule"></Item>

Under the Category section:
<LargeButton Text="Client Module" PictureName="AccountBig!" Checked="false" DefaultCommand="true" Enabled="true" PowerTipText="Client Module" PowerTipDescription="Production Client Module" Tag="Client Module" Visible="true" Clicked="ue_clientmodule" /> I have the user event create in the window and in the RibbonBar object with the following code:

//cch rrb_1 user event ue_clientmodule
parent.event dynamic ue_clientmodule()

//cch window user Event ue_clientmodule SetPointer (hourglass!) //cch instanciate client window w_client lw_client //cch instanciate structure to pass values to the open window str_general lstr_gen lstr_gen.original_win = this OPENWITHPARM(lw_client, lstr_gen)

The Ribbonbar shows on the window and It looks fantastic but no action been executed. For sure I am missing something for this new future to work. please any advise will be greatly appreciated. I did follow the RibbonBar example app. Everything looks ok to me but because I am new to this nice Ribbonbar object for sure I am missing something. Regards,

Clarence.

Olan Knight Accepted Answer Pending Moderation
  1. Monday, 8 August 2022 18:11 PM UTC
  2. PowerBuilder
  3. # 1

Have you tried stepping through every line of code in DEBUG mode? That shgould tell you on which command the code is failing.

Comment
  1. Clarence Chamorro
  2. Monday, 8 August 2022 18:31 PM UTC
Good thinking Mr. Knight.



I inserted a brake point in the first line of code in rbb_1.ue_clientmodule & and brake point in the first line of code in the mywindow.ue_clientmodule.



I just did run it in debug mode and there is no code executed when I click on any of the items or buttons in the RibbonBar. They are not being triggered.



Any other advise,



Regards,
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Monday, 8 August 2022 18:26 PM UTC
  2. PowerBuilder
  3. # 2

Hi Clarence,

When I started playing around with the RibbonBar, I also had a hard time understanding why my events weren't being called. It turns out the events must have a specific signature depending on the type of control they're being targeted by. If the signature doesn't match, the event is not raised (and no errors are thrown). Please verify if your method matches the signature required: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/264-how-to-define-events-for-ribbonbar-controls.

Regards,
Francisco

Comment
  1. Olan Knight
  2. Tuesday, 9 August 2022 14:03 PM UTC
Thanks, Francisco, that is VERY useful information! You know, for when I start to code RibbonBars! :)
  1. Helpful
There are no comments made yet.
Clarence Chamorro Accepted Answer Pending Moderation
  1. Wednesday, 10 August 2022 00:23 AM UTC
  2. PowerBuilder
  3. # 3

Thank you very much for your tips and advises they were fantastic and help me a lot. Now I know how this beautiful object work.

My issue of How to use it is solved.

Regards,

Clarence.

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.