Janka
Janka

Reputation: 1988

Change color of a most controls (ie TPanel) in a Firemonkey Mobile in Delphi XE6

Many controls like TPanel and so on, do not support a simple way to change color of any element.

The standard Firemonkey Application use the "Styles" feature. (rx click on the component and choose Edit Custom Style)

But into Firemonkey Mobile Application, it's impossible customize the style. (if you rx click on the component, "Edit Custom Style" is missing)

For example, how to change the background color of TPanel?

Upvotes: 2

Views: 2404

Answers (1)

Mike Sutton
Mike Sutton

Reputation: 4211

Replace the TPanel with a TRectangle (which is all that a TPanel is anyway).

For other controls use the Tint property that is introduced in XE6.

Upvotes: 1

Related Questions