diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-11-24 17:11:57 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-11-24 17:14:00 +0200 |
commit | ed1095fdd140168f9a9cfa2f61bd7cbbf493ab72 (patch) | |
tree | 75f87440cee118d947ed30e1c5152f20c592431e /extras | |
parent | ca5f14a6762dfa99902a0e0f0d6cb0f26db18624 (diff) | |
download | fpGUI-ed1095fdd140168f9a9cfa2f61bd7cbbf493ab72.tar.xz |
Fix AV under Windows for Calendar Combo mediator.
It was a descendant of Edit Meditaros and assumed TfpgCalendarCombo descended
from TfpgBaseEdit, which in fact it wasn't!! Oops. Strangely enough
Linux never gave any errors???
Diffstat (limited to 'extras')
-rw-r--r-- | extras/tiopf/gui/tiMediators.pas | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/extras/tiopf/gui/tiMediators.pas b/extras/tiopf/gui/tiMediators.pas index c0b127b4..bc1f2c4e 100644 --- a/extras/tiopf/gui/tiMediators.pas +++ b/extras/tiopf/gui/tiMediators.pas @@ -214,9 +214,10 @@ type { Base class to handle TfpgCalendarCombo controls } - TtiCalendarComboMediatorView = class(TtiBaseEditMediatorView) + TtiCalendarComboMediatorView = class(TtiControlMediatorView) protected procedure SetupGUIandObject; override; + procedure SetObjectUpdateMoment(const AValue: TtiObjectUpdateMoment); override; public constructor Create; override; function View: TfpgCalendarCombo; reintroduce; @@ -792,6 +793,17 @@ begin end; end; +procedure TtiCalendarComboMediatorView.SetObjectUpdateMoment( + const AValue: TtiObjectUpdateMoment); +begin + inherited SetObjectUpdateMoment(AValue); + if View <> nil then + if ObjectUpdateMoment in [ouOnChange,ouCustom] then + View.OnChange := @DoOnChange + else + View.OnExit := @DoOnChange; +end; + constructor TtiCalendarComboMediatorView.Create; begin inherited Create; |