Opening an explorer window from the folder select dialog

Ever used a program that showed one of the folder select dialogs and you wanted to open a normal explorer window showing that folder? There is no button for that and no entry in the popup menu, but you can add one: Create a new shortcut in C:\Users\≶yourname>\AppData\Roaming\Microsoft\Windows\SendTo Enter "Explorer" as the location and name … Continue reading Opening an explorer window from the folder select dialog

Sarch path dialog behaviour changed from Delphi 2010 to XE

Yesterday, while working with Delphi 10.1 something happened that made me think I had introduced a bug in the search path dialog enhancement of GExperts: I had dropped some directories from the explorer onto the memo inserted by the GExperts enhancement, switched to the list view and back to the memo, then pressed the "Make … Continue reading Sarch path dialog behaviour changed from Delphi 2010 to XE

Clearing a TTreeView

Note to self: If you want to clear the items that were added at design time to a TTreeView, you must make sure it has a handle. The following does not work (in Delphi 2007): [delphi] constructor TForm1.Create(Owner: TCoponent); begin inherited; TreeView1.Items.Clear; end; [/delphi] Adding a TreeView1.HandleNeeded makes it work: [delphi] constructor TForm1.Create(Owner: TCoponent); begin … Continue reading Clearing a TTreeView