Print Page | Close Window

Multi-column menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9130
Printed Date: 01 March 2025 at 3:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi-column menu
Posted By: Kingore
Subject: Multi-column menu
Date Posted: 18 December 2007 at 3:04am
I am using Xtreme ToolkitPro 2006 Q2 (version 10.2).  Is that possible to create a multi-column menu?

I am trying different ways but failed.

One way I did is to add a function in CXTPMenuBar. which can be create a CXTPMenuBar from a HMENU object. (or CMenu).
(I create my CMenu object in another way. you can suppose it's created from
LoadMenu API which is a typical windows API to create menu object. ).

I have add MFT_MENUBARBREAK|MFT_MENUBREAK flag which can cause a column break according to MSDN when I add menu items to the menu object.  but it seems XTP doesn't translated this flags... The menubar I created still is a one-column menu.

And I also tried with CXTPCommandBars::TrackPopupMenu function , and it doesn't work too.

When I add lots of menu items in the menubar, there will be an up arrow at the top of the menubar or a down arrow at the bottom of the menubar.
(not true with CXTPCommandBars::TrackPopupMenu).

I searched the forum, And I find some body talks about xtpFlagWrapRow 
flag. But I searched all the source codes of XTP, and can't find where this flag is defined ? Am I using a different version ?




Replies:
Posted By: Oleg
Date Posted: 18 December 2007 at 5:53am
Hello,
 
Yes, it was added after 10.2 release.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Kingore
Date Posted: 19 December 2007 at 2:05am
Thank you:), One more question, Since which version the feature of multi-column has been added ?




Posted By: Oleg
Date Posted: 19 December 2007 at 10:59am
Hi,
In 10.3.1.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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