Chartlistbox not showing checkboxes
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
Loading the listbox demo that comes with Lazarus (lazarus/components/tachart/demo/listbox) under Linux and OSX, you'll see that the checkboxes in the listbox are not drawn. At runtime, even the listbox item texts are not drawn either (I don't have OSX, but this is reported by a forum user - http://forum.lazarus.freepascal.org/index.php/topic,23012.msg136799.html).
In the attachment, there's another simple project in which I could verify the bug in Ubuntu. Windows is ok.
The attached patch fixes the bug at least for Ubuntu.
In addition the patch fixes also the problem that the checkboxes are too large in Ubuntu. In the patch, the checkbox size is not derived from the font height, no longer from the SystemMetrics of the menu checkboxes.
Mantis conversion info:
- Mantis ID: 25452
- OS: Linux
- OS Build: Ubuntu
- Platform: i86
- Version: 1.1 (SVN)
- Fixed in version: 1.2.0
- Fixed in revision: 43739 (#56325c43)