Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolbar text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar text

 Post Reply Post Reply
Author
Message
fgorseth View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2003
Location: Norway
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fgorseth Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar text
    Posted: 15 October 2003 at 8:00am

Hello.

How to implement toolbar text (text below buttons) as in MS Money (but not with the MS Money layout - need toolbar text in standard toolbar). I have been looking at the MS Money sample project, but could not find any solution - yet...

BR,
Frode Gorseth.

Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2003 at 9:42am

Hi Frode,

Take a look at the GUI WinZip sample, this shows how to create command bar buttons with text underneath.

Kind regards,
Codejock Support

Back to Top
fgorseth View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2003
Location: Norway
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fgorseth Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2003 at 8:33am
 
Thanks for the information. large toolbar buttons with text works fine, but how to get large toolbar buttons with text together with xtpControlSplitButtonPopup. When I add a split button (drop down arrow) to a toolbar button, the text disappears for that button...
 
BR,
Frode Gorseth.
Back to Top
fgorseth View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2003
Location: Norway
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fgorseth Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2003 at 3:00pm

This is taken from the MS Money GUI sample project. Is there anyone who has implemented the "case xtpControlSplitButtonPopup" (it is not implemented in this sample)?:

CSize CMsMoneyTheme::DrawControlToolBarParent(CDC* pDC, CXTPControl* pButton, BOOL bDraw)
{
 ...
 ... 
 switch(controlType)
 {
 case xtpControlPopup:  
  { 
   if (bDraw && (bSelected || bPopuped) && pButton->GetParent()->GetPosition() != xtpBarPopup)
   {
    pDC->FillSolidRect(rcButton, RGB(80, 80, 80));
   }   

   CSize sz = DrawTextEx(pDC, pButton->GetCaption(), rcButton, bDraw, bVert, TRUE, FALSE, FALSE);
   return !bVert? CSize(sz.cx + 16, sz.cy + 8): CSize(sz.cx + 8, sz.cy + 16);
  }
 case xtpControlSplitButtonPopup:  
  {
   ASSERT(FALSE); // not implemented.
   return 0;
  }
 ...
 ...

BR,
Frode Gorseth

Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2003 at 2:43pm

Hello,

Can you please send a sample that reproduces the problem you are having to support@codejock.com.  We will take a look at this and get right back to you.

Cheers,
Codejock Support

Back to Top
fgorseth View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2003
Location: Norway
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fgorseth Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2003 at 5:28am

Hello.

I got the answer from Codejock Support: New files for the GUI WinZip sample project where the xtpControlSplitButtonPopup is implemented :) Thanks!

BR,
Frode Gorseth

 

Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2003 at 1:31pm

Great, thank you!

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.125 seconds.