summaryrefslogtreecommitdiff
path: root/src/corelib/gfxbase.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-21 11:18:44 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-21 11:18:44 +0000
commit8d23789d877af358edb1aeca75e42e6953f0179f (patch)
tree9a4c6e10c001b782d38b63446f02e4073f2f9e33 /src/corelib/gfxbase.pas
parentaa2a6e1dac26b8813891b23f14dccbc476329fec (diff)
downloadfpGUI-8d23789d877af358edb1aeca75e42e6953f0179f.tar.xz
* Fixed some memory leaks in TfpgComboBox.
* Fixed the destruction order of TfpgComboBox. * Introduced DoRemoveWindowLookup() in gfxbase.pas so that we can offload some of the responsibility from DoReleaseWindowHandle() * Add two new debug methods to help debug fpGUI and fpGUI based applications. They are PrintCallTrace() and PrintCallTraceDbgln(). * Fixed 'Index out of bounds' error when quiting your application. * I included lots of debug output in this revision, so I can test under Windows. As soon as I confirmed everything works, I'll remove the debug output again.
Diffstat (limited to 'src/corelib/gfxbase.pas')
-rw-r--r--src/corelib/gfxbase.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/gfxbase.pas b/src/corelib/gfxbase.pas
index 07b8fe7b..ebd20e99 100644
--- a/src/corelib/gfxbase.pas
+++ b/src/corelib/gfxbase.pas
@@ -326,6 +326,7 @@ type
procedure DoUpdateWindowPosition(aleft, atop, awidth, aheight: TfpgCoord); virtual; abstract;
procedure DoAllocateWindowHandle(AParent: TfpgWindowBase); virtual; abstract;
procedure DoReleaseWindowHandle; virtual; abstract;
+ procedure DoRemoveWindowLookup; virtual; abstract;
procedure DoSetWindowVisible(const AValue: Boolean); virtual; abstract;
procedure DoMoveWindow(const x: TfpgCoord; const y: TfpgCoord); virtual; abstract;
function DoWindowToScreen(ASource: TfpgWindowBase; const AScreenPos: TPoint): TPoint; virtual; abstract;
@@ -787,6 +788,7 @@ begin
Canvas.FreeResources;
DoReleaseWindowHandle;
end;
+ DoRemoveWindowLookup;
end;
procedure TfpgWindowBase.SetWindowTitle(const ATitle: string);