Select Directory Dialogs In #Delphi XE8 Firemonkey On Windows and OSX

Delphi XE8 Firemonkey Select Directory Windows OSXIf you are building a multi platform app in Delphi XE8 Firemonkey for Windows and OSX you may have need of a select directory dialog box. Both platforms have their own unique APIs for creating this dialog box. Here is a code snippet which wraps up both APIs into a single easy to use function. On Windows it uses SHBrowseForFolder and on OSX it uses TNSOpenPanel. The function doesn’t provide a dialog for IOS or Android. However, it should also work in Appmethod. Here is the code snippet:

Head over and check out more information about Conditional Compilation in Delphi XE8 Firemonkey.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

One Response to Select Directory Dialogs In #Delphi XE8 Firemonkey On Windows and OSX

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Code Completion Engine Source Code For #Delphi XE8 Firemonkey On Windows And OSX

A BSD licensed code completion engine is now available for Delphi XE8 Firemonkey. One of the core functionalities that is...

Close