Print Page | Close Window

TTMSFMXNativeNSTableView selection color

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX mCL
Forum Discription:
Printed Date: 24 Feb 2020 at 2:57am

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;

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

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