mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 17:00:38 +02:00
gtk2 intf: added comment
git-svn-id: trunk@20336 -
This commit is contained in:
parent
f3ba79012b
commit
338ebe97d4
@ -150,9 +150,14 @@ var
|
||||
CalendarCtrl: TCustomCalendar;
|
||||
CalendarWidget: PGtkCalendar;
|
||||
begin
|
||||
// When the user drags a day number, the gtk2 starts a mouse capture.
|
||||
// when the TCalendar is on a TDateEdit, the LCL destroys the widget while the
|
||||
// gtk is still capturing. Result: The capture hangs.
|
||||
// thaw it:
|
||||
CalendarCtrl:=TCustomCalendar(AWinControl);
|
||||
CalendarWidget:=GetCalendar(CalendarCtrl);
|
||||
gtk_calendar_thaw(CalendarWidget);
|
||||
|
||||
inherited DestroyHandle(AWinControl);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user