none
none

Reputation: 4827

delphi TActionMainMenuBar Direction Right To Left

when using TActionMainMenuBar, 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.

Upvotes: 4

Views: 1206

Answers (2)

David Heffernan
David Heffernan

Reputation: 612894

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.

Upvotes: 2

Ravaut123
Ravaut123

Reputation: 2808

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

Upvotes: 0

Related Questions