I can't turn off the toolbar by setting Toolbar.Visible to False. I've tried in both design and in code.
I have tried to create a TTMSFNCWXHTMLMemo in both design and at runtime. Nothing helps.
Why does the toolbar not disappears?
I can't turn off the toolbar by setting Toolbar.Visible to False. I've tried in both design and in code.
I have tried to create a TTMSFNCWXHTMLMemo in both design and at runtime. Nothing helps.
Why does the toolbar not disappears?
Hi,
We cannot reproduce this here. Are you on the latest version? Which framework are you using (FMX, VCL…)?
FMX application running on IOS Simulator
Can you provide some more context?
What’s your IDE version? Do you modify any other properties? Is it on the main form or in a child form?
We dropped 2 TTMSFNWXHTMLMemo on the form, set the target to iOS simulator, set the Toolbar.Visible property to False on the second TTMSFNCWXHTMLMemo and deployed the project. We correctly get the second one without a toolbar:
The problem comes when TTMSFNCWXHTMLMemo is placed on a frame and the frame is created like this:
if not Assigned(FMyFrame) then
begin
FMyFrame := TFrame1.Create(MainForm);
FMyFrame.Parent := panel2;
FMyFrame.Align := TAlignLayout.Client;
end;
It seems like it does not work on Win32 too.
We are still unable to reproduce this from the information we were given. Both Windows and iOS simulator work fine when we disable the Toolbar.Visible property. Please provide a small sample application that has the issue you are describing.
HTML_Memo_test.zip (83.3 KB)
Here is a test project. It seems to work in the iOS Simulator but when running on Windows I get this error:
Did you copy the DLLs? See here:
Yes and if I comment out the frame creation I do not get an error:
procedure TForm1.FormCreate(Sender: TObject);
begin
// MyFrame := TFrame2.Create(Form1);
// MyFrame.Parent := Panel1;
end;
The TTMSFNCWXHTMLMemo in the top works fine in all cases.
Hi,
We investigated this further and the initialization happens too early when the TFrame is created inside the TForm.OnCreate event. Can you try moving the code to the TForm.OnShow event instead? Or you can do it at any later stage than TForm.OnCreate if that fits your usecase better.
Hi,
Can you let us know your Delphi version so we can test against it and investigate further?