Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to make the caption of button emphasized
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to make the caption of button emphasized

 Post Reply Post Reply
Author
Message
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Topic: How to make the caption of button emphasized
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2008 at 1:26am
you can try
 
lpCreateControl->pControl = new CXTPControlButton();
lpCreateControl->pControl->SetItemDefault(TRUE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.141 seconds.