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

GetHint calculates wrong width for HintText #623

Closed
IgitBuh opened this issue May 4, 2016 · 3 comments
Closed

GetHint calculates wrong width for HintText #623

IgitBuh opened this issue May 4, 2016 · 3 comments
Assignees
Labels
Bug Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.
Milestone

Comments

@IgitBuh
Copy link

IgitBuh commented May 4, 2016

Using the OnGetHint event with a custom HintText (in the following example: 'abcdefghijklmnopqrstuvwxyz') causes the hint/tooltip to be calculated wrongly.
If HintMode is set to hmTooltip the width is calculated based on the actual CellText.
If HintMode is set to hmHint the width is calculated almost correct, but with some strange space on the right.
I didn't notice those problems with an older 5.2 version I previously used.

vtv-hint

VTV 6.2.3
Delphi XE
Windows 7

@joachimmarder joachimmarder added Bug Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR. labels May 22, 2016
@joachimmarder
Copy link
Contributor

Issue with hmTooltip can be reproduced in newer Delphi versions as well.

Possible repro: Use Advanced sample project, open unit "PropertiesDemo", change property HintMode to hmTooltip, run project, open page "Properties tree", make columns small, hover over shortened value.

sanjayssk pushed a commit that referenced this issue Jul 16, 2016
@sanjayssk
Copy link
Contributor

This is now done and tested.

@sanjayssk
Copy link
Contributor

Short issue description for changes.txt:
Hint rectangle width fixed for custom hint text in the Tooltip hint mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.
Projects
None yet
Development

No branches or pull requests

3 participants