Difference between revisions of "TSelectDirectoryDialog"
From Lazarus wiki
Jump to navigationJump to searchLine 2: | Line 2: | ||
'''TSelectDirectoryDialog''' [[Image:tselectdirectorydialog.png]] is a component that aids in selecting a directory in the file system. It can be found on the [[Dialogs tab]] of the [[Component Palette]]. | '''TSelectDirectoryDialog''' [[Image:tselectdirectorydialog.png]] is a component that aids in selecting a directory in the file system. It can be found on the [[Dialogs tab]] of the [[Component Palette]]. | ||
+ | |||
+ | <syntaxhighlight>if SelectDirectoryDialog1.Execute then | ||
+ | LabelDir.Caption := TrimFilename(SelectDirectoryDialog1.FileName + PathDelim); | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == |
Revision as of 14:04, 22 August 2018
│
English (en) │
français (fr) │
русский (ru) │
中文(中国大陆) (zh_CN) │
TSelectDirectoryDialog is a component that aids in selecting a directory in the file system. It can be found on the Dialogs tab of the Component Palette.
if SelectDirectoryDialog1.Execute then
LabelDir.Caption := TrimFilename(SelectDirectoryDialog1.FileName + PathDelim);
See also