Print Page | Close Window

CXTButton Multiline

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=7354
Printed Date: 13 November 2025 at 2:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTButton Multiline
Posted By: fjsen
Subject: CXTButton Multiline
Date 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



Replies:
Posted By: abazosan
Date Posted: 13 June 2007 at 6:00am
I have the same issue.
Is it possible to have multiline buttons? It would be very useful..


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


Posted By: fjsen
Date Posted: 25 June 2007 at 8:34am
Ok, thanks a lot



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