mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 11:39:29 +02:00
localized gtk interface
git-svn-id: trunk@2263 -
This commit is contained in:
parent
c8c1f03ef5
commit
db8d1de469
@ -1211,16 +1211,23 @@ end;
|
||||
Add a childwidget onto a client area (fixed or layout widget).
|
||||
------------------------------------------------------------------------------}
|
||||
Procedure FixedPutControl(Parent, Child : PGTKWIdget; Left, Top : Longint);
|
||||
|
||||
procedure RaiseInvalidFixedWidget;
|
||||
begin
|
||||
// this is in a separate procedure for optimisation
|
||||
WriteLn('[FixedPutControl] WARNING: Invalid Fixed Widget.',
|
||||
' Parent=',HexStr(Cardinal(Parent),8),
|
||||
' Child=',HexStr(Cardinal(Child),8)
|
||||
);
|
||||
end;
|
||||
|
||||
begin
|
||||
If GTKWidgetIsA(Parent, GTK_Fixed_Get_Type) then
|
||||
gtk_fixed_put(PGtkFixed(Parent), Child, Left, Top)
|
||||
else If GTKWidgetIsA(Parent, GTK_Layout_Get_Type) then
|
||||
gtk_Layout_Put(PGtkLayout(Parent), Child, Left, Top)
|
||||
else
|
||||
WriteLn('[FixedPutControl] WARNING: Invalid Fixed Widget.',
|
||||
' Parent=',HexStr(Cardinal(Parent),8),
|
||||
' Child=',HexStr(Cardinal(Child),8)
|
||||
);
|
||||
RaiseInvalidFixedWidget;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -3985,6 +3992,9 @@ end;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.161 2003/03/09 21:13:32 mattias
|
||||
localized gtk interface
|
||||
|
||||
Revision 1.160 2003/03/02 23:08:31 mattias
|
||||
fixed TComboBox.OnChange
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user