1. Timothy Beck
  2. PowerBuilder
  3. Tuesday, 24 August 2021 16:40 PM UTC

I have created a RibbonBar that contains a LargeButton with a menu in PowerBuilder 2019 R3 Build 2670.  The contents of the menu are dynamically populated at runtime.  When running the application, clicking on the LargeButton opens the menu.  However it never seems to close after that.  I did notice that clicking the LargeButton again makes the menu items no longer selectable. 

Any thoughts as to why this is happening and how to get the menu to close again?

Here's the XML:

          <LargeButton Text="History" Tag="History" PowerTipText="Recently opened items" PictureName="HistoryBig!" Enabled="false" Visible="true" Clicked="rbe_HistoryClicked" Selected="rbe_HistorySelected">
            <Menu>
              <Item Text="1" Tag="Item1" Visible="false" Clicked="rbe_Item1Clicked"></Item>
              <Item Text="2" Tag="Item2" Visible="false" Clicked="rbe_Item2Clicked"></Item>
              <Item Text="3" Tag="Item3" Visible="false" Clicked="rbe_Item3Clicked"></Item>
              <Item Text="4" Tag="Item4" Visible="false" Clicked="rbe_Item4Clicked"></Item>
              <Item Text="5" Tag="Item5" Visible="false" Clicked="rbe_Item5Clicked"></Item>
            </Menu>
          </LargeButton>

Thanks!

Tim

Timothy Beck Accepted Answer Pending Moderation
  1. Friday, 27 August 2021 13:21 PM UTC
  2. PowerBuilder
  3. # 1

New Sample Application with YIELD in the Frame Activate event.  After opening a window, click the History button, then click again.  Menu item will remain.

Attachments (1)
Comment
  1. Mark Lee @Appeon
  2. Tuesday, 31 August 2021 03:11 AM UTC


Hi Timothy,



Thanks for providing the test case.

I can reproduce it on our side. We will escalate this problem to our development team for further analysis.

We will need some to figure it out and will get back to you if any progress we would make.



In order to better track and handle this issue, kindly please report this PB issue via our support ticketing system: https://www.appeon.com/standardsupport/newbug

Thanks in advance.
  1. Helpful
  1. Timothy Beck
  2. Tuesday, 31 August 2021 11:38 AM UTC
Mark,



Bug 7198 - RibbonBar Large Button Menu does not refresh has been created.



Tim
  1. Helpful
  1. Mark Lee @Appeon
  2. Wednesday, 1 September 2021 00:48 AM UTC
HI Tim,



Appreciate your patience and understanding.
  1. Helpful
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Friday, 27 August 2021 07:37 AM UTC
  2. PowerBuilder
  3. # 2

Hi Timothy,

 

Glad to hear that the issue is resolved.

According to what you described, it seems to be a bug.

I built a small case as you described but can't reproduce it on our side. And it seems that the case you provided also can’t duplicate the issue, there is also no Yield() method used in your case.

 

I added Yield() to the Clicked and Selected event of the Largebutton separately, as well as the Clicked event of the menu in my own case, but it is still not replicable.

Could you please report this issue via our support ticketing system to ensure it is being properly received by our tech support and tracked at: https://www.appeon.com/standardsupport/newbug and please also provide a reproducible test case (including PBT/PBL) for us to reproduce it on our side. Thanks in advance.

 

Regards,

Comment
  1. Timothy Beck
  2. Friday, 27 August 2021 13:20 PM UTC
Mark,

The issue is the Yield() in the Activate event of the frame window. I've updated the example and will attach.

Tim
  1. Helpful
There are no comments made yet.
Timothy Beck Accepted Answer Pending Moderation
  1. Wednesday, 25 August 2021 23:23 PM UTC
  2. PowerBuilder
  3. # 3

René,

I figured it out.  The Activate event of the frame window had a call to Yield() ... I commented this out ... and Viola!  Problem solved.

Thanks for putting up with me.

Tim

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 26 August 2021 05:13 AM UTC
Thanks for sharing the solution!
  1. Helpful
  1. Timothy Beck
  2. Thursday, 26 August 2021 11:30 AM UTC
Armeen!



Wow .. it's nice to get personal attention from the CEO. :)



Tim
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 26 August 2021 16:40 PM UTC
My pleasure! I like to stay in touch with what is going on with our customers so we can take Appeon in the right direction. :-)
  1. Helpful 1
There are no comments made yet.
Timothy Beck Accepted Answer Pending Moderation
  1. Wednesday, 25 August 2021 22:52 PM UTC
  2. PowerBuilder
  3. # 4

René,

I created a sample application that contains a Ribbon Bar with two Categories (App and Home).  The App Category contains 4 items with no code. The Home Category contains two panels that mimic my real application in that it has a Windows panel and a Sheets panel  The Sheets panel opens Sheet 1, 2 or 3 ... generic windows.  The Windows panel contains a History button with a menu, as well as a Close and Close All button.  When the History button is enabled, it works perfectly ... opening and closing the menu on click.

I thought maybe there was some problem with my original application XML, so I used the sample XML.  Same issue as before.

I tried commenting out the Timer code in the frame window in my original application.  Same issue as before.

I tried opening a generic window instead of a PFC window.  Same issue as before.

I tried removing inheritance on the Ribbon Bar (instead of inheriting from u_ribbonbar).  Same issue as before.

I tried not modifying the History button and menu.  Same issue as before.

I've run out of ideas.

I've included my Sample App for your review.

Tim

Attachments (1)
Comment
There are no comments made yet.
Timothy Beck Accepted Answer Pending Moderation
  1. Wednesday, 25 August 2021 12:39 PM UTC
  2. PowerBuilder
  3. # 5

René,

I'll see what I can do.  In the meantime, here's a screenshot:

The menu is populated by opening a window.  In this case, the New Reports, My Reports and New Feeds window.  I then closed them all, clicked the History button to open the menu, then clicked it again and moved the application to the right a bit to make the issue obvious.  As a note, closing the application removes the menu.

I'll see if I can get the Build 2703 libraries before I create a sample application.  If that solves the problem, I'll provide an update here.  If not, I'll create the application.

Tim

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 25 August 2021 12:13 PM UTC
  2. PowerBuilder
  3. # 6

I checked this with the RibbonBar menu in our application and can not reproduce it. But I use the newer R3 Build 2703. Maybe it was a bug in Build 2670?

Could you provide a simple test application?

Comment
There are no comments made yet.
Timothy Beck Accepted Answer Pending Moderation
  1. Wednesday, 25 August 2021 11:44 AM UTC
  2. PowerBuilder
  3. # 7

René

Great thought.  Actually, there is no code in the clicked event and, in fact, the Clicked event doesn't seem to be triggered no matter what arguments I use.

I did discover that if I select an item from the menu, the menu goes away.  If I don't, it's as if the picture of the menu remains.  I can move the application and the menu remains where it is.

Tim

 

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 25 August 2021 05:54 AM UTC
  2. PowerBuilder
  3. # 8

Hi Timothy,

Do you have any code in your rbe_HistoryClicked event to change the menu?

Maybe code in this event (changes to the menu?) is the reason for this behaviour.

Regards,

René

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.