Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi scrollbars an/aus-schalten (https://www.delphipraxis.net/53046-scrollbars-aus-schalten.html)

Kroko1999 9. Sep 2005 03:20


scrollbars an/aus-schalten
 
Ich habe ein Komponente von TCustomControl abgeleitet:
Delphi-Quellcode:
TCustomCtrl = class(TCustomControl)
    constructor Create (AOwner: TComponent); override;
    procedure CreateParams(var Params: TCreateParams); override;
    destructor Destroy; override;
  private
  protected
  public
  published
end;
constructor TCustomCtrl.Create(AOwner: TComponent);
begin
  inherited;
 
end;

procedure TCustomCtrl.CreateParams(var Params: TCreateParams);
begin
  inherited;
  with Params do
  begin
    Style := Style or WS_VSCROLL or WS_HSCROLL;
  end;

end;

destructor TCustomCtrl.Destroy;
begin

  inherited;
end;
mit 2 Scrollbars.

Wie kann ich diese nun anzeigen bzw. nicht anzeigen :?:

turboPASCAL 9. Sep 2005 03:36

Re: scrollbars an/aus-schalten
 
Delphi-Referenz durchsuchenShowScrollBar ist eine Möglichkeit Dein Problem lösen.

Delphi-Quellcode:
// z.B.:

  ShowScrollBar(Memo1.Handle, SB_VERT, True);


// in der Komponente z. B.:

  ShowScrollBar(Self.Handle, SB_HORZ, Flase);

Kroko1999 9. Sep 2005 06:35

Re: scrollbars an/aus-schalten
 
:wall:

HATTE ich auch schon gefunden

Danke!

:wall:


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:39 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz