How to hide some buttons in the designer?

Question: How to hide some buttons in the designer?

Answer:

There are some things in the FR_Desgn.pas:

1
2
3
4
5
6
7
8
9
10
type
TfrDesignerRestriction = (frdrDontEditObj, frdrDontModifyObj, frdrDontSizeObj, frdrDontMoveObj,
frdrDontDeleteObj, frdrDontCreateObj,
frdrDontDeletePage, frdrDontCreatePage, frdrDontEditPage,
frdrDontCreateReport, frdrDontLoadReport, frdrDontSaveReport,
frdrDontPreviewReport, frdrDontEditVariables, frdrDontChangeReportOptions);
TfrDesignerRestrictions = set of TfrDesignerRestriction;
 
var
DesignerRestrictions: TfrDesignerRestrictions;

Assign some flags to the DesignerRestrictions and call the designer.