Print Page | Close Window

Left align link items in task panel 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=2972
Printed Date: 09 November 2025 at 6:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Left align link items in task panel group
Posted By: cpede
Subject: Left align link items in task panel group
Date Posted: 29 September 2005 at 8:19am

Using the CXTPTaskPanelGroup class with AddLinkItem produces an item with an indent, for an icon. Using the AddTextItem does hot have an indent.

My question is now, how do I left align a link item with a text item when I don't use any icons.

-cpede




Replies:
Posted By: Oleg
Date Posted: 29 September 2005 at 12:11pm

use margins:

pItem->GetMargins().SetRect(-x, 0, 0, 0);

 



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


Posted By: cpede
Date Posted: 30 September 2005 at 3:08am

Is there a way to determine what -x should be?

Like a imaginative: x = XTP_TASKBARICONWIDTH ???

-cpede



Posted By: Oleg
Date Posted: 30 September 2005 at 4:36am
x = szIcon.cx + 7 = 16 + 7.

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



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