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 >>

TMS HTML Controls Pack
How to use the design-time mini HTML editor at run-time

You can easily use the mini HTML design-time editor at run-time to allow users to edit the mini-HTML controls text at run-time. To allow this, use following steps : add the HTMLPROP unit to your project and add HTMLPROP to the uses clause in the unit from where you want to invoke the mini HTML editor. Add the following code to allow for example run-time editing of the content of a HTMLabel1 component :
var  
  htmledit: THTMLEditor;  
begin  
  htmledit := THTMLEditor.Create(Self);  
  
  try  
    htmledit.memo1.lines.Text := htmlabel1.htmltext.Text;  
  
    htmledit.ShowModal;  
  
    htmlabel1.htmltext.Text := htmledit.memo1.lines.Text;  
  
  finally  
    htmledit.Free;  
  end;  
end;