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? 

 

 

Who is viewing this page
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 1
  1. Andreas Mykonios
  2. Thursday, 21 November 2024 09:41 AM UTC
Very nice. :-)
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.