1. Ted Fruchtl
  2. PowerBuilder
  3. Tuesday, 26 February 2019 16:38 PM UTC

Hello,

We are using PowerBuilder 2017 R3 Build 1880 on Windows 10 Pro.  I have created a menu object inherited from our base menu object.  The base object's menu style is contemporarymenu! and I have changed the inherited menu style to traditionalmenu!  In the mdi window's Open event I call ChangeMenu() to change the menu to the inherited menu based on certain criteria.  I can tell that the correct menu does display, but the menu style displays as though it is still contemporarymenu!.  Has anyone run into this before?

Thanks in advance for any help!

Ted

Tom Jiang @Appeon Accepted Answer Pending Moderation
  1. Friday, 1 March 2019 05:17 AM UTC
  2. PowerBuilder
  3. # 1

Hi Ted,

In PB documentation (PowerScript Reference) it has the following statement for the usage of ChangeMenu function:

In an MDI frame window, if you change to a menu with a different menu and toolbar style (traditional or contemporary), the style of the menu changes but the style of the toolbar does not.

Regards,

Tom Jiang

Comment
There are no comments made yet.
Ted Fruchtl Accepted Answer Pending Moderation
  1. Friday, 1 March 2019 13:51 PM UTC
  2. PowerBuilder
  3. # 2

Hi Tom,

Thank you for the reply.  I understand that the "style of the toolbar does not", but I am referring to the menu.  It seems the statement, "style of the menu changes", is not valid.  I've also done this:  Created a new menu object, not inherited from the original, but copied.  I've changed it's menu style to traditionalmenu!.  The original menu object is contemporarymenu!  At runtime, I execute ChangeMenu() depending on some criteria to set the menu object to the new menu object which has menustyle of traditionalmenu!  However, when I run the app, even though I can tell the new menu IS the one that's been set (added a button to put w_window.MenuName into a string and checked the value of the string), the menu still appears to use contemporarymenu! as the style.  Any help is much appreciated.

Thanks in advance,

Ted

Comment
  1. Chris Pollach @Appeon
  2. Friday, 1 March 2019 16:50 PM UTC
Hi Ted;

FWIW: You might want to consider opening a Support Ticket for this and then attach your simple test case PB App. Then Appeon can track this issue down even further to verify. Also, I would like to try this under PB2019 as well.

Food for thought.

Regards ... Chris
  1. Helpful
  1. Ted Fruchtl
  2. Friday, 1 March 2019 16:56 PM UTC
Thanks, Chris. That's where I'm headed. BTW, I enjoyed your sessions at the Elevate conference in Philly.



Thanks again,

Ted
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 1 March 2019 17:12 PM UTC
Hi Ted;

Thank you for joining us at last years conference!

I am glad that you liked my presentations. :-)

Regards ... Chris
  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.