Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-04

Treeview bug

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

When you set Multiselect = True, the treeview (Linux, GTK) sends OnChange messages with Nil node.

procedure TCustomTreeView.OnChangeTimer(Sender: TObject);
begin
   FChangeTimer.Enabled := False;
   //debugln('TCustomTreeView.OnChangeTimer');
   FCallingChange := True;
   try
     Change(FSelectedNode); // <<-- FSelectedNode is Nil.
   finally
     FCallingChange := False;
   end;
end;

Is this by design ?

Michael.

Reply by email

Juha Manninen
to Michael Van Canneyt
AM Michael Van Canneyt wrote
When you set Multiselect = True, the treeview (Linux, GTK) sends OnChange messages with Nil node. procedure TCustomTreeView.OnChangeTimer(Sender: TObject);

The name OnChangeTimer hints the handler is for a timer. Is it so?

Juha

Reply by email