mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-11 09:38:52 +02:00
MG: fixed TPanel and Frame3D
git-svn-id: trunk@979 -
This commit is contained in:
parent
ce07e0a39b
commit
7cb6ff5d49
@ -1192,25 +1192,17 @@ end;
|
|||||||
UpdateNoteBookClientWidget
|
UpdateNoteBookClientWidget
|
||||||
Params: ANoteBook: TObject
|
Params: ANoteBook: TObject
|
||||||
|
|
||||||
The client widget of a notebook is the fixed widget of the current page.
|
|
||||||
This procedure updates the 'Fixed' object data.
|
This procedure updates the 'Fixed' object data.
|
||||||
|
* obsolete *
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
procedure UpdateNoteBookClientWidget(ANoteBook: TObject);
|
procedure UpdateNoteBookClientWidget(ANoteBook: TObject);
|
||||||
var //Index: integer;
|
var
|
||||||
{PanelWidget, }ClientWidget: PGtkWidget;
|
ClientWidget: PGtkWidget;
|
||||||
NoteBookWidget: PGtkNotebook;
|
NoteBookWidget: PGtkNotebook;
|
||||||
begin
|
begin
|
||||||
if not TCustomNotebook(ANoteBook).HandleAllocated then exit;
|
if not TCustomNotebook(ANoteBook).HandleAllocated then exit;
|
||||||
NoteBookWidget:=PGtkNotebook(TCustomNotebook(ANoteBook).Handle);
|
NoteBookWidget:=PGtkNotebook(TCustomNotebook(ANoteBook).Handle);
|
||||||
ClientWidget:=nil;
|
ClientWidget:=nil;
|
||||||
{if GetGtkNoteBookDummyPage(NoteBookWidget)=nil then begin
|
|
||||||
Index:=gtk_notebook_get_current_page(NoteBookWidget);
|
|
||||||
if Index>=0 then begin
|
|
||||||
PanelWidget:=gtk_notebook_get_nth_page(NoteBookWidget,Index);
|
|
||||||
if PanelWidget<>nil then
|
|
||||||
ClientWidget:=GetFixedWidget(PanelWidget);
|
|
||||||
end;
|
|
||||||
end;}
|
|
||||||
SetFixedWidget(NoteBookWidget,ClientWidget);
|
SetFixedWidget(NoteBookWidget,ClientWidget);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -3254,6 +3246,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.102 2002/09/20 13:11:13 lazarus
|
||||||
|
MG: fixed TPanel and Frame3D
|
||||||
|
|
||||||
Revision 1.101 2002/09/19 16:45:54 lazarus
|
Revision 1.101 2002/09/19 16:45:54 lazarus
|
||||||
MG: fixed Menu.Free and gdkwindow=nil bug
|
MG: fixed Menu.Free and gdkwindow=nil bug
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user