View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003153||JEDI VCL||00 JVCL Components||public||2005-08-16 15:05||2005-08-17 01:45|
|Target Version||Fixed in Version||3.10|
|Description||If the hint text is wider than the screen width, the anchor position of the ballon message is bad. For example: set the DefaultBalloonPosition to bpLeftUp, and activate the hint on a TTreeView that is on the right area of the screen. Use a hint that would cause the CalcHintRect computation to result in text width rect that exceeds the screen width. The balloon hint will not align to the left edge of the screen, but rather will align the left edge to about the position that is half the width of the TTreeView panel, and extend off the right edge of the screen.|
By changing the following line of code at line 1264...
Rect := FHint.CalcHintRect(Screen.Width, RHint, @FData);
Rect := FHint.CalcHintRect(Screen.Width div 2, RHint, @FData);
This will correct the problem, but might not be the best solution. It would be nice on high res screens to be able to specify the max width of the hint since I personally like the way the above turned out rather than if it had stretched the whole width of the screen.
|Tags||No tags attached.|