Hello,
I neeed to change the hints of diagram toolbar buttons at runtime for language changes.
In the FormCreate I build the toolbar with :
RegisterDControl(__classid(TEtape), "", "étape", "MyBlocks");
(...)
DiagramToolBar1->Rebuild();
I can modify the Caption somewhere else in the code with :
RegDControlList->FindByID("TEtape")->Caption="step";
but if I do
DiagramToolBar1->Rebuild();
the hint doesn't change. Why ? Is there an other way to do it ?
wlandgraf
(Wagner Landgraf)
2
We have improved the code here internally so that your code that just changes the Caption will work. Next version will include the fix.
For now you can use this workaround:
RegDControlList->FindByID("TEtape")->Free();
DiagramToolBar1->Rebuild();
RegisterDControl(__classid(TEtape), "", "step", "MyBlocks");
DiagramToolBar1->Rebuild();
system
(system)
Closed
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.