KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Subitem colour

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
mercury
KiXforms Regular
KiXforms Regular


Joined: 10 Aug 2005
Posts: 50

PostPosted: Fri May 12, 2006 9:24 pm    Post subject: Subitem colour Reply with quote

Is this the correct syntax?

Code:
$ListViewLogOutput.Items.Item(0).Subitems.Item(3).ForeColor = $system.Color.Blue


There isn't an error but neither does the colour change on the subitem. I also noticed that it doesn't work in KFD so is this simply not implemented yet?
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri May 12, 2006 11:02 pm    Post subject: Reply with quote

Yup, this gets me everytime too. Check out the:

ListViewItem.UseItemStyleForSubItems Property

Here is the MSDN:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.listviewitem.useitemstyleforsubitems.aspx

The default is TRUE - thats the "gotcha".
Back to top
View user's profile Send private message
mercury
KiXforms Regular
KiXforms Regular


Joined: 10 Aug 2005
Posts: 50

PostPosted: Sat May 13, 2006 3:48 pm    Post subject: Reply with quote

Ahh, Tricky!

This now works Smile

Code:
$ListViewLogOutput.Items.Item($ActualRow).UseItemStyleForSubItems = 0
$ListViewLogOutput.Items.Item($ActualRow).Subitems.Item($ActualSubitem).ForeColor = $system.Color.Blue


Many thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion 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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group