[Gambas-user] Dialog.SaveFile() and Dialog.Path problem
Demosthenes Koptsis
demosthenesk at ...626...
Thu Oct 6 00:26:13 CEST 2011
The Project141 is attached if anyone want to check it out.
i have a path with Greek-Latin characters but this is not the problem.
i moved the project's folder to /home/user and the problem is the same.
1) What is the problem.
When i run the code
Dialog.Path = Application.Path
If Dialog.SaveFile() Then Return
The Save dialog shows but it point to a folder upper than
Application.Path
for example if
Application.Path="/home/user/Project141"
the dialog shows /home/user
2) second problem.
The path at the top of dialog is not shown correctly. Some characters or
whole words are missing.
Is this because of Greek letters in path?
See screenshots from Open File and Save File dialogs
On Wed, 2011-10-05 at 17:35 +0300, Jussi Lahtinen wrote:
> Seems to work as expected, at least with revision 4172.
> What is then the path it opens?
>
> Jussi
>
>
>
> On Wed, Oct 5, 2011 at 12:28, Demosthenes Koptsis <demosthenesk at ...626...>wrote:
>
> > Good morning,
> >
> > i have the next code:
> >
> > ------------------------------
> > Public Sub btnSaveFile_Click()
> >
> > Dialog.Filter = ["*.txt", "Text Files"]
> > Dialog.Path = Application.Path
> > If Dialog.SaveFile() Then Return
> > File.Save(Dialog.Path, txtArea.Text)
> >
> > Catch
> > Message.Info(Error.Text)
> >
> > End
> > -----------------------------
> >
> > When the Save dialog shows up it does not have the correct Path as
> > Dialog.Path = Application.Path
> >
> > gambas3-svn4145
> >
> >
> > ------------------------------------------------------------------------------
> > All the data continuously generated in your IT infrastructure contains a
> > definitive record of customers, application performance, security
> > threats, fraudulent activity and more. Splunk takes this data and makes
> > sense of it. Business sense. IT sense. Common sense.
> > http://p.sf.net/sfu/splunk-d2dcopy1
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenFile.png
Type: image/png
Size: 62146 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20111006/79e82ef5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SaveFile.png
Type: image/png
Size: 61252 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20111006/79e82ef5/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Project141.tar.gz
Type: application/x-compressed-tar
Size: 6899 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20111006/79e82ef5/attachment.bin>
More information about the User
mailing list