OSCommerce Product Manager

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) - Thursday, 30 June 2005, 22:49 GMT-5
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Thursday, 30 June 2005, 22:50 GMT-5
Task Type Bug Report
Category Backend / Core
Status Closed
Assigned To Mario A. Valdez-Ramirez (mvaldez)
Operating System All
Severity Low
Priority Urgent
Reported Version any
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This 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

Closed by  Mario A. Valdez-Ramirez (mvaldez)
Thursday, 30 June 2005, 22:50 GMT-5
Reason for closing: