Print Page | Close Window

Creating a Tab 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=6085
Printed Date: 04 March 2025 at 12:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating a Tab Menu
Posted By: lheier
Subject: Creating a Tab Menu
Date Posted: 11 January 2007 at 10:13am
I'm trying to create a Tab Menu similar to the one in WMP 11.  Does Codejock XTP have any controls like this?  Or does anyone know how do create this using MFC?
 



Replies:
Posted By: Tsenoh
Date Posted: 12 January 2007 at 10:31am
It looks like a split button. But normally, the style of the split button with only caption and no icon is to have the drop-down button on the right side of the button, not on the bottom. You could use a trick, creating transparent icon 1x1 pixel in size. Then you can use button style xtpButtonIconAndCaptionBelow to make something like that button you posted.
 
I am not sure if this will work, but that is what I would try to do.
 
As for the colors, you can create your own style dll, with your own graphics.
 
Sincerely,
 
Bojan Hrnkas


Posted By: lheier
Date Posted: 16 January 2007 at 11:30am
I'm getting closer.  Using the (undocumented) xtpButtonIconAndCaptionBelow style on a xtpControlSplitButtonPopup control, I get this:
 
 
Unfortunately, the caption is on the wrong part of the button.  Its on the popup menu instead of the button.  Anyone know how to move it?


Posted By: lheier
Date Posted: 26 January 2007 at 11:12am

I created an issue with Codejock support asking if it was possible to move the caption.  Oleg responded saying they would add a flag in the next major release.




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