Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » ProfUIS_Controls demo app: how to change default behaviour Collapse All
Subject Author Date
Martin Baumgaertner Sep 6, 2007 - 6:09 AM


in the "ProfUIS_Controls" demo app there is a menu animation effect called "slide" that can be applied to a popup menu.
When right clicking the menu always slides DOWN depending on two different modes: default behaviour is to appear below the current
mouse position (CMP) and exceptionally, i.e. only when near the lower frame border, above the CMP.

How can I force the popup rolling UPWARD in case of right clicking near the lower side?

How can I change the default behaviour of the popup in a way that it prefers to appear ABOVE the CMP and only
rolls down if CMP is near the upper border?


Andreas Schneider Sep 11, 2007 - 3:19 AM

Thank you for your answer (I’ll answer as Martin is in holidays)

It would be great if you could add some styles for it!


Martin Baumgaertner Sep 8, 2007 - 2:13 AM

Thank you for your answer.

But how can I force the popup to slide always AWAY FROM THE CMP, i.e. downward if the popup appears under the CMP and upward if it appears above the CMP? By default it ALWAYS rolls downward.


Technical Support Sep 10, 2007 - 1:35 PM

The bottom-to-top slide menu appearing animation is supported and you can see it in the menus appeared from the bottom-docked menu bar’s or toolbar’s buttons. But the menu does not apply the bottom-to-top sliding in any other cases including context menus. We can add some TPMX_*** menu tracking style which controls this option if you request this.

Technical Support Sep 6, 2007 - 10:29 AM

TPMX_LEFTALIGN or TPMX_RIGHTALIGN flags in the first parameter of the
CExtPopupMenuWnd::TrackPopupMenu() method. These flags specify the position of the drop-down.