Hello, i'm testing the UniGui trial and trying to create a new TMyUniEdit with the OnChange method overriden but can't figure out how
can someone post an example on how can i create a TUniEdit descendant with the OnChange method Overriden ?
Thanks!
Hello guys, i figure out. I just have to override the DoOnChange event.
unit MyUniEdit;
interface
uses
Classes, uniGuiTypes, uniGUIClasses, UniGuiDialogs, UniEdit;
type
TMyUniEdit = class(TUniEdit)
public
procedure DoOnChange; override;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('MyUnigui', [TMyUniEdit]);
end;
{ TMyUniEdit }
procedure TMyUniEdit.DoOnChange;
begin
inherited DoOnChange;
// code something
end;
end.