ControlsExDesktop version 1.5 posted with source for merging and updated help.
Added ShowItemToolTips for ToolStrip and StatusStrip
Added ToolTipText for other ToolStrip controls
Added Clear Count, Insert, Item and RemoveAt for ComboBox
Added Clear Count, Insert, and RemoveAt for DropDownButton
Quote:
Originally Posted by klaus
Does there also exist the Left property, I didn't see it in the MS documentation ?
No, there isn't one as the controls are laid out automatically.
Another wish:
The Item method for the ToolStripCombobox should not only return the item value but also be able to change it, like the standard ComboBox, like
tspComboBox.Item(2)="New item" .
There's a technical reason why a library can't have an indexed property that is both settable and gettable. The short reason is that the compiler/interpreter of your source code knows what to do when it comes across such code, but as a library is precompiled it needs a separate mechanism for each direction of access for your code to choose at runtime.
I could do a SetItem(index) method but how often would you need it? You can always do a RemoveAt(index) and Insert(thing, index) to get the same effect.
In the meantime I used RemoveAt and Insert to replace the Item method.
Just one thing, in the help file, the first parameter is index and the second value like in the standard Combobox, but in the method the first one is value and the second is index, the two parameters are inverted.
I could do a SetItem(index) method but how often would you need it?
I was thinking back to VB1 when I bagan using ComboBoxes and ListBoxes.
I regulary used the Item change method to update item values.
I use the Item return method (the Text method in VB6) only with the selected index, this is the only way to get the selecte item's value.
But with the ToolStripCombobox we have the SelectedItem parameter for that.
In conclusion for the ToolStripCombobox, I would use the Item change (SetItem) method, but I will probably never use the Item return method.
I have implemented the ToolStrip objects in my program.
There remains a small aesthetic issue. If you look at the image below you see that there remains a background color in the images in the buttons when they are selected or checked. I looked in the MS documentation and saw that there exists an ImageTransparentColor parameter for ToolStripItems. I tried to set it with different possibilties, but unfortunately without any success.
If you look at the image below you see that there remains a background color in the images in the buttons when they are selected or checked.
I am afraid that I can't see the problem in the screenshot., I don't doubt you are correct, I just don't understand what to look for. Can you post some code so that I can see it properly?