(Gast)
n/a Beiträge
|
AW: PageControl ohne Rahmen
19. Mai 2017, 00:06
Style:= tsFlatButtons; // mit XE7 geht's
Oder:
Delphi-Quellcode:
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Winapi.CommCtrl, Vcl.ComCtrls;
type
TPageControl = class( Vcl.ComCtrls.TPageControl)
private
procedure TCMAdjustRect( var Msg: TMessage); message TCM_ADJUSTRECT;
end;
type
TForm1 = class(TForm)
PageControl1: TPageControl;
TabSheet1: TTabSheet;
TabSheet2: TTabSheet;
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TPageControl.TCMAdjustRect( var Msg: TMessage);
begin
inherited;
if Msg.WParam = 0 then
InflateRect(PRect(Msg.LParam)^, 4, 4)
else
InflateRect(PRect(Msg.LParam)^, -4, -4);
end;
end.
Geändert von t.roller (19. Mai 2017 um 00:18 Uhr)
|
|
Zitat
|