THintWindow.CalcHintRect gives the wrong result.
Original Reporter info from Mantis: Avishai
-
Reporter name: Avishai
Original Reporter info from Mantis: Avishai
- Reporter name: Avishai
Description:
In 'HintWindow.inc' the routine 'THintWindow.CalcHintRect' gives the wrong result IF the control.BiDiMode<>bdLeftToRight AND the text is Hebrew. This is probably true for all RightToLeft languages. The result is that the Top and Bottom of the Hint Text is chopped off. I think the Width is also short causing Text to wrap when it should not.
What puzzles me is that if BiDiMode:= bdLeftToRight and Hebrew Text, it gives good window size.
Here is some Hebrew Text for testing:
'אבישי אבישי אבישי'#13 (closed)#10 (closed)'אבישי אבישי אבישי!'
For this to work, in Application.inc you must activate the line 'FHintWindow.BiDiMode := FHintControl.BiDiMode;' in 'procedure TApplication.ShowHintWindow'
Mantis conversion info:
- Mantis ID: 25275
- Fixed in revision: r43367 (#9e319111)
- Monitored by: » Avishai (Avishai)