Elements of TMenuItem in bdRightToLeft mode are aligned Left-to-Right
Original Reporter info from Mantis: idog
-
Reporter name: Ido Gendel
Original Reporter info from Mantis: idog
- Reporter name: Ido Gendel
Description:
A displayed TMenuItem contains the three elements of Glyph, Caption and (optionally) the arrow that denoted a submenu. In Right-to-Left mode, these should appear from the right to the left.
However, both in design time and in run time, they appear from the left to the right, and also the Caption is aligned to the left instead of to the right. Screen capture attached.
Steps to reproduce:
Create a new application (form). Set the form BidiMode to bdRightToLeft. Add a TMainMenu to the form, see that its BidiMode is automatically set to bdRightToLeft.
In the Menu Editor, add TMenuItems to the Main Menu - a top-level one, a submenu item for it, and a submenu item for that. One should probably write the Captions in an RTL language as well (I use Hebrew).
The problem is already evident in the design time form. It'll happen in a rinnung application as well.
Additional information:
It's important to note that in version 0.9.26.2, the alignment on MenuItems was correct, but there was a different problem - the submenu arrow overrode the last (leftmost) character of the Caption. I put this in the attached screencapture as well.
Mantis conversion info:
- Mantis ID: 14669
- OS: Windows 32 Bit
- OS Build: Vista Home Basic
- Build: 21829
- Platform: Intel i386
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 21850 (#0c54c565)
- Target version: 0.9.30