If i set the ReadOnly of the Editor, i still can do :
- Change Font name
- Font Color
- Font Size
- Font Background
- Paragraph Background
- Change Text with the Spellchecker
- Undo/Redo
do i have to control these actions manually ?
If i set the ReadOnly of the Editor, i still can do :
do i have to control these actions manually ?
Hi,
unless you have written code which changes the attributes they should be locked.
Internally here always the method "Changing" is called - that returns false for a readonly true.
The spellchecker however does not use 'Changing', thats right.
Julian
It seems, that the changing the width of table cells didn't check the Changing event.
Same as pressing the TAB KEy in a table (for creating a new row) didn't call the changing event.
Hi,
In case of resizing a table "SaveChanging" is called. (This is necessary because of the data senstive control which would realod the text on Changing) Note that changing tables is controlled by edit options.
You can modify this code in WPCtrMemo to solve the TAB in table row problem:
if (wpAutoInsertRow in EditOptions) and (par.NextCell = nil)
and Changing // <-- inserted
then
begin
InsertRow;
ChangeApplied; // <-- inserted
par := nil;
end else
Julian