Print Page | Close Window

CXTToolBar - Buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1182
Printed Date: 06 November 2025 at 2:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTToolBar - Buttons
Posted By: jsimmons
Subject: CXTToolBar - Buttons
Date Posted: 16 September 2004 at 8:41am

I'm using a REALLY old version of XTToolkit (from back in 2000/2001) with VC6.

In my CXTToolBars, I'm adding a single dropdown button. I want both a bitmap and text on the button.  I can get the bitmaps to show up, but the text doesn't, or when it does, the text is displayed UNDER the bitmap.

Questions:

1) How do I get the text to display to the RIGHT of the bitmap instead of under it?

2) How do I change the font for the toolbar?

 




Replies:
Posted By: jsimmons
Date Posted: 16 September 2004 at 9:07am

Okay, I think I can use SetFont() to change the font, but my other problem still exists.

Any help?

 



Posted By: jsimmons
Date Posted: 16 September 2004 at 11:22am

Okay, heres what I'm doing:

nToolbarID and nButtonID are UINTS defined in the resource.h file. nToolbarID has an associated bitmap (in the RC file).

 DWORD dwMainTopStyle = WS_CHILD      |
         WS_VISIBLE    |
         CBRS_TOP      |
         CBRS_TOOLTIPS |
         CBRS_FLYBY    |
         CBRS_SIZE_FIXED;
 if (!m_wndBar.CreateEx(this, TBSTYLE_FLAT, dwMainTopStyle) || !m_wndBar.LoadToolBar(nToolbarID))
 {
  return false;
 }
m_wndBar.SetButtonText(0, "Test");
m_wndBar.AddDropDownButton(nButtonID);

 

When the toolbar is displayed, I get the beitmaps, but no text.


 




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