Hi
I create a Ribbonbar from a xml file. This one contains a menu associated with a Largebutton ("tag = mybutton"). I want to change the text of the 1st menu with the following code:
long ll_ret
RibbonLargeButtonItem lr_button
ll_ret = uo_ribbonbar.GetItemByTag( "mybutton", lr_button )
ribbonmenu lr_menu
ll_ret = uo_ribbonbar.getMenubybuttonhandle(lr_button.itemhandle, lr_menu)
ribbonmenuitem lr_item
ll_ret = lr_menu.getItem(1, lr_item)
lr_item.text += "!"
ll_ret = lr_menu.setitem(1, lr_item)
ll_ret = lr_button.setmenu(lr_menu )
I have no mistake but the text of the 1st menu is not changed. What have I forgotten? »
Thank for help
Regard
Thierry
xml file :
...
<LargeButton Text="Test" Tag="mybutton">
<Menu>
<Item Text="mymenu" Clicked="pfc_clicked" />
</Menu>
</LargeButton>
...