![]() |
Sort Column Arrow Color |
Post Reply ![]() |
Author | |
Kurisu ![]() Newbie ![]() Joined: 28 February 2007 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 08 March 2007 at 12:38pm |
Hello, just wondering if there was an easy/semi-easy way to draw the arrow in the sort column as a different color..
I noticed the CXTPPaintManager has a Triangle() method.. If this is what I need where would I get the Point coordinates from? If there is some simple function call or variable somewhere that allows me to change the arrow color that I overlooked.. please tell me ![]() Thanks. (Just started using XTP... very very nice ![]() |
|
![]() |
|
Kurisu ![]() Newbie ![]() Joined: 28 February 2007 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Sorry, missed your question. Yes, this arrow is drawn with this method. If you look inside, you'll see that the triangle is drawn using regular user's Windows colors: color variables are initialized from COLOR_3DHIGHLIGHT and COLOR_3DSHADOW. (details there: http://msdn2.microsoft.com/en-us/library/ms724371.aspx) However, same colors are used to draw background and a foreground of the column header. So far, to change only triangle's color, you have to set another color values inside the method:
Then rebuild the library and your application. -- WBR, Serge |
|
![]() |
|
Kurisu ![]() Newbie ![]() Joined: 28 February 2007 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Thanx... much appreciated.
![]() |
|
![]() |
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 |