Disabling Parts of the Designer

Hello,

I need to make a mode of Fast Reports where I restrict access to the user, at least for a bit.

Specifically, I need to restrict:
* Data
* Functions
* Classes
* System Text


As well, I would like to know of a way to disable/enable buttons and components in general from the designer form, if that is possible.

Comments

  • gpigpi
    edited 10:13PM
    procedure TForm1.frxDesigner1Show(Sender: TObject);
    begin
      TfrxDesignerForm(frxReport1.Designer).DataTree.DataTree.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).DataTree.FunctionsTree.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).DataTree.ClassesTree.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).DataTree.VariablesTree.Visible := False;
    end;
    

Leave a Comment