OSCommerce Product Manager for Windows
FS#213 - Balloon tooltips limited to windowed controls.
Attached to Project:
OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Friday, 01 July 2005, 03:49 GMT
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Friday, 01 July 2005, 03:50 GMT
Opened by Mario A. Valdez-Ramirez (mvaldez) - Friday, 01 July 2005, 03:49 GMT
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Friday, 01 July 2005, 03:50 GMT
|
DetailsThis bug has been fixed. This note is only to document it.
The old balloon.pas file contained all routines needed to attach a balloon tooltip to any windowed control (descendant of TWinControl). The balloon was shown when the tooltip event was fired. This approach had several problems. First, it was limited to windowed controls (several Delphi controls are not descendants of TWinControl). Second, everytime the controls were translated, all balloons had to be destroyed and then recreated. Third, code was getting complex. Fourth, I got the feeling that this was not the right approach. Anyway, we decided to drop all the old code and then just create a custom class from THintWindow and then ask Delphi to use that when rendering the hints (tooltips). The advantages: Super simple code, no more retranslation problems, all management is done by Delphi, not limited to windowed controls. The balloons are no longer balloons, but colored boxes. This bug has been fixed. |
This task depends upon