![]() |
CXTPPropertyGridItem alignment = right ? |
Post Reply ![]() |
Author | |
Tomasz ![]() Senior Member ![]() Joined: 05 August 2006 Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() Posted: 13 December 2006 at 1:40pm |
Hi,
Is it possible to right-align CXTPPropertyGridItems ?
I searched docs and could not find any method to control alignment in propertygrid control.
Thanks in advance.
Tomasz
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1206 |
![]() ![]() ![]() ![]() ![]() |
Hi Tomasz; I've done this multiple times with different item types. All I did was: Create my own class derived from CXTPPropertyGridItem and Within the function I used the CDC::DrawText function with DT_RIGHT. Thats it! Martin |
|
![]() |
|
Tomasz ![]() Senior Member ![]() Joined: 05 August 2006 Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Thanks Martin, that what I was afraid of (yet another mod) :-(
Question to Oleg: is there any chance to have alignment control added to the library itself ???
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try pItem->GetValueMetrics()->m_uDrawTextFormat = DT_RIGHT|DT_VCENTER | DT_SINGLELINE;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1206 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg; Knowing this a few month earlier would have reduced my development effort by about two weeks... I'm trying it right now.
Martin
|
|
![]() |
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 |