Page 1 of 1
File Picker Widget?
Posted: Wed Jan 29, 2020 11:15 pm
by JackieBlue1970
Hi. Is there a widget that combines the functionality of selecting a directory and file? I see how I could use Files and Folders, with a list control, to provide similar functionality. But, honestly, that is not a very elegant way to do it. It seems like there should be a widget for this. TIA.
Re: File Picker Widget?
Posted: Wed Jan 29, 2020 11:18 pm
by FourthWorld
LC provides the "answer folder" and "answer file" commands to bring in the standard OS dialogs for picking file system objects.
Re: File Picker Widget?
Posted: Wed Jan 29, 2020 11:35 pm
by dunbarx
Just to be clear, "widget" means something very specific in LiveCode. Did you actually mean that, or rather, as I say all the time, a "gadget", that is, a control or whatever with the functionality that does what you need.
Craig
Re: File Picker Widget?
Posted: Wed Jan 29, 2020 11:38 pm
by bogs
Just to be even clearer, I'd be curious if you could give a clearer idea of what your asking about. As Richard mentioned, answer files / folders gives you a standard dialog box. You mention using 'the files / the folders' and a list box, which seems to me like you are trying to create a directory tree, or something similar.
Hopefully, you'll elucidate on what your trying to accomplish.
Re: File Picker Widget?
Posted: Thu Jan 30, 2020 3:09 am
by JackieBlue1970
dunbarx wrote: ↑Wed Jan 29, 2020 11:35 pm
Just to be clear, "widget" means something very specific in LiveCode. Did you actually mean that, or rather, as I say all the time, a "gadget", that is, a control or whatever with the functionality that does what you need.
Craig
Thanks Craig. Yes, a control is what I mean. Jack
Re: File Picker Widget?
Posted: Thu Jan 30, 2020 3:11 am
by JackieBlue1970
bogs wrote: ↑Wed Jan 29, 2020 11:38 pm
Just to be even clearer, I'd be curious if you could give a clearer idea of what your asking about. As Richard mentioned, answer files / folders gives you a standard dialog box. You mention using 'the files / the folders' and a list box, which seems to me like you are trying to create a directory tree, or something similar.
Hopefully, you'll elucidate on what your trying to accomplish.
Thanks for your response. Yes, I think the Answer Files, etc. may be what I am getting at. I am thinking of like a control in VB that handles navigating the file system to select a file.
Re: File Picker Widget?
Posted: Thu Jan 30, 2020 3:16 am
by JackieBlue1970
FourthWorld wrote: ↑Wed Jan 29, 2020 11:18 pm
LC provides the "answer folder" and "answer file" commands to bring in the standard OS dialogs for picking file system objects.
Thank you. I think this is exactly what I was looking for. I’ll give it a try tomorrow.
Re: File Picker Widget?
Posted: Thu Jan 30, 2020 3:30 am
by FourthWorld
JackieBlue1970 wrote: ↑Thu Jan 30, 2020 3:16 am
FourthWorld wrote: ↑Wed Jan 29, 2020 11:18 pm
LC provides the "answer folder" and "answer file" commands to bring in the standard OS dialogs for picking file system objects.
Thank you. I think this is exactly what I was looking for. I’ll give it a try tomorrow.
Happy to help. Keep us posted if we can provide anything else.