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

CXTButton Multiline

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


Joined: 10 November 2003
Location: Spain
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote fjsen Quote  Post ReplyReply Direct Link To This Post Topic: CXTButton Multiline
    Posted: 11 June 2007 at 4:07am

Hi,

Is there anyway to have more than one text line in a CXTButton?. I have a large text and I try to put it in the button in two different lines with the "\n" but I just get an strange character. Is there any property or style for doing this?

Thank you
Back to Top
abazosan View Drop Down
Newbie
Newbie


Joined: 24 May 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote abazosan Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2007 at 6:00am
I have the same issue.
Is it possible to have multiline buttons? It would be very useful..
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 15 June 2007 at 4:57am
Hello,
 
Sorry, only single line text supported, you can easy override void CXTButtonTheme::DrawButtonText(CDC* pDC, UINT nState, CRect& rcItem, CXTButton* pButton) , draw multiline text and set your theme with
m_btm.SetTheme(new CMyNewTheme());
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fjsen View Drop Down
Newbie
Newbie


Joined: 10 November 2003
Location: Spain
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote fjsen Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2007 at 8:34am
Ok, thanks a lot
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.