Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
Benoit:

Excellent! I will remember that for the next time.  For now, T Lee 
Davidson has solved my immediate problem.  But just for completeness, 
here's the info:

[System]
Gambas=3.8.4
OperatingSystem=Linux
Kernel=3.13.0-85-generic
Architecture=x86
Distribution=Ubuntu 14.04.4 LTS
Desktop=XFCE
Theme=Windows
Language=en_US.UTF-8
Memory=1948M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

[Environment]
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-KkFIwEuOiM
DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
DESKTOP_SESSION=xubuntu
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=xubuntu
GDM_LANG=en_US
GLADE_CATALOG_PATH=:
GLADE_MODULE_PATH=:
GLADE_PIXMAP_PATH=:
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-6CZHEv
GNOME_KEYRING_PID=1706
GPG_AGENT_INFO=/run/user/1000/keyring-6CZHEv/gpg:0:1
GTK_IM_MODULE=ibus
HOME=
IM_CONFIG_PHASE=1
INSTANCE=
JOB=dbus
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT4_IM_MODULE=xim
QT_IM_MODULE=xim
SELINUX_INIT=YES
SESSION=xubuntu
SESSIONTYPE=
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1921,unix/:/tmp/.ICE-unix/1921
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring-6CZHEv/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
UPSTART_EVENTS=started xsession
UPSTART_INSTANCE=
UPSTART_JOB=startxfce4
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1744
USER=
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7
XMODIFIERS=@im=ibus

Thanks!

Ed K.

I

On 04/27/2016 06:47 PM, Benoît Minisini wrote:
> Le 28/04/2016 03:04, Ed & Clare Kelm a écrit :
>> 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.
> Menu "?" -> "System information" in the IDE.
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Benoît Minisini
Le 28/04/2016 03:04, Ed & Clare Kelm a écrit :
> 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.

Menu "?" -> "System information" in the IDE.

-- 
Benoît Minisini

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
T Lee:

Home run!

1.  The "~ shortcut" works fine when the program directly opens a file.

2.  When I use your syntax in the Dialog.Path statement, everything 
works correctly!

Many thanks for solving my problem!

Ed K.

On 04/27/2016 06:01 PM, T Lee Davidson wrote:
> I believe the tilde does not work as a shortcut for user's home directory.
>
> You should probably use: Dialog.Path = User.Home &/ "Documents/ED/NEC Antenna 
> Files/"
>
>
> On 04/27/2016 08:34 PM, Ed & Clare Kelm wrote:
>> 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.


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
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,
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread T Lee Davidson
I believe the tilde does not work as a shortcut for user's home directory.

You should probably use: Dialog.Path = User.Home &/ "Documents/ED/NEC Antenna 
Files/"


On 04/27/2016 08:34 PM, Ed & Clare Kelm wrote:
> 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.

-- 
Lee
__

"Artificial Intelligence is no match for natural stupidity."

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Benoît Minisini
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,

-- 
Benoît Minisini

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
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.
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting path in Dialog

2016-01-27 Thread Jussi Lahtinen
It seems to work in here.
If the path is "/home/yourname/Desktop", then it will open "/home/yourname"
with "Desktop" as a file name.
But if the path is "/home/yourname/Desktop/", then it will open the whole
path without default file name.

"/home/yourname/Desktop/default" will give "default" as the suggested file
name.

What the variable "Dateiname$" contains?


Jussi

On Tue, Jan 19, 2016 at 7:11 PM, Rolf-Werner Eilert <
eilert-sprac...@t-online.de> wrote:

> Want to set a filename and ask the user to confirm name and directory:
>
>  Dialog.Path = Dateiname$
>  Dialog.Filter = ["*.frm", "Formulare", "*", "Alle Dateien"]
>  If Dialog.SaveFile() Then Return
>
> When Save Dialog appears, it fills in the name of the File (base name
> and extension), but it sets the Directory List above to the application
> path and not the path contained in Dateiname$.
>
> How can I set the directory?
>
> Regards
> Rolf
>
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Setting path in Dialog

2016-01-19 Thread Rolf-Werner Eilert
Want to set a filename and ask the user to confirm name and directory:

 Dialog.Path = Dateiname$
 Dialog.Filter = ["*.frm", "Formulare", "*", "Alle Dateien"]
 If Dialog.SaveFile() Then Return

When Save Dialog appears, it fills in the name of the File (base name 
and extension), but it sets the Directory List above to the application 
path and not the path contained in Dateiname$.

How can I set the directory?

Regards
Rolf


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user