With the Version 1.1.1.0 of TAdvUpDownEdit the onChangeEvent of TAdvUpDown fires before the onCreate Event!
Only one TAdvDownEdit on the Form and Increment=100 and Text=5 for example.
This is a little bit ... annoying, When you try to use for example a List that you create in the onFormCreate event. A Assigned (FList) helps... but?
unit Unit2;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
system.Generics.Collections,
advmultibuttonedit, AdvUpDownEdit;
type
TForm2 = class(TForm)
AdvUpDownEdit1: TAdvUpDownEdit;
procedure AdvUpDownEdit1Change(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
FList : TList<Integer>;
public
{ Public-Deklarationen }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.AdvUpDownEdit1Change(Sender: TObject);
var i : integer;
begin
FList.Clear;
//....do some other things with the List
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
FList:=TList<Integer>.Create;
end;
end.