Print Page | Close Window

Multiline 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=13809
Printed Date: 28 February 2025 at 4:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiline text
Posted By: gmail
Subject: Multiline text
Date Posted: 25 March 2009 at 2:59pm
How can we set multiline caption in CXTPCommandBar control? I tried with the code showed below but it doesn't respond to '\r' nor to '\n' at all:

pControl=pBar->GetControls()->Add(xtpControlButton, ID_BUTTON_322);
pControl->SetCaption(_T("this is some very long text that does not fit into screen within one line so we use \n to make it multiline..."));



Replies:
Posted By: Oleg
Date Posted: 26 March 2009 at 2:51am
Hi,
 
There is not multiline caption style.   You can set xtpButtonIconAndCaptionBelow style.


-------------
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