Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Column Headers

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
gregoryagu



Joined: 12 Dec 2007
Posts: 78

PostPosted: Mon Jan 21, 2008 11:53 pm    Post subject: Column Headers Reply with quote

I want to set a column header to RGB(200, 223, 255).

The Column is created in Code:
Code:

            Column mainColumn = new Column();
            mainColumn.Caption = "Items";
            mainColumn.AutoSizePolicy = ColumnAutoSizePolicy.AutoSize;
            mainColumn.Width = 200;
            mainColumn.MinWidth = 200;
            mainColumn.HeaderStyle.BackColor = Color.Blue;
            this.tvObjects.Columns.Add(mainColumn);


In the properties of the Treeview, ShowColumnHeaders is set to true, and UseThemedHeaders is set to false.

However, my header still shows up the usual Grey.

Greg
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jan 22, 2008 6:59 am    Post subject: Reply with quote

The BackColor is only used if the BorderStyle is set to Flat - otherwise the standard control colors are used.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
WolfenSteed



Joined: 15 Feb 2006
Posts: 7
Location: San Diego

PostPosted: Tue Jul 15, 2008 3:30 pm    Post subject: Column Header color Reply with quote

Which BorderStyle needs to be set to Flat for the Columns HeaderStyle.BackColor to work? I tried to set the Columns BorderStyle to Flat and I also tried to set the VirtualTree's HeaderStyle.BorderStyle to Flat. It still has the default Gray. :(
_________________
Walt :)
Nothing is too small to know, and nothing is too big to attempt.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jul 15, 2008 10:54 pm    Post subject: Reply with quote

You need to set VirtualTree.UseThemedHeaders to false AND set HeaderStyle.BorderStyle to flat. Note that if you set the VirtualTree.StyleTemplate to Vista then this will set these settings by default.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group