1. Miller Rhodes
  2. PowerBuilder
  3. Tuesday, 23 April 2024 22:04 PM UTC

I am trying to use a RibbonMenu that pops from a LargeButtonItem control like the Appeon Demo app.

 

I have placed stops on all of the events my ribbon bar can trigger, which seems to catch them all.  I downloaded the code for the 

Appeon Demo app and this object works just fine. It triggers the "ue_menuitemclicked" event just like it should.  However, in my implementation,

it will not trigger the event even when the code matches line for line.  

Has anyone stumbled upon this issue or knows some things I can look at to see if a setting is off somewhere?

4/24/2024 Update -  I am wondering if my pfc w_frame is interferring in some way.  I am going to swap in the w_frame from the other app where this works and see if there is a change.

When I run any of the apps from the Appeon.Demo site this functionality works fine. If I try to use it from my application which uses PFC then suddenly it doesn't work.

Accepted Answer
Miller Rhodes Accepted Answer Pending Moderation
  1. Thursday, 25 April 2024 00:11 AM UTC
  2. PowerBuilder
  3. # Permalink

I found the problem.  There was a "this.setfocus" in the activate event of my w_sheet.  Many of my windows are inherited from w_sheet.

Commenting that out fixed the problem. Weird.....

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 25 April 2024 18:47 PM UTC
Hi Miller;

It could also be just the design of the PFC (pretty "long in the tooth" now). ;-)

Regards .. Chris
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 26 April 2024 02:24 AM UTC
Correct me if I'm wrong, but the fact that the Activate event fires, means that the window already "has focus". No need to do a SetFocus() ?
  1. Helpful
  1. Miller Rhodes
  2. Friday, 26 April 2024 15:31 PM UTC
Good point Miguel. That was just a little gem buried in the architecture by a predecessor. I also had some code being triggered from the Activate which setfocus elsewhere ( to a column ). I am open to finding other ways to do that as well
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 24 April 2024 14:21 PM UTC
  2. PowerBuilder
  3. # 1

Check and double check that the event signature is correct. If the parameters are even slightly different, the event will not be triggered, nor there will be an error message. Please review the following post which details the event signature required for the different types of events:

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/264-how-to-define-events-for-ribbonbar-controls

 

Regards,
Francisco

Comment
  1. Miller Rhodes
  2. Wednesday, 24 April 2024 16:25 PM UTC
4/24/2024 - Now what is happening is the "Selected = "event name" is working but the Clicked = "vent name" will not work



<LargeButton Text="History" PictureName="HistoryBig!" Checked="false" DefaultCommand="false" Enabled="true" PowerTipText="History" PowerTipDescription="Recent operations" Shortcut="Ctrl+Shift+H" Tag="History" Visible="true" Clicked="" Selected="">

<Menu>

<Item Text="Standard Theme" PictureName="EmployeeSmall!" Checked="false" Enabled="true" Tag="Standard" Type="0" Visible="true" Clicked="ue_menuitemclicked" Selected="ue_menuitemclicked" />

<Item Text="Custom Theme" PictureName="CustomerSmall!" Checked="false" Enabled="true" Tag="Custom" Type="0" Visible="true" Clicked="ue_menuitemclicked" Selected="ue_LargeButtonClicked" />

</Menu>

</LargeButton>
  1. Helpful
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.