MG: fixed calling DestroyHandle if not HandleAllocated

git-svn-id: trunk@833 -
This commit is contained in:
lazarus 2002-02-09 01:46:59 +00:00
parent fd6734d3f5
commit cb40c565c3

View File

@ -1598,17 +1598,17 @@ begin
LM_GETITEMS :
begin
if TControl(Sender).fCompStyle = csCListBox
then begin
case TControl(Sender).fCompStyle of
csComboBox :
Result:=longint(gtk_object_get_data(PGtkObject(Handle),'LCLList'));
csCListBox:
begin
Widget:= GetWidgetInfo(Pointer(Handle), True)^.ImplementationWidget;
Data := TGtkCListStringList.Create(PGtkCList(Widget));
Result := integer(Data);
end
else begin
case TControl(Sender).fCompStyle of
csComboBox :
Result:=longint(gtk_object_get_data(PGtkObject(Handle),'LCLList'));
end;
csListBox :
begin
@ -1620,7 +1620,6 @@ begin
raise Exception.Create('Message LM_GETITEMS - Not implemented');
end;
end;
end;
LM_GETTEXT :
begin
@ -5836,6 +5835,9 @@ end;
{ =============================================================================
$Log$
Revision 1.214 2002/09/16 15:42:17 lazarus
MG: fixed calling DestroyHandle if not HandleAllocated
Revision 1.213 2002/09/13 16:58:27 lazarus
MG: removed the 1x1 bitmap from TBitBtn