Ticket T147307
Visible to All Users

TdxBarCustomPopupMenu descendants - Add the capability to adjust the size and pop-up position of the popup menu prior to displaying it onscreen

created 11 years ago

Hi,

We would like to restrict a dxRibbon.TdxRibbonPopupMenu menu to the bounds of the parent form. For example, if the bottom of the popup menu will be displayed outside the main form, we make it popup above the cursor. If it will still be outside the form, we reduce the height of the popup and add scroll buttons.

Any idea how we can achieve this?

Cheers,
Paul

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

The TdxBarCustomPopupMenu class has been extended with the OnShow event. At the moment this event is fired, the pop-up position and size of the submenu control associated with the popup menu are already calculated. You can access and adjust them as required using the popup menu’s SubMenuControl.BoundsRect property. We published the event in the TdxBarPopupMenu and TdxRibbonPopupMenu components.

    created 11 years ago (modified 11 years ago)

    Hello Paul,

    Our TdxRibbonPopupMenu menu does not provide any mechanism to implement this functionality.

      Comments (3)

        Hi,
        Can you suggest a way in which it might be implemented? If this is not possible, could an an event be added that allows you to set the bounds before the menu is displayed?
        Thanks,
        Paul

        DevExpress Support Team 11 years ago

          Hello Paul,

          The inner structure of the ribbon popup menu does not allow you to accomplish this task. However, your idea about implementing a special event sounds good. I have forwarded this ticket to our developers, so we will consider the possibility of implementing this feature with future versions of our controls.

            It would be great if you could implement the change. Many Thanks.
            /Paul

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.