BiDiMode and FlipChildren issues with TRadioGroup, TCheckGroup and TCheckedListbox
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
When BiDiMode is set to Right-to-left and child controls are flipped by means of FlipChildren irregularities are seen for above-mentioned controls:
- TCheckListbox does not change when BiDiMode is changed
- TRadioGroup and TCheckGroup show the radio/checkbox at the left of the text when BiDiMode is at RTL. Therefore the position of the radio/checkboxes is "ragged". They should be aligned along the right edge of the control as can be confirmed with Delphi XE2.
Screenshot "Delphi_XE2" shows the output of the test program after BiDiMode has been set to R-T-L and FlipChildren has been executed.
Screenshot "Lazarus_unpatched" is the output of Lazarus 1.1 r.42799, for the same situation.
Screenshot "Lazarus_patched" is the output of current Laz trunk after application of the attached patch showing the correct behavior.
Steps to reproduce:
Run attached demo and press the buttons "BiDiMode" and/or "FlipChildren".
Additional information:
The attached patch fixes the issues.