[Patch] Grids Hints are inconsistent
Original Reporter info from Mantis: biloky @biloky
-
Reporter name: Joeny Ang
Original Reporter info from Mantis: biloky @biloky
- Reporter name: Joeny Ang
Description:
The attached patch tries to fix the following issues:
For TCustomGrid and its descendants:
ShowHint = False
1. goCellHints, OnGetCellHint(): Application.Hint should be empty.
2. goTruncCellHints: Application.Hint should be empty.
ShowHint = True
1. chpAllNoDefault/chpTruncOnly: default hint should not be displayed.
2. chpAll, goCellHints: stacked hints are inconsistent, depending on the Hint
returned by OnGetCellHint().
- if a "|" is present, default long hint is omitted.
- if without "|", the default short hint is appended to the long hint.
3. chpAll, goTruncCellHints: default short hint should not be appended to
the long hint.
4. chpAllNoDefault, goCellHints, goTruncCellHints: the truncated cell text
hints should not be appended to the long hint.
5. chpAll: when mouse is moved from a cell with hint to an area without a
cell, the hint should revert to the default hint.
6. Truncated cell text hints should only be passed to OnGetCellHint() when
CellHintPriority = chpTruncOnly, to prevent duplicate calls to
OnGetCellHint().
Tested on GTK2 and Win32.
Mantis conversion info:
- Mantis ID: 35453
- OS: Arch Linux
- Platform: x86_64
- Version: 2.0.2
- Fixed in version: 2.1 (SVN)
- Fixed in revision: 61184 (#30f5f0b0)
- Target version: 2.0.4