![]() |
Left align link items in task panel group |
Post Reply
|
| Author | |
cpede
Senior Member
Joined: 13 August 2004 Location: Denmark Status: Offline Points: 683 |
Post Options
Thanks(0)
Quote Reply
Topic: Left align link items in task panel groupPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 September 2005 at 12:11pm |
|
use margins: pItem->GetMargins().SetRect(-x, 0, 0, 0);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cpede
Senior Member
Joined: 13 August 2004 Location: Denmark Status: Offline Points: 683 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 September 2005 at 3:08am |
|
Is there a way to determine what -x should be? Like a imaginative: x = XTP_TASKBARICONWIDTH ??? -cpede |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 September 2005 at 4:36am |
|
x = szIcon.cx + 7 = 16 + 7.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |