This question might be better on SO but I will try here first.

This question might be better on SO but I will try here first.

Does anyone know how to get a TActionMainMenuBar with TThemedPopupMenu to act like the standard menus, in that if there is too many items to fit on the screen (vertically), two scroll buttons appear (one top, one bottom)?

I have tried:
* setting TActionMainMenuBar.Orientation to boTopToBottom and TActionMainMenuBar.AllowScrolling to true - This makes the bar on the form to have scroll bars and you can't actually see the top items. It sort of looks like this

+---------------------+
|             ^           |
|             v           |
+---------------------+

Instead of something like this:

+---------------------+
|        File           |
+---------------------+


* setting TThemedPopupMenu.Orientation to boTopToBottom and TThemedPopupMenu.AllowScrolling to true. This has the effect of squishing the dropping down menu horizontally, with icons and short cuts drawn on top of each other.

The reason for setting these properties is because TCustomActionDockBar.SetAllowScrolling is only set to true when "AllowScrolling and (Orientation = boTopToBottom))"

The only reference on the Internet I have found about this type of thing is Brian Long's "Actions, Action Lists And Action Managers" (http://www.blong.com/Articles/Actions/Actions.htm#ActionBands).

Does any other references that might help me out?
http://www.blong.com/Articles/Actions/Actions.htm

Comments

Post a Comment