mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 23:46:28 +02:00
MG: fixed streaming visible=false
git-svn-id: trunk@932 -
This commit is contained in:
parent
370644f8c9
commit
34f2392939
@ -893,8 +893,7 @@ procedure SetFixedWidget(const ParentWidget, FixedWidget: Pointer);
|
|||||||
begin
|
begin
|
||||||
if (ParentWidget=nil) then
|
if (ParentWidget=nil) then
|
||||||
raise Exception.Create('SetFixedWidget ParentWidget=nil');
|
raise Exception.Create('SetFixedWidget ParentWidget=nil');
|
||||||
if (ParentWidget <> nil) then
|
gtk_object_set_data(ParentWidget, 'Fixed', FixedWidget);
|
||||||
gtk_object_set_data(ParentWidget, 'Fixed', FixedWidget);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
@ -982,24 +981,21 @@ end;
|
|||||||
This procedure updates the 'Fixed' object data.
|
This procedure updates the 'Fixed' object data.
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
procedure UpdateNoteBookClientWidget(ANoteBook: TObject);
|
procedure UpdateNoteBookClientWidget(ANoteBook: TObject);
|
||||||
var Index: integer;
|
var //Index: integer;
|
||||||
PanelWidget, ClientWidget: PGtkWidget;
|
{PanelWidget, }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
|
{if GetGtkNoteBookDummyPage(NoteBookWidget)=nil then begin
|
||||||
Index:=gtk_notebook_get_current_page(NoteBookWidget);
|
Index:=gtk_notebook_get_current_page(NoteBookWidget);
|
||||||
if Index>=0 then begin
|
if Index>=0 then begin
|
||||||
PanelWidget:=gtk_notebook_get_nth_page(NoteBookWidget,Index);
|
PanelWidget:=gtk_notebook_get_nth_page(NoteBookWidget,Index);
|
||||||
if PanelWidget<>nil then
|
if PanelWidget<>nil then
|
||||||
ClientWidget:=GetFixedWidget(PanelWidget);
|
ClientWidget:=GetFixedWidget(PanelWidget);
|
||||||
end;
|
end;
|
||||||
end;
|
end;}
|
||||||
|
|
||||||
ClientWidget:=nil;
|
|
||||||
|
|
||||||
SetFixedWidget(NoteBookWidget,ClientWidget);
|
SetFixedWidget(NoteBookWidget,ClientWidget);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2742,6 +2738,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.94 2002/09/08 10:02:00 lazarus
|
||||||
|
MG: fixed streaming visible=false
|
||||||
|
|
||||||
Revision 1.93 2002/09/06 22:32:21 lazarus
|
Revision 1.93 2002/09/06 22:32:21 lazarus
|
||||||
Enabled cursor property + property editor.
|
Enabled cursor property + property editor.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user