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

Centering controls in group

 Post Reply Post Reply
Author
Message
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Topic: Centering controls in group
    Posted: 16 May 2008 at 11:10am
Can't get controls to be horizontally centered in group. I tried using SetControlsCentering(), but it doesn't change the alignment. Button is aligned to the left side of the group--how to make it centered? This is my code:

    group = pTabXPT->AddGroup( _T( "Associated HW File" ) );
    group->SetControlsCentering( TRUE );
    group->SetID( GROUP_XPT_HWFILE );
    pCtrlLabHWFile = (CXTPControlLabel*)group->Add( xtpControlLabel, ID_TXT_HWFILE );
    pCtrlLabHWFile->SetWidth( 300 );
    group->Add( xtpControlButton, ID_SET_HWFILE );

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: 16 May 2008 at 12:40pm
Hi,
it was changed in last releases.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 2:26pm
Thanks for the tip, I'll upgrade ASAP
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.063 seconds.