How can I make the "<tab id="xx" getLabel" attribute accept parameter in RibbonUI?
Hi everyone,
I am automating the ribbon to accept several languages which get fed from a strings table and feed the result through the getLabel attribute
In the XML in USysRibbons:
<tab id="rbntabDataEntry" getLabel="GetLabel" >
On startup the ribbon loads English and then re-validates depending on what language the user chooses in the login form. This is a string fed through by the TempVars! below.
In the "RibbonLoader" module:
Public Sub GetLabel(control As IRibbonControl, ByRef s)
Dim sMsg As String
sMsg = DLookup(TempVars!sLanguage, "tblCaptionStrings", "CaptionName ='" & control.Id & "'")
s = sMsg
End Sub
It all works fine for the buttons and groups controls but refuses to feed the fetched string into the tab control complaining of a null object, but I have tested and it is not a null.
I also tested whether the "getLabel" attribute actually works on the tab by feeding it straight text and it works fine.
Can anyone tell me why ths is not working?
All the best
Paul
Hi everyone,
I am automating the ribbon to accept several languages which get fed from a strings table and feed the result through the getLabel attribute
In the XML in USysRibbons:
<tab id="rbntabDataEntry" getLabel="GetLabel" >
On startup the ribbon loads English and then re-validates depending on what language the user chooses in the login form. This is a string fed through by the TempVars! below.
In the "RibbonLoader" module:
Public Sub GetLabel(control As IRibbonControl, ByRef s)
Dim sMsg As String
sMsg = DLookup(TempVars!sLanguage, "tblCaptionStrings", "CaptionName ='" & control.Id & "'")
s = sMsg
End Sub
It all works fine for the buttons and groups controls but refuses to feed the fetched string into the tab control complaining of a null object, but I have tested and it is not a null.
I also tested whether the "getLabel" attribute actually works on the tab by feeding it straight text and it works fine.
Can anyone tell me why ths is not working?
All the best
Paul