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

[BUG]: Selected text in ComboBox is drawn in a different font #20

Closed
PWagner1 opened this issue Oct 13, 2020 · 5 comments
Closed

[BUG]: Selected text in ComboBox is drawn in a different font #20

PWagner1 opened this issue Oct 13, 2020 · 5 comments
Labels
bug Something isn't working completed This issue has been completed. fixed This issue has been fixed.
Milestone

Comments

@PWagner1
Copy link
Contributor

Notice that the selected text in the ComboBox2 is shorter when it is selected:
image

And when it is not, it the as expected
image

Notes:

  • This is the Professional - System theme, Not as "Noticeable" in the other themes, as the Font "Appears to be stretched" due to the selection box starting earlier (Look at the letter "k" positions):
    image

  • This is probably applicable to the UpDowners as well (Domain / Numeric)

@PWagner1 PWagner1 added the bug Something isn't working label Oct 13, 2020
@dax-leo
Copy link

dax-leo commented Oct 13, 2020

I looked quickly into paint method, but couldn't notice anything strange. I am new to Krypton rendering solution so I need to familiarize myself with the this part of the code.
But what I did notice is this strange "stretching" effect. Very noticeable if you type in bunch of 3 numbers.
Feels like stretching effect is stronger at the beginning of the text, but barely noticeable. Is there some rendering effect which might be causing this ?
Top line is normal text from textbox ... lower one is from combo...
image

@PWagner1
Copy link
Contributor Author

Might need to compare the OnPaint method, since something odd might be happening.

@dax-leo
Copy link

dax-leo commented Oct 15, 2020

Hmmm... could it be that InternalComboBox DrawMode is initialized as
DrawMode = DrawMode.OwnerDrawVariable; instead of DrawMode = DrawMode.OwnerDrawFixed; ?

@PWagner1
Copy link
Contributor Author

I'll change it in the alpha code & test it.

PWagner1 added a commit that referenced this issue Oct 16, 2020
@PWagner1 PWagner1 added this to the Build 2101 milestone Oct 24, 2020
@PWagner1 PWagner1 added completed This issue has been completed. fixed This issue has been fixed. labels Jan 9, 2021
@PWagner1 PWagner1 closed this as completed Jan 9, 2021
@Smurf-IV Smurf-IV reopened this Jun 10, 2022
@Smurf-IV
Copy link
Member

This has been refixed via #517:
ComboBox

@Smurf-IV Smurf-IV modified the milestones: Build 2101, 2022 Jun 10, 2022
Smurf-IV added a commit that referenced this issue Jun 10, 2022
- Edit text size to be the same

#20
#578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completed This issue has been completed. fixed This issue has been fixed.
Projects
None yet
Development

No branches or pull requests

3 participants