Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvPanel
How to have a caption with an image float left or right and have text rendered next to the image

You can achieve this through new HTML floating alignment in the

tag features in the HTML engine and insert the right aligned image this way.

This new feature is described in the TMS Component Pack What’s new guide on page 30.

Example:

This adds a clickable right aligned image & text in the AdvPanel caption:

procedure TForm2.FormCreate(Sender: TObject);
begin
   advpanel1.Caption.Text := ''<p align="left" float="left">Product A</p><p align="right">123.456<a href="test"><img src="idx:0"></a></p>'';
end;