I tried to implement a toggle switch where a user can turn on/off the "wpTableOneCellResizing" in the editor.
Once the editor is loaded, I'm not able to resize just one cell when the property is turned on via the toggle switch (the editor itself does not have this property set as a default property). Does the table need to be loaded with "wpTableOneCellResizing" or can it be toggled at run time?
It seems so the required code was deleted in WPCtrMemo to make that work
if val > 0 then begin FMouseSizePar.ADelColumn(WPAT_COLWIDTH_PC); FMouseSizePar.ASetColumn(WPAT_COLWIDTH, val); end;
should be changed to
if val > 0 then
begin
if (ssCtrl in Shift) or (wpTableOneCellResizing in EditOptions) then
begin
FMouseSizePar.ADel(WPAT_COLWIDTH_PC);
FMouseSizePar.ASet(WPAT_COLWIDTH, val);
end else
begin
FMouseSizePar.ADelColumn(WPAT_COLWIDTH_PC);
FMouseSizePar.ASetColumn(WPAT_COLWIDTH, val);
end;
end;