Print Page | Close Window

Centering controls in group

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


Topic: Centering controls in group
Posted By: ibmldev
Subject: Centering controls in group
Date 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 );




Replies:
Posted By: Oleg
Date Posted: 16 May 2008 at 12:40pm
Hi,
it was changed in last releases.


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


Posted By: ibmldev
Date Posted: 16 May 2008 at 2:26pm
Thanks for the tip, I'll upgrade ASAP



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