1. René Ullrich
  2. Beta Testing
  3. Thursday, 21 November 2024 07:09 AM UTC

Hi,

Is there a way to change the "Sheetlist" name in the Ribbonbar that PB 2025 may create from a menu? 

 

 

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 21 November 2024 09:10 AM UTC
  2. Beta Testing
  3. # Permalink

Hi.

You can do that by exporting the ribbon to xml or json, then change the specific property and import it again.

In the above example, in the open event of my frame, I did:

string ls_xmlfile = "C:\tmpxml\1.xml"

mdirbb_1.exportfromxmlfile(ls_xmlfile)

// uf_modifyxlm -> will modify my xml.
ls_xmlfile = uf_modifyxlm(ls_xmlfile)
mdirbb_1.importfromxmlfile(ls_xmlfile)

You should only modify Text="SheetList" to Text="<Whatever you want>". You should not touch the tag value!

Don't know if there is an easier way to go.

Andreas.

Comment
  1. René Ullrich
  2. Thursday, 21 November 2024 09:27 AM UTC
Thank you. It works. I use exportxml() and importxml() functions instead, So I can change it without using a temp file.
  1. Helpful 2
  1. Andreas Mykonios
  2. Thursday, 21 November 2024 09:41 AM UTC
Very nice. :-)
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 22 November 2024 15:03 PM UTC
  2. Beta Testing
  3. # 1

Hi Mark;

  This is great news as also, PB Apps will need this dynamic content feature to support Multi-Lingual Apps!  :-)

Regards .. Chris

Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Friday, 22 November 2024 06:32 AM UTC
  2. Beta Testing
  3. # 2

Hi All,

A new method has been added in the new internal version to set this content.
Directly adding the RibbonView tab property to the existing MDI window to enable the display settings is more reasonable. This solution will be more convenient for maintenance.

Additionally, the Sheetlist position is no longer fixed in the last panel of the first category. Instead, it now displays in the same way as the default "window" active sheet list in the previous Menu. By default, it appears in the last panel of the second-to-last category, and the specific position is controlled by the position parameter in the OpenSheet method.

Regards,

 

Comment
  1. René Ullrich
  2. Friday, 22 November 2024 06:38 AM UTC
Thank you Mark, this approach is much better.
  1. Helpful
  1. Andreas Mykonios
  2. Friday, 22 November 2024 07:00 AM UTC
I agree.

Thanks for the improvement.

Andreas.
  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.