Hi
I have a tool on ultratoolbarsmanager whose caption should be changed in timely manner.
I wrote a private function which sets the caption as shown below:
Private Sub setToolbarcaption()
toolbar.Tools.Item("Mail").SharedProps.Caption = iCount & " Messages"
End Sub
But calling this function is not changing the caption. Is there any othere property that I have to set to refresh the toolbar with the new caption.
Thanks in advance.
If the tool has a caption set only on it's instance, the SharedProps.Caption will be ignored by the tool and you will instead have to set the InstanceProps.Caption. If not, it could be a bug and I would recommend submitting the issue to the support group: http://es.infragistics.com/gethelp.
It took me a while to figure it out.
The Caption was not set on the Instance Props. But before setting a new caption
I set the property to nothing and then again with new caption.
Private Sub setToolbarCaption()
toolbar.Tools.Item("Mail").SharedProps.Caption = Nothing
toolbar.Tools.Item("Mail").SharedProps.Caption = iCount & "Messages"
The same logic is working fine for Images on the tool bar also,
Thank you.