Print Page | Close Window

Dynamic menu creation of Ribbon SplitButton

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18566
Printed Date: 28 April 2024 at 3:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic menu creation of Ribbon SplitButton
Posted By: Marco1
Subject: Dynamic menu creation of Ribbon SplitButton
Date Posted: 18 June 2011 at 11:50am
I have to generate the menu content of a ribbon split button every time just before the menu is shown.
In the example I don't want the three "Option 1-3" be static content, they need to be created right after the split button is clicked and before menu dropdown.


I tried to receive a CBN_DROPDOWN message - but it seems the split button doesn't send one.
Other way may be the ON_XTP_INITCOMMANDSPOPUP message but this seems to be send only to mainframe?
Any suggestions about this?



-------------
Product: XTP 18.3.0 on VS 2017
Platform: VS 2017 / Windows 10 (64bit)



Replies:
Posted By: markr
Date Posted: 20 June 2011 at 1:47pm
Yes, ON_XTP_INITCOMMANDSPOPUP seems to be the best way to do this.

> but this seems to be send only to mainframe?

Guess notification is just sent to the parent window, which seems reasonable enough.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net