Hi All,
Is there a way to put a different background image on each tile in a AdvSmoothTileList ?
I would like to have a background image and be able to write html code on it.
Thanks
Patrick
Pieter
(Pieter)
2
Hi,
You can implement the OnTileFill and then assign an image to the Backgroundpicture:
procedure TForm1.AdvSmoothTileList1TileFill(Sender: TObject;
Tile: TAdvSmoothTile; State: TTileState; Fill: TGDIPFill);
begin
if Tile.Index = 0 then
begin
Fill.BackGroundPicture.LoadFromFile('MyImage.png');
Fill.BackGroundPicturePosition := ppStretched;
Fill.GradientType := gtTexture;
end;
end;
For the HTML text you can assign a TAdvSmoothTileListHTMLVisualizer component to the TAdvSmoothTileList