mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:59:07 +02:00
MG: fixed GetItemIndex-Handle-NotAllocated-Crash bug
git-svn-id: trunk@400 -
This commit is contained in:
parent
daeaec27b0
commit
aeb18d8c38
@ -901,6 +901,7 @@ writeln('[TgtkObject.IntSendMessage3] LM_SETFOCUS ',TObject(Sender).ClassName);
|
||||
case (Sender as TControl).fCompStyle of
|
||||
csListBox:
|
||||
begin
|
||||
if Handle<>0 then begin
|
||||
if TListBox(Sender).MultiSelect then
|
||||
Widget:= PGtkList(
|
||||
GetCoreChildWidget(PGtkWidget(Handle)))^.last_focus_child
|
||||
@ -915,6 +916,8 @@ writeln('[TgtkObject.IntSendMessage3] LM_SETFOCUS ',TObject(Sender).ClassName);
|
||||
then Result:= -1
|
||||
else Result:= gtk_list_child_position(
|
||||
PGtkList(GetCoreChildWidget(PGtkWidget(Handle))), Widget);
|
||||
end else
|
||||
Result:=-1;
|
||||
end;
|
||||
csCListBox:
|
||||
begin
|
||||
@ -3115,6 +3118,9 @@ end;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.67 2001/11/09 14:33:41 lazarus
|
||||
MG: fixed GetItemIndex-Handle-NotAllocated-Crash bug
|
||||
|
||||
Revision 1.66 2001/11/05 18:18:19 lazarus
|
||||
added popupmenu+arrows to notebooks, added target filename
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user