Hello,
If I double click on Header / Footer, ScalerichView will show the editor part of it.
Even if I set SRichViewEdit1.RVHeader.ReadOnly := True;
Can I disable double click on header and footer?
Thank you
Can I disable double click on Header / Footer
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Yes, there are options to hide headers and footers, but no options to prevent activation of editing (however, you cannot change them if they are readonly).
Currently, the only solution is moving the caret back to the main editor in OnChangeActiveEditor event:
Currently, the only solution is moving the caret back to the main editor in OnChangeActiveEditor event:
Code: Select all
procedure TForm3.SRichViewEdit1ChangeActiveEditor(Sender: TSRichViewEdit;
ActiveEditor: TRichViewEdit);
begin
if (ActiveEditor=Sender.RVHeader) or (ActiveEditor=Sender.RVFooter) then
Sender.StartEditing(srvrveMain)
end;
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I think yes - you need to assign this event to new editors.
In the original ActionTestTabs demo, properties of a new editor are assigned in the procedure TForm3.AddEditor.
You can add there:
In the original ActionTestTabs demo, properties of a new editor are assigned in the procedure TForm3.AddEditor.
You can add there:
Code: Select all
srve.OnChangeActiveEditor := ActiveEditor.OnChangeActiveEditor ;