property OnKeyDown of TCustomEditButton not correct
Original Reporter info from Mantis: Yogi
-
Reporter name: Joachim Paepke
Original Reporter info from Mantis: Yogi
- Reporter name: Joachim Paepke
Description:
In TCustomEditButon in section protected there is:
property OnKeyDown:TKeyEvent read FOnEditKeyDown write FOnEditKeyDown
Do this:
TMyEditButton = class(TCustomEditButton)
public
property OnKeyDown;
end;
This has no effect. You wont get the Event from the Edit because TCustomEdit is derived from TCustomControl and this from TWinControl. In TWinControl there is in section public already the same property which will not be overridden with this. I think the property should be already in public section when declared in TCustomEditButton in this way:
TCustomEditButton = class(TCustomControl)
.
.
.
public
property OnKeyDown read FOnEditKeyDown write FOnEditKeyDown;
.
.
.
Then the behaviour would be as expected
Mantis conversion info:
- Mantis ID: 26057
- OS: Linux
- OS Build: 3.2.0-4-686-pae
- Build: 44768
- Platform: i386
- Version: 1.3 (SVN)
- Fixed in version: 1.4
- Fixed in revision: r44796 (#d8d89db9)