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

TVirtualTreeColumns: Show column header text as hint in case column is to narrow #872

Open
Ajoschi opened this issue Jan 31, 2019 · 1 comment
Labels
Enhancement Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.

Comments

@Ajoschi
Copy link

Ajoschi commented Jan 31, 2019

Hi.

It would be great if the Text property of a header column (TVirtualTreeColumn.Text) would be shown as "mouse over" hint, in case the text does not fit completely into the header.

grafik

Consider:

  • Do this only in case TVTHeaderOption.hoShowHint included in TVirtualStringTree.Header.Options.
  • Do this only if Hint property of the related TVirtualTreeColumn is blank.

Thank you and regards,
Ajoschi

@joachimmarder joachimmarder added this to the V7.3 milestone Jan 31, 2019
@joachimmarder joachimmarder added the Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR. label Feb 19, 2019
@joachimmarder joachimmarder modified the milestones: V7.3, V7.4 Oct 2, 2019
joachimmarder added a commit that referenced this issue Oct 9, 2019
Fix for issue #872: TVirtualTreeColumns: Show column header text as h…
@joachimmarder joachimmarder modified the milestones: V7.4, V7.5 May 27, 2020
@joachimmarder joachimmarder pinned this issue Nov 18, 2020
@joachimmarder joachimmarder modified the milestones: V7.5, V7.6 Mar 30, 2021
@joachimmarder
Copy link
Contributor

TApplication.HintMouseMessage() is not called for the header, most likely because the header is in the non-client area. It works to intercept the WM_NCMOUSEMOVE message, but it does not work passing it on to TApplication.HintMouseMessage(): GetHintControl() returns nil, most likely again because the position is in the non-client area.

So it seems that all hint handling needs to be done manually to achieve the desired behavior, which is quite a lot of work and duplicate code.

@joachimmarder joachimmarder removed this from the V7.6 milestone Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 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