[Gambas-user] Different behaviour of dialog

Benoît Minisini gambas at ...1...
Sun Oct 13 17:13:09 CEST 2013


Le 13/10/2013 14:52, Willy Raets a écrit :
> On Mon, 2013-10-07 at 00:37 +0200, Willy Raets wrote:
>> Hi all,
>>
>> Someone on the GambasForum stumbled upon a problem with dialog.
>> When trying to help him with an example, the code that worked for me,
>> did not work for him.
>>
>> To explain:
>> Assume you have a folder test in your User.Home:
>>
>>    Dialog.Path = User.Home & "/test"
>>    If Dialog.SaveFile() Then Return
>>
>> In my application, above code opens a dialog in folder test, in his
>> application it opened User.Home and assumed test is the name for the new
>> file.
>>
>> After looking I discovered the difference.
>>
>> Running above code:
>> WITHOUT gb.from.dialog -> opens folder test
>> WITH gb.form.dialog -> opens User.Home and assumes test is file name
>>
>> In the last case. adding a "/" at the end of the path opens folder test
>>
>> I tried to check the documentation if this is intentional, but it seems
>> to be offline again.
>>
>> Can anyone explain why this difference in behaviour?
>>
>
> Still wondering why this difference, can anyone explain why?
>

If you don't use gb.form.dialog, the standard dialog of the underlying 
GUI component is used.

Can you provide a little project that reproduce the behaviour you describe?

-- 
Benoît Minisini




More information about the User mailing list