Wrong position of TCheckBoxThemed in OI.
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When OI uses TCheckBoxThemed (default now), then upon selecting a boolean property for the first time (first ever selection of a boolean in OI) the placement of the checkbox is rather off.
After that, when you select a boolean property, the checkbox moves a a few pixels to te right only upon selecting the property.
This only became visible after r51303 (which corrected a wrong ifdef in objectinspector unit.
Before that, the code was never called, because this (line 2680):
if FCurrentEdit is {IFnDEF UseOINormalCheckBox} TCheckBoxThemed {
ELSE} TCheckBox {$ENDIF} then
always evaluated to false, because it would always check against the wrong classtype.
Steps to reproduce:
Apply r51303
Rebuild IDE
In OI click on a boolean property.
See the displacement.
Additional information:
See attached screenshot.
Only tested under win32.
The issue is not present if UseOICheckBoxThemed is defined.
Mantis conversion info:
- Mantis ID: 29412
- OS: Window
- OS Build: Win7
- Build: r51303
- Platform: i386
- Version: 1.7 (SVN)
- Fixed in revision: r51416 (#cf3a735d)