how to disable object toolbar by code

hi,
with the designer that displayed on my own form with five texts objects :
is it possible to hide object toolbar ? No need for it, already there are five texts objects on the page
is it possible to hide Data and code page? just we need page1.
the idea is to let the end user to positioning the texts Objects to print fixed data on it, so all of my needs is the designer page(page1) and five of text object and i will save the positions in the database so that later on i will print the data according to pre saved positions.
thanks in advance

Comments

  • edited 10:24PM
    did you find how to do that? I'm in the same place you were and need to disable object toolbar so that users don't use it.
  • gpigpi
    edited 10:24PM
    Try to use
    procedure TForm1.frxDesigner1Show(Sender: TObject);
    begin
      TfrxDesignerForm(frxReport1.Designer).ObjectsTB1.Visible := False; 
      TfrxDesignerForm(frxReport1.Designer).StandardTB.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).AlignTB.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).TextTB.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).FrameTB.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).ExtraToolsTB.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).DataTree.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).ReportTree.Visible := False;
      TfrxDesignerForm(frxReport1.Designer).Inspector.Visible := False;
    end;
    

Leave a Comment