Print Page | Close Window

How to make the caption of button emphasized

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=11715
Printed Date: 29 April 2024 at 11:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to make the caption of button emphasized
Posted By: yanlv
Subject: How to make the caption of button emphasized
Date Posted: 04 August 2008 at 9:42pm
I add "abc\nabc" in the prompt in the toolbar button properties and add             lpCreateControl->buttonStyle = xtpButtonIconAndCaption;
in the int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)

then the string "abc" will occur after the icon. But how to emphasize this string? i.e. make the font bold like office.
Thanks.



Replies:
Posted By: Oleg
Date Posted: 05 August 2008 at 1:26am
you can try
 
lpCreateControl->pControl = new CXTPControlButton();
lpCreateControl->pControl->SetItemDefault(TRUE);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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