This is a migrated thread and some comments may be shown as answers.

Tooltip buttons with images and text, now text overlapping image after upgrade

1 Answer 156 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bex
Top achievements
Rank 1
Bex asked on 23 Jul 2009, 10:36 AM
Hi

We have a tool strip with 4 buttons on all with an image and text, after we upgraded to the new version of the win controls a while a go 3 of the buttons started displaying incorrectly. The text is slightly overlapping the image.
For some reason the remaining button is fine.

Do you have any idea why it would do this, I have tried changing all the alignment and position settings but I cant get them to sit side by side properly?

Thanks

Bex

1 Answer, 1 is accepted

Sort by
0
Bex
Top achievements
Rank 1
answered on 23 Jul 2009, 12:06 PM
I have managed to sort it..
I removed  this line

((Telerik.WinControls.Primitives.TextPrimitive)(this.ButtonPrint.GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(1))).Padding = ((System.Windows.Forms.Padding)(resources.GetObject("resource.Padding")));

from the designer file

and re-added the padding in design view and its all ok now
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Bex
Top achievements
Rank 1
Answers by
Bex
Top achievements
Rank 1
Share this question
or