Information on File Dialogs lazarus / 31-LCL ---------------------------------------------------------------------- PatBayford · 2017-12-21 05:16 All of the standard Lazarus dialogs dealing with files have an Event labelled OnChangeFolder, however, this event passes no data regarding the change/s, and there seems to be no simple way of getting this information from the component/s direct. Are any of the esteemed members of this Forum aware of the correct way to implement these events? ---------------------------------------------------------------------- ASerge · 2017-12-21 06:02 Quote from: PatBayford on December 21, 2017, 06:16:22 amAll of the standard Lazarus dialogs dealing with files have an Event labelled OnChangeFolder, however, this event passes no data regarding the change/s, and there seems to be no simple way of getting this information from the component/s direct. For me it's simple Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.OpenDialog1FolderChange(Sender: TObject);begin  Caption := (Sender as TOpenDialog).FileName;end; ---------------------------------------------------------------------- turrican · 2017-12-21 10:19 Quote from: ASerge on December 21, 2017, 07:02:59 amQuote from: PatBayford on December 21, 2017, 06:16:22 amAll of the standard Lazarus dialogs dealing with files have an Event labelled OnChangeFolder, however, this event passes no data regarding the change/s, and there seems to be no simple way of getting this information from the component/s direct. For me it's simple Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.OpenDialog1FolderChange(Sender: TObject);begin  Caption := (Sender as TOpenDialog).FileName;end;As Serge saying, I would like to do in more pessimistic manner : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     procedure TForm1.OpenDialog1FolderChange(Sender: TObject);    begin    if Sender is TOpenDialog then Caption := TOpenDialog(Sender).Filename;    end; ---------------------------------------------------------------------- PatBayford · 2017-12-23 00:28 Thanks chaps - unable to see the wood for the trees as usual!!!