From 2b0bb6d1167e479404bd5d616f4d6155b1a92255 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Wed, 7 Apr 2010 12:32:59 +0200 Subject: ModalResult changed to a enum type * Replaced all magic number modal results with actual enum values * UI Designer now uses enum combolist for ModalResult type in Object Inspector. * UI Designer now handles default values of ModalResult property correctly. --- uidesigner/vfdwidgets.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uidesigner/vfdwidgets.pas') diff --git a/uidesigner/vfdwidgets.pas b/uidesigner/vfdwidgets.pas index 597a6a30..112462f4 100644 --- a/uidesigner/vfdwidgets.pas +++ b/uidesigner/vfdwidgets.pas @@ -360,7 +360,7 @@ begin wc.AddProperty('ImageMargin', TPropertyInteger, 'Space between image and border, -1 centers image/text'); wc.AddProperty('ImageName', TPropertyString, ''); wc.AddProperty('ImageSpacing', TPropertyInteger, 'Space between image and text, -1 centers text'); - wc.AddProperty('ModalResult', TPropertyInteger, ''); + wc.AddProperty('ModalResult', TPropertyEnum, 'Modal Result returned and overrides the OnClick event handler'); wc.AddProperty('ParentShowHint', TPropertyBoolean, ''); wc.AddProperty('ShowHint', TPropertyBoolean, ''); wc.AddProperty('ShowImage', TPropertyBoolean, 'Boolean value'); -- cgit v1.2.3-70-g09d2