mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:19:23 +02:00
LCL-GTK3: Support PageControl's all 4 TabPosition values. Issue #38809, patch from Anton Kavalenka.
git-svn-id: trunk@65074 -
This commit is contained in:
parent
cec9469511
commit
8d82fd5325
@ -383,6 +383,7 @@ type
|
|||||||
protected
|
protected
|
||||||
function CreateWidget(const Params: TCreateParams):PGtkWidget; override;
|
function CreateWidget(const Params: TCreateParams):PGtkWidget; override;
|
||||||
public
|
public
|
||||||
|
procedure InitializeWidget;override;
|
||||||
function getClientRect: TRect; override;
|
function getClientRect: TRect; override;
|
||||||
function getPagesCount: integer;
|
function getPagesCount: integer;
|
||||||
procedure InsertPage(ACustomPage: TCustomPage; AIndex: Integer);
|
procedure InsertPage(ACustomPage: TCustomPage; AIndex: Integer);
|
||||||
@ -3318,12 +3319,7 @@ begin
|
|||||||
FCentralWidget := TGtkFixed.new;
|
FCentralWidget := TGtkFixed.new;
|
||||||
PGtkBin(Result)^.add(FCentralWidget);
|
PGtkBin(Result)^.add(FCentralWidget);
|
||||||
FCentralWidget^.set_has_window(True);
|
FCentralWidget^.set_has_window(True);
|
||||||
|
PgtkFrame(result)^.set_label_align(0.1,0.5);
|
||||||
{fWidgetRGBA[0].R:=0.8;
|
|
||||||
fWidgetRGBA[0].Alpha:=0.7;
|
|
||||||
PgtkFrame(Result)^.override_color(GTK_STATE_NORMAL,@Self.FWidgetRGBA[0]);}
|
|
||||||
// nil resets color to gtk default
|
|
||||||
//FWidget^.override_background_color(GTK_STATE_FLAG_NORMAL, nil);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TGtk3GroupBox.getText: String;
|
function TGtk3GroupBox.getText: String;
|
||||||
@ -4578,6 +4574,12 @@ begin
|
|||||||
// g_signal_connect_data(FCentralWidget,'select-page', TGCallback(@GtkNotebookSelectPage), Self, nil, 0);
|
// g_signal_connect_data(FCentralWidget,'select-page', TGCallback(@GtkNotebookSelectPage), Self, nil, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TGtk3NoteBook.InitializeWidget;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
SetTabPosition(TCustomTabControl(LCLObject).TabPosition);
|
||||||
|
end;
|
||||||
|
|
||||||
function TGtk3NoteBook.getClientRect: TRect;
|
function TGtk3NoteBook.getClientRect: TRect;
|
||||||
var
|
var
|
||||||
AAlloc: TGtkAllocation;
|
AAlloc: TGtkAllocation;
|
||||||
|
Loading…
Reference in New Issue
Block a user