Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TAdvUpDownEdit fires onChange before onCreate!

 Post Reply Post Reply
Author
Schachtner Andreas View Drop Down
Member
Member
Avatar

Joined: 09 Mar 2011
Posts: 53
Post Options Post Options   Quote Schachtner Andreas Quote  Post ReplyReply Direct Link To This Post Topic: TAdvUpDownEdit fires onChange before onCreate!
    Posted: 13 Jan 2018 at 8:27am
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.

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8601
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 14 Jan 2018 at 7:12pm
Thanks for reporting. We fixed this. The next update will address this.
Back to Top
Schachtner Andreas View Drop Down
Member
Member
Avatar

Joined: 09 Mar 2011
Posts: 53
Post Options Post Options   Quote Schachtner Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 14 Jan 2018 at 7:19pm
Thanks!
Back to Top
Schachtner Andreas View Drop Down
Member
Member
Avatar

Joined: 09 Mar 2011
Posts: 53
Post Options Post Options   Quote Schachtner Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 01 Dec 2019 at 10:55am
Sorry for "refreshing" this topic, but the latest version of TAdvUpDownEdit in VCLUIPAck has the same issue! Again!
Back to Top
Schachtner Andreas View Drop Down
Member
Member
Avatar

Joined: 09 Mar 2011
Posts: 53
Post Options Post Options   Quote Schachtner Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 04 Dec 2019 at 4:02pm
Any ideas on this?
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8601
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 04 Dec 2019 at 4:21pm
We had already fixed this and confirmed by email.
We plan to release an update for TMS VCL UI Pack this week containing this fix.
Back to Top
Schachtner Andreas View Drop Down
Member
Member
Avatar

Joined: 09 Mar 2011
Posts: 53
Post Options Post Options   Quote Schachtner Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 04 Dec 2019 at 5:23pm
Thank you!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down