Print Page | Close Window

Markup in CXTPTabControl

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=11054
Printed Date: 17 July 2025 at 6:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup in CXTPTabControl
Posted By: cpede
Subject: Markup in CXTPTabControl
Date Posted: 16 June 2008 at 9:39am
Is it possible to add multiline text and images as markup input to a CXTPTabControl. I only get one row of text always?
 
-cpede



Replies:
Posted By: Oleg
Date Posted: 17 June 2008 at 12:24am
Hi,
try <LineBreak/> tag to break it.


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


Posted By: cpede
Date Posted: 17 June 2008 at 2:07am
Have tried. The line breaks and the markup I write is rendered correctly "in the background", but the size and position of the tab is not following.
In you markup sample you also only have one line of text in the tab, but have multiple lines as listbox items.
 
-cpede


Posted By: Oleg
Date Posted: 17 June 2008 at 1:57pm
Hello,
 
Yes, you have manually set Height of Header in this case.
 
class CMyTabControl : public CXTPTabControl
{
 void GetItemMetrics(CSize* lpszNormal, CSize* lpszMin /*= NULL*/, CSize* lpszMax /*= NULL*/) const
 {
  if (lpszMin) *lpszMin = CSize(35, 35);
 }
};


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