Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can DirListBox display more than only file name? 1

Status
Not open for further replies.

CUDaveS

Technical User
Jun 12, 2007
17
US
Several users have complained about the way the files are listed in the DirListBox - that is, they can't see anything other than the file name. Is there a way to display files with their dates, type, etc? I'd prefer to use the Windows OpenFile dialog, but have no clue how I'd do that.

Anyone have any ideas / examples / clues?

Code:
string sClaimsDir = "c:\folder\"
string sFileToSearch = "md*.*"
string sFile = "claims.txt"        

sFileFilter = ""
strcat sFilter sClaimsDir 
strcat sFilter sFileToSearch
dialogbox 0 8 21 264 139 130 "  Choose a Claims File"
   dirpath 1 7 113 198 19 sClaimsDir
   dirlistbox 2 2 2 258 99 sFilter MULTIPLE sFile 1 hscroll sort
   pushbutton 3 219 104 42 14 "&Open" ok default
   pushbutton 4 218 120 44 13 "&Cancel" cancel
enddialog
 
If you use sdlgfopen (assuming it works for your needs), then it looks more like your standard File Open dialog and the user can choose to see the details view (doesn't look like this can be set by the script).

 
Yep, that's what I was looking for. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top