开发者

delphi TActionMainMenuBar Direction Right To Left

开发者 https://www.devze.com 2023-03-14 02:59 出处:网络
when using TActionM开发者_如何学CainMenuBar, is there a way to align the Actions component and sub menus from right to left?

when using TActionM开发者_如何学CainMenuBar, is there a way to align the Actions component and sub menus from right to left?

changing the bidi didnt apear to change

setting Bidiparent to false didn't help

changing Align to AlRight didnt help

seting at OnShow

  Application.BidiMode := bdRightToLeft;
  SysLocale.MiddleEast := true;

any more ideas?

Update: changing the actionManager.Style to windows xp did help.

I did customize the code first, however the change was reflected only at Design Time, and only to the "category". The actions themselves stayed left To right.


This is a known bug in the TActionMainMenuBar component that has been submitted to Quality Central: QC#10877.

The fault was reported way back in 2005 and since it hasn't been fixed yet I don't hold out much hope that it ever will be fixed.

I doubt very much that there is an easy workaround and suspect that you may need to resort to TMainMenu. You're only hope would be to include the ActnMenus VCL unit into your own project and then find and fix the bug. I've done this time and time again for the numerous bugs in TMainMenu and TPopupMenu but I'm afraid I have no experience with TActionMainMenuBar and none with right to left drawing.


If you use the TMainMenu and set the BiDiMode = bdRightToLeft, then everything are on the right site.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号