Print Page | Close Window

TTMSFMXNativeNSTableView selection color

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX mCL
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=7553
Printed Date: 22 Sep 2019 at 5:34am


Topic: TTMSFMXNativeNSTableView selection color
Posted By: Brent Shelton
Subject: TTMSFMXNativeNSTableView selection color
Date Posted: 01 Mar 2017 at 9:44pm
How do you set the selection color?

I've tried using 

 
TMSFMXNativeNSTableView1.Options.Appearance.BackGroundColor := TAlphaColor(claLightGray);
TMSFMXNativeNSTableView1.Options.Appearance.GridColor := TAlphaColor(claLightGray);

I've also played around with  

TMSFMXNativeNSTableView1.Options.Appearance.SelectionHighlightStyle := hsTableViewSelectionHighlightStyleRegular;
TMSFMXNativeNSTableView1.Options.Appearance.SelectionHighlightStyle := hsTableViewSelectionHighlightStyleNone
TMSFMXNativeNSTableView1.Options.Appearance.SelectionHighlightStyle := hsTableViewSelectionHighlightStyleSourceList;



Replies:
Posted By: Pieter Scheldeman
Date Posted: 02 Mar 2017 at 9:25am
Hi, 

Only the SelectionHighlightStyle can be used to change the color of the selection. The colors itself are following the operating system default colors.



Posted By: Brent Shelton
Date Posted: 07 Mar 2017 at 5:17pm
Ok, what about the alternating row color?


Posted By: Pieter Scheldeman
Date Posted: 08 Mar 2017 at 8:33am
Can be turned on and off with TMSFMXNativeNSTableView1.TableView.setUsesAlternatingRowBackgroundColors(True);



Print Page | Close Window