Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTCaption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTCaption

 Post Reply Post Reply
Author
Message
fist88226 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 March 2008
Location: Malaysia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fist88226 Quote  Post ReplyReply Direct Link To This Post Topic: CXTCaption
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 6:51am
Hi,
Sorry, SS_CENTER style is not supported.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 9:58am
Does CXTCaption support markup ?

  Jimmy

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 10:17am
Hi,
There is new CXTPMessageBar with markup. See Ribbon sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fist88226 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 March 2008
Location: Malaysia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fist88226 Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 10:23am
Hi.
So is there any other way to make the caption "Center Aligned"?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
fist88226 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 March 2008
Location: Malaysia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fist88226 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.