Print Page | Close Window

Toolbar text

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=175
Printed Date: 19 April 2024 at 8:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar text
Posted By: fgorseth
Subject: Toolbar text
Date 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.




Replies:
Posted By: kstowell
Date 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



Posted By: fgorseth
Date 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.


Posted By: fgorseth
Date 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



Posted By: kstowell
Date Posted: 01 November 2003 at 2:43pm

Hello,

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

Cheers,
Codejock Support



Posted By: fgorseth
Date 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

 



Posted By: kstowell
Date Posted: 03 November 2003 at 1:31pm

Great, thank you!




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