Posted 18 years ago
by Kasper
Hi,
I seem to have a small problem. I'm using the latest build of UIStudio, and I wish to create and add items to a toolbar at runtime. I'm thinking that it's pretty simple, yet it doesn't work properly. After I've added som items, the toolbar gets all blank, and you can't see any items. Now, if the toolbar is docked, and you make it float, the items are shown again, and the same goes if the toolbar is floating and you dock it. I guess it needs a repaint or a resize or something, but I can't seem to find the proper method to call. Am I missing something here?
I simply get a reference to the toolbar with BarManager.DockableToolBars[], and then add items to it by using the toolbar.CommandLinks.Add() method.
I seem to have a small problem. I'm using the latest build of UIStudio, and I wish to create and add items to a toolbar at runtime. I'm thinking that it's pretty simple, yet it doesn't work properly. After I've added som items, the toolbar gets all blank, and you can't see any items. Now, if the toolbar is docked, and you make it float, the items are shown again, and the same goes if the toolbar is floating and you dock it. I guess it needs a repaint or a resize or something, but I can't seem to find the proper method to call. Am I missing something here?
I simply get a reference to the toolbar with BarManager.DockableToolBars[], and then add items to it by using the toolbar.CommandLinks.Add() method.