Print Page | Close Window

CXTCaption

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


Topic: CXTCaption
Posted By: fist88226
Subject: CXTCaption
Date Posted: 25 March 2008 at 5:14am
Hi,
I have one problem creating label using CXTCaption

CXTCaption            m_label;
m_label.Create(this, _T("Label"), 0,
        WS_CHILD | WS_VISIBLE | SS_CENTER,
        CRect(0, 80, 240, 96), IDC_STATIC_VIEW_MANAGER);

But I can't make this caption "Center Aligned". 

Regard



Replies:
Posted By: Oleg
Date Posted: 25 March 2008 at 6:51am
Hi,
Sorry, SS_CENTER style is not supported.


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


Posted By: jimmy
Date Posted: 25 March 2008 at 9:58am
Does CXTCaption support markup ?

  Jimmy



Posted By: Oleg
Date Posted: 25 March 2008 at 10:17am
Hi,
There is new CXTPMessageBar with markup. See Ribbon sample.


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


Posted By: fist88226
Date Posted: 25 March 2008 at 10:23am
Hi.
So is there any other way to make the caption "Center Aligned"?



Posted By: Oleg
Date Posted: 26 March 2008 at 1:02am
Hi,
 
You can override CRect CXTCaption::GetTextRect() const method and return rectangle you need.
 
 


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


Posted By: fist88226
Date Posted: 28 March 2008 at 7:13am
Hi, oleg.

It doesn't work to override GetTextRect().

Could you send me the whole class to inherit the CXTCaption?

Thanx.



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