Recent

Author Topic: New Folder button in TSelectDirectoryDialog  (Read 646 times)

Cascade

  • Jr. Member
  • **
  • Posts: 61
New Folder button in TSelectDirectoryDialog
« on: September 20, 2025, 03:51:45 pm »
When using the built in TSelectDirectoryDialog component I'd like to give the user the option of creating a new folder.  At the moment they can only select an existing folder.  Is it possible to display a SelectDirectory dialog with the macOS New Folder button present - perhaps there's an option I've missed?

I've attached a screenshot of what I'm trying to achieve (this was taken from a save dialog in another program):
« Last Edit: September 20, 2025, 03:54:55 pm by Cascade »

Wilko500

  • Full Member
  • ***
  • Posts: 180
Re: New Folder button in TSelectDirectoryDialog
« Reply #1 on: September 28, 2025, 06:07:15 pm »
I was having different problems in TSelectDirectoryDialog.  I managed to create a new folder in a rather clumsy workaround.  Browse to one folder above where you want your folder created and right click show in finder, Create you folder from the finder menu then close finder and your newly created folder should be available to select in the TSelectDirectoryDialog.

A New Folder option would be nice  :)
MacBook Pro mid 2015 with OS Monterey 12.7.6
FPC 3.2.3 Lazarus 3.7
FPC 3.2.2 Lazarus 3.4

Cascade

  • Jr. Member
  • **
  • Posts: 61
Re: New Folder button in TSelectDirectoryDialog
« Reply #2 on: September 30, 2025, 02:33:22 pm »
I've opened an issue for adding a New Folder option.  Here's a link in case you'd like to vote for it:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41850

Cascade

  • Jr. Member
  • **
  • Posts: 61
Re: New Folder button in TSelectDirectoryDialog
« Reply #3 on: October 02, 2025, 11:52:26 am »
Rich2014 has fixed this  :)

If you install the Lazarus v4 Fixes branch, TSelectDirectoryDialog now displays the New Folder button when the dialog is executed.

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41850#note_2793064212

« Last Edit: October 02, 2025, 12:02:49 pm by Cascade »

 

TinyPortal © 2005-2018