Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image and text are not horizontal aligned. #109

Open
WilliamQue opened this issue Jan 30, 2023 · 1 comment
Open

Image and text are not horizontal aligned. #109

WilliamQue opened this issue Jan 30, 2023 · 1 comment

Comments

@WilliamQue
Copy link

WilliamQue commented Jan 30, 2023

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

@mkoertgen mkoertgen added this to To do in FontAwesome.Sharp via automation Feb 2, 2023
@mkoertgen
Copy link
Member

Hi @WilliamQue ,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants