mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-29 20:22:39 +02:00
MG: fixed calling DestroyHandle if not HandleAllocated
git-svn-id: trunk@833 -
This commit is contained in:
parent
fd6734d3f5
commit
cb40c565c3
@ -1598,27 +1598,26 @@ begin
|
|||||||
|
|
||||||
LM_GETITEMS :
|
LM_GETITEMS :
|
||||||
begin
|
begin
|
||||||
if TControl(Sender).fCompStyle = csCListBox
|
case TControl(Sender).fCompStyle of
|
||||||
then begin
|
csComboBox :
|
||||||
Widget:= GetWidgetInfo(Pointer(Handle), True)^.ImplementationWidget;
|
Result:=longint(gtk_object_get_data(PGtkObject(Handle),'LCLList'));
|
||||||
|
|
||||||
Data := TGtkCListStringList.Create(PGtkCList(Widget));
|
csCListBox:
|
||||||
Result := integer(Data);
|
begin
|
||||||
end
|
Widget:= GetWidgetInfo(Pointer(Handle), True)^.ImplementationWidget;
|
||||||
else begin
|
|
||||||
case TControl(Sender).fCompStyle of
|
|
||||||
csComboBox :
|
|
||||||
Result:=longint(gtk_object_get_data(PGtkObject(Handle),'LCLList'));
|
|
||||||
|
|
||||||
csListBox :
|
Data := TGtkCListStringList.Create(PGtkCList(Widget));
|
||||||
begin
|
Result := integer(Data);
|
||||||
Widget:= GetWidgetInfo(Pointer(Handle), True)^.ImplementationWidget;
|
end;
|
||||||
Data:= TGtkListStringList.Create(PGtkList(Widget));
|
|
||||||
Result:= Integer(Data);
|
csListBox :
|
||||||
end;
|
begin
|
||||||
else
|
Widget:= GetWidgetInfo(Pointer(Handle), True)^.ImplementationWidget;
|
||||||
raise Exception.Create('Message LM_GETITEMS - Not implemented');
|
Data:= TGtkListStringList.Create(PGtkList(Widget));
|
||||||
end;
|
Result:= Integer(Data);
|
||||||
|
end;
|
||||||
|
else
|
||||||
|
raise Exception.Create('Message LM_GETITEMS - Not implemented');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -5836,6 +5835,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 1.213 2002/09/13 16:58:27 lazarus
|
||||||
MG: removed the 1x1 bitmap from TBitBtn
|
MG: removed the 1x1 bitmap from TBitBtn
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user