Print Page | Close Window

CXTTabControl: How to increase border

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=10304
Printed Date: 23 November 2024 at 5:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTabControl: How to increase border
Posted By: mgampi
Subject: CXTTabControl: How to increase border
Date Posted: 18 April 2008 at 2:26pm
Hi;
How can I increase the border around the client area of the tab item?
I use CXTPTabManagerItem::SetHandle() to assign the client to the tab.
Calling CXTPTabManagerItem::SetRect()? How?


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: mgampi
Date Posted: 18 April 2008 at 2:46pm

I was swift to ask my question!
I found the solution by myself:

tabs_.GetPaintManager()->m_rcClientMargin.SetRect(4, 4, 4, 4);

But how can I change this in a tab-by-tab way?


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: Oleg
Date Posted: 18 April 2008 at 3:09pm
Hi,
You can catch SelectionChanged event and set this m_rcClientMargin


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


Posted By: mgampi
Date Posted: 18 April 2008 at 3:32pm
Thanks, thats great!

-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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