Sign in Join
FPDoc Onlineexperiment

TSelectDirectoryDialog class

In unit Dialogs

Implements a select directory dialog.

Declaration

pascal
TSelectDirectoryDialog = class(TOpenDialog)

Inheritance

  1. TSelectDirectoryDialog
  2. TOpenDialog
  3. TFileDialog
  4. TCommonDialog
  5. TLCLComponent
  6. TComponent
  7. TPersistent
  8. TObject

Description

TSelectDirectoryDialog is a TOpenDialog descendant which allows the user to select a directory name by navigating file system entries. It is implemented using the native selection dialog for the platform.

Use the InitialDir property to specify the active directory when the dialog is displayed.

The FileName property contains the selected directory when the dialog is closed using the 'Select Folder' button.

The Options property can be used to control the features and behaviors enabled for the selection dialog.

Use the OnFolderChange event handler to perform actions when a new directory is entered / chosen during navigation on the dialog.

Use the OnSelectionChange handler to perform actions when a new directory is selected or highlighted using the mouse or cursor keys on the dialog.

See also

Methods

WSRegisterClassprotectedRegisters this component class with the current WidgetSet.
CheckFileMustExistprotectedChecks whether a specified directory already exists, and displays a message when missing.
DefaultTitleprotectedGets the default title for the dialog.
CreatepublicConstructor for the class instance.

Inherited

From TOpenDialog (12)

CheckAllFiles CheckFile DoCanClose DoExecute DoFolderChange DoSelectionChange IntfSetOption OnFolderChange OnSelectionChange Options OptionsEx ResolveLinks

From TFileDialog (19)

DefaultExt Destroy DoTypeChange ExtractAllFilterMasks FileName Files Filter FilterIndex FindMaskInFilter GetFilterIndex HistoryList InitialDir IntfFileTypeChanged OnHelpClicked OnTypeChange SetFileName SetFilter SetHistoryList Title

From TCommonDialog (20)

AttachTo Close DoClose DoShow Execute GetHeight GetWidth Handle HandleAllocated Height HelpContext OnCanClose OnClose OnDialogResult OnShow ResetShowCloseFlags SetHeight SetWidth UserChoice Width

From TLCLComponent (7)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.