Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
SelectDirectoryDialog
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
InstallAware Using Lazaru...
by
Thaddy
[
Today
at 07:21:31 pm]
Macros confuse error mess...
by
MarkMLl
[
Today
at 07:20:43 pm]
Post your internal error ...
by
Eugene Loza
[
Today
at 07:12:35 pm]
Lazarus project made on M...
by
Odacir
[
Today
at 06:57:45 pm]
Form scaling
by
fxeconomist
[
Today
at 06:48:40 pm]
C-evo: New Horizons 1.3.0...
by
Chronos
[
Today
at 06:32:41 pm]
Lazarus for Windows on aa...
by
msintle
[
Today
at 06:32:02 pm]
How can i make this windo...
by
Handoko
[
Today
at 06:23:43 pm]
CocoaInt.CocoaIconUse no ...
by
dsiders
[
Today
at 06:22:10 pm]
Does anyone know why this...
by
Laksen
[
Today
at 06:01:04 pm]
For-in loop over constant...
by
alpine
[
Today
at 05:20:47 pm]
pre-processor symbol when...
by
paule32
[
Today
at 05:11:35 pm]
How are cookies share Web...
by
Thaddy
[
Today
at 04:59:59 pm]
CORBA interface and Varia...
by
JdeHaan
[
Today
at 04:56:48 pm]
Azure sql database will n...
by
wpflum
[
Today
at 04:04:56 pm]
Values of a custom compon...
by
CM630
[
Today
at 01:42:08 pm]
Arabic text, problem on L...
by
marius.maximus
[
Today
at 12:59:47 pm]
[solved] Lazarus does not...
by
wp
[
Today
at 12:38:09 pm]
How does Castle Game Eng...
by
Aistis
[
Today
at 12:21:03 pm]
Minimum code for implemen...
by
MISV
[
Today
at 11:37:54 am]
[re-opened] Package PPU l...
by
CCRDude
[
Today
at 11:19:11 am]
Distro has depreciated qt...
by
TheMouseAUS
[
Today
at 11:12:25 am]
How can I draw a rectangl...
by
jcmontherock
[
Today
at 11:08:24 am]
TBGRABitmap.TextSize retu...
by
KodeZwerg
[
Today
at 10:26:36 am]
Lazreport: Question about...
by
teco
[
Today
at 09:18:07 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: SelectDirectoryDialog (Read 1702 times)
ratmalwer
Jr. Member
Posts: 57
SelectDirectoryDialog
«
on:
October 22, 2017, 04:49:13 pm »
I try to preset the path before SelectDirectoryDialog. the following code is not correct but shows what I try to do.
any hints?
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
btnQuellpfadClick
(
Sender
:
TObject
)
;
var
dir
:
string
;
begin
dir
:
=
'p:\somepath'
;
if
SelectDirectoryDialog1
.
Execute
then
begin
EditQuellpfad
.
Caption
:
=
SelectDirectoryDialog1
(
dir
)
.
FileName
;
end
;
end
;
Logged
molly
Hero Member
Posts: 2330
Re: SelectDirectoryDialog
«
Reply #1 on:
October 22, 2017, 04:58:49 pm »
try SelectDirectoryDialog1.InitialDir := 'initialdir' before calling execute, see also
here
.
«
Last Edit: October 22, 2017, 05:00:58 pm by molly
»
Logged
ratmalwer
Jr. Member
Posts: 57
Re: SelectDirectoryDialog
«
Reply #2 on:
October 22, 2017, 06:57:54 pm »
Thanks... that works good.
Unforunately the scrollbar does not move down to the selected directory (or the list does not rise) ....
is there an option to do that too?
(using Windows7)
Logged
molly
Hero Member
Posts: 2330
Re: SelectDirectoryDialog
«
Reply #3 on:
October 22, 2017, 07:17:03 pm »
tbh i have no idea. It might be that the OS widget is not capable of doing so.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
SelectDirectoryDialog
TinyPortal
© 2005-2018