Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi shellcombobox nur unterordner (https://www.delphipraxis.net/134364-shellcombobox-nur-unterordner.html)

S4SH1981 20. Mai 2009 16:28


shellcombobox nur unterordner
 
hallo zusammen,

ich möchte in einer shellcombobox nur die unterordner aufgelistet haben und nicht als ersten eintrag programme stehen haben.
wie kriege ich das hin ?

Als Pfad hat die box c:\programme\skins\
jetzt wird mir als eintrag 1 programme angezeigt und
mit klick darauf erst Ordner A und B

Ich möchte aber, dass er mir sofort Ordner A anzeigt.

Gruß S4SH

toms 24. Mai 2009 10:27

Re: shellcombobox nur unterordner
 
Hallo

Bei mir funktioniert's so:

Delphi-Quellcode:
procedure TForm1.ShellComboBox1DropDown(Sender: TObject);
begin
  // Root löschen, SubFolders werden jedoch nicht gelöscht.
  ShellComboBox1.ItemsEx.Delete(0);
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz