Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTToolBar - Buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTToolBar - Buttons

 Post Reply Post Reply
Author
Message
jsimmons View Drop Down
Newbie
Newbie


Joined: 16 September 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jsimmons Quote  Post ReplyReply Direct Link To This Post Topic: CXTToolBar - Buttons
    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?

 

Back to Top
jsimmons View Drop Down
Newbie
Newbie


Joined: 16 September 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jsimmons Quote  Post ReplyReply Direct Link To This Post 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?

 

Back to Top
jsimmons View Drop Down
Newbie
Newbie


Joined: 16 September 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jsimmons Quote  Post ReplyReply Direct Link To This Post 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.


 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.