TTMSFNCHTMLEditor

This component is part of the set. However there is absolutely no documentation on this...

It seems to be a component that needs to be connected to something...

This is one of those very badly or not documented components. Proper documentation would help enormously!

The TTMSFNCHTMLEditor is a component for editing HTML, and the code to use it is simple: Assign text, execute it, manipulate HTML, click OK or Cancel and then assign the text back to the component or property you are manipulating. Below is a sample that demonstrates this on the Text property of a TTMSFNCButton. It is also registered at designtime for editing properties that accept HTML formatted text.




procedure TForm1.TMSFNCButton1Click(Sender: TObject);
begin
  TMSFNCHTMLEditor1.Text := TMSFNCButton1.Text;
  if TMSFNCHTMLEditor1.Execute = mrOK then
    TMSFNCButton1.Text := TMSFNCHTMLEditor1.Text;
end;

Pieter Scheldeman2020-04-16 09:40:17
From the manuals page: https://www.tmssoftware.com/site/manuals.asp
https://download.tmssoftware.com/download/manuals/TMSFNCRichEditorDevGuide.pdf

Bruno Fierens2020-04-16 09:42:49

Thanks, will give it a try.

This works!

Lazarus and linux

LCL component 

TTMSFNCButton not insert text

TMSFNCButton1.Text := 'OK'
Button not view 'OK'
view blan

We'll investigate this here as soon as possible.

Hi we have tested this here and couldn't see an issue with the HTML editor and the code



uses
  LCLTMSFNCHTMLEditor;


procedure TForm1.TMSFNCButton1Click(Sender: TObject);
var
  ed: TTMSFNCHTMLEditor;
begin
  ed := TTMSFNCHTMLEditor.Create(Self);
  try
    ed.Text := TMSFNCButton1.Text;
    if ed.Execute = mrOK then
      TMSFNCButton1.Text := ed.Text;
  finally
    ed.Free;
  end;
end;      


Please show us a sample that reproduces this.

Today i installed the latest version and the same problem is still present.
TMSFNCUIPack v3200 - 22.09.2020

Hi,

TMS FNC UI Pack v3.2.2.0

There is still the same problem.

Yes, we are aware, the issue is not yet fixed because of technical issues. We are still investigating. If the issue is fixed in a next update, this will be mentioned in the version history.

FNC TMS FNC UI Pack
v3.2.2.1 | Tuesday, December 08, 2020
The problem still exists

We are aware the issue still exists, when a fix/workaround is applied this will be visible in the version history.

FNC TMS FNC UI Pack
v3.2.2.1 | Tuesday, December 08, 2020
.....
v3.7.2.2 | Wednesday, April 13, 2022
I still have a problem

After quite some investigation this is classified as an issue in FPC specifically tied to TTMSFNCButton. There is currently no workaround. Please directly set the text or use a TTMSFNCToolBarButton instead.