Disable Scrollbars in TfrxPreview

edited 4:48PM in FastReport VCL 5
Hi,

I want to disable the scrollbars in TfrxPreview from Delphi. How can I do that?

Comments

  • gpigpi
    edited 4:48PM
    Hello,

    Sorry, but you can't to hide scrollbars without changes of FR's sources:
    see frxCtrls.pas:
    procedure TfrxScrollWin.CreateParams(var Params: TCreateParams);
    const
    BorderStyles: array[TBorderStyle] of DWORD = (0, WS_BORDER);
    begin
      inherited;
      with Params do
        begin
          Style := Style or WS_CLIPCHILDREN or {WS_HSCROLL or //change this line
          WS_VSCROLL or} BorderStyles[FBorderStyle]; //change this line
          if {$IFNDEF FPC}Ctl3D and {$ENDIF} NewStyleControls and (FBorderStyle = bsSingle) then
            begin
              Style := Style and not WS_BORDER;
              ExStyle := ExStyle or WS_EX_CLIENTEDGE;
            end;
      end;
    end;
    

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.