Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002524 [JEDI VCL] 00 JVCL Components minor always 2005-01-17 15:12 2005-01-22 06:02
Reporter Simes View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002524: TJvEditor doesn't invoke OnChange when Lines.Text changed or Lines assigned
Description Setting the value of Lines.Text, or assigning Lines doesn't invoke the OnChange event.

Run the code below. Click button 1 or 2, OnChange event doesn't happen.

(Similar problem to already fixed 2216)
Additional Information unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, JvExControls, JvComponent, JvEditorCommon, JvEditor;

type
  TForm1 = class(TForm)
    JvEditor1: TJvEditor;
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure JvEditor1Change(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
  public
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  JvEditor1.Lines.Text := 'Some text';
end;

procedure TForm1.Button2Click(Sender: TObject);
var
  sl: TStringList;
begin
  sl := TStringList.Create;
  try
    sl.Add('Some strings');
    sl.Add('Some more strings');
    JvEditor1.Lines.Assign(sl);
  finally
    sl.Free;
  end;
end;

procedure TForm1.JvEditor1Change(Sender: TObject);
begin
  Caption := 'Changed'; // never happens
end;

end.

Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006195)
Simes (reporter)
2005-01-17 15:30

Suggest TJvCustomEditor.DoLinesChange calls TJvCustomEditorBase.Changed instead of setting Modified property directly.
(0006248)
AHUser (developer)
2005-01-22 06:02

Fixed in CVS.

- Moved DoLineChanged to JvEditorCommon
- Changed DoLineChanged to call "Changed;"
- Added assignment code of DoLineChanged to JvUnicodeEditor

- Issue History
Date Modified Username Field Change
2005-01-17 15:12 Simes New Issue
2005-01-17 15:30 Simes Note Added: 0006195
2005-01-22 06:02 AHUser Status new => resolved
2005-01-22 06:02 AHUser Resolution open => fixed
2005-01-22 06:02 AHUser Assigned To => AHUser
2005-01-22 06:02 AHUser Note Added: 0006248


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker