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 TTabSheet (https://www.delphipraxis.net/9396-ttabsheet.html)

Sir_SiLvA 25. Sep 2003 15:08


TTabSheet
 
Moin!

ich bin echt am verzweifeln könnte mir jmd erklären wie ich meine eigene
Version von TTabSheet erstelle ?
(ich brauch eigene Versionen davon da ich will, das die Caption-Zeile die selbe Hintergrundfarbe bekommt wie das darunter liegende Panel und außerdem das onkey-event bei dieser komponente fehlt...)

Meine Delphi Version: 3 Prof.

Danke im voraus :)

Garby 30. Sep 2003 17:50

Re: TTabSheet
 
Hallo,

so sollte es funktionieren:
Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ComCtrls;

type
  TForm1 = class(TForm)
    PageControl1: TPageControl;
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

  TMyTabSheet = class(TTabSheet)
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.FormCreate(Sender: TObject);
begin
  with TMyTabSheet.Create(PageControl1) do begin
    PageControl := PageControl1;
    Caption := 'MyTabSheet1';
  end; // End With
end;

end.


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:23 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