billwilson3
May 28th, 2004, 07:39 PM
I need to be able to localize the buttons on a toolbar on the fly. (along with other controls).
The Toolbar control has a buttons collection of the buttons on the bar. Unfortunately the items in the collections are not members of the Button class, they are ToolbarButtons instead. Buttons derive from the Control class and all inherit properties like Name (which is used to locate the replacement text in the rez file. The ToolbarButton class derives from Component. This class does not contain a name, nor does the Toobarbutton class. When I look at the property sheet for a toolbar and check the Buttons collection, I see names for the buttons that match the names in the rez file. Where are these names related to the button objects? I cannot find it anywhere.
Thanks, Bill
The Toolbar control has a buttons collection of the buttons on the bar. Unfortunately the items in the collections are not members of the Button class, they are ToolbarButtons instead. Buttons derive from the Control class and all inherit properties like Name (which is used to locate the replacement text in the rez file. The ToolbarButton class derives from Component. This class does not contain a name, nor does the Toobarbutton class. When I look at the property sheet for a toolbar and check the Buttons collection, I see names for the buttons that match the names in the rez file. Where are these names related to the button objects? I cannot find it anywhere.
Thanks, Bill