Greetings,
I have been exploring using the TileList component and I have some questions on the scrolling options. It seems like a flexible control and I want to use it, but I need to figure out a few options for customizing.
1) It seems a bit overkill to have a page control on top and on the bottom and a horizontal scroll bar. That is three different ways to scroll. Is there a way to choose and use only 1 way to scroll? Maybe an option to turn off the top page flipper and/or the bottom page flipper and/or the scroll bar.
2) How would I make the background transparent or partially transparent?
I did try and apply a custom style to set the height of the top paginator and scroll bar to 0, but it did not work. Any help to make this control more useful would be appreciated.
- Scott
Hi,
1) You can hide the header and / or footer with the following code:
uses
FMX.Objects, UIConsts;
procedure TForm1.FormCreate(Sender: TObject);
begin
TMSFMXTileList1.NeedStyleLookup;
TMSFMXTileList1.ApplyStyleLookup;
TMSFMXTileList1.GetHeader.Visible := False;
end;
2) To apply a transparent or partially transparent background you can use the following code:
uses
FMX.Objects, UIConsts;
procedure TForm1.FormCreate(Sender: TObject);
var
r: TRectangle;
begin
TMSFMXTileList1.NeedStyleLookup;
TMSFMXTileList1.ApplyStyleLookup;
TMSFMXTileList1.GetHeader.Visible := False;
r := TMSFMXTileList1.Children[0] as TRectangle;
r.Fill.Color := MakeColor(r.Fill.Color, 100);
end;