FontAwesome.Sharp icon indicating copy to clipboard operation
FontAwesome.Sharp copied to clipboard

Image and text are not horizontal aligned.

Open WilliamQue opened this issue 2 years ago • 1 comments

Please see the pic, the first control is a toolstriplabel, and the second is a icontoolstripbutton, there are 2 problems:

  1. It seems that the horizontal central line of image is a little higher than text on each control;
  2. the horizontal central line of content on toolstriplabel is a little than that on icontoolsstripbutton.

For toolstriplabel :

 GlobalImageList.AddIcons(Color.Red, IconHelper.DefaultSize, new IconChar[] { IconChar.UserAlt});
 GlobalImageList.ImageSize = new Size(28,28);
 lblUser.Image = GlobalImageList.Images[2];

For icontoolstripbutton: all settings are done in property wiindow directly.

Font of them is Microfoft Yahei UI. Image Size : 28 Control with property ImageScaling will be set None.

1

Env: win10 + .net framework 4.8 + winform

WilliamQue avatar Jan 30 '23 15:01 WilliamQue

Hi @WilliamQue ,

Not sure what to do about it. Looks more like an alignment issue with the toolstrip label itself.

mkoertgen avatar Feb 02 '23 19:02 mkoertgen