segal
Gast
|
 |
« am: 19.07.2002, 20:35:06 » |
|
i want to change OnChange event of the editbox. i know i have to inherit and override but i don't know how to do it exactly. help me please
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
segal
Gast
|
 |
« Antworten #2 am: 19.07.2002, 23:01:18 » |
|
yes
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
segal
Gast
|
 |
« Antworten #4 am: 19.07.2002, 23:30:04 » |
|
I need to change the declaration of change (add more variables to procedure) but when i write my declaration i get error the my declaration differs from previous
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
segal
Gast
|
 |
« Antworten #6 am: 19.07.2002, 23:36:16 » |
|
unit EditAlex1;
interface
uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;
type TEditAlex1 = class(TCustomEdit) private { Private declarations } protected procedure Change (Sender: TObject; var I: Integer); override; { Protected declarations } public { Public declarations } published { Published declarations } end;
procedure Register;
implementation
procedure TEditAlex1.Change (Sender: TObject; var I: Integer); begin Inherited; end;
procedure Register; begin RegisterComponents('Samples', [TEditAlex1]); end;
end.
|
|
|
|
|
Gespeichert
|
|
|
|
|
|
segal
Gast
|
 |
« Antworten #8 am: 20.07.2002, 10:46:43 » |
|
i tried it then i get error on the "inherited;", the error is: incompatible types
|
|
|
|
|
Gespeichert
|
|
|
|
Tokter
Gast
|
 |
« Antworten #9 am: 25.07.2002, 15:21:13 » |
|
inherited(Sender);
or
Change(Sender);
instead..
|
|
|
|
|
Gespeichert
|
|
|
|
segal
Gast
|
 |
« Antworten #10 am: 25.07.2002, 21:31:43 » |
|
on "inherited (Sender);" i still get incompatible types error on "Change ;" i don't get any errors but i get runtime exception "property doesn't exist"
|
|
|
|
|
Gespeichert
|
|
|
|