ADAdministrator Syncfusion Team March 1, 2004 11:44 AM
Please set the BarItem''s PaintStyle property to PaintStyle.ImageAndText enumeration value. This will automatically resize the BarItem (to display both text and image) when a image is being displayed. Please try this and let me know how it goes. We appreciate your continued interest in Syncfusion products.
RORondaMarch 2, 2004 07:07 AM
I did try this. It''s still not the right size. I am adding images that are 24X24. If I use a image list the resizing occurs but I cannot use them.
RORondaMarch 2, 2004 11:18 AM
Can I manually change the size of the toolbar? When is the size set? It seems to happen before the on paint event is fired. Possibly in the init?
ADAdministrator Syncfusion Team March 2, 2004 02:27 PM
1. The BarItem does not expose any APIs to set its bounds. The only way to auto resize the BarItem (to display both text and image) is by BarItem''s PaintStyle property.
2. Also, the only way to set images to the BarItem is through an ImageList and specifying the ImageIndex value.
3. If you are not adding the images through a ImageList, how are you doing it ?
I have attached a sample here which shows how this can be done. Please refer to the sample and let me know if this meets your requirements. If not, kindly modify it to show the problem that you are facing. We appreciate your cooperation.