user1238784
user1238784

Reputation: 2440

Submenu wrong position in Delphi application

My application is written in delphi. For some reason the main menu does not behave anymore like it did until yesterday (I probably touched some property without knowing). Now when I click on a menu item with sub-items, though the arrow is located to the right, the submenu keeps opening to the left.

enter image description here

What is the reason and how do I restore it back?

Upvotes: 5

Views: 1235

Answers (2)

Atrin Noori
Atrin Noori

Reputation: 341

I had the same problem and it had nothing to do with my "touch screen" or other pc tablet related settings I found out by changing some features of the MainMenu of type TMainMenu: Just set the "OwnerDraw" feature to False and "ParentBiDiMode" to true So if your parent view is already fine this MainMenu (submenu) will conform to its parent. I did it 100s of times and it worked for me

Upvotes: 0

Sertac Akyuz
Sertac Akyuz

Reputation: 54822

As revealed in the comments to the question, this is not programming related. There's a setting that does this in tablet pc settings in control panel. The reason for the setting is, when one is using a pen or the like with the right hand, sub menus, if opened to the right of their parent menu, are obscured by the pen.

Upvotes: 6

Related Questions