[Gambas-user] Dialog and relative paths
Benoît Minisini
gambas at ...1...
Wed Oct 28 04:47:53 CET 2015
Le 28/10/2015 04:40, adamnt42 at ...626... a écrit :
> On Wed, 28 Oct 2015 03:16:16 +0100
> Benoît Minisini <gambas at ...1...> wrote:
>
>> Le 28/10/2015 01:21, adamnt42 at ...626... a écrit :
>>> I have an executable archive that contains several text files with
>>> some metadata in them pertinent to that executable. Suffice to say
>>> they are text files with a ".def" extension.
>>>
>>> At run time the user needs to select one of these files to be
>>> loaded.
>>>
>>> Is there some way I can use the standard Dialog.OpenFile to achieve
>>> this? i.e. is there some way to make the Dialog.Path a relative path
>>> so it will show the files contained in the executable?
>>>
>>> tia bruce
>>>
>>
>> Files inside archive are not real files anymore, so don't expect to
>> select them with a standard file dialog.
>>
>> --
>> Benoît Minisini
>>
>
> Mmm, so any "elegant" way to allow user to select a "file" inside the archive.... ?
> Actually, in fact is there any way to gba and get the "file" list?
>
> tia
> bruce
>
This is not the problem: you can use the Dir() method to browse the
archive contents. But you have to write your own selection dialog.
Why wanting to use a file selector dialog to select something that is
not a true file?
--
Benoît Minisini
More information about the User
mailing list