Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages
Started by Renan
Tue, 01 Aug 2006 18:13
ComboBox showing drives
Author: Renan
Date: Tue, 01 Aug 2006 18:13
Date: Tue, 01 Aug 2006 18:13
11 lines
1182 bytes
1182 bytes
How do I set a ComboBox to show system drives ( C, D, E...)?
How do I do: Select a drive (C, for example) in the ComboBox and
automaticaly show in a ListBox all Folders in it.
Select a folder in the ListBox and show in another
ListBox all files in it.
Thanks in advance
Renan
Re: ComboBox showing drives
Author: Remy Lebeau (TeamB)
Date: Tue, 01 Aug 2006 21:08
Date: Tue, 01 Aug 2006 21:08
25 lines
1913 bytes
1913 bytes
"Renan" <gulbrrs@gmail.com> wrote in message news:44cf99c9$1@newsgroups.borland.com... > How do I set a ComboBox to show system drives ( C, D, E...)? You can't. ComboBox controls have no concept of that. You will have to populate the items manually. Look at the GetLocalDrives() or GetLogicalDriveStrings() function. > How do I do: Select a drive (C, for example) in the ComboBox > and automaticaly show in a ListBox all Folders in it. Again, you have to populate the items manually. After selecting an item in the ComboBox, clear the ListBox and then use the FindFirstFile() and FindNextFile() functions to loop through the files of the selected drive, adding them to the ListBox one at a time. > Select a folder in the ListBox and show in another ListBox > all files in it. Same thing as above. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads