[Gambas-user] Setting path in Dialog

Ed & Clare Kelm twopilots at ...2415...
Thu Apr 28 03:04:24 CEST 2016


Benoit:

Thanks for the prompt reply.  My project has 8K lines of code, so I will 
make a little test project.

Can you provide me a link which shows how to provide the info you need?

Ed K.

On 04/27/2016 05:45 PM, Benoît Minisini wrote:
> Le 28/04/2016 02:34, Ed & Clare Kelm a écrit :
>> I have the same problem as Rolf.  (2016-01-19 17:11:18)
>>
>> Setting dialog.path does not work.  Instead, the resulting path is
>> always the location of the project.
>>
>> My project is located in ~/Documents/Gambas Projects/EDNEC/
>>
>> In the project is this code snippet:
>>
>> **********
>> Dialog.Path = "~/Documents/ED/NEC Antenna Files/"
>> Dialog.Title = "Select an Antenna File to Open"
>> Dialog.Filter = ["*.txt; *.TXT", "Text Files", "*.NEC", "NEC Input Files"]
>>
>> Print Dialog.Path
>>
>> If Dialog.OpenFile() Then Return
>> **********
>>
>> When it executes, the correct path is printed to the IDE, the correct
>> title appears on the Open dialog, and the correct filter appears in the
>> Open dialog.  However, the path in the Open dialog is ~/Documents/Gambas
>> Projects/EDNEC/.
>>
>> I am using:
>>
>> Gambas 3.8.4
>> Xubuntu 14.04
>>
>> Any help for this?
>>
>> Thanks!
>>
>> Ed K.
> As usual, please provide a full project that reproduces the bug, and
> your full system information.
>
> Because Dialog.OpenFile() can actually choose between five different
> dialogs, and one with four different toolkits.
>
> Regards,
>





More information about the User mailing list