TomBascom
Curmudgeon
I am currently very successfully populating an ultraExplorerBar dynamically
using these two methods that I have added to the class containing the
ultraExplorerBar:
There is, however, a small problem. This code results in the "default
image" being used with each item and that is kind of ugly.
I can easily turn off the default image by adding:
to the addItem2ExplorerBar() method but that is even uglier
What I would really like to be able to do is to specify an image with the
item when I add it using a third parameter to addItem2ExplorerBar(). But
the add() method obviously doesn't support that.
Any ideas?
using these two methods that I have added to the class containing the
ultraExplorerBar:
Code:
method private void addGroup( input groupName as character ):
if protopbar:groups:exists( groupName ) = false then
myExplorerBar:groups:insert( 0, groupName, groupName ).
return.
end method.
method public void addItem2ExplorerBar( input groupName as character, input itemName as character ):
addGroup( groupName ).
myExplorerBar:groups[groupname]:items:add( itemName, itemName ).
return.
end method.
There is, however, a small problem. This code results in the "default
image" being used with each item and that is kind of ugly.
I can easily turn off the default image by adding:
Code:
myExplorerBar:groups[groupName]:items[itemName]:Settings:UseDefaultImage = Infragistics.Win.DefaultableBoolean:False.
to the addItem2ExplorerBar() method but that is even uglier

What I would really like to be able to do is to specify an image with the
item when I add it using a third parameter to addItem2ExplorerBar(). But
the add() method obviously doesn't support that.
Any ideas?