I have a TCustomControl which shall not be resizeable.
I have the Height and Width properties disabled with the code below.
procedure Register;
begin
RegisterPropertyEditor(TypeInfo(integer), TWGCursorPlacers, 'Width', THiddenPropertyEditor);
RegisterPropertyEditor(TypeInfo(integer), TWGCursorPlacers, 'Height', THiddenPropertyEditor);
RegisterComponents('Instrumentation',[TWGCursorPlacers]);
end;
But during design time the control can be resized by the mouse. It is not a great issue, but it is still annoying.
Could anyone propose a good way to disable resizin (by the mouse) during design time?