From gambas at ...1... Mon Feb 1 03:31:10 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Feb 2016 03:31:10 +0100 Subject: [Gambas-user] Sharing libraries across projects : initial implementation Message-ID: <56AEC36E.7070509@...1...> Hi, In revision #7593 you get a new implementation of the library management: 1) When you create an executable from a library project, a symbolic link is created in '~/.local/share/gambas3/lib/', where is the vendor name now defined in the project property dialog, and in the packager wizard. 2) When you want to add a library to a project, the contents of '~/.local/share/gambas3/lib' is searched first, and then the contents of '/lib/gambas3'. 3) You can define an extra search path for the library in the library tab of the project property dialog. At the moment, it is not finished, as it overrides '~/.local/share/gambas3/lib/', which it should not. 4) A project run from its executable never look in '~/.local/share/gambas3/lib/'. 5) You can install different versions of the same library. The library executable base name is suffixed with ':' followed by the version (without the release number). 6) The packager is not yet updated. It will follow the scheme defined in 5). Tell me if it fits your needs again. You have 48 hours, as I leave Paris for a week soon. Regards, -- Beno?t Minisini From taboege at ...626... Mon Feb 1 16:59:33 2016 From: taboege at ...626... (Tobias Boege) Date: Mon, 1 Feb 2016 16:59:33 +0100 Subject: [Gambas-user] Sharing libraries across projects : initial implementation In-Reply-To: <56AEC36E.7070509@...1...> References: <56AEC36E.7070509@...1...> Message-ID: <20160201155933.GA645@...2774...> On Mon, 01 Feb 2016, Beno??t Minisini wrote: > Hi, > > In revision #7593 you get a new implementation of the library management: > > 1) When you create an executable from a library project, a symbolic link > is created in '~/.local/share/gambas3/lib/', where is > the vendor name now defined in the project property dialog, and in the > packager wizard. > > 2) When you want to add a library to a project, the contents of > '~/.local/share/gambas3/lib' is searched first, and then the contents of > '/lib/gambas3'. > > 3) You can define an extra search path for the library in the library > tab of the project property dialog. At the moment, it is not finished, > as it overrides '~/.local/share/gambas3/lib/', which it should not. > > 4) A project run from its executable never look in > '~/.local/share/gambas3/lib/'. > > 5) You can install different versions of the same library. The library > executable base name is suffixed with ':' followed by the version > (without the release number). > > 6) The packager is not yet updated. It will follow the scheme defined in 5). > > Tell me if it fits your needs again. You have 48 hours, as I leave Paris > for a week soon. > To get it running required me a bit of thinking. My library naturally did not have a vendor name, so it was created as Desktop.DataDir &/ "" &/ "lib.gambas" ^-- Vendor and could not be found by the IDE because it looks only for the vendor directories under Desktop.DataDir. After I entered a vendor, everything worked. No objections to the general structure. It is nice that there is this standard path in ~/.local/share. There is one point, however: These automatically created symlinks are a bit scary. I can imagine moving my whole source tree into another directory and depending on where I put the real executable archive, the symlink may be broken. I would like to have a new button on the toolbar which saves the real library executable archive under ~/.local/share/gambas3//:<version>.gambas instead of making this a symlink. Also I think I would at some point want to run my project from an executable. Will there be a way that I can explicitely tell the interpreter to look in ~/.local/share for libraries? You see, none of these need the current implementation to be revised but just a little extended. I'm pretty content already with how it is. Thank you. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Mon Feb 1 16:59:40 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 01 Feb 2016 15:59:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management Message-ID: <BUG889@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL reported a new bug. Summary ------- new library management Type : Bug Priority : High Gambas version : 3.8.90 (TRUNK) Product : Development Environment Description ----------- new library management don't find Lib which points to a link Libs are shown more then one time in the library management System information ------------------ [System] Gambas=3.8.90 r7595 OperatingSystem=Linux Kernel=3.2.0-97-generic Architecture=x86 Distribution=Ubuntu 12.04.5 LTS Desktop=GNOME Theme=Plastique Language=de_DE.UTF-8 Memory=3025M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+2=libgtk-x11-2.0.so.0.2400.10 GTK+3=libgtk-3.so.0.400.2 Poppler=libpoppler.so.19.0.0 QT4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Ye9OEAEq0O,guid=e9ffc172034eb967949a176400000039 DEFAULTS_PATH=/usr/share/gconf/gnome-shell.default.path DESKTOP_SESSION=gnome-shell DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=gnome-shell GDM_LANG=de_DE.UTF-8 GIO_LAUNCHED_DESKTOP_FILE=<home>/.local/share/applications/Gambas III.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=9049 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/tmp/keyring-Oxpi6n GNOME_KEYRING_PID=3180 GPG_AGENT_INFO=/tmp/keyring-Oxpi6n/gpg:0:1 GTK_MODULES=canberra-gtk-module HOME=<home> LANG=de_DE.UTF-8 LANGUAGE=de_DE:en LC_MESSAGES=de_DE.UTF-8 LOGNAME=<user> MANDATORY_PATH=/usr/share/gconf/gnome-shell.mandatory.path PATH=/usr/local/bin:/usr/bin:/bin:/usr/games PWD=<home> QT_ACCESSIBILITY=1 QT_NO_GLIB=1 SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/3197,unix/<hostname>:/tmp/.ICE-unix/3197 SHELL=/bin/bash SPEECHD_PORT=7560 SSH_AGENT_PID=3348 SSH_AUTH_SOCK=/tmp/keyring-Oxpi6n/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=libappmenu.so USER=<user> USERNAME=<user> WINDOWPATH=7 XAUTHORITY=/var/run/gdm/auth-for-<user>-dQvdeA/database XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome-shell:/etc/xdg XDG_CURRENT_DESKTOP=GNOME XDG_DATA_DIRS=/usr/share/gnome-shell:/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_SESSION_COOKIE=42f49d43f50733c401e4460348762a43-1454323932.236717-961535263 From bugtracker at ...3416... Mon Feb 1 16:59:59 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 01 Feb 2016 15:59:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160201165958534@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: pic01.png From bugtracker at ...3416... Mon Feb 1 17:00:07 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 01 Feb 2016 16:00:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160201170007130@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: pic02.png From bugtracker at ...3416... Mon Feb 1 17:00:16 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 01 Feb 2016 16:00:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160201170016321@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: pic03.png From gambas at ...1... Mon Feb 1 20:15:45 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Feb 2016 20:15:45 +0100 Subject: [Gambas-user] Sharing libraries across projects : initial implementation In-Reply-To: <20160201155933.GA645@...2774...> References: <56AEC36E.7070509@...1...> <20160201155933.GA645@...2774...> Message-ID: <56AFAEE1.1070208@...1...> Le 01/02/2016 16:59, Tobias Boege a ?crit : > > To get it running required me a bit of thinking. My library naturally > did not have a vendor name, so it was created as > > Desktop.DataDir &/ "" &/ "lib.gambas" ^-- Vendor > > and could not be found by the IDE because it looks only for the > vendor directories under Desktop.DataDir. After I entered a vendor, > everything worked. Ha, I forgot that case... Maybe I should use an "unknown" vendor in that specific case? > > No objections to the general structure. It is nice that there is > this standard path in ~/.local/share. > > There is one point, however: These automatically created symlinks are > a bit scary. I can imagine moving my whole source tree into another > directory and depending on where I put the real executable archive, > the symlink may be broken. I would like to have a new button on the > toolbar which saves the real library executable archive under > > ~/.local/share/gambas3/<vendor>/<title>:<version>.gambas > > instead of making this a symlink. Mmm. The goal of these symlinks was the ability to install the same library projects at different places and to be able to use them for debugging anyway. Moreover, the executable is named "<project>.gambas". Only the symlink has the version number. But I think you're right: by default, create the executable directly in the local folder, and optionally be able to create where you want, with a symlink in the local folder. > Also I think I would at some point want to run my project from an > executable. Will there be a way that I can explicitely tell the > interpreter to look in ~/.local/share for libraries? At the moment, you must be in debug mode to use that folder. I'd like a way to be sure that an executable only uses globally installed libraries or libraries installed in the folder explicitly specified in the library tab. But maybe it's paranoid? -- Beno?t Minisini From bugtracker at ...3416... Mon Feb 1 20:17:28 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 01 Feb 2016 19:17:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160201201727730@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #1 by Beno?t MINISINI: Is it an old project (before the new library management)? Can you send me as is? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From jussi.lahtinen at ...626... Mon Feb 1 20:31:45 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 1 Feb 2016 21:31:45 +0200 Subject: [Gambas-user] PPA for Gambas3 In-Reply-To: <CAFJMe7Sg5V4+=CUKsf31NAUj2whv9agS32spP4dR6qbgh=VLng@...627...> References: <CAFJMe7QLcH7qghXEjW=DYLkMpfyBXAzxjYc53UQfWKL91E=Skw@...627...> <CAFJMe7Sg5V4+=CUKsf31NAUj2whv9agS32spP4dR6qbgh=VLng@...627...> Message-ID: <CAFJMe7Skcmvz2wWrf+kUMki3pqZd2GFZqdqAFyaoKpOybeHseg@...627...> Can anyone confirm this problem? Jussi On Fri, Jan 29, 2016 at 2:36 AM, Jussi Lahtinen <jussi.lahtinen at ...626...> wrote: > OK, I compiled from the sources and I still get the unknown symbol "Tag" > in trayicon!!?? > Does the trayicon component work at all on Ubuntu? > > > Jussi > > On Fri, Jan 29, 2016 at 1:33 AM, Jussi Lahtinen <jussi.lahtinen at ...626...> > wrote: > >> Hi! >> I installed Gambas3 stable from the PPA for my virtual machine. >> >> $ sudo add-apt-repository ppa:gambas-team/gambas3 >> >> When I run the IDE it says it's the development version. And when I try >> to run GAlarm in it, >> I will get "Unknown symbol 'Tag' in class 'TrayIcon'". >> >> Where is the problem? Errors in the PPA? >> >> >> Jussi >> >> >> [System] >> Gambas=3.8.90 >> OperatingSystem=Linux >> Kernel=3.16.0-59-generic >> Architecture=x86_64 >> Distribution=Ubuntu 14.04.3 LTS >> Desktop=GNOME >> Theme=Gtk >> Language=en_US.UTF-8 >> Memory=2548M >> >> [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 >> QT5=libQt5Core.so.5.2.1 >> SDL=libSDL-1.2.so.0.11.4 >> >> [Environment] >> CLUTTER_IM_MODULE=xim >> COMPIZ_BIN_PATH=/usr/bin/ >> COMPIZ_CONFIG_PROFILE=ubuntu >> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DtPeSvdPmo >> DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path >> DESKTOP_SESSION=ubuntu >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=ubuntu >> GDM_LANG=en_US >> GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/debian-uxterm.desktop >> GIO_LAUNCHED_DESKTOP_FILE_PID=2464 >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> GNOME_KEYRING_CONTROL=/run/user/1000/keyring-rFbxed >> GNOME_KEYRING_PID=1509 >> GPG_AGENT_INFO=/run/user/1000/keyring-rFbxed/gpg:0:1 >> GTK_IM_MODULE=ibus >> GTK_MODULES=overlay-scrollbar:unity-gtk-module >> HOME=<home> >> IM_CONFIG_PHASE=1 >> INSTANCE= >> JOB=dbus >> LANG=en_US.UTF-8 >> LANGUAGE=en_US >> LC_ADDRESS=fi_FI.UTF-8 >> LC_IDENTIFICATION=fi_FI.UTF-8 >> LC_MEASUREMENT=fi_FI.UTF-8 >> LC_MONETARY=fi_FI.UTF-8 >> LC_NAME=fi_FI.UTF-8 >> LC_NUMERIC=fi_FI.UTF-8 >> LC_PAPER=fi_FI.UTF-8 >> LC_TELEPHONE=fi_FI.UTF-8 >> LC_TIME=fi_FI.UTF-8 >> LESSCLOSE=/usr/bin/lesspipe %s %s >> LESSOPEN=| /usr/bin/lesspipe %s >> LOGNAME=<user> >> >> LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: >> MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path >> >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >> PWD=<home> >> QT4_IM_MODULE=xim >> QT_IM_MODULE=ibus >> QT_QPA_PLATFORMTHEME=appmenu-qt5 >> SELINUX_INIT=YES >> SESSION=ubuntu >> SESSIONTYPE=gnome-session >> >> SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1745,unix/<hostname>:/tmp/.ICE-unix/1745 >> SHELL=/bin/bash >> SHLVL=1 >> SSH_AUTH_SOCK=/run/user/1000/keyring-rFbxed/ssh >> TERM=xterm >> TEXTDOMAIN=im-config >> TEXTDOMAINDIR=/usr/share/locale/ >> TZ=:/etc/localtime >> UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1520 >> USER=<user> >> WINDOWID=67108900 >> XAUTHORITY=<home>/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg >> XDG_CURRENT_DESKTOP=Unity >> >> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/ >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user> >> XDG_MENU_PREFIX=gnome- >> 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=@...3498...=ibus >> XTERM_LOCALE=en_US.UTF-8 >> XTERM_SHELL=/bin/bash >> XTERM_VERSION=XTerm(297) >> _=/usr/bin/gambas3 >> > > From gambas at ...1... Mon Feb 1 20:36:53 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Feb 2016 20:36:53 +0100 Subject: [Gambas-user] PPA for Gambas3 In-Reply-To: <CAFJMe7Skcmvz2wWrf+kUMki3pqZd2GFZqdqAFyaoKpOybeHseg@...627...> References: <CAFJMe7QLcH7qghXEjW=DYLkMpfyBXAzxjYc53UQfWKL91E=Skw@...627...> <CAFJMe7Sg5V4+=CUKsf31NAUj2whv9agS32spP4dR6qbgh=VLng@...627...> <CAFJMe7Skcmvz2wWrf+kUMki3pqZd2GFZqdqAFyaoKpOybeHseg@...627...> Message-ID: <56AFB3D5.2040303@...1...> Le 01/02/2016 20:31, Jussi Lahtinen a ?crit : > Can anyone confirm this problem? > > > Jussi > I'm going to check that all the TrayIcon implementations have the Tag property... -- Beno?t Minisini From gambas at ...1... Mon Feb 1 20:42:34 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Feb 2016 20:42:34 +0100 Subject: [Gambas-user] PPA for Gambas3 In-Reply-To: <56AFB3D5.2040303@...1...> References: <CAFJMe7QLcH7qghXEjW=DYLkMpfyBXAzxjYc53UQfWKL91E=Skw@...627...> <CAFJMe7Sg5V4+=CUKsf31NAUj2whv9agS32spP4dR6qbgh=VLng@...627...> <CAFJMe7Skcmvz2wWrf+kUMki3pqZd2GFZqdqAFyaoKpOybeHseg@...627...> <56AFB3D5.2040303@...1...> Message-ID: <56AFB52A.3010907@...1...> Le 01/02/2016 20:36, Beno?t Minisini a ?crit : > Le 01/02/2016 20:31, Jussi Lahtinen a ?crit : >> Can anyone confirm this problem? >> >> >> Jussi >> > > I'm going to check that all the TrayIcon implementations have the Tag > property... > Shame on me, apparently I forgot to make the Tag property for DBUS trayicons! -- Beno?t Minisini From gambas at ...1... Mon Feb 1 20:44:27 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Feb 2016 20:44:27 +0100 Subject: [Gambas-user] PPA for Gambas3 In-Reply-To: <56AFB52A.3010907@...1...> References: <CAFJMe7QLcH7qghXEjW=DYLkMpfyBXAzxjYc53UQfWKL91E=Skw@...627...> <CAFJMe7Sg5V4+=CUKsf31NAUj2whv9agS32spP4dR6qbgh=VLng@...627...> <CAFJMe7Skcmvz2wWrf+kUMki3pqZd2GFZqdqAFyaoKpOybeHseg@...627...> <56AFB3D5.2040303@...1...> <56AFB52A.3010907@...1...> Message-ID: <56AFB59B.8060207@...1...> Le 01/02/2016 20:42, Beno?t Minisini a ?crit : > Le 01/02/2016 20:36, Beno?t Minisini a ?crit : >> Le 01/02/2016 20:31, Jussi Lahtinen a ?crit : >>> Can anyone confirm this problem? >>> >>> >>> Jussi >>> >> >> I'm going to check that all the TrayIcon implementations have the Tag >> property... >> > > Shame on me, apparently I forgot to make the Tag property for DBUS > trayicons! > Fixed in revision #7596. -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Feb 1 21:51:06 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 1 Feb 2016 22:51:06 +0200 Subject: [Gambas-user] PPA for Gambas3 In-Reply-To: <56AFB59B.8060207@...1...> References: <CAFJMe7QLcH7qghXEjW=DYLkMpfyBXAzxjYc53UQfWKL91E=Skw@...627...> <CAFJMe7Sg5V4+=CUKsf31NAUj2whv9agS32spP4dR6qbgh=VLng@...627...> <CAFJMe7Skcmvz2wWrf+kUMki3pqZd2GFZqdqAFyaoKpOybeHseg@...627...> <56AFB3D5.2040303@...1...> <56AFB52A.3010907@...1...> <56AFB59B.8060207@...1...> Message-ID: <CAFJMe7Q=4OqvP7UsCMvkVRXTQGzPVBQ+WksTMc+zWirj34L7og@...627...> OK, thanks! Jussi On Mon, Feb 1, 2016 at 9:44 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 01/02/2016 20:42, Beno?t Minisini a ?crit : > > Le 01/02/2016 20:36, Beno?t Minisini a ?crit : > >> Le 01/02/2016 20:31, Jussi Lahtinen a ?crit : > >>> Can anyone confirm this problem? > >>> > >>> > >>> Jussi > >>> > >> > >> I'm going to check that all the TrayIcon implementations have the Tag > >> property... > >> > > > > Shame on me, apparently I forgot to make the Tag property for DBUS > > trayicons! > > > > Fixed in revision #7596. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Feb 1 22:42:23 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Feb 2016 22:42:23 +0100 Subject: [Gambas-user] Sharing libraries across projects : initial implementation In-Reply-To: <56AFAEE1.1070208@...1...> References: <56AEC36E.7070509@...1...> <20160201155933.GA645@...2774...> <56AFAEE1.1070208@...1...> Message-ID: <56AFD13F.2010705@...1...> Le 01/02/2016 20:15, Beno?t Minisini a ?crit : >> >> There is one point, however: These automatically created symlinks are >> a bit scary. I can imagine moving my whole source tree into another >> directory and depending on where I put the real executable archive, >> the symlink may be broken. I would like to have a new button on the >> toolbar which saves the real library executable archive under >> >> ~/.local/share/gambas3/<vendor>/<title>:<version>.gambas >> >> instead of making this a symlink. > > Mmm. The goal of these symlinks was the ability to install the same > library projects at different places and to be able to use them for > debugging anyway. > > Moreover, the executable is named "<project>.gambas". Only the symlink > has the version number. > > But I think you're right: by default, create the executable directly in > the local folder, and optionally be able to create where you want, with > a symlink in the local folder. > I'm stupid: I just have to *copy* the executable instead of making a symbolic link! -- Beno?t Minisini From taboege at ...626... Mon Feb 1 23:44:41 2016 From: taboege at ...626... (Tobias Boege) Date: Mon, 1 Feb 2016 23:44:41 +0100 Subject: [Gambas-user] Sharing libraries across projects : initial implementation In-Reply-To: <56AFAEE1.1070208@...1...> References: <56AEC36E.7070509@...1...> <20160201155933.GA645@...2774...> <56AFAEE1.1070208@...1...> Message-ID: <20160201224441.GA16220@...2774...> On Mon, 01 Feb 2016, Beno??t Minisini wrote: > > Also I think I would at some point want to run my project from an > > executable. Will there be a way that I can explicitely tell the > > interpreter to look in ~/.local/share for libraries? > > At the moment, you must be in debug mode to use that folder. > > I'd like a way to be sure that an executable only uses globally > installed libraries or libraries installed in the folder explicitly > specified in the library tab. But maybe it's paranoid? > I really can't tell. I have no idea about security. But if someone can trick you into installing a malicious library in ~/.local/share/... and then running an executable, they probably can trick you into installing that library and running a project from the IDE. Anyway, what about this: I enter ~/.local/share/... as the project-specific search path. Then I have explicit access to the local libraries. The only problem is that the path ~/.local/share/... has the username in it so that I can't easily give such a project to others[*]. It would be convenient if I was able to use a variable like $HOME when giving that runtime search path. I would like to see ~/.local/share/... more as a user-specific version of /usr/lib, to make it short. Regards, Tobi [*] That the project would fail to load on others' systems in this case, until they take a look into the project themselves to correct the path is the only point I can see where security is improved. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Tue Feb 2 00:12:01 2016 From: taboege at ...626... (Tobias Boege) Date: Tue, 2 Feb 2016 00:12:01 +0100 Subject: [Gambas-user] Debugging with libraries Message-ID: <20160201231201.GB16220@...2774...> Hi, now that I use a library in my projects, I noticed that debugging these projects is sufficiently harder. E.g. if a call into the library raises an error, I cannot display local variables and have basically to resort to Debug statements in the library. My question is this: is it possible with the current state of the IDE + debugger (which I don't know at all) to debug a project together with a library it uses -- provided that the path to the sources of the library is known? Or would that be too ugly? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at ...3340... Tue Feb 2 10:16:51 2016 From: chrisml at ...3340... (Christof Thalhofer) Date: Tue, 2 Feb 2016 10:16:51 +0100 Subject: [Gambas-user] Debugging with libraries In-Reply-To: <20160201231201.GB16220@...2774...> References: <20160201231201.GB16220@...2774...> Message-ID: <56B07403.8010800@...3340...> Hi, Am 02.02.2016 um 00:12 schrieb Tobias Boege: > now that I use a library in my projects, I noticed that debugging these > projects is sufficiently harder. E.g. if a call into the library raises > an error, I cannot display local variables and have basically to resort > to Debug statements in the library. I develop the classes first inside the project where I use them, when they are stable they will be moved into the external lib. There I write testcode to test their functionality that I can execute inside the lib-project if I have changed anything. To debug the lib inside your project you can copy all classes of the lib to a subfolder of your main project, switch the lib off and debug like usual. When done, copy them back, recompile the lib and include it again in the main project. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160202/b74e627d/attachment.sig> From taboege at ...626... Tue Feb 2 12:31:29 2016 From: taboege at ...626... (Tobias Boege) Date: Tue, 2 Feb 2016 12:31:29 +0100 Subject: [Gambas-user] Debugging with libraries In-Reply-To: <56B07403.8010800@...3340...> References: <20160201231201.GB16220@...2774...> <56B07403.8010800@...3340...> Message-ID: <20160202113129.GA28912@...2774...> On Tue, 02 Feb 2016, Christof Thalhofer wrote: > Hi, > > Am 02.02.2016 um 00:12 schrieb Tobias Boege: > > > now that I use a library in my projects, I noticed that debugging these > > projects is sufficiently harder. E.g. if a call into the library raises > > an error, I cannot display local variables and have basically to resort > > to Debug statements in the library. > > I develop the classes first inside the project where I use them, when > they are stable they will be moved into the external lib. There I write > testcode to test their functionality that I can execute inside the > lib-project if I have changed anything. > > To debug the lib inside your project you can copy all classes of the lib > to a subfolder of your main project, switch the lib off and debug like > usual. When done, copy them back, recompile the lib and include it again > in the main project. > Pffff, sounds error-prone if *I* had to do it -- and not the nice kind of error but the bad kind where you permanently lose files or forget that you have still old copies of library sources in some project and wonder why the code crashes. If I have to mess with the source trees anyway, I guess this suits me better: - In all projects which use the library: - Remove the library dependence, - Symlink to the library source into .src, - Add the components needed by the library sources, - Until satisfied: - Change library from one project, - Check that other projects using the library don't break, - Again in all projects which use the library: - Remove symlinks, - Remove unnecessary components, - Enter library as dependence. The benefits being that nothing needs to be copied and the library is updated in every project that uses it, so the changes can be checked against quickly. The problem with this project is that I deliberately didn't overthink the interfaces beforehand. I still think this was a good choice because I had something usable after a month. Now that I extend the library, I have to gradually rewrite portions of it, including interfaces and whole class designs, and check against other projects using the library. That's maybe a different workflow than you have, e.g. there is no notion of "stable" class in my library. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Tue Feb 2 15:07:58 2016 From: bagonergi at ...626... (Gianluigi) Date: Tue, 2 Feb 2016 15:07:58 +0100 Subject: [Gambas-user] Warning Help and Documentation inaccessible. Message-ID: <CAJ2rqFb7amvOaTms05OThyqD=dQpx8zf9W5Xbfp+d7taxCrpPg@...627...> Warning! Help and Documentation inaccessible. Regards Gianluigi From bagonergi at ...626... Tue Feb 2 15:24:06 2016 From: bagonergi at ...626... (Gianluigi) Date: Tue, 2 Feb 2016 15:24:06 +0100 Subject: [Gambas-user] Warning Help and Documentation inaccessible. In-Reply-To: <CAJ2rqFb7amvOaTms05OThyqD=dQpx8zf9W5Xbfp+d7taxCrpPg@...627...> References: <CAJ2rqFb7amvOaTms05OThyqD=dQpx8zf9W5Xbfp+d7taxCrpPg@...627...> Message-ID: <CAJ2rqFbxta0Z8v=8u_02FUBje4GPQJvAveTwHW+Jv_43U0O5Gw@...627...> Well now all is ok! 2016-02-02 15:07 GMT+01:00 Gianluigi <bagonergi at ...626...>: > Warning! > Help and Documentation inaccessible. > Regards > Gianluigi > From gambas at ...1... Tue Feb 2 15:31:09 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 2 Feb 2016 15:31:09 +0100 Subject: [Gambas-user] Warning Help and Documentation inaccessible. In-Reply-To: <CAJ2rqFbxta0Z8v=8u_02FUBje4GPQJvAveTwHW+Jv_43U0O5Gw@...627...> References: <CAJ2rqFb7amvOaTms05OThyqD=dQpx8zf9W5Xbfp+d7taxCrpPg@...627...> <CAJ2rqFbxta0Z8v=8u_02FUBje4GPQJvAveTwHW+Jv_43U0O5Gw@...627...> Message-ID: <56B0BDAD.1080502@...1...> Le 02/02/2016 15:24, Gianluigi a ?crit : > Well now all is ok! > Thanks for the warning. The disk was full, because of the stupid Ubuntu automatic updates that accumulate kernel images without removing the unused ones... -- Beno?t Minisini From bugtracker at ...3416... Tue Feb 2 16:23:48 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 Feb 2016 15:23:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install In-Reply-To: <BUG880@...3416...> References: <BUG880@...3416...> Message-ID: <BUG880:20160202162348379@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.880&from=L21haW4- Comment #4 by John FORTEY: Hi Benoit, I installed from ppa.launchpad.net/gambas-team/gambas3/ubuntu. Muon definitely shows libpoppler19 as a dependency. From chrisml at ...3340... Tue Feb 2 17:40:41 2016 From: chrisml at ...3340... (Christof Thalhofer) Date: Tue, 2 Feb 2016 17:40:41 +0100 Subject: [Gambas-user] Debugging with libraries In-Reply-To: <20160202113129.GA28912@...2774...> References: <20160201231201.GB16220@...2774...> <56B07403.8010800@...3340...> <20160202113129.GA28912@...2774...> Message-ID: <56B0DC09.6080906@...3340...> Am 02.02.2016 um 12:31 schrieb Tobias Boege: > Pffff, sounds error-prone if *I* had to do it -- and not the nice kind of > error but the bad kind where you permanently lose files or forget that you > have still old copies of library sources in some project and wonder why the > code crashes. Therefore I copy them in a folder ".src/LIB". If it exists, I know, that I'm debugging a lib in the project. > If I have to mess with the source trees anyway, I guess this > suits me better: > > - In all projects which use the library: > - Remove the library dependence, > - Symlink to the library source into .src, > - Add the components needed by the library sources, > - Until satisfied: > - Change library from one project, > - Check that other projects using the library don't break, > - Again in all projects which use the library: > - Remove symlinks, > - Remove unnecessary components, > - Enter library as dependence. > > The benefits being that nothing needs to be copied and the library is > updated in every project that uses it, so the changes can be checked > against quickly. Hmm. That was the thing I've tried first, but somehow Gambas IDE removed the writable-flag from the sourcefiles I'v symlinked. So I had to fiddle around with a broken library afterwards. I did not try if Gambas IDE does that already. > The problem with this project is that I deliberately didn't overthink the > interfaces beforehand. I still think this was a good choice because I had > something usable after a month. Now that I extend the library, I have to > gradually rewrite portions of it, including interfaces and whole class > designs, and check against other projects using the library. That's maybe > a different workflow than you have, e.g. there is no notion of "stable" > class in my library. That's normal programmer's life. Permanently there is something you did not think about before. :-) For that I try to keep code as long as possible inside the project, so it becomes stable by testing over time. And if it's done it can be shared. But even then sometimes I have to rewrite portions of it and sometimes also interfaces. Fortunately I work with Git and can do a fast "git grep" over the whole sources to find all occurences. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160202/44e5fdd9/attachment.sig> From bugtracker at ...3416... Tue Feb 2 23:07:52 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 Feb 2016 22:07:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160202230751626@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #2 by Charlie REINL: here a project with the same problem From bugtracker at ...3416... Tue Feb 2 23:08:39 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 Feb 2016 22:08:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160202230839027@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: LETS_see-0.0.2.tar.gz From bugtracker at ...3416... Tue Feb 2 23:09:14 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 Feb 2016 22:09:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160202230914384@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: uuidgen-0.3.13.tar.gz From chrisml at ...3340... Tue Feb 2 23:12:12 2016 From: chrisml at ...3340... (Christof Thalhofer) Date: Tue, 2 Feb 2016 23:12:12 +0100 Subject: [Gambas-user] Warning Help and Documentation inaccessible. In-Reply-To: <56B0BDAD.1080502@...1...> References: <CAJ2rqFb7amvOaTms05OThyqD=dQpx8zf9W5Xbfp+d7taxCrpPg@...627...> <CAJ2rqFbxta0Z8v=8u_02FUBje4GPQJvAveTwHW+Jv_43U0O5Gw@...627...> <56B0BDAD.1080502@...1...> Message-ID: <56B129BC.50707@...3340...> Am 02.02.2016 um 15:31 schrieb Beno?t Minisini: > Le 02/02/2016 15:24, Gianluigi a ?crit : >> Well now all is ok! >> > > Thanks for the warning. The disk was full, because of the stupid Ubuntu > automatic updates that accumulate kernel images without removing the > unused ones... If the kernels are marked as manually installed they won't be removed automatically. You can test it so: apt-mark showmanual | grep linux-image apt-mark showmanual | grep linux-headers Alter them so: apt-mark showmanual | grep linux-image | xargs sudo apt-mark markauto apt-mark showmanual | grep linux-headers | xargs sudo apt-mark markauto And remove them so: apt-get autoremove Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160202/530bc398/attachment.sig> From bugtracker at ...3416... Tue Feb 2 23:14:45 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 Feb 2016 22:14:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160202231444527@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: Bildschirmfoto vom 2016-02-02 22:23:27.png From bugtracker at ...3416... Tue Feb 2 23:22:02 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 Feb 2016 22:22:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160202232202031@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #3 by Charlie REINL: to know: - in project the lib is marked at : /home/charlie/Desktop/buero/CRM3/uuidgen.gambas - /home/charlie/Desktop/buero/CRM3/uuidgen.gambas is a link to /home/charlie/gambas/3/myLib/uuidgen/uuidgen.gambas - at /home/charlie/gambas/3/myLib/uuidgen/uuidgen.gambas are the REAL file - buero in the link to the REAL file is itself a link on the Desktop to /buero/Docus/buero From bugtracker at ...3416... Wed Feb 3 06:45:06 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 05:45:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160203064506099@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #4 by Beno?t MINISINI: uuidgen is not a library, it's a component, so it is not concerned by the library management. You must make it a library to use it as a library now. Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Wed Feb 3 06:47:03 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 05:47:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160203064702394@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Opened. From bugtracker at ...3416... Wed Feb 3 06:48:20 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 05:48:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160203064819487@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #5 by Beno?t MINISINI: And I couldn't reproduce the multiplication of the libraries in the library tab of the project property dialog... From gambas at ...1... Wed Feb 3 07:15:39 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Feb 2016 07:15:39 +0100 Subject: [Gambas-user] Warning Help and Documentation inaccessible. In-Reply-To: <56B129BC.50707@...3340...> References: <CAJ2rqFb7amvOaTms05OThyqD=dQpx8zf9W5Xbfp+d7taxCrpPg@...627...> <CAJ2rqFbxta0Z8v=8u_02FUBje4GPQJvAveTwHW+Jv_43U0O5Gw@...627...> <56B0BDAD.1080502@...1...> <56B129BC.50707@...3340...> Message-ID: <56B19B0B.3010201@...1...> Le 02/02/2016 23:12, Christof Thalhofer a ?crit : > Am 02.02.2016 um 15:31 schrieb Beno?t Minisini: >> Le 02/02/2016 15:24, Gianluigi a ?crit : >>> Well now all is ok! >>> >> >> Thanks for the warning. The disk was full, because of the stupid Ubuntu >> automatic updates that accumulate kernel images without removing the >> unused ones... > > If the kernels are marked as manually installed they won't be removed > automatically. You can test it so: > > apt-mark showmanual | grep linux-image > apt-mark showmanual | grep linux-headers > > Alter them so: > > apt-mark showmanual | grep linux-image | xargs sudo apt-mark markauto > apt-mark showmanual | grep linux-headers | xargs sudo apt-mark markauto > > And remove them so: > > apt-get autoremove > > > > Alles Gute > > Christof Thalhofer > Thanks, I didn't know. -- Beno?t Minisini From gambas at ...1... Wed Feb 3 07:16:39 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Feb 2016 07:16:39 +0100 Subject: [Gambas-user] Share code across projects In-Reply-To: <BLU436-SMTP79E40EA68980A6B7A98BD0C8D80@...693...> References: <mailman.14934.1453830173.1791.gambas-user@lists.sourceforge.net> <BLU436-SMTP79E40EA68980A6B7A98BD0C8D80@...693...> Message-ID: <56B19B47.1050403@...1...> Le 26/01/2016 21:16, martin p cristia a ?crit : > I have a module of utils I use on every project. It woud be great if I > can use a single file for all of the as I'm always add some new stuff > (or fix old one). This is for the IDE. > Is it better now with the new library management? -- Beno?t Minisini From bugtracker at ...3416... Wed Feb 3 08:48:53 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 07:48:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install In-Reply-To: <BUG880@...3416...> References: <BUG880@...3416...> Message-ID: <BUG880:20160203084853045@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.880&from=L21haW4- Comment #5 by Beno?t MINISINI: Look, I have opened the gambas-gb-pdf package at gambas stable PPA, chosing the amd64 package for Ubuntu 14.04, and it's libpoppler44 referenced in the package. Maybe you should fully update your local repository? From bugtracker at ...3416... Wed Feb 3 08:49:01 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 07:49:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install In-Reply-To: <BUG880@...3416...> References: <BUG880@...3416...> Message-ID: <BUG880:20160203084900679@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.880&from=L21haW4- Beno?t MINISINI added an attachment: launchpad.png From bugtracker at ...3416... Wed Feb 3 08:49:46 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 07:49:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install In-Reply-To: <BUG880@...3416...> References: <BUG880@...3416...> Message-ID: <BUG880:20160203084945748@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.880&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Wed Feb 3 08:50:49 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 07:50:49 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #873: [Project Property dialog] Library item have big size when the "library not found" In-Reply-To: <BUG873@...3416...> References: <BUG873@...3416...> Message-ID: <BUG873:20160203085049073@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.873&from=L21haW4- Comment #1 by Beno?t MINISINI: Is it better with a recent revision and the new library management? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From roel at ...3306... Wed Feb 3 12:03:36 2016 From: roel at ...3306... (Roel Touwen) Date: Wed, 03 Feb 2016 12:03:36 +0100 Subject: [Gambas-user] Working printsample with more than one page Message-ID: <56B1DE88.2090105@...3306...> Hi all, I'm converting software from Gambas 2 to 3. Printing seems to be very very different in Gambas 3. Has anyone a sample of printing more pages? So also clearing the page etc. Thanks for now. Best regards, Roel From bugtracker at ...3416... Wed Feb 3 12:29:14 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 11:29:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160203122913787@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #6 by Charlie REINL: uuidgen as library work now. So also the Error do not raise anymore. the multiplication of the libraries comes from the past, I removed all double and the project still run Question: I don't see the libraries at /usr/bin/ in the library management any more, and there is not button to mark them but I get an error now at the executable From bugtracker at ...3416... Wed Feb 3 12:29:33 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 11:29:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160203122932507@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Charlie REINL added an attachment: Bildschirmfoto vom 2016-02-03 12:27:15.png From bugtracker at ...3416... Wed Feb 3 13:44:34 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 12:44:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #873: [Project Property dialog] Library item have big size when the "library not found" In-Reply-To: <BUG873@...3416...> References: <BUG873@...3416...> Message-ID: <BUG873:20160203134434039@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.873&from=L21haW4- Comment #2 by Zainudin AHMAD: yes it's better with r7601, I will learn first the new library management. From eilert-sprachen at ...221... Wed Feb 3 15:57:25 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 03 Feb 2016 15:57:25 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B1DE88.2090105@...3306...> References: <56B1DE88.2090105@...3306...> Message-ID: <56B21555.7080805@...221...> Hi Roel, The way printing is managed in Gambas3 is completely different in one way: You have to tell the number of pages beforehand, then printing runs automatically page for page. There is one help page that gives a rough overview. Why do you want to clear a page? Your code will have to check what to print on each page while it is printing, and you cannot stop until all pages have been printed. In my case, the problem was how to print tables of random length. Gambas2 was "simple": The program just printed a table line for line, then initiated a new page when the table had reached the lower edge. Now I found this solution for Gambas3: The table will start at a given position on the page. There are functions that I could use to measure the exact height of each table line. It sums up until it finds it will hit the lower end, then save the number of this line in a list, go on to the next end of page and so on... After measuring and counting, the number of entries in the list will tell how many pages are needed, and printing can be started. I found that the new way of printing is way faster than the old one. It is in fact so fast that I could simply print into a temporary pdf file, then use this file for a preview. When the user hits OK, this pdf is sent to the printer. On the other hand, I had to re-think a number of functions and when this will happen before that etc., and still haven't completely finished :) Regards Rolf Am 03.02.2016 12:03, schrieb Roel Touwen: > Hi all, > > I'm converting software from Gambas 2 to 3. Printing seems to be very > very different in Gambas 3. > > Has anyone a sample of printing more pages? So also clearing the page etc. > > Thanks for now. > > Best regards, > > Roel > > > ------------------------------------------------------------------------------ > 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From roel at ...3306... Wed Feb 3 16:05:58 2016 From: roel at ...3306... (Roel Touwen) Date: Wed, 03 Feb 2016 16:05:58 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B21555.7080805@...221...> References: <56B1DE88.2090105@...3306...> <56B21555.7080805@...221...> Message-ID: <56B21756.7010906@...3306...> Hi Rolf, In my software I print invoice, lists, whatever..... When I print invoices I print the lines with a function which calculates where it has to print on the page: Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) txtWidth = Draw.Font.TextWidth(txt) txtHeight = Draw.Font.TextHeight(txt) PosY = Row * 162 posX = Col * 55 + 50 Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) End Now I want to skip to the next page when variable Row exceeds a value. But somehow I cannot find how I can skip to the next page. So what I am realy looking for is the addpage function which was available in gambas 2. Whe I fiddled arount in my code by telling there were 2 pages, the content on page 2 was nog cleared, e.g. it was the same as on page 1. Any ideas? Grtz Roel Touwen op 03-02-16 15:57, Rolf-Werner Eilert schreef: > Hi Roel, > > The way printing is managed in Gambas3 is completely different in one > way: You have to tell the number of pages beforehand, then printing runs > automatically page for page. There is one help page that gives a rough > overview. > > Why do you want to clear a page? Your code will have to check what to > print on each page while it is printing, and you cannot stop until all > pages have been printed. > > In my case, the problem was how to print tables of random length. > Gambas2 was "simple": The program just printed a table line for line, > then initiated a new page when the table had reached the lower edge. > > Now I found this solution for Gambas3: The table will start at a given > position on the page. There are functions that I could use to measure > the exact height of each table line. It sums up until it finds it will > hit the lower end, then save the number of this line in a list, go on to > the next end of page and so on... After measuring and counting, the > number of entries in the list will tell how many pages are needed, and > printing can be started. > > I found that the new way of printing is way faster than the old one. It > is in fact so fast that I could simply print into a temporary pdf file, > then use this file for a preview. When the user hits OK, this pdf is > sent to the printer. > > On the other hand, I had to re-think a number of functions and when this > will happen before that etc., and still haven't completely finished :) > > Regards > Rolf > > Am 03.02.2016 12:03, schrieb Roel Touwen: >> Hi all, >> >> I'm converting software from Gambas 2 to 3. Printing seems to be very >> very different in Gambas 3. >> >> Has anyone a sample of printing more pages? So also clearing the page etc. >> >> Thanks for now. >> >> Best regards, >> >> Roel >> >> >> ------------------------------------------------------------------------------ >> 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&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Wed Feb 3 16:19:54 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 03 Feb 2016 16:19:54 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B21756.7010906@...3306...> References: <56B1DE88.2090105@...3306...> <56B21555.7080805@...221...> <56B21756.7010906@...3306...> Message-ID: <56B21A9A.5090806@...221...> Basically, I think that is easy here: Just send a Return when the "last" row has been reached, and it will leave the printing and start a new page. Still, you have to define the number of page to be printed in order to be able to start printing. That makes it somewhat... errr.... ;) Rolf Am 03.02.2016 16:05, schrieb Roel Touwen: > Hi Rolf, > > In my software I print invoice, lists, whatever..... When I print > invoices I print the lines with a function which calculates where it has > to print on the page: > > Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) > > txtWidth = Draw.Font.TextWidth(txt) > txtHeight = Draw.Font.TextHeight(txt) > PosY = Row * 162 > posX = Col * 55 + 50 > Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) > > End > > Now I want to skip to the next page when variable Row exceeds a value. > But somehow I cannot find how I can skip to the next page. So what I am > realy looking for is the addpage function which was available in gambas 2. > Whe I fiddled arount in my code by telling there were 2 pages, the > content on page 2 was nog cleared, e.g. it was the same as on page 1. > > Any ideas? > > Grtz > > Roel Touwen > > > > op 03-02-16 15:57, Rolf-Werner Eilert schreef: >> Hi Roel, >> >> The way printing is managed in Gambas3 is completely different in one >> way: You have to tell the number of pages beforehand, then printing runs >> automatically page for page. There is one help page that gives a rough >> overview. >> >> Why do you want to clear a page? Your code will have to check what to >> print on each page while it is printing, and you cannot stop until all >> pages have been printed. >> >> In my case, the problem was how to print tables of random length. >> Gambas2 was "simple": The program just printed a table line for line, >> then initiated a new page when the table had reached the lower edge. >> >> Now I found this solution for Gambas3: The table will start at a given >> position on the page. There are functions that I could use to measure >> the exact height of each table line. It sums up until it finds it will >> hit the lower end, then save the number of this line in a list, go on to >> the next end of page and so on... After measuring and counting, the >> number of entries in the list will tell how many pages are needed, and >> printing can be started. >> >> I found that the new way of printing is way faster than the old one. It >> is in fact so fast that I could simply print into a temporary pdf file, >> then use this file for a preview. When the user hits OK, this pdf is >> sent to the printer. >> >> On the other hand, I had to re-think a number of functions and when this >> will happen before that etc., and still haven't completely finished :) >> >> Regards >> Rolf >> >> Am 03.02.2016 12:03, schrieb Roel Touwen: >>> Hi all, >>> >>> I'm converting software from Gambas 2 to 3. Printing seems to be very >>> very different in Gambas 3. >>> >>> Has anyone a sample of printing more pages? So also clearing the page etc. >>> >>> Thanks for now. >>> >>> Best regards, >>> >>> Roel >>> >>> >>> ------------------------------------------------------------------------------ >>> 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&iu=/4140 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at 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&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From roel at ...3306... Wed Feb 3 16:22:54 2016 From: roel at ...3306... (Roel Touwen) Date: Wed, 03 Feb 2016 16:22:54 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B21A9A.5090806@...221...> References: <56B1DE88.2090105@...3306...> <56B21555.7080805@...221...> <56B21756.7010906@...3306...> <56B21A9A.5090806@...221...> Message-ID: <56B21B4E.2040603@...3306...> Hi Rolf, Sounds easy, but (maybe a stupid question) but where do I send the return? Grtz Roel op 03-02-16 16:19, Rolf-Werner Eilert schreef: > Basically, I think that is easy here: Just send a Return when the "last" > row has been reached, and it will leave the printing and start a new page. > > Still, you have to define the number of page to be printed in order to > be able to start printing. > > That makes it somewhat... errr.... ;) > > Rolf > > Am 03.02.2016 16:05, schrieb Roel Touwen: >> Hi Rolf, >> >> In my software I print invoice, lists, whatever..... When I print >> invoices I print the lines with a function which calculates where it has >> to print on the page: >> >> Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) >> >> txtWidth = Draw.Font.TextWidth(txt) >> txtHeight = Draw.Font.TextHeight(txt) >> PosY = Row * 162 >> posX = Col * 55 + 50 >> Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) >> >> End >> >> Now I want to skip to the next page when variable Row exceeds a value. >> But somehow I cannot find how I can skip to the next page. So what I am >> realy looking for is the addpage function which was available in gambas 2. >> Whe I fiddled arount in my code by telling there were 2 pages, the >> content on page 2 was nog cleared, e.g. it was the same as on page 1. >> >> Any ideas? >> >> Grtz >> >> Roel Touwen >> >> >> >> op 03-02-16 15:57, Rolf-Werner Eilert schreef: >>> Hi Roel, >>> >>> The way printing is managed in Gambas3 is completely different in one >>> way: You have to tell the number of pages beforehand, then printing runs >>> automatically page for page. There is one help page that gives a rough >>> overview. >>> >>> Why do you want to clear a page? Your code will have to check what to >>> print on each page while it is printing, and you cannot stop until all >>> pages have been printed. >>> >>> In my case, the problem was how to print tables of random length. >>> Gambas2 was "simple": The program just printed a table line for line, >>> then initiated a new page when the table had reached the lower edge. >>> >>> Now I found this solution for Gambas3: The table will start at a given >>> position on the page. There are functions that I could use to measure >>> the exact height of each table line. It sums up until it finds it will >>> hit the lower end, then save the number of this line in a list, go on to >>> the next end of page and so on... After measuring and counting, the >>> number of entries in the list will tell how many pages are needed, and >>> printing can be started. >>> >>> I found that the new way of printing is way faster than the old one. It >>> is in fact so fast that I could simply print into a temporary pdf file, >>> then use this file for a preview. When the user hits OK, this pdf is >>> sent to the printer. >>> >>> On the other hand, I had to re-think a number of functions and when this >>> will happen before that etc., and still haven't completely finished :) >>> >>> Regards >>> Rolf >>> >>> Am 03.02.2016 12:03, schrieb Roel Touwen: >>>> Hi all, >>>> >>>> I'm converting software from Gambas 2 to 3. Printing seems to be very >>>> very different in Gambas 3. >>>> >>>> Has anyone a sample of printing more pages? So also clearing the page etc. >>>> >>>> Thanks for now. >>>> >>>> Best regards, >>>> >>>> Roel >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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&iu=/4140 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at 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&iu=/4140 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at 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&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Wed Feb 3 16:23:27 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 15:23:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install In-Reply-To: <BUG880@...3416...> References: <BUG880@...3416...> Message-ID: <BUG880:20160203162326673@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.880&from=L21haW4- Comment #6 by John FORTEY: I tried 'apt-get update' but it made no difference; gb.pdf still wanted libpoppler19. So I uninstalled Gambas, and removed the PPA entry from Muon's sources, and updated the sources. At this point gb.pdf had a dependency of libpoppler44, but the gambas version in the Ubuntu depositories is only 3.1.1. I then added the PPA entry back and updated the sources. Muon now showed gambas version 3.8.4, and gb.pdf wanted libpoppler44. So I reinstalled gambas, and everything seems to be fine now. Thanks for your patience, Benoit - my problem has gone away! John FORTEY changed the state of the bug to: Fixed. From eilert-sprachen at ...221... Wed Feb 3 16:59:45 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 03 Feb 2016 16:59:45 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B21B4E.2040603@...3306...> References: <56B1DE88.2090105@...3306...> <56B21555.7080805@...221...> <56B21756.7010906@...3306...> <56B21A9A.5090806@...221...> <56B21B4E.2040603@...3306...> Message-ID: <56B223F1.5080003@...221...> What I meant is the Return command. Sorry, somewhat unfocused... Somewhere you start, e. g. in a Sub Start (). There you collect your data and stuff and build the printer object, e. g. myPrinter. Then you say myPrinter.Print which will jump to Sub myPrinter_Begin(). Now you have everything running except the actual printing. But you can already measure how long your table will be and so on. When you know how many pages will result, you say myPrinter.Count = numberOfPagesToBePrinted and it will automagically jump into Sub myPrinter_Draw() as many times as pages are needed. While printing, if you want to end the page, within myPrinter_Draw(), you can say Return when you want to stop before the codes ends anyway to stop this page. But I don't need this anymore, as my new code will stop painting the table at the right line anyway. Then printing is ready for this page, and myPrinter_Draw() will end itself. Regards Rolf Am 03.02.2016 16:22, schrieb Roel Touwen: > Hi Rolf, > > Sounds easy, but (maybe a stupid question) but where do I send the return? > > Grtz > > Roel > > > > op 03-02-16 16:19, Rolf-Werner Eilert schreef: >> Basically, I think that is easy here: Just send a Return when the "last" >> row has been reached, and it will leave the printing and start a new page. >> >> Still, you have to define the number of page to be printed in order to >> be able to start printing. >> >> That makes it somewhat... errr.... ;) >> >> Rolf >> >> Am 03.02.2016 16:05, schrieb Roel Touwen: >>> Hi Rolf, >>> >>> In my software I print invoice, lists, whatever..... When I print >>> invoices I print the lines with a function which calculates where it has >>> to print on the page: >>> >>> Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) >>> >>> txtWidth = Draw.Font.TextWidth(txt) >>> txtHeight = Draw.Font.TextHeight(txt) >>> PosY = Row * 162 >>> posX = Col * 55 + 50 >>> Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) >>> >>> End >>> >>> Now I want to skip to the next page when variable Row exceeds a value. >>> But somehow I cannot find how I can skip to the next page. So what I am >>> realy looking for is the addpage function which was available in gambas 2. >>> Whe I fiddled arount in my code by telling there were 2 pages, the >>> content on page 2 was nog cleared, e.g. it was the same as on page 1. >>> >>> Any ideas? >>> >>> Grtz >>> >>> Roel Touwen >>> >>> >>> >>> op 03-02-16 15:57, Rolf-Werner Eilert schreef: >>>> Hi Roel, >>>> >>>> The way printing is managed in Gambas3 is completely different in one >>>> way: You have to tell the number of pages beforehand, then printing runs >>>> automatically page for page. There is one help page that gives a rough >>>> overview. >>>> >>>> Why do you want to clear a page? Your code will have to check what to >>>> print on each page while it is printing, and you cannot stop until all >>>> pages have been printed. >>>> >>>> In my case, the problem was how to print tables of random length. >>>> Gambas2 was "simple": The program just printed a table line for line, >>>> then initiated a new page when the table had reached the lower edge. >>>> >>>> Now I found this solution for Gambas3: The table will start at a given >>>> position on the page. There are functions that I could use to measure >>>> the exact height of each table line. It sums up until it finds it will >>>> hit the lower end, then save the number of this line in a list, go on to >>>> the next end of page and so on... After measuring and counting, the >>>> number of entries in the list will tell how many pages are needed, and >>>> printing can be started. >>>> >>>> I found that the new way of printing is way faster than the old one. It >>>> is in fact so fast that I could simply print into a temporary pdf file, >>>> then use this file for a preview. When the user hits OK, this pdf is >>>> sent to the printer. >>>> >>>> On the other hand, I had to re-think a number of functions and when this >>>> will happen before that etc., and still haven't completely finished :) >>>> >>>> Regards >>>> Rolf >>>> >>>> Am 03.02.2016 12:03, schrieb Roel Touwen: >>>>> Hi all, >>>>> >>>>> I'm converting software from Gambas 2 to 3. Printing seems to be very >>>>> very different in Gambas 3. >>>>> >>>>> Has anyone a sample of printing more pages? So also clearing the page etc. >>>>> >>>>> Thanks for now. >>>>> >>>>> Best regards, >>>>> >>>>> Roel >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> 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&iu=/4140 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at 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&iu=/4140 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at 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&iu=/4140 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at 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&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Wed Feb 3 17:10:29 2016 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 03 Feb 2016 17:10:29 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B1DE88.2090105@...3306...> References: <56B1DE88.2090105@...3306...> Message-ID: <1454515829.3727.20.camel@...40...> Am Mittwoch, den 03.02.2016, 12:03 +0100 schrieb Roel Touwen: > Hi all, > > I'm converting software from Gambas 2 to 3. Printing seems to be very > very different in Gambas 3. > > Has anyone a sample of printing more pages? So also clearing the page etc. > > Thanks for now. > > Best regards, > > Roel > Salut Roel, you can use GB.REPORT2 to print your invoices, or DBReport3 GB.REPORT2 is included in Gambas3 DBReport3 you find here : http://sourceforge.net/projects/dbreport -- Amicalement Charlie From bugtracker at ...3416... Wed Feb 3 17:30:25 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 16:30:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #890: Wrong Value on IDE Message-ID: <BUG890@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.890&from=L21haW4- Jorge CARRI?N reported a new bug. Summary ------- Wrong Value on IDE Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Runing a project step by step, sometimes when a property is highlighted, appears on a baloon a wrong value System information ------------------ [System] Gambas=3.8.4 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86_64 Distribution=Linux Mint 17.3 Rosa Desktop=GNOME Theme=Cleanlooks Language=es_ES.UTF-8 Memory=7926M [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 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CINNAMON_VERSION=2.8.6 CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-14xLzcDG3Z,guid=5c2d7a373748199b318fb54256b22a0b DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=2500 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-2a3VN9 GNOME_KEYRING_PID=1634 GPG_AGENT_INFO=/run/user/1000/keyring-2a3VN9/gpg:0:1 HOME=<home> LANG=es_ES.UTF-8 LC_ADDRESS=es_ES.UTF-8 LC_IDENTIFICATION=es_ES.UTF-8 LC_MEASUREMENT=es_ES.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_NAME=es_ES.UTF-8 LC_NUMERIC=es_ES.UTF-8 LC_PAPER=es_ES.UTF-8 LC_TELEPHONE=es_ES.UTF-8 LC_TIME=es_ES.UTF-8 LOGNAME=<user> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=es_ES.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=<home> QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1710,unix/<hostname>:/tmp/.ICE-unix/1710 SHELL=/bin/bash SSH_AGENT_PID=1774 SSH_AUTH_SOCK=/run/user/1000/keyring-2a3VN9/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER=<user> USERNAME=<user> WINDOWPATH=8 XAUTHORITY=<home>/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=300231f45b44e9829e99bbb056a8ea40-1454516746.938173-637786906 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 From bugtracker at ...3416... Wed Feb 3 17:30:54 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 16:30:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #890: Wrong Value on IDE In-Reply-To: <BUG890@...3416...> References: <BUG890@...3416...> Message-ID: <BUG890:20160203173054315@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.890&from=L21haW4- Jorge CARRI?N added an attachment: project1-0.0.1.tar.gz From bugtracker at ...3416... Wed Feb 3 17:32:16 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 16:32:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #890: Wrong Value on IDE In-Reply-To: <BUG890@...3416...> References: <BUG890@...3416...> Message-ID: <BUG890:20160203173216292@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.890&from=L21haW4- Comment #1 by Jorge CARRI?N: This is a small project. Run it and stop it on Print line, then highlight the c.sqlstring property and the value showed is wrong. From roel at ...3306... Wed Feb 3 17:34:43 2016 From: roel at ...3306... (Roel Touwen) Date: Wed, 3 Feb 2016 17:34:43 +0100 Subject: [Gambas-user] Working printsample with more than one page In-Reply-To: <56B223F1.5080003@...221...> References: <56B1DE88.2090105@...3306...> <56B21555.7080805@...221...> <56B21756.7010906@...3306...> <56B21A9A.5090806@...221...> <56B21B4E.2040603@...3306...> <56B223F1.5080003@...221...> Message-ID: <56B22C23.1000102@...3306...> Many, many thanks. I all makes sense now. Best regards, Roel Op 03-02-16 om 16:59 schreef Rolf-Werner Eilert: > What I meant is the Return command. Sorry, somewhat unfocused... > > Somewhere you start, e. g. in a Sub Start (). There you collect your > data and stuff and build the printer object, e. g. myPrinter. > > Then you say myPrinter.Print which will jump to Sub myPrinter_Begin(). > > Now you have everything running except the actual printing. But you can > already measure how long your table will be and so on. When you know how > many pages will result, you say myPrinter.Count = > numberOfPagesToBePrinted and it will automagically jump into Sub > myPrinter_Draw() as many times as pages are needed. > > While printing, if you want to end the page, within myPrinter_Draw(), > you can say > > Return > > when you want to stop before the codes ends anyway to stop this page. > But I don't need this anymore, as my new code will stop painting the > table at the right line anyway. Then printing is ready for this page, > and myPrinter_Draw() will end itself. > > Regards > Rolf > > > > Am 03.02.2016 16:22, schrieb Roel Touwen: >> Hi Rolf, >> >> Sounds easy, but (maybe a stupid question) but where do I send the return? >> >> Grtz >> >> Roel >> >> >> >> op 03-02-16 16:19, Rolf-Werner Eilert schreef: >>> Basically, I think that is easy here: Just send a Return when the "last" >>> row has been reached, and it will leave the printing and start a new page. >>> >>> Still, you have to define the number of page to be printed in order to >>> be able to start printing. >>> >>> That makes it somewhat... errr.... ;) >>> >>> Rolf >>> >>> Am 03.02.2016 16:05, schrieb Roel Touwen: >>>> Hi Rolf, >>>> >>>> In my software I print invoice, lists, whatever..... When I print >>>> invoices I print the lines with a function which calculates where it has >>>> to print on the page: >>>> >>>> Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) >>>> >>>> txtWidth = Draw.Font.TextWidth(txt) >>>> txtHeight = Draw.Font.TextHeight(txt) >>>> PosY = Row * 162 >>>> posX = Col * 55 + 50 >>>> Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) >>>> >>>> End >>>> >>>> Now I want to skip to the next page when variable Row exceeds a value. >>>> But somehow I cannot find how I can skip to the next page. So what I am >>>> realy looking for is the addpage function which was available in gambas 2. >>>> Whe I fiddled arount in my code by telling there were 2 pages, the >>>> content on page 2 was nog cleared, e.g. it was the same as on page 1. >>>> >>>> Any ideas? >>>> >>>> Grtz >>>> >>>> Roel Touwen >>>> >>>> >>>> >>>> op 03-02-16 15:57, Rolf-Werner Eilert schreef: >>>>> Hi Roel, >>>>> >>>>> The way printing is managed in Gambas3 is completely different in one >>>>> way: You have to tell the number of pages beforehand, then printing runs >>>>> automatically page for page. There is one help page that gives a rough >>>>> overview. >>>>> >>>>> Why do you want to clear a page? Your code will have to check what to >>>>> print on each page while it is printing, and you cannot stop until all >>>>> pages have been printed. >>>>> >>>>> In my case, the problem was how to print tables of random length. >>>>> Gambas2 was "simple": The program just printed a table line for line, >>>>> then initiated a new page when the table had reached the lower edge. >>>>> >>>>> Now I found this solution for Gambas3: The table will start at a given >>>>> position on the page. There are functions that I could use to measure >>>>> the exact height of each table line. It sums up until it finds it will >>>>> hit the lower end, then save the number of this line in a list, go on to >>>>> the next end of page and so on... After measuring and counting, the >>>>> number of entries in the list will tell how many pages are needed, and >>>>> printing can be started. >>>>> >>>>> I found that the new way of printing is way faster than the old one. It >>>>> is in fact so fast that I could simply print into a temporary pdf file, >>>>> then use this file for a preview. When the user hits OK, this pdf is >>>>> sent to the printer. >>>>> >>>>> On the other hand, I had to re-think a number of functions and when this >>>>> will happen before that etc., and still haven't completely finished :) >>>>> >>>>> Regards >>>>> Rolf >>>>> >>>>> Am 03.02.2016 12:03, schrieb Roel Touwen: >>>>>> Hi all, >>>>>> >>>>>> I'm converting software from Gambas 2 to 3. Printing seems to be very >>>>>> very different in Gambas 3. >>>>>> >>>>>> Has anyone a sample of printing more pages? So also clearing the page etc. >>>>>> >>>>>> Thanks for now. >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Roel >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> 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&iu=/4140 >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at 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&iu=/4140 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at 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&iu=/4140 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at 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&iu=/4140 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at 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&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at 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&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Wed Feb 3 20:15:27 2016 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 3 Feb 2016 14:45:27 -0430 Subject: [Gambas-user] wiki : frombase64 are since 3.2 or 3.7 ? correction on wiki Message-ID: <CALci+FRUqJN=G_xyyDt5yzN_=ew9swFYx3t83ybZOYms6hWq9g@...627...> in string function table said that are since 3.7 in individual page sais that are since 3.2 ( http://gambaswiki.org/wiki/lang/frombase64 ) seems the FromBase64 are a alias to *UnBase64 so wiki must be paste that code?* [[ info @{since 3.7} The FromBase64 its and alias for. ]] Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From bugtracker at ...3416... Wed Feb 3 23:48:28 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 22:48:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #891: IDE crash if new library path does not exist Message-ID: <BUG891@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.891&from=L21haW4- bruce BRUEN reported a new bug. Summary ------- IDE crash if new library path does not exist Type : Bug Priority : High Gambas version : 3.8.90 (TRUNK) Product : Development Environment Description ----------- If ~/.local/share/gambas3/lib does not exist the IDE crashes when trying to use the project properties Libraries tab. e.g. for an existing project if I try to update the location/version of an existing library the IDE fails at line 45 of FSelectLibrary.SelectLibraries with a "File or Directory does not exist" error. I am NOT trying to debug a library in the IDE here. We DO NOT use, nor have any need to use a user based location for libraries. All our development efforts involve projects located on SHARED filesystems, not in individuals own home directories. From bugtracker at ...3416... Wed Feb 3 23:53:36 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 Feb 2016 22:53:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #892: ~/.local/share/gambas3/lib is empty Message-ID: <BUG892@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.892&from=L21haW4- bruce BRUEN reported a new bug. Summary ------- ~/.local/share/gambas3/lib is empty Type : Bug Priority : High Gambas version : 3.8.90 (TRUNK) Product : Development Environment Description ----------- The IDE cannot find any libraries. I am NOT trying to debug a library. I am trying to develop a project using the PRODUCTION version of a libary, i.e, the version in /usr/local/bin. The IDE tells me there are NO libraries found on my system. WHICH IS CORRECT! THEY ARE IN A SHARED DIRECTORY ON A SHARED FILESYSTEM! (NOT HAPPY!) From eilert-sprachen at ...221... Thu Feb 4 13:07:18 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 04 Feb 2016 13:07:18 +0100 Subject: [Gambas-user] File mode syntax Message-ID: <56B33EF6.9000309@...221...> Hi folks, I stumbled over this one: The help page about File Mode Syntax (for Chmod and Chgrp) says that file mode has to be a string with 9 characters. The table lists them. I can leave out or taint random positions by unknown characters... but it does not say which of the given characters are interpreted if I leave out some of them. If I write "rwx", is this 1,2,3 (user)? And "rwx...r--" or "rwx###r--" would mean "rwx for user, no change in group, and read-only for others? And I cannot simply set "660", right? Thanks for your insight... Rolf From taboege at ...626... Thu Feb 4 14:59:49 2016 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 Feb 2016 14:59:49 +0100 Subject: [Gambas-user] File mode syntax In-Reply-To: <56B33EF6.9000309@...221...> References: <56B33EF6.9000309@...221...> Message-ID: <20160204135949.GB650@...2774...> On Thu, 04 Feb 2016, Rolf-Werner Eilert wrote: > Hi folks, I stumbled over this one: > > The help page about File Mode Syntax (for Chmod and Chgrp) says that > file mode has to be a string with 9 characters. The table lists them. > > I can leave out or taint random positions by unknown characters... but > it does not say which of the given characters are interpreted if I leave > out some of them. > > If I write "rwx", is this 1,2,3 (user)? And "rwx...r--" or "rwx###r--" > would mean "rwx for user, no change in group, and read-only for others? > > And I cannot simply set "660", right? > > Thanks for your insight... > I can't tell you what is the intended behaviour but the attached project shows that: - "rwx" alone sets the owner bits, i.e. the first block, - "r+-*/x--" sets owner's "r" and group's "x" and leaves owner's "w" and group's "r" unchanged (the "+" and "/" characters) and resets everything else because these have a "-", - "rrr" only sets the owner's "r", - octal modes such as "660" do not work. Included is also a function which converts a string of three octals into the Chmod mode syntax. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: chmod-test-0.0.1.tar.gz Type: application/octet-stream Size: 11558 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160204/22ce3813/attachment.obj> From eilert-sprachen at ...221... Thu Feb 4 15:34:56 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 04 Feb 2016 15:34:56 +0100 Subject: [Gambas-user] File mode syntax In-Reply-To: <20160204135949.GB650@...2774...> References: <56B33EF6.9000309@...221...> <20160204135949.GB650@...2774...> Message-ID: <56B36190.50304@...221...> Am 04.02.2016 14:59, schrieb Tobias Boege: > On Thu, 04 Feb 2016, Rolf-Werner Eilert wrote: >> Hi folks, I stumbled over this one: >> >> The help page about File Mode Syntax (for Chmod and Chgrp) says that >> file mode has to be a string with 9 characters. The table lists them. >> >> I can leave out or taint random positions by unknown characters... but >> it does not say which of the given characters are interpreted if I leave >> out some of them. >> >> If I write "rwx", is this 1,2,3 (user)? And "rwx...r--" or "rwx###r--" >> would mean "rwx for user, no change in group, and read-only for others? >> >> And I cannot simply set "660", right? >> >> Thanks for your insight... >> > I can't tell you what is the intended behaviour but the attached project > shows that: > > - "rwx" alone sets the owner bits, i.e. the first block, > - "r+-*/x--" sets owner's "r" and group's "x" and leaves owner's "w" and > group's "r" unchanged (the "+" and "/" characters) and resets everything > else because these have a "-", > - "rrr" only sets the owner's "r", > - octal modes such as "660" do not work. > > Included is also a function which converts a string of three octals into the > Chmod mode syntax. > > Regards, > Tobi > > Ah, thank you very much, Tobias, that will help! Regards Rolf From bugtracker at ...3416... Thu Feb 4 19:05:56 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 04 Feb 2016 18:05:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? Message-ID: <BUG893@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Tobias BOEGE reported a new bug. Summary ------- Variables become Null after "Unable to load class file" error? Type : Bug Priority : Medium Gambas version : 3.8.90 (TRUNK) Product : Unknown Description ----------- Hi Benoit, I hit a bug again, approximately this[0] level of weirdness; it's actually the same project, this time apparently not related to Settings, but again deep down in the interpreter. The bug works as follows: I have a library which depends on gb.image(.io) to load and save images. It contains a line such as Try hImage = Image.Load(...) in one of its modules. Now I use this library in a project which does *not* have gb.image(.io) ticked. Apparently when the library is loaded, its dependencies gb.image(.io) are *not* automatically loaded, too. It so happens that the above line would fail (if I omit the Try) with an error: Cannot load class 'Image': Unable to load class file but the Try maskes this error away. I find this strange to begin with. Shouldn't the library's dependencies be loaded, too, even if they are not explicit dependencies of the project? But the actual error shows itself a little later. After this failed Try statement, if you only have a deep enough function call stack, variables in non-exported modules magically become Null. (If the module is exported, the variables retain their values.) I attach two projects which demonstrate this behaviour (at least on my system and I have just compiled Gambas from scratch after completely uninstalling it). The one, "image-lib" is the library. You compile it and install it with the new library mechanism, then open the other project, "image-test", and add the library there. The main code is Public Sub Main() MyModule.Init("xyz") ' Initialise a variable in a non-exported module Module1.Init() ' Raise the Try'd image class loading error Debug MyModule.Str ' Show that the variable is still good MyOther.Test(100) ' Show the variable after 100 recursive calls, where it is somehow Null End yields Main.Main.6: xyz MyOther.Test.5: Regards, Tobi [0] http://sourceforge.net/p/gambas/mailman/message/34523004/ From bugtracker at ...3416... Thu Feb 4 19:06:08 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 04 Feb 2016 18:06:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160204190608159@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Tobias BOEGE added an attachment: image-lib-0.2.4.tar.gz From bugtracker at ...3416... Thu Feb 4 19:06:13 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 04 Feb 2016 18:06:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160204190612707@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Tobias BOEGE added an attachment: image-test-0.0.2.tar.gz From bugtracker at ...3416... Sat Feb 6 18:25:15 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 06 Feb 2016 17:25:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #894: gb.xml: XmlDocument.FromString(Null) crashes Message-ID: <BUG894@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.894&from=L21haW4- Tobias BOEGE reported a new bug. Summary ------- gb.xml: XmlDocument.FromString(Null) crashes Type : Bug Priority : Low Gambas version : 3.8.90 (TRUNK) Product : Unknown Description ----------- Hi Adrien, gb.xml crashes with: Public Sub Main() Dim h As New XmlDocument h.FromString(Null) End (Note that h.FromString("") works.) gdb indicates that some arithmetic in your utils.cpp:memchrs() is wrong (from frame #2 to #1 the length increases from 0 to 1 which is deadly for NULL pointers): Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7abb118 in memchr () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff7abb118 in memchr () from /usr/lib/libc.so.6 #1 0x00007ffff63bf630 in memchr (__n=1, __c=<optimized out>, __s=0x0) at /usr/include/string.h:81 #2 memchrs (source=0x0, lensource=0, comp=0x7ffff63c5964 "<?xml ", lencomp=6) at utils.cpp:142 #3 0x00007ffff63c0f9a in XMLDocument_SetContent (doc=0x68f420, content=0x0, len=0) at document.cpp:117 #4 0x00007ffff63c31fc in CDocument_fromString (_object=<optimized out>, _param=<optimized out>) at CDocument.cpp:94 #5 0x0000000000431282 in EXEC_native () at gbx_exec.c:1366 #6 0x0000000000431b15 in EXEC_native_check (defined=<optimized out>) at gbx_exec.c:1163 #7 0x000000000043b65b in EXEC_loop () at gbx_exec_loop.c:1159 #8 0x00000000004300e5 in EXEC_function_loop () at gbx_exec.c:931 #9 0x0000000000430a1e in EXEC_function_real () at gbx_exec.c:895 #10 0x0000000000432094 in EXEC_public_desc (class=<optimized out>, object=object at ...2861...=0x0, desc=desc at ...2861...=0x68ee78, nparam=nparam at ...2861...=0) at gbx_exec.c:1620 #11 0x0000000000404869 in main (argc=1, argv=0x7fffffffe678) at gbx.c:416 Regards, Tobi From bugtracker at ...3416... Sat Feb 6 18:25:25 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 06 Feb 2016 17:25:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #894: gb.xml: XmlDocument.FromString(Null) crashes In-Reply-To: <BUG894@...3416...> References: <BUG894@...3416...> Message-ID: <BUG894:20160206182524748@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.894&from=L21haW4- Tobias BOEGE added an attachment: xml-bug-0.0.1.tar.gz From ujlain at ...626... Mon Feb 8 06:21:12 2016 From: ujlain at ...626... (Vinode Singh Ujlain) Date: Mon, 8 Feb 2016 10:51:12 +0530 Subject: [Gambas-user] Audio tone generator using sdl2.audio In-Reply-To: <CAAi2NF5RN4XZhUgMPRe+LbNbncuMGvKRcDEWiJPLUfndzzqr3Q@...627...> References: <CAAi2NF7XGRcSDksOa8gsP2qz2D-hjXo1WgZRB3_uGrNSGC-43A@...627...> <CAAi2NF7hMsN=qARo4gOK5Xh_2nFUJXM_9F9bQ7xg01GNDnW2wA@...627...> <CAAi2NF5RN4XZhUgMPRe+LbNbncuMGvKRcDEWiJPLUfndzzqr3Q@...627...> Message-ID: <CAAi2NF7vn+54oNFptpPS+U7OvySq_spAQgQvjW=j_b1ehpp_dg@...627...> I am trying to create a simple audio range tone generator i.e generate a tone between 20 to 20 khz on laptop. In absence of adequate documentation or any similar sample on sdl component , I am not able to make any headway. Semi finished code placed at attachment. Could someone aware of sdl internals provide some pointers so that I could complete this simple application ? Any other approach i.e not using sdl possible ?? Regards Vinode Singh Ujlain -------------- next part -------------- A non-text attachment was scrubbed... Name: AudioToneGenerator.tar.gz Type: application/x-gzip Size: 12056 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160208/a7d314d4/attachment.bin> From mmcg29440 at ...3163... Mon Feb 8 17:26:59 2016 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Mon, 8 Feb 2016 11:26:59 -0500 Subject: [Gambas-user] Problems running project.gambas ex Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAAO2uYRKDbc1BsBJNV275Y2ABAAAAAA==@frontier.com> Hello, I have a Gambas project that I would like to run as an executable from the desktop. I'm using the latest version of Gambas under Mint Rebecca 17.1. When run in the IDE, for debugging, I have no problem getting the project to run. When I make an executable I put it in the project directory with a shortcut on the desktop. The files are project.gambas and project.desktop. The permissions on the project.gambas file are rwx,rwx,rwx and marty, marty. The project.desktop file is set to rw-,r--,r-and Marty, Marty. When I click on the desktop icon the cursor shows that something is happening but the project does not run; the cursor just goes away. Same occurs if I go to the project directory and try form there. The OS tries to load the project but, does not run it. No error messages occur. I'm sure I've missed something but, what? All responses are appreciated. Regards, Marty From Karl.Reinl at ...2345... Mon Feb 8 17:38:36 2016 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 08 Feb 2016 17:38:36 +0100 Subject: [Gambas-user] Problems running project.gambas ex In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAAO2uYRKDbc1BsBJNV275Y2ABAAAAAA==@frontier.com> References: <!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAAO2uYRKDbc1BsBJNV275Y2ABAAAAAA==@frontier.com> Message-ID: <1454949516.3622.2.camel@...40...> Am Montag, den 08.02.2016, 11:26 -0500 schrieb Martin McGlensey: > Hello, > > > > I have a Gambas project that I would like to run as an executable from the > desktop. I'm using the latest version of Gambas under Mint Rebecca 17.1. > > When run in the IDE, for debugging, I have no problem getting the project to > run. When I make an executable I put it in the project directory with a > shortcut on the desktop. The files are project.gambas and project.desktop. > The permissions on the project.gambas file are rwx,rwx,rwx and marty, marty. > The project.desktop file is set to rw-,r--,r-and Marty, Marty. > > > > When I click on the desktop icon the cursor shows that something is > happening but the project does not run; the cursor just goes away. Same > occurs if I go to the project directory and try form there. The OS tries to > load the project but, does not run it. No error messages occur. > > > > I'm sure I've missed something but, what? > > > > All responses are appreciated. > > > > Regards, > > Marty Salut Marty, run it in a terminal ./myproject.gambas and look whats happens. -- Amicalement Charlie From gambas.fr at ...626... Tue Feb 9 12:51:42 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 9 Feb 2016 12:51:42 +0100 Subject: [Gambas-user] Audio tone generator using sdl2.audio In-Reply-To: <CAAi2NF7vn+54oNFptpPS+U7OvySq_spAQgQvjW=j_b1ehpp_dg@...627...> References: <CAAi2NF7XGRcSDksOa8gsP2qz2D-hjXo1WgZRB3_uGrNSGC-43A@...627...> <CAAi2NF7hMsN=qARo4gOK5Xh_2nFUJXM_9F9bQ7xg01GNDnW2wA@...627...> <CAAi2NF5RN4XZhUgMPRe+LbNbncuMGvKRcDEWiJPLUfndzzqr3Q@...627...> <CAAi2NF7vn+54oNFptpPS+U7OvySq_spAQgQvjW=j_b1ehpp_dg@...627...> Message-ID: <CAFkCsL7nFGzSNfeFS1NLVJaWiVxT23zFjeLx=4hP327AHkXX6Q@...627...> Gb.openal ? Le 8 f?vr. 2016 06:23, "Vinode Singh Ujlain" <ujlain at ...626...> a ?crit : > I am trying to create a simple audio range tone generator i.e generate a > tone between 20 to 20 khz on laptop. > In absence of adequate documentation or any similar sample on sdl component > , I am not able to make any headway. > Semi finished code placed at attachment. Could someone aware of sdl > internals provide some pointers so that I could complete this simple > application ? > > Any other approach i.e not using sdl possible ?? > > Regards > Vinode Singh Ujlain > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Tue Feb 9 14:07:00 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 9 Feb 2016 14:07:00 +0100 Subject: [Gambas-user] Audio tone generator using sdl2.audio In-Reply-To: <CAFkCsL7nFGzSNfeFS1NLVJaWiVxT23zFjeLx=4hP327AHkXX6Q@...627...> References: <CAAi2NF7XGRcSDksOa8gsP2qz2D-hjXo1WgZRB3_uGrNSGC-43A@...627...> <CAAi2NF7hMsN=qARo4gOK5Xh_2nFUJXM_9F9bQ7xg01GNDnW2wA@...627...> <CAAi2NF5RN4XZhUgMPRe+LbNbncuMGvKRcDEWiJPLUfndzzqr3Q@...627...> <CAAi2NF7vn+54oNFptpPS+U7OvySq_spAQgQvjW=j_b1ehpp_dg@...627...> <CAFkCsL7nFGzSNfeFS1NLVJaWiVxT23zFjeLx=4hP327AHkXX6Q@...627...> Message-ID: <CAFkCsL4xCeygiOx2AQNnksahqOtvp4Lxf=hmWenjgydNdEzpfw@...627...> You have an example from Kevin (Height Virtues) on the Farm 2016-02-09 12:51 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>: > Gb.openal ? > > Le 8 f?vr. 2016 06:23, "Vinode Singh Ujlain" <ujlain at ...626...> a ?crit : >> >> I am trying to create a simple audio range tone generator i.e generate a >> tone between 20 to 20 khz on laptop. >> In absence of adequate documentation or any similar sample on sdl >> component >> , I am not able to make any headway. >> Semi finished code placed at attachment. Could someone aware of sdl >> internals provide some pointers so that I could complete this simple >> application ? >> >> Any other approach i.e not using sdl possible ?? >> >> Regards >> Vinode Singh Ujlain >> >> >> ------------------------------------------------------------------------------ >> 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=272487151&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- Fabien Bodard From bugtracker at ...3416... Tue Feb 9 19:11:26 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 09 Feb 2016 18:11:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160209191125310@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #7 by Beno?t MINISINI: To be able to use a library, you must open the library project and make an executable. Did you do that? From bugtracker at ...3416... Tue Feb 9 20:21:55 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 09 Feb 2016 19:21:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160209202154971@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #8 by Charlie REINL: yes I made an executable uuidgen.gambas and I also found /home/charlie/.local/share/gambas3/lib/charlie/uuidgen:0.3.gambas. Both file have same timestamp and size. My project which is using that lib, works well in the IDE, but not as executable, from where the screenshot is made. have I missed something From rterry at ...1823... Wed Feb 10 11:18:23 2016 From: rterry at ...1823... (richard terry) Date: Wed, 10 Feb 2016 21:18:23 +1100 Subject: [Gambas-user] Video question Message-ID: <56BB0E6F.7090709@...1823...> Not sure if my last question reached the list, however will repeat expand. Can any control in gambas actually stream video from a URL like an internal office IP camera? Thanks richard From gambas at ...1... Wed Feb 10 11:48:44 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 10 Feb 2016 11:48:44 +0100 Subject: [Gambas-user] Video question In-Reply-To: <56BB0E6F.7090709@...1823...> References: <56BB0E6F.7090709@...1823...> Message-ID: <56BB158C.5040704@...1...> Le 10/02/2016 11:18, richard terry a ?crit : > Not sure if my last question reached the list, however will repeat expand. > > Can any control in gambas actually stream video from a URL like an > internal office IP camera? > > Thanks > > richard > If GStreamer can do that, then gb.media can do that. -- Beno?t Minisini From rterry at ...1823... Wed Feb 10 12:22:47 2016 From: rterry at ...1823... (richard terry) Date: Wed, 10 Feb 2016 22:22:47 +1100 Subject: [Gambas-user] Video question In-Reply-To: <56BB158C.5040704@...1...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> Message-ID: <56BB1D87.6040408@...1823...> On 10/02/16 21:48, Beno?t Minisini wrote: > gb.media can do that. MediaView1.URL = Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") Hi Benoit, This doesn't work ?am I missing something? What I wanted to do was to stream an i-p camera from my front office to my room with a little media control in the corner of a window. thanks richard From gambas at ...1... Wed Feb 10 12:24:52 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 10 Feb 2016 12:24:52 +0100 Subject: [Gambas-user] Video question In-Reply-To: <56BB1D87.6040408@...1823...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> Message-ID: <56BB1E04.4000901@...1...> Le 10/02/2016 12:22, richard terry a ?crit : > On 10/02/16 21:48, Beno?t Minisini wrote: >> gb.media can do that. > MediaView1.URL = > Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") > > Hi Benoit, > > This doesn't work ?am I missing something? > > What I wanted to do was to stream an i-p camera from my front office to > my room with a little media control in the corner of a window. > thanks > > richard > Are you kidding? 'https://www.youtube.com/watch?v=h-cUFt2t0IY' is "youtube", the website. Not the url of a streamed video! -- Beno?t Minisini From rterry at ...1823... Wed Feb 10 12:37:27 2016 From: rterry at ...1823... (richard terry) Date: Wed, 10 Feb 2016 22:37:27 +1100 Subject: [Gambas-user] Video question In-Reply-To: <56BB1E04.4000901@...1...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> <56BB1E04.4000901@...1...> Message-ID: <56BB20F7.7030301@...1823...> On 10/02/16 22:24, Beno?t Minisini wrote: > Le 10/02/2016 12:22, richard terry a ?crit : >> On 10/02/16 21:48, Beno?t Minisini wrote: >>> gb.media can do that. >> MediaView1.URL = >> Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") >> >> Hi Benoit, >> >> This doesn't work ?am I missing something? >> >> What I wanted to do was to stream an i-p camera from my front office to >> my room with a little media control in the corner of a window. >> thanks >> >> richard >> > Are you kidding? 'https://www.youtube.com/watch?v=h-cUFt2t0IY' is > "youtube", the website. Not the url of a streamed video! Benoit you should know by now I nothing of these things. So are you saying that if you point the control to a i-p camera if will work?. And also, how come it doesn't play a URL of a video? Just remember I'm ignorant of all things like this. Not trying to be stupid. richard > From gambas at ...1... Wed Feb 10 12:42:57 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 10 Feb 2016 12:42:57 +0100 Subject: [Gambas-user] Video question In-Reply-To: <56BB20F7.7030301@...1823...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> <56BB1E04.4000901@...1...> <56BB20F7.7030301@...1823...> Message-ID: <56BB2241.6050807@...1...> Le 10/02/2016 12:37, richard terry a ?crit : > On 10/02/16 22:24, Beno?t Minisini wrote: >> Le 10/02/2016 12:22, richard terry a ?crit : >>> On 10/02/16 21:48, Beno?t Minisini wrote: >>>> gb.media can do that. >>> MediaView1.URL = >>> Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") >>> >>> Hi Benoit, >>> >>> This doesn't work ?am I missing something? >>> >>> What I wanted to do was to stream an i-p camera from my front office to >>> my room with a little media control in the corner of a window. >>> thanks >>> >>> richard >>> >> Are you kidding? 'https://www.youtube.com/watch?v=h-cUFt2t0IY' is >> "youtube", the website. Not the url of a streamed video! > Benoit you should know by now I nothing of these things. So are you > saying that if you point the control to a i-p camera if will work?. And > also, how come it doesn't play a URL of a video? Just remember I'm > ignorant of all things like this. Not trying to be stupid. > > richard > I mean you should check what GStreamer can do. Read the "Examples" paragraph at http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-playbin.html to see what I mean. The source video is specified by an URI. Then you must find which URI should be written so that GStreamer read your streamed video. You must know the source URL of your camera, it should be enough. -- Beno?t Minisini From siuksliu.statine at ...626... Wed Feb 10 13:16:26 2016 From: siuksliu.statine at ...626... (Small Planet Airlines) Date: Wed, 10 Feb 2016 14:16:26 +0200 Subject: [Gambas-user] Gambas charting tutorial Message-ID: <56BB2A1A.4080009@...626...> Hi everyone I've tried to write one small application containing a chart, but a tutorial was insufficient to me complete this task. Could someone to write an full example containing a chart element and only one button which shall draw x^2 function? It would be as documentation example... Thanks! From peteroc at ...178... Wed Feb 10 13:30:47 2016 From: peteroc at ...178... (Peter Roc) Date: Wed, 10 Feb 2016 13:30:47 +0100 Subject: [Gambas-user] MaskBox bug? In-Reply-To: <CAFkCsL44ugQznetN8fJQwrDcjQK+AjvKcW_ZCXMOMucKsW+kyA@...627...> References: <trinity-f5e5bc72-5c2f-40cd-b1da-7181792f59d9-1443556852298@...3504...> <20150929222520.GA24507@...2774...>, <CAFkCsL44ugQznetN8fJQwrDcjQK+AjvKcW_ZCXMOMucKsW+kyA@...627...> Message-ID: <trinity-6947dd6f-a050-4432-94b2-aa24814ea9ae-1455107446928@...3575...> Greetings. I've been doing the development of the project with the version from the ppa stable, and because it's almost done, I'm planning a demo. I replaced the ppa stable with the ppa daily and testing a simple form with the MaskBox set to [0-9], the behavior that I did reported earlier still persists. A regression perhaps? Thanks. Sent: Wednesday, September 30, 2015 at 4:11 AM From: "Fabien Bodard" <gambas.fr at ...626...> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] MaskBox bug? The bug is fixed In svn Le 30 sept. 2015 00:26, "Tobias Boege" <taboege at ...626...> a ?crit : > On Tue, 29 Sep 2015, Peter Roc wrote: > > > > Greetings. > > > > New to gambas and since I have a small project to develop decided to > study > > the language. Version 3.8.1 > > While using a MaskBox with the Mask [0-9], inserting 0 it turns out > that > > it's not displayed, I can see the cursor moving, and only a space is > left. > > Is it an expected behavior? Thanks. > > > > Peter > > I can confirm this behaviour, but I don't know if it is intended or not. In > any case you can use mask "0" for a single mandatory digit. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ---------------------------------------------------------------------------- -- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > [1]https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------------------- -- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [2]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. https://lists.sourceforge.net/lists/listinfo/gambas-user 2. https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed Feb 10 14:27:43 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 Feb 2016 15:27:43 +0200 Subject: [Gambas-user] Video question In-Reply-To: <56BB20F7.7030301@...1823...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> <56BB1E04.4000901@...1...> <56BB20F7.7030301@...1823...> Message-ID: <CAFJMe7QBSC2pSbnjX931KATNOozn3gXdSf4keoi_8FEQ32BF_A@...627...> > And also, how come it doesn't play a URL of a video? It's website containing flash application, which shows the video. You need browser to open that. What you need is URL to video stream, not URL to website containing video file in some arbitrary format. If you have website containing video stream, but it's "hidden" behind some html code, it also may not work. So, try to use URL for pure/bare stream, nothing else. Jussi From mmcg29440 at ...3163... Wed Feb 10 14:56:22 2016 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Wed, 10 Feb 2016 08:56:22 -0500 Subject: [Gambas-user] Problems running project.gambas executable(Charlie Reinl) Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAACdkxtHyKZZKhKSnxftkTq0BAAAAAA==@frontier.com> Charlie, Thanks for the lead. I found I was missing one library in the project executable directory. As you know I use DBReport as an integral part of my project. I added obfuscation.gambas to the project directory and the executable ran OK. Should I put all three components of DBReport in the executable directory? I shell out to DBReport Designer so that works OK for now. Should I add these libraries to the data section of the project code? That way, I think, they would automatically be included in the executable. When I ran the project in the terminal, after fixing it, I got the following message "Warning: 1 Allocation(s) not freed". Is this of concern and what might be the cause? Again thanks for your help. Regards, Marty From d4t4full at ...626... Wed Feb 10 15:41:28 2016 From: d4t4full at ...626... (ML) Date: Wed, 10 Feb 2016 11:41:28 -0300 Subject: [Gambas-user] Video question In-Reply-To: <56BB20F7.7030301@...1823...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> <56BB1E04.4000901@...1...> <56BB20F7.7030301@...1823...> Message-ID: <56BB4C18.3040101@...626...> On 2016-02-10 08:37, richard terry wrote: > On 10/02/16 22:24, Beno?t Minisini wrote: >> Le 10/02/2016 12:22, richard terry a ?crit : >>> On 10/02/16 21:48, Beno?t Minisini wrote: >>>> gb.media can do that. >>> MediaView1.URL = Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") >>> >>> Hi Benoit, >>> This doesn't work ?am I missing something? >>> What I wanted to do was to stream an i-p camera from my front office to >>> my room with a little media control in the corner of a window. >>> thanks >>> richard >> Are you kidding? 'https://www.youtube.com/watch?v=h-cUFt2t0IY' is >> "youtube", the website. Not the url of a streamed video! > Benoit you should know by now I nothing of these things. So are you > saying that if you point the control to a i-p camera if will work?. And > also, how come it doesn't play a URL of a video? Just remember I'm > ignorant of all things like this. Not trying to be stupid. > richard Richard, Most IP cameras come with a program to watch them. This is usually Windows. You can also use a browser, like Firefox, and the camera's URL will ask you for your credentials (user/pass). All this you know. Android apps -for example- ask you for the make/model of the cam, its URL and credentials to connect and stream the video. The point here is that you should check the URL of the page with the streaming video, after you connected successfully. For example, I do have a cam. I can use *http://xxxxxxxxxxxxx/index.html* to authenticate and connect. That's the cam main page, allows me to select use IE/FFox/Chrome, etc. Once I select Firefox, I get to see the cam video at *http://xxxxxxxxxxxxx/monitor2.html*. But even that is a page with some decoration and the video in the middle. I then right-click the streaming video itself and select '*Copy Image Location*'. This gives me the URL to access the video itself. In my particular cam's case (credentials changed, of course), it is *http://xxxxxxxxxxxxx/videostream.cgi?user=myuser&pwd=mypass*. Your cam's URL may (WILL!) change if it is a different make/model, but the steps are the same: 1- Authenticate and connect with browser and navigate to the video. 2- From the video, if possible, get the stream's URL via right-click/Copy Image Location in the browser. Beware that most (chinese) IP-cams will send your credentials in plain text in the URL, as shown in my case above. It can also happen that the cam does not send user/pass in the URL because it uses browser cookies. In such cases, you may need to prepend it to the URL in this form: *http://myuser:mypass at ...3576.../videostream.cgi *but, as you can see it also is sent in clear text. I'd recommend using a view-only user/pass combination. Disclaimer: I got this but did not test that it works with Gambas. It does work with several Android phones and browsers, though. Regards, zxMarce. From Karl.Reinl at ...2345... Wed Feb 10 16:51:44 2016 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 10 Feb 2016 16:51:44 +0100 Subject: [Gambas-user] Problems running project.gambas executable(Charlie Reinl) In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAACdkxtHyKZZKhKSnxftkTq0BAAAAAA==@frontier.com> References: <!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAACdkxtHyKZZKhKSnxftkTq0BAAAAAA==@frontier.com> Message-ID: <1455119504.3719.7.camel@...40...> Am Mittwoch, den 10.02.2016, 08:56 -0500 schrieb Martin McGlensey: > Charlie, > > > > Thanks for the lead. I found I was missing one library in the project > executable directory. As you know I use DBReport as an integral part of my > project. I added obfuscation.gambas to the project directory and the > executable ran OK. Should I put all three components of DBReport in the > executable directory? I shell out to DBReport Designer so that works OK for > now. Should I add these libraries to the data section of the project code? > That way, I think, they would automatically be included in the executable. > When I ran the project in the terminal, after fixing it, I got the > following message "Warning: 1 Allocation(s) not freed". Is this of concern > and what might be the cause? > > > > Again thanks for your help. > > > > Regards, > Marty Salut Marty, you said that you have updated gambas, the svn-trunc version or the official 3.8.4 from the shrine? If official 3.8.4 is used, install all DBReport parts as link to the executable at /usr/bin (you can use instGA3 from the Software-Farm) and the add all to your project. But you can also place them beside your executable. -- Amicalement Charlie From bagonergi at ...626... Wed Feb 10 17:35:20 2016 From: bagonergi at ...626... (Gianluigi) Date: Wed, 10 Feb 2016 17:35:20 +0100 Subject: [Gambas-user] Packages rejected by Ubuntu Message-ID: <CAJ2rqFbQ-100hUDsZJD7a3148p-pVB1wF4MRw573kyZWvcecWw@...627...> I can not update by PPA Gambas on Ubuntu 14.04 due to unreliable libraries. Regards Gianluigi [System] Gambas=3.8.90 OperatingSystem=Linux Kernel=3.13.0-54-generic Architecture=x86 Distribution=Ubuntu 14.04.3 LTS Desktop=GNOME Theme=Gtk Language=it_IT.UTF-8 Memory=3020M [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 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=*/usr/bin/* COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ObhSAAStY0 DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=2257 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-4lTYkC GNOME_KEYRING_PID= GPG_AGENT_INFO=/run/user/1000/keyring-4lTYkC/gpg:0:1 GTK_IM_MODULE=ibus GTK_MODULES=overlay-scrollbar:unity-gtk-module HOME=*/home/*<hostname> IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=it_IT.UTF-8 LANGUAGE=it LOGNAME=<hostname> MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=*/home/*<hostname> QT4_IM_MODULE=xim QT_IM_MODULE=ibus QT_QPA_PLATFORMTHEME=appmenu-qt5 SELINUX_INIT=YES SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/<hostname>:@*/tmp/*.ICE-unix/1287,unix/<hostname>: */tmp/*.ICE-unix/1287 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring-4lTYkC/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=*/usr/share/locale/* TZ=:/etc/localtime UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1162 USER=<hostname> XAUTHORITY=*/home/*<hostname>/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS= */usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/* XDG_GREETER_DATA_DIR=*/var/lib/lightdm-data/*<hostname> XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 XMODIFIERS=@im=ibus From gambas at ...1... Wed Feb 10 17:56:09 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 10 Feb 2016 17:56:09 +0100 Subject: [Gambas-user] Packages rejected by Ubuntu In-Reply-To: <CAJ2rqFbQ-100hUDsZJD7a3148p-pVB1wF4MRw573kyZWvcecWw@...627...> References: <CAJ2rqFbQ-100hUDsZJD7a3148p-pVB1wF4MRw573kyZWvcecWw@...627...> Message-ID: <56BB6BA9.2080001@...1...> Le 10/02/2016 17:35, Gianluigi a ?crit : > I can not update by PPA Gambas on Ubuntu 14.04 due to unreliable libraries. > Regards > Gianluigi > ?? What's the problem exactly? -- Beno?t Minisini From rterry at ...1823... Wed Feb 10 22:30:24 2016 From: rterry at ...1823... (richard terry) Date: Thu, 11 Feb 2016 08:30:24 +1100 Subject: [Gambas-user] Video question In-Reply-To: <56BB4C18.3040101@...626...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> <56BB1E04.4000901@...1...> <56BB20F7.7030301@...1823...> <56BB4C18.3040101@...626...> Message-ID: <56BBABF0.1020100@...1823...> On 11/02/16 01:41, ML wrote: > On 2016-02-10 08:37, richard terry wrote: >> On 10/02/16 22:24, Beno?t Minisini wrote: >>> Le 10/02/2016 12:22, richard terry a ?crit : >>>> On 10/02/16 21:48, Beno?t Minisini wrote: >>>>> gb.media can do that. >>>> MediaView1.URL = Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") >>>> >>>> Hi Benoit, >>>> This doesn't work ?am I missing something? >>>> What I wanted to do was to stream an i-p camera from my front office to >>>> my room with a little media control in the corner of a window. >>>> thanks >>>> richard >>> Are you kidding? 'https://www.youtube.com/watch?v=h-cUFt2t0IY' is >>> "youtube", the website. Not the url of a streamed video! >> Benoit you should know by now I nothing of these things. So are you >> saying that if you point the control to a i-p camera if will work?. And >> also, how come it doesn't play a URL of a video? Just remember I'm >> ignorant of all things like this. Not trying to be stupid. >> richard > Richard, > > Most IP cameras come with a program to watch them. This is usually Windows. > You can also use a browser, like Firefox, and the camera's URL will ask > you for your credentials (user/pass). All this you know. > > Android apps -for example- ask you for the make/model of the cam, its > URL and credentials to connect and stream the video. > The point here is that you should check the URL of the page with the > streaming video, after you connected successfully. > > For example, I do have a cam. I can use > *http://xxxxxxxxxxxxx/index.html* to authenticate and connect. That's > the cam main page, allows me to select use IE/FFox/Chrome, etc. > Once I select Firefox, I get to see the cam video at > *http://xxxxxxxxxxxxx/monitor2.html*. But even that is a page with some > decoration and the video in the middle. > I then right-click the streaming video itself and select '*Copy Image > Location*'. This gives me the URL to access the video itself. > In my particular cam's case (credentials changed, of course), it is > *http://xxxxxxxxxxxxx/videostream.cgi?user=myuser&pwd=mypass*. > Your cam's URL may (WILL!) change if it is a different make/model, but > the steps are the same: > 1- Authenticate and connect with browser and navigate to the video. > 2- From the video, if possible, get the stream's URL via > right-click/Copy Image Location in the browser. > Beware that most (chinese) IP-cams will send your credentials in plain > text in the URL, as shown in my case above. > > It can also happen that the cam does not send user/pass in the URL > because it uses browser cookies. In such cases, you may need to prepend > it to the URL in this form: > *http://myuser:mypass at ...3576.../videostream.cgi > *but, as you can see it also is sent in clear text. I'd recommend using > a view-only user/pass combination. > > Disclaimer: > I got this but did not test that it works with Gambas. It does work with > several Android phones and browsers, though. > > Regards, > zxMarce. thanks for the detailed description, that makes sense now Regards Richard > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Feb 10 22:41:47 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 10 Feb 2016 22:41:47 +0100 Subject: [Gambas-user] Video question In-Reply-To: <56BBABF0.1020100@...1823...> References: <56BB0E6F.7090709@...1823...> <56BB158C.5040704@...1...> <56BB1D87.6040408@...1823...> <56BB1E04.4000901@...1...> <56BB20F7.7030301@...1823...> <56BB4C18.3040101@...626...> <56BBABF0.1020100@...1823...> Message-ID: <56BBAE9B.9070209@...1...> Le 10/02/2016 22:30, richard terry a ?crit : > On 11/02/16 01:41, ML wrote: >> On 2016-02-10 08:37, richard terry wrote: >>> On 10/02/16 22:24, Beno?t Minisini wrote: >>>> Le 10/02/2016 12:22, richard terry a ?crit : >>>>> On 10/02/16 21:48, Beno?t Minisini wrote: >>>>>> gb.media can do that. >>>>> MediaView1.URL = Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY") >>>>> >>>>> Hi Benoit, >>>>> This doesn't work ?am I missing something? >>>>> What I wanted to do was to stream an i-p camera from my front office to >>>>> my room with a little media control in the corner of a window. >>>>> thanks >>>>> richard >>>> Are you kidding? 'https://www.youtube.com/watch?v=h-cUFt2t0IY' is >>>> "youtube", the website. Not the url of a streamed video! >>> Benoit you should know by now I nothing of these things. So are you >>> saying that if you point the control to a i-p camera if will work?. And >>> also, how come it doesn't play a URL of a video? Just remember I'm >>> ignorant of all things like this. Not trying to be stupid. >>> richard >> Richard, >> >> Most IP cameras come with a program to watch them. This is usually Windows. >> You can also use a browser, like Firefox, and the camera's URL will ask >> you for your credentials (user/pass). All this you know. >> >> Android apps -for example- ask you for the make/model of the cam, its >> URL and credentials to connect and stream the video. >> The point here is that you should check the URL of the page with the >> streaming video, after you connected successfully. >> >> For example, I do have a cam. I can use >> *http://xxxxxxxxxxxxx/index.html* to authenticate and connect. That's >> the cam main page, allows me to select use IE/FFox/Chrome, etc. >> Once I select Firefox, I get to see the cam video at >> *http://xxxxxxxxxxxxx/monitor2.html*. But even that is a page with some >> decoration and the video in the middle. >> I then right-click the streaming video itself and select '*Copy Image >> Location*'. This gives me the URL to access the video itself. >> In my particular cam's case (credentials changed, of course), it is >> *http://xxxxxxxxxxxxx/videostream.cgi?user=myuser&pwd=mypass*. >> Your cam's URL may (WILL!) change if it is a different make/model, but >> the steps are the same: >> 1- Authenticate and connect with browser and navigate to the video. >> 2- From the video, if possible, get the stream's URL via >> right-click/Copy Image Location in the browser. >> Beware that most (chinese) IP-cams will send your credentials in plain >> text in the URL, as shown in my case above. >> >> It can also happen that the cam does not send user/pass in the URL >> because it uses browser cookies. In such cases, you may need to prepend >> it to the URL in this form: >> *http://myuser:mypass at ...3576.../videostream.cgi >> *but, as you can see it also is sent in clear text. I'd recommend using >> a view-only user/pass combination. >> >> Disclaimer: >> I got this but did not test that it works with Gambas. It does work with >> several Android phones and browsers, though. >> >> Regards, >> zxMarce. > > thanks for the detailed description, that makes sense now > > Regards > > Richard > And note that I made a 'gb.media.form' component that provides a media player control that allows you to play any GStreamer URL without having to deal with the internals. You just have to find which URL to assign to the control now. Maybe "http://" URLs work out of the box, I don't know. -- Beno?t Minisini From bugtracker at ...3416... Wed Feb 10 22:46:09 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 10 Feb 2016 21:46:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160210224609035@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #9 by Beno?t MINISINI: Is is better now with revision #7602? Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Wed Feb 10 22:48:16 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 10 Feb 2016 21:48:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160210224816020@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Comment #1 by Beno?t MINISINI: There is no automatic dependency managed by the interpreter (unless a few one explicitly). The interpreter relies on the IDE to correctly define the dependencies inside the '.project' file. Maybe it's a weird idea, and I should try to solve dependencies inside the interpreter... From bugtracker at ...3416... Wed Feb 10 22:51:34 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 10 Feb 2016 21:51:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160210225133652@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Comment #2 by Beno?t MINISINI: Anyway, weird behavior... I look at it! Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Wed Feb 10 22:59:20 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 10 Feb 2016 21:59:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160210225919831@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Comment #3 by Beno?t MINISINI: The problem occurs even if there is no recursion at all. From bugtracker at ...3416... Thu Feb 11 02:44:42 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 11 Feb 2016 01:44:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160211024442420@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Comment #4 by Tobias BOEGE: I thought it could maybe be a reference counting issue related to error management. It would fit into the picture that things become Null (when an object is freed in Gambas, it is cleaned with zeros, right?) and stop becoming Null if the module is exported (exported modules always have a reference left, maybe?). From bugtracker at ...3416... Thu Feb 11 11:48:41 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 11 Feb 2016 10:48:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160211114840469@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Comment #10 by Charlie REINL: YES now it works immediately after making the executables From bugtracker at ...3416... Thu Feb 11 12:00:33 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 11 Feb 2016 11:00:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #889: new library management In-Reply-To: <BUG889@...3416...> References: <BUG889@...3416...> Message-ID: <BUG889:20160211120032435@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.889&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Thu Feb 11 12:02:42 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 11 Feb 2016 11:02:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #892: ~/.local/share/gambas3/lib is empty In-Reply-To: <BUG892@...3416...> References: <BUG892@...3416...> Message-ID: <BUG892:20160211120241814@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.892&from=L21haW4- Comment #1 by Beno?t MINISINI: Now libraries must be installed in <gambas prefix>/lib/gambas3/<vendor>. I.e., if you install gambas in /usr/local/bin, then the libraries must be installed in /usr/local/lib/gambas3/<vendor>, <vendor> being the name of the library vendor. From bagonergi at ...626... Thu Feb 11 13:21:47 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 11 Feb 2016 13:21:47 +0100 Subject: [Gambas-user] Packages rejected by Ubuntu In-Reply-To: <56BB6BA9.2080001@...1...> References: <CAJ2rqFbQ-100hUDsZJD7a3148p-pVB1wF4MRw573kyZWvcecWw@...627...> <56BB6BA9.2080001@...1...> Message-ID: <CAJ2rqFaTO__MAnftZRacHKyTSCHTUO4n-W2vrrct91-MRGt4Fw@...627...> Hi Benoit, I can not explain better than that. It happened yesterday to my wife when she tried the update. Ubuntu has prevented this with a message similar to the one I told you. Few minutes ago we have upgraded Ubuntu and then Gambas without any problems, excuse the noise. I think that was missing this update to the Ubuntu library before updating Gambas but I can not be more precise. Regards Gianluigi 2016-02-10 17:56 GMT+01:00 Beno?t Minisini <gambas at ...1...>: > Le 10/02/2016 17:35, Gianluigi a ?crit : > > I can not update by PPA Gambas on Ubuntu 14.04 due to unreliable > libraries. > > Regards > > Gianluigi > > > > ?? What's the problem exactly? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From peteroc at ...178... Thu Feb 11 14:00:24 2016 From: peteroc at ...178... (Peter Roc) Date: Thu, 11 Feb 2016 14:00:24 +0100 Subject: [Gambas-user] MaskBox bug? In-Reply-To: <CAFkCsL44ugQznetN8fJQwrDcjQK+AjvKcW_ZCXMOMucKsW+kyA@...627...> References: <trinity-f5e5bc72-5c2f-40cd-b1da-7181792f59d9-1443556852298@...3504...> <20150929222520.GA24507@...2774...>, <CAFkCsL44ugQznetN8fJQwrDcjQK+AjvKcW_ZCXMOMucKsW+kyA@...627...> Message-ID: <trinity-28c78aa1-d88e-4650-ae3a-748878ed6441-1455195624515@...3504...> Hi. Tested from trunk with svn. No luck. I understand this may not be a priority but, Fabien, would you be kind and attach the patch that fixes the bug? Thank you. Peter Sent: Wednesday, September 30, 2015 at 4:11 AM From: "Fabien Bodard" <gambas.fr at ...626...> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] MaskBox bug? The bug is fixed In svn Le 30 sept. 2015 00:26, "Tobias Boege" <taboege at ...626...> a ?crit : > On Tue, 29 Sep 2015, Peter Roc wrote: > > > > Greetings. > > > > New to gambas and since I have a small project to develop decided to > study > > the language. Version 3.8.1 > > While using a MaskBox with the Mask [0-9], inserting 0 it turns out > that > > it's not displayed, I can see the cursor moving, and only a space is > left. > > Is it an expected behavior? Thanks. > > > > Peter > > I can confirm this behaviour, but I don't know if it is intended or not. In > any case you can use mask "0" for a single mandatory digit. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ---------------------------------------------------------------------------- -- > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > [1]https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------------------- -- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [2]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. https://lists.sourceforge.net/lists/listinfo/gambas-user 2. https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Feb 11 15:32:26 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 11 Feb 2016 16:32:26 +0200 Subject: [Gambas-user] Packages rejected by Ubuntu In-Reply-To: <CAJ2rqFaTO__MAnftZRacHKyTSCHTUO4n-W2vrrct91-MRGt4Fw@...627...> References: <CAJ2rqFbQ-100hUDsZJD7a3148p-pVB1wF4MRw573kyZWvcecWw@...627...> <56BB6BA9.2080001@...1...> <CAJ2rqFaTO__MAnftZRacHKyTSCHTUO4n-W2vrrct91-MRGt4Fw@...627...> Message-ID: <CAFJMe7TwV_TXb9HR5hiQNmiS1A4zhy5Es3E8d=kxT_Q3GRxBcg@...627...> Please next time include screenshot of the error message. Jussi On Thu, Feb 11, 2016 at 2:21 PM, Gianluigi <bagonergi at ...626...> wrote: > Hi Benoit, > I can not explain better than that. > It happened yesterday to my wife when she tried the update. > Ubuntu has prevented this with a message similar to the one I told you. > Few minutes ago we have upgraded Ubuntu and then Gambas without any > problems, excuse the noise. > I think that was missing this update to the Ubuntu library before updating > Gambas but I can not be more precise. > Regards > Gianluigi > > 2016-02-10 17:56 GMT+01:00 Beno?t Minisini <gambas at ...1...>: > > > Le 10/02/2016 17:35, Gianluigi a ?crit : > > > I can not update by PPA Gambas on Ubuntu 14.04 due to unreliable > > libraries. > > > Regards > > > Gianluigi > > > > > > > ?? What's the problem exactly? > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > 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=272487151&iu=/4140 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Feb 11 18:15:04 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 11 Feb 2016 18:15:04 +0100 Subject: [Gambas-user] MaskBox bug? In-Reply-To: <trinity-28c78aa1-d88e-4650-ae3a-748878ed6441-1455195624515@...3504...> References: <trinity-f5e5bc72-5c2f-40cd-b1da-7181792f59d9-1443556852298@...3504...> <20150929222520.GA24507@...2774...> <CAFkCsL44ugQznetN8fJQwrDcjQK+AjvKcW_ZCXMOMucKsW+kyA@...627...> <trinity-28c78aa1-d88e-4650-ae3a-748878ed6441-1455195624515@...3504...> Message-ID: <56BCC198.5050700@...1...> Le 11/02/2016 14:00, Peter Roc a ?crit : > > Hi. > > Tested from trunk with svn. No luck. I understand this may not be a priority > but, Fabien, would you be kind and attach the patch that fixes the bug? > Thank you. > > Peter > Sorry for the delay, I will look at the problem as soon as possible. -- Beno?t Minisini From peteroc at ...178... Thu Feb 11 18:51:58 2016 From: peteroc at ...178... (Peter Roc) Date: Thu, 11 Feb 2016 18:51:58 +0100 Subject: [Gambas-user] MaskBox bug? In-Reply-To: <56BCC198.5050700@...1...> References: <trinity-f5e5bc72-5c2f-40cd-b1da-7181792f59d9-1443556852298@...3504...> <20150929222520.GA24507@...2774...> <CAFkCsL44ugQznetN8fJQwrDcjQK+AjvKcW_ZCXMOMucKsW+kyA@...627...> <trinity-28c78aa1-d88e-4650-ae3a-748878ed6441-1455195624515@...3504...>, <56BCC198.5050700@...1...> Message-ID: <trinity-532767ed-00a0-4dcb-9579-870695d57d60-1455213117926@...3577...> Beno?t, thank you for your reply. You can take your time, it's not urgent, I have tested a simple workaround, with MaskBox_Change() and Replace$ a few minutes ago. It's an inconvenience because there are several maskboxes in a few forms, but i can do the demo without the users complaining about not seing the 0. I can wait for the fix to be included in a stable release. Thank you once again. Peter Sent: Thursday, February 11, 2016 at 5:15 PM From: "Beno?t Minisini" <gambas at ...1...> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] MaskBox bug? Le 11/02/2016 14:00, Peter Roc a ?crit : > > Hi. > > Tested from trunk with svn. No luck. I understand this may not be a priority > but, Fabien, would you be kind and attach the patch that fixes the bug? > Thank you. > > Peter > Sorry for the delay, I will look at the problem as soon as possible. -- Beno?t Minisini ---------------------------------------------------------------------------- -- 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! [1]http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [2]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 2. https://lists.sourceforge.net/lists/listinfo/gambas-user From bagonergi at ...626... Thu Feb 11 23:32:17 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 11 Feb 2016 23:32:17 +0100 Subject: [Gambas-user] Packages rejected by Ubuntu In-Reply-To: <CAFJMe7TwV_TXb9HR5hiQNmiS1A4zhy5Es3E8d=kxT_Q3GRxBcg@...627...> References: <CAJ2rqFbQ-100hUDsZJD7a3148p-pVB1wF4MRw573kyZWvcecWw@...627...> <56BB6BA9.2080001@...1...> <CAJ2rqFaTO__MAnftZRacHKyTSCHTUO4n-W2vrrct91-MRGt4Fw@...627...> <CAFJMe7TwV_TXb9HR5hiQNmiS1A4zhy5Es3E8d=kxT_Q3GRxBcg@...627...> Message-ID: <CAJ2rqFZPRuNRDBZ8DctT4TEYrvr0B9T7kWEUhVZXJYsQ+in5tQ@...627...> OK, next time (I hope never) we will try to be more accurate. Gianluigi 2016-02-11 15:32 GMT+01:00 Jussi Lahtinen <jussi.lahtinen at ...626...>: > Please next time include screenshot of the error message. > > > Jussi > > On Thu, Feb 11, 2016 at 2:21 PM, Gianluigi <bagonergi at ...626...> wrote: > > > Hi Benoit, > > I can not explain better than that. > > It happened yesterday to my wife when she tried the update. > > Ubuntu has prevented this with a message similar to the one I told you. > > Few minutes ago we have upgraded Ubuntu and then Gambas without any > > problems, excuse the noise. > > I think that was missing this update to the Ubuntu library before > updating > > Gambas but I can not be more precise. > > Regards > > Gianluigi > > > > 2016-02-10 17:56 GMT+01:00 Beno?t Minisini <gambas at ...1... > >: > > > > > Le 10/02/2016 17:35, Gianluigi a ?crit : > > > > I can not update by PPA Gambas on Ubuntu 14.04 due to unreliable > > > libraries. > > > > Regards > > > > Gianluigi > > > > > > > > > > ?? What's the problem exactly? > > > > > > -- > > > Beno?t Minisini > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > 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=272487151&iu=/4140 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at 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=272487151&iu=/4140 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Fri Feb 12 13:25:46 2016 From: taboege at ...626... (Tobias Boege) Date: Fri, 12 Feb 2016 13:25:46 +0100 Subject: [Gambas-user] Concurrent gb.settings Message-ID: <20160212122546.GA745@...2774...> Hi Benoit, in my project I use a Gambas library which manages some kind of flat file database where "config" files in gb.settings format play a role. The current project I use the library in is a gb.web.form project. I got to install it on a friend's server and on its first day of runtime, I noticed that the config files got corrupted: either the whole file or some lines of them vanished. I suspect that this is due to the library saving the configs on exit. Naturally the gb.web.form project initialises and exits very often and concurrently. I must add that the project only reads the database and does not modify it, so the writing is useless. And indeed after I modified the library to not issue explicit Settings.Save()'s and refuse to modify any value in a Settings object (which would trigger the auto-save mechanism in gb.settings), the server ran for 34 hours now without a problem. Clearly I'm at fault for the file corruption here, but does this problem not sound common enough to deserve some thought about a solution inside of gb.settings? I could imagine a Settings.ReadOnly property which when set to True disables the automatic saving of configuration files in Settings._free() (and maybe cancels even explicit Settings.Save()s). That's the pattern I now have in my library, to restrict access to Settings methods. There are two things that puzzle me though: 1. Apparently gb.settings already uses lock files to counter this sort of corruption. What happened?[*] 2. How could sometimes a whole config file vanish, i.e. it is not only emptied but does not exist anymore in the filesystem. If you have no idea, maybe I can reproduce the issue... [ JFTR: whenever it happened that a part of a web page, like a background image, could not be loaded, it was an indicator that a config corruption happened. Probably the server crashed in an unhandled error (from Settings.Save()) before the file was sent. So even if I can't reproduce it, I might still verify that it is gb.settings. ] Sorry for the long mail. Some passages are just reminders for myself :-) Regards, Tobi [*] Maybe this theory makes sense: imagine three processes are trying to write the settings concurrently. The #1 gets the lock and begins writing. Now #2 kicks in and fails to get the lock. In the Finally block in Settings.Save(), it Kills #1's lock file (is that possible if #1 still holds the lock?). Then #3 can acquire the lock again and writes concurrently with #1. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From herberthguzman at ...626... Fri Feb 12 19:09:13 2016 From: herberthguzman at ...626... (herberth guzman) Date: Fri, 12 Feb 2016 12:09:13 -0600 Subject: [Gambas-user] Size Multiple Files with FileProperties Message-ID: <CAJPJa8jR3WOupP-Q_iyJX8ryBdVAztZW+XtLaOfLNiJV0wSqWA@...627...> Salut Benoit Benoit consultation. If I want to get the size of a file with FileProperties the code is: FileProperties1.Path=User.Home &/ "test.png" But I need to get the size of several Selected Files in a FileView. Is this possible.? I tried with the following code: But it is not possible. Public Sub Form_Open() FileViewDesktop.Dir = Desktop.GetDirectory("DESKTOP") ' FileViewDesktop.Mode = 2 End Public Sub FileViewDesktop_Select() Dim strFiles As String[] Dim strData As String Dim strFile As String Dim sDir As String strFiles = FileViewDesktop.Selection If strFiles.Count > 0 Then For Each strFile In strFiles strFile = FileViewDesktop.Dir &/ strFile strData = strData & strFile ' & "\n" Print sDir &/ strData FileProperties1.Path = sDir & strData ' FileProperties1.Path=User.Home &/ "test.png" Next strFiles.Clear() strFiles = Null Endif End I need help please. Herberth Guzm?n From whenamalone at ...626... Sat Feb 13 07:37:29 2016 From: whenamalone at ...626... (monika) Date: Fri, 12 Feb 2016 23:37:29 -0700 (MST) Subject: [Gambas-user] =?utf-8?b?RndkOiDgtKjgtY3gtK/gtYLgtKjgtLjgtILgtJY=?= =?utf-8?b?4LWN4LSv4LSV4LSz4LWN4oCNLi4uLnZpaWkgdGggc3Rk?= Message-ID: <CAKhxwM=SxpDrkPWgWk6w02Mfa9kB+8bfha=XyewdJGzF-t=vGg@...627...> *??????????????( 10.04 ) for Edubuntu 10.04* *??????????????(14.04) for Edubuntu 14.04* =?UTF-8?B?4LSo4LWN4LSv4LWC4LSo4LS44LSC4LSW4LWN4LSv4LSV4LSz4LWN4oCNICggMTAuMDQgKS50YXIuZw==?= =?UTF-8?B?eg==?= (127K) <http://gambas.8142.n7.nabble.com/attachment/55444/0/%3D%3FUTF-8%3FB%3F4LSo4LWN4LSv4LWC4LSo4LS44LSC4LSW4LWN4LSv4LSV4LSz4LWN4oCNICggMTAuMDQgKS50YXIuZw%3D%3D%3F%3D%09%3D%3FUTF-8%3FB%3Feg%3D%3D%3F%3D> =?UTF-8?B?4LSo4LWN4LSv4LWC4LSo4LS44LSC4LSW4LWN4LSv4LSV4LSz4LWN4oCNKDE0LjA0KS50YXIuZ3o=?= (32K) <http://gambas.8142.n7.nabble.com/attachment/55444/1/%3D%3FUTF-8%3FB%3F4LSo4LWN4LSv4LWC4LSo4LS44LSC4LSW4LWN4LSv4LSV4LSz4LWN4oCNKDE0LjA0KS50YXIuZ3o%3D%3F%3D> -- View this message in context: http://gambas.8142.n7.nabble.com/Fwd-viii-th-std-tp55444.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Feb 13 11:59:51 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Feb 2016 11:59:51 +0100 Subject: [Gambas-user] Size Multiple Files with FileProperties In-Reply-To: <CAJPJa8jR3WOupP-Q_iyJX8ryBdVAztZW+XtLaOfLNiJV0wSqWA@...627...> References: <CAJPJa8jR3WOupP-Q_iyJX8ryBdVAztZW+XtLaOfLNiJV0wSqWA@...627...> Message-ID: <56BF0CA7.2000405@...1...> Le 12/02/2016 19:09, herberth guzman a ?crit : > Salut Benoit > > Benoit consultation. > > If I want to get the size of a file with FileProperties the code is: > FileProperties1.Path=User.Home &/ "test.png" > > But I need to get the size of several Selected Files in a FileView. > Is this possible.? > Why do you use FileProperties? Use Stat() directly on each file path. -- Beno?t Minisini From karl.reinl at ...9... Sat Feb 13 19:48:28 2016 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 13 Feb 2016 19:48:28 +0100 Subject: [Gambas-user] svn 7602 question about libraries Message-ID: <1455389308.3581.7.camel@...40...> Salut Beno?t, I never used external (not in gambas written) libraries, but I wonder, how they are attached to a project now? This came up to me, because older libraries which were attached to the project before the library management changed are still shown (of course they are still marked in the .project) but I can't attach them any more like this (by the path). -- Amicalement Charlie From gambas at ...1... Sat Feb 13 19:59:35 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Feb 2016 19:59:35 +0100 Subject: [Gambas-user] svn 7602 question about libraries In-Reply-To: <1455389308.3581.7.camel@...40...> References: <1455389308.3581.7.camel@...40...> Message-ID: <56BF7D17.5040603@...1...> Le 13/02/2016 19:48, Karl Reinl a ?crit : > Salut Beno?t, > > I never used external (not in gambas written) libraries, but I wonder, > how they are attached to a project now? > This came up to me, because older libraries which were attached to the > project before the library management changed are still shown (of course > they are still marked in the .project) but I can't attach them any more > like this (by the path). > You must either : - Create the library executable from the library project. - Install the library from a binary package made by the last IDE. To be able to use a library now. -- Beno?t Minisini From peteroc at ...178... Sun Feb 14 03:22:42 2016 From: peteroc at ...178... (Peter Roc) Date: Sun, 14 Feb 2016 03:22:42 +0100 Subject: [Gambas-user] Problem compiling projects Message-ID: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...> Hi. After having installed the ppa for daily builds, purged it, installed from svn, removed it, and reinstalled the ppa for the stable releases, gambas stopped compiling my projects. Searching for similar problems, the results returned are almost about compiling gambas itself. I'm out of options and reinstalling my main system would be ok but not during the next week. Any help would be greatly appreciated. Peter From taboege at ...626... Sun Feb 14 14:36:38 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 14 Feb 2016 14:36:38 +0100 Subject: [Gambas-user] Problem compiling projects In-Reply-To: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...> References: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...> Message-ID: <20160214133638.GA642@...2774...> On Sun, 14 Feb 2016, Peter Roc wrote: > > Hi. > > After having installed the ppa for daily builds, purged it, installed from > svn, removed it, Did you remove it properly, i.e. with a "make uninstall"? > and reinstalled the ppa for the stable releases, gambas > stopped compiling my projects. > In what way has it "stopped"? Does the IDE freeze, crash, give you an error message, ...? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From peteroc at ...178... Sun Feb 14 16:04:33 2016 From: peteroc at ...178... (Peter Roc) Date: Sun, 14 Feb 2016 16:04:33 +0100 Subject: [Gambas-user] Problem compiling projects In-Reply-To: <20160214133638.GA642@...2774...> References: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...>, <20160214133638.GA642@...2774...> Message-ID: <trinity-2c72916e-3971-4316-99a2-e2830711bc62-1455462273410@...3579...> Hi Tobias. Thank you for your reply. Yes, I did make uninstall. By stopped I mean, everything worked fine, it's just than when pressing F7 nothing happens. Going to the project folder there is no <project>.gambas file. Alt+F7 results in some warnings but nothing special, they were there before the problem. Because I have the /home dir in a separate partition, I made an reinstall, Linux Mint 17 Rosa on my case. Problem persists, but now it's worse. Creating a new project, a simple form with a button, result that when pressing the run button (at the IDE) only the form shows up but not the button. I will try with a different distro, lubuntu, and check if the problem persists. For the record: Linux Mint 17 Rosa, ppa stable Peter Sent: Sunday, February 14, 2016 at 1:36 PM From: "Tobias Boege" <taboege at ...626...> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] Problem compiling projects On Sun, 14 Feb 2016, Peter Roc wrote: > > Hi. > > After having installed the ppa for daily builds, purged it, installed from > svn, removed it, Did you remove it properly, i.e. with a "make uninstall"? > and reinstalled the ppa for the stable releases, gambas > stopped compiling my projects. > In what way has it "stopped"? Does the IDE freeze, crash, give you an error message, ...? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ---------------------------------------------------------------------------- -- 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! [1]http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [2]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 2. https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Sun Feb 14 16:23:25 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 14 Feb 2016 16:23:25 +0100 Subject: [Gambas-user] Problem compiling projects In-Reply-To: <trinity-2c72916e-3971-4316-99a2-e2830711bc62-1455462273410@...3579...> References: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...> <20160214133638.GA642@...2774...> <trinity-2c72916e-3971-4316-99a2-e2830711bc62-1455462273410@...3579...> Message-ID: <20160214152325.GB642@...2774...> On Sun, 14 Feb 2016, Peter Roc wrote: > > Hi Tobias. Thank you for your reply. > > Yes, I did make uninstall. By stopped I mean, everything worked fine, it's > just than when pressing F7 nothing happens. Going to the project folder > there is no <project>.gambas file. Alt+F7 results in some warnings but > nothing special, they were there before the problem. > On my system F7 is mapped to "Compile" and Alt+F7 to "Compile all". I think it's the same at yours. Compiling a project mostly creates compiled files in the hidden ".gambas" directory in your project. It does *not* create an exe- cutable archive (<project>.gambas file). "Compile all" is similar in that it compiles everything from scratch, even if some classes have not been modified since last compilation. Usually there is no visual output or waiting time (except maybe for very large projects) for project compilation. You can check if a compilation happened by going to your project directory in a file manager, deleting the hidden ".gambas" directory, then hitting "Compile all" in the IDE. If after that the ".gambas" directory is present and filled with your classes, then it works. > Because I have the /home dir in a separate partition, I made an reinstall, > Linux Mint 17 Rosa on my case. Problem persists, but now it's worse. > Creating a new project, a simple form with a button, result that when > pressing the run button (at the IDE) only the form shows up but not the > button. I will try with a different distro, lubuntu, and check if the > problem persists. > > For the record: Linux Mint 17 Rosa, ppa stable > If the problem persists after you reinstalled the whole system, it must be something wrong with the project (meta)data... Can you send a misbehaving project to the list? As a general advice, if you switch back and forth between Gambas versions, the first thing you should do is "Compile all" each project that was compiled with a different version of Gambas. Only then you should run it. But I doubt that this would fix your current problem. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From peteroc at ...178... Sun Feb 14 16:45:53 2016 From: peteroc at ...178... (Peter Roc) Date: Sun, 14 Feb 2016 16:45:53 +0100 Subject: [Gambas-user] Problem compiling projects In-Reply-To: <20160214152325.GB642@...2774...> References: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...> <20160214133638.GA642@...2774...> <trinity-2c72916e-3971-4316-99a2-e2830711bc62-1455462273410@...3579...>, <20160214152325.GB642@...2774...> Message-ID: <trinity-0c9139d0-7f5a-48bf-9204-257e847d8c99-1455464753587@...3504...> F7 and Alt+F7 it's the same here. About the <project>.gambas file, until this problem surfaced I can assure you that the files were created. Typing from the Lubuntu (x64, it was the only available at home), and same problem. Tested removing the .gambas dir and its created fine with all the classes there. The test project is working now. I'm gonna create fresh forms and copy everything from the older ones and see if it fixes my problem (did it once with a form that was misbehaving and it worked). After that I will reinstall Mint and see if the problem persists. Peter Sent: Sunday, February 14, 2016 at 3:23 PM From: "Tobias Boege" <taboege at ...626...> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] Problem compiling projects On Sun, 14 Feb 2016, Peter Roc wrote: > > Hi Tobias. Thank you for your reply. > > Yes, I did make uninstall. By stopped I mean, everything worked fine, it's > just than when pressing F7 nothing happens. Going to the project folder > there is no <project>.gambas file. Alt+F7 results in some warnings but > nothing special, they were there before the problem. > On my system F7 is mapped to "Compile" and Alt+F7 to "Compile all". I think it's the same at yours. Compiling a project mostly creates compiled files in the hidden ".gambas" directory in your project. It does *not* create an exe- cutable archive (<project>.gambas file). "Compile all" is similar in that it compiles everything from scratch, even if some classes have not been modified since last compilation. Usually there is no visual output or waiting time (except maybe for very large projects) for project compilation. You can check if a compilation happened by going to your project directory in a file manager, deleting the hidden ".gambas" directory, then hitting "Compile all" in the IDE. If after that the ".gambas" directory is present and filled with your classes, then it works. > Because I have the /home dir in a separate partition, I made an reinstall, > Linux Mint 17 Rosa on my case. Problem persists, but now it's worse. > Creating a new project, a simple form with a button, result that when > pressing the run button (at the IDE) only the form shows up but not the > button. I will try with a different distro, lubuntu, and check if the > problem persists. > > For the record: Linux Mint 17 Rosa, ppa stable > If the problem persists after you reinstalled the whole system, it must be something wrong with the project (meta)data... Can you send a misbehaving project to the list? As a general advice, if you switch back and forth between Gambas versions, the first thing you should do is "Compile all" each project that was compiled with a different version of Gambas. Only then you should run it. But I doubt that this would fix your current problem. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ---------------------------------------------------------------------------- -- 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! [1]http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [2]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 2. https://lists.sourceforge.net/lists/listinfo/gambas-user From peteroc at ...178... Sun Feb 14 16:59:39 2016 From: peteroc at ...178... (Peter Roc) Date: Sun, 14 Feb 2016 16:59:39 +0100 Subject: [Gambas-user] Problem compiling projects In-Reply-To: <trinity-0c9139d0-7f5a-48bf-9204-257e847d8c99-1455464753587@...3504...> References: <trinity-4bd04ebc-3564-46be-bf87-2b65ca67be91-1455416562288@...3578...> <20160214133638.GA642@...2774...> <trinity-2c72916e-3971-4316-99a2-e2830711bc62-1455462273410@...3579...>, <20160214152325.GB642@...2774...>, <trinity-0c9139d0-7f5a-48bf-9204-257e847d8c99-1455464753587@...3504...> Message-ID: <trinity-c8fa590e-c963-43e2-b5ce-21bbb987d0fc-1455465579071@...3580...> A bit with a red face right now... Tobias, I followed your tip and did a compille all before running the project, everything working now. A big thanks and sorry for the annoyance. If I don't email again, it means that everything is working in Mint as well. Cheers, Peter Sent: Sunday, February 14, 2016 at 3:45 PM From: "Peter Roc" <peteroc at ...178...> To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Problem compiling projects F7 and Alt+F7 it's the same here. About the <project>.gambas file, until this problem surfaced I can assure you that the files were created. Typing from the Lubuntu (x64, it was the only available at home), and same problem. Tested removing the .gambas dir and its created fine with all the classes there. The test project is working now. I'm gonna create fresh forms and copy everything from the older ones and see if it fixes my problem (did it once with a form that was misbehaving and it worked). After that I will reinstall Mint and see if the problem persists. Peter Sent: Sunday, February 14, 2016 at 3:23 PM From: "Tobias Boege" <taboege at ...626...> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] Problem compiling projects On Sun, 14 Feb 2016, Peter Roc wrote: > > Hi Tobias. Thank you for your reply. > > Yes, I did make uninstall. By stopped I mean, everything worked fine, it's > just than when pressing F7 nothing happens. Going to the project folder > there is no <project>.gambas file. Alt+F7 results in some warnings but > nothing special, they were there before the problem. > On my system F7 is mapped to "Compile" and Alt+F7 to "Compile all". I think it's the same at yours. Compiling a project mostly creates compiled files in the hidden ".gambas" directory in your project. It does *not* create an exe- cutable archive (<project>.gambas file). "Compile all" is similar in that it compiles everything from scratch, even if some classes have not been modified since last compilation. Usually there is no visual output or waiting time (except maybe for very large projects) for project compilation. You can check if a compilation happened by going to your project directory in a file manager, deleting the hidden ".gambas" directory, then hitting "Compile all" in the IDE. If after that the ".gambas" directory is present and filled with your classes, then it works. > Because I have the /home dir in a separate partition, I made an reinstall, > Linux Mint 17 Rosa on my case. Problem persists, but now it's worse. > Creating a new project, a simple form with a button, result that when > pressing the run button (at the IDE) only the form shows up but not the > button. I will try with a different distro, lubuntu, and check if the > problem persists. > > For the record: Linux Mint 17 Rosa, ppa stable > If the problem persists after you reinstalled the whole system, it must be something wrong with the project (meta)data... Can you send a misbehaving project to the list? As a general advice, if you switch back and forth between Gambas versions, the first thing you should do is "Compile all" each project that was compiled with a different version of Gambas. Only then you should run it. But I doubt that this would fix your current problem. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ---------------------------------------------------------------------------- -- 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! [1][1]http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [2][2]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. [3]http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 2. [4]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! [5]http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net [6]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 2. https://lists.sourceforge.net/lists/listinfo/gambas-user 3. http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 4. https://lists.sourceforge.net/lists/listinfo/gambas-user 5. http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 6. https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Sun Feb 14 17:17:09 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 14 Feb 2016 16:17:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #893: Variables become Null after "Unable to load class file" error? In-Reply-To: <BUG893@...3416...> References: <BUG893@...3416...> Message-ID: <BUG893:20160214171709317@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.893&from=L21haW4- Comment #5 by Beno?t MINISINI: Fixed in revision #7603. There is an interpreter global variable that represents the current component used for searching classes, and it was not correctly reset in some places when an error occurs. Beno?t MINISINI changed the state of the bug to: Fixed. From kicking177 at ...626... Tue Feb 16 16:00:09 2016 From: kicking177 at ...626... (KKing) Date: Tue, 16 Feb 2016 15:00:09 +0000 Subject: [Gambas-user] XmlDocument.Open(filename) gives NULL Message-ID: <56C33979.6030507@...626...> I'm using Gambas 3.5.4 on Linux Mint I want to use XmlDocument but can't seem to load an existing xml document file. It errors on loads and just gives error text of "Null object" I can open and read the same file via XmlReader, but I want to work with the whole document via DOM. Is this likely to be something in the version of 3.5.4 that I'm using, that if I take trouble to compile newer version from source will resolve? Or am I misunderstanding usage of the XmlDocument? Below is a simplified version I tested with, and hit same issues. simple test xml file: myTest.xml = = = = = ?<myDoc> <Item>1</Item> </myDoc> = = = = = tPathAndFilename = "/home/user1/test/myTest.xml" Try xDoc.Open(tPathAndFilename) If Error Then Debug Error.Text Endif - - - - - - From charlie at ...2793... Tue Feb 16 15:26:37 2016 From: charlie at ...2793... (Charlie) Date: Tue, 16 Feb 2016 07:26:37 -0700 (MST) Subject: [Gambas-user] How to mention (in code) widgets which are in sub form , in the main fourm's code ? In-Reply-To: <1455542539662-55455.post@...3046...> References: <1455542539662-55455.post@...3046...> Message-ID: <1455632797821-55457.post@...3046...> *You can't directly access the ListBox but you can pass a variable so in FMain try this: - *Public sTextForListBox As String[] Public Sub Button1_Click() Form1.Show ListBox1.List = sTextForListBox End *In your Form1 enter this: - *Public Sub Form_Open() FMain.sTextForListBox = ["Hello World", "London", "New York", "The end of the world"] End -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention-in-code-widgets-which-are-in-sub-form-in-the-main-fourm-s-code-tp55455p55457.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Tue Feb 16 16:05:24 2016 From: charlie at ...2793... (Charlie) Date: Tue, 16 Feb 2016 08:05:24 -0700 (MST) Subject: [Gambas-user] Size Multiple Files with FileProperties In-Reply-To: <CAJPJa8jR3WOupP-Q_iyJX8ryBdVAztZW+XtLaOfLNiJV0wSqWA@...627...> References: <CAJPJa8jR3WOupP-Q_iyJX8ryBdVAztZW+XtLaOfLNiJV0wSqWA@...627...> Message-ID: <1455635124921-55458.post@...3046...> *This code may help. *Public Sub Form_Open() Dim sPath As String = User.Home &/ "Desktop" Dim sFileList As String[] Dim sTemp As String Dim stStat As Stat sFileList = Dir(sPath) For Each sTemp In sFileList stStat = Stat(sPath &/ sTemp) Print sTemp & Space(50 - Len(sTemp)) & " Last Modified " & stStat.LastModified & " - Size " & stStat.Size & " bytes" Next End -- View this message in context: http://gambas.8142.n7.nabble.com/Size-Multiple-Files-with-FileProperties-tp55443p55458.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Tue Feb 16 16:37:17 2016 From: charlie at ...2793... (Charlie) Date: Tue, 16 Feb 2016 08:37:17 -0700 (MST) Subject: [Gambas-user] XmlDocument.Open(filename) gives NULL In-Reply-To: <56C33979.6030507@...626...> References: <56C33979.6030507@...626...> Message-ID: <1455637037021-55459.post@...3046...> *Try the following: - *Public Sub Form_Open() Dim hXmlDocument As XmlDocument hXmlDocument = New XmlDocument("/home/user1/test/myTest.xml") Print hXmlDocument.Content End -- View this message in context: http://gambas.8142.n7.nabble.com/XmlDocument-Open-filename-gives-NULL-tp55456p55459.html Sent from the gambas-user mailing list archive at Nabble.com. From d4t4full at ...626... Tue Feb 16 18:18:28 2016 From: d4t4full at ...626... (zxMarce) Date: Tue, 16 Feb 2016 10:18:28 -0700 (MST) Subject: [Gambas-user] How to mention (in code) widgets which are in sub form , in the main fourm's code ? In-Reply-To: <1455639534157-55460.post@...3046...> References: <1455542539662-55455.post@...3046...> <1455632797821-55457.post@...3046...> <1455639534157-55460.post@...3046...> Message-ID: <1455643108251-55461.post@...3046...> You can also -instead of using variables- publish the required methods/properties from a form, so other parts of the program can do whatever you need in a more encapsulated way. Assume Form1 needs to add text to a control on Form2. I would go as follows: FORM2 CODE: * Public Sub AddText(newText As String) Listbox1.Add(newText) Me.Show 'This is optional. End* FORM1 CODE: * Private $myF2 As New Form2 [ ... more code ...] $myF2.AddText("Add This Text!")* You can either have Form2 as a private object to Form1 as shown or it can be set up in a global module as a global reference. Your choice. Advantages are several: You can customize whatever you do with the text (in the example) in one place only, or you can change the control (*Form2.Listbox1* in this case) to a different type (*ListView* maybe?) and not have to edit your whole program to adapt to the change. HTH, zxMarce. -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention-in-code-widgets-which-are-in-sub-form-in-the-main-fourm-s-code-tp55455p55461.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Tue Feb 16 18:22:31 2016 From: charlie at ...2793... (Charlie) Date: Tue, 16 Feb 2016 10:22:31 -0700 (MST) Subject: [Gambas-user] How to mention (in code) widgets which are in sub form , in the main fourm's code ? In-Reply-To: <1455639534157-55460.post@...3046...> References: <1455542539662-55455.post@...3046...> <1455632797821-55457.post@...3046...> <1455639534157-55460.post@...3046...> Message-ID: <1455643351545-55462.post@...3046...> I'll look at your request tomorrow. The error your getting from my code is because you do not have a ListBox1 on FMain. If you add one it will work. If you have one change the name in my code to match the name of your ListBox. You also mention a ComboBox not a ListBox, which do you want, or is it that you want both? I'd you give us a little more detail of exactly what you are trying to accomplish we could probably give you better help. -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention-in-code-widgets-which-are-in-sub-form-in-the-main-fourm-s-code-tp55455p55462.html Sent from the gambas-user mailing list archive at Nabble.com. From kicking177 at ...626... Tue Feb 16 19:33:53 2016 From: kicking177 at ...626... (KKing) Date: Tue, 16 Feb 2016 18:33:53 +0000 Subject: [Gambas-user] XmlDocument.Open(filename) gives NULL Message-ID: <56C36B91.8010101@...626...> << *Try the following: - *Public Sub Form_Open() Dim hXmlDocument As XmlDocument hXmlDocument = New XmlDocument("/home/user1/test/myTest.xml") Print hXmlDocument.Content End >> the line < hXmlDocument = New XmlDocument("/home/user1/test/myTest.xml") > gives "Error loading file" error. I've got around my problem for now by totally doing the changes I need via string manipulation. I'll try to find time to test on another unit and or compile current Gambas version from source. - - - - From bugtracker at ...3416... Tue Feb 16 19:38:00 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 18:38:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel Message-ID: <BUG895@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Error message in IDE when adding library in preference panel Type : Bug Priority : Medium Gambas version : 3.8.90 (TRUNK) Product : Development Environment Description ----------- Hello, I occur an error that crash the IDE when I click on the button to add a library into the preference panel. This application has raised an unexpected error and must abort. [45] File or directory does not exist. FSelectLibrary.RefreshLibraries.45 Olivier System information ------------------ [System] Gambas=3.8.90 OperatingSystem=Linux Kernel=4.2.0-23-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=fr_CA.UTF-8 Memory=4043M [Libraries] Cairo=libcairo.so.0.0.0 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.28.0.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-q1LOsg9XcZ,guid=eb5dc157032e12f7e278e9c456c33772 DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-IrMbG4 GNOME_KEYRING_PID=2979 GPG_AGENT_INFO=/run/user/1000/keyring-IrMbG4/gpg:0:1 GTK_IM_MODULE=ibus GTK_OVERLAY_SCROLLING=0 HOME=<home> LANG=fr_CA.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME=<user> MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=fr_CA.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=a4 PATH=<home>/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=<home> QT4_IM_MODULE=xim QT_IM_MODULE=ibus SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2990,unix/<hostname>:/tmp/.ICE-unix/2990 SHELL=/bin/bash SSH_AGENT_PID=3094 SSH_AUTH_SOCK=/run/user/1000/keyring-IrMbG4/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER=<user> USERNAME=<user> WINDOWPATH=8 XAUTHORITY=<home>/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=7799fc85266d4f0d61afdf215179697f-1455634289.827546-274492885 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 XMODIFIERS=@...3498...=ibus From bugtracker at ...3416... Tue Feb 16 19:38:16 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 18:38:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216193815992@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Olivier CRUILLES added an attachment: S?lection_043.png From bugtracker at ...3416... Tue Feb 16 19:38:51 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 18:38:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216193851257@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Comment #1 by Olivier CRUILLES: Screenshot of the error From bugtracker at ...3416... Tue Feb 16 19:56:03 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 18:56:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216195602312@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Comment #2 by Charlie REINL: what's strange your system information don't show the revision info like here (r7603 is latest one from last sunday) [System] Gambas=3.8.90 r7603 I hat the same error with Gambas=3.8.90 r7595 You should update I think From bugtracker at ...3416... Tue Feb 16 20:03:03 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:03:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216200302654@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Comment #3 by Beno?t MINISINI: It should be fixed in revision #7604. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Tue Feb 16 20:03:21 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:03:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #891: IDE crash if new library path does not exist In-Reply-To: <BUG891@...3416...> References: <BUG891@...3416...> Message-ID: <BUG891:20160216200320638@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.891&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #7604. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Tue Feb 16 20:03:43 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:03:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #892: ~/.local/share/gambas3/lib is empty In-Reply-To: <BUG892@...3416...> References: <BUG892@...3416...> Message-ID: <BUG892:20160216200343326@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.892&from=L21haW4- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Tue Feb 16 20:06:41 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:06:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #890: Wrong Value on IDE In-Reply-To: <BUG890@...3416...> References: <BUG890@...3416...> Message-ID: <BUG890:20160216200641156@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.890&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Tue Feb 16 20:08:02 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:08:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #846: Fast routines raise error: Wanted Float[] got Integer[] instead In-Reply-To: <BUG846@...3416...> References: <BUG846@...3416...> Message-ID: <BUG846:20160216200801212@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.846&from=L21haW4- Comment #5 by Beno?t MINISINI: Write the number "0.0", with a decimal point, and it will be interpreted as a floating point constant. From bugtracker at ...3416... Tue Feb 16 20:10:36 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:10:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216201035703@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Comment #4 by Olivier CRUILLES: I will try a soon is possible. Thank you From bugtracker at ...3416... Tue Feb 16 20:11:27 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:11:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216201127155@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Olivier CRUILLES added an attachment: S?lection_044.png From bugtracker at ...3416... Tue Feb 16 20:12:00 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 16 Feb 2016 19:12:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160216201159663@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Comment #5 by Olivier CRUILLES: Attached the version of Gambas installed on my system. olivier From taboege at ...626... Tue Feb 16 21:37:39 2016 From: taboege at ...626... (Tobias Boege) Date: Tue, 16 Feb 2016 21:37:39 +0100 Subject: [Gambas-user] XmlDocument.Open(filename) gives NULL In-Reply-To: <56C33979.6030507@...626...> References: <56C33979.6030507@...626...> Message-ID: <20160216203739.GA645@...2774...> On Tue, 16 Feb 2016, KKing wrote: > I'm using Gambas 3.5.4 on Linux Mint > > I want to use XmlDocument but can't seem to load an existing xml > document file. > > It errors on loads and just gives error text of "Null object" > > I can open and read the same file via XmlReader, but I want to work with > the whole document via DOM. > > Is this likely to be something in the version of 3.5.4 that I'm using, > that if I take trouble to compile newer version from source will resolve? > > Or am I misunderstanding usage of the XmlDocument? > You are not. This issue is very possibly related to bug #894 in the bug tracker, but I guess you can't access bug reports if you are not registered. XmlDocument.FromString() and XmlDocument.Open() both basically only delegate their work to the same routine XMLDocument_SetContent() and we both get a "Null object" error. It appears that Adrien, the author of the component, is busy these days. I may be able to look into the issue later. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From charlie at ...2793... Tue Feb 16 21:18:17 2016 From: charlie at ...2793... (Charlie) Date: Tue, 16 Feb 2016 13:18:17 -0700 (MST) Subject: [Gambas-user] Bug tracking Message-ID: <1455653897562-55477.post@...3046...> Can't the bug tracking not have its own "Forum". It seems to get in the way of everthing else. Thanks, Charlie -- View this message in context: http://gambas.8142.n7.nabble.com/Bug-tracking-tp55477.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Wed Feb 17 01:20:20 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 17 Feb 2016 00:20:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #894: gb.xml: XmlDocument.FromString(Null) crashes In-Reply-To: <BUG894@...3416...> References: <BUG894@...3416...> Message-ID: <BUG894:20160217012020363@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.894&from=L21haW4- Comment #1 by Tobias BOEGE: I fixed the problem in #7605. I'm pretty sure it was only an off-by-one error and my fix doesn't break anything. One of my projects using gb.xml runs flawlessly with the new revision. Tobias BOEGE changed the state of the bug to: Fixed. From taboege at ...626... Wed Feb 17 01:32:06 2016 From: taboege at ...626... (Tobias Boege) Date: Wed, 17 Feb 2016 01:32:06 +0100 Subject: [Gambas-user] XmlDocument.Open(filename) gives NULL In-Reply-To: <20160216203739.GA645@...2774...> References: <56C33979.6030507@...626...> <20160216203739.GA645@...2774...> Message-ID: <20160217003206.GB645@...2774...> On Tue, 16 Feb 2016, Tobias Boege wrote: > On Tue, 16 Feb 2016, KKing wrote: > > I'm using Gambas 3.5.4 on Linux Mint > > > > I want to use XmlDocument but can't seem to load an existing xml > > document file. > > > > It errors on loads and just gives error text of "Null object" > > > > I can open and read the same file via XmlReader, but I want to work with > > the whole document via DOM. > > > > Is this likely to be something in the version of 3.5.4 that I'm using, > > that if I take trouble to compile newer version from source will resolve? > > > > Or am I misunderstanding usage of the XmlDocument? > > > > You are not. This issue is very possibly related to bug #894 in the bug > tracker, but I guess you can't access bug reports if you are not registered. > XmlDocument.FromString() and XmlDocument.Open() both basically only delegate > their work to the same routine XMLDocument_SetContent() and we both get a > "Null object" error. > > It appears that Adrien, the author of the component, is busy these days. I > may be able to look into the issue later. > I spoke too soon. The problem in bug #894 was not a "Null object" but a segfault and is fixed now. On my system with Gambas 3.8.90, I could not reproduce your problem at all. Did you by any chance forgot to instantiate the XmlDocument? Like so: Dim x As New XmlDocument x.Open(sPath) (Note the "New" in the declaration.) This would be an easy source of a "Null object" error. In any case, Gambas 3.5.4 is from July 2014. Gambas had ca. 1300 commits since then. It would probably be profitable to update if you can, and you should update if your problem was not the missing "New". Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Wed Feb 17 01:36:11 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 17 Feb 2016 00:36:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #896: gb.xml: Crash when ending tag not complete Message-ID: <BUG896@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.896&from=L21haW4- Tobias BOEGE reported a new bug. Summary ------- gb.xml: Crash when ending tag not complete Type : Bug Priority : Low Gambas version : 3.8.90 (TRUNK) Product : Unknown Description ----------- When trying to load an invalid file like this <tag> </tag which misses a ">", into an XmlDocument, gb.xml segfaults. The gdb backtrace is this: #0 0x00007ffff7abb118 in memchr () from /usr/lib/libc.so.6 #1 0x00007ffff63c04a4 in memchr (__n=140737354088459, __c=60, __s=0x1) at /usr/include/string.h:87 #2 parseXML (data=data at ...2861...=0x7ffff7ff4000 "<tag>\n</tag\n", lendata=lendata at ...2861...=12, nodeCount=nodeCount at ...2861...=0x7fffffffdec8) at parser.cpp:97 #3 0x00007ffff63c0dc5 in parse (data=0x7ffff7ff4000 "<tag>\n</tag\n", lendata=12, nodeCount=0x7fffffffdec8, docType=<optimized out>) at parser.cpp:36 #4 0x00007ffff63c107d in XMLDocument_SetContent (doc=doc at ...2861...=0x68f460, content=<optimized out>, len=12) at document.cpp:156 #5 0x00007ffff63c117d in XMLDocument_Open (doc=0x68f460, fileName=<optimized out>, lenFileName=<optimized out>) at document.cpp:106 #6 0x00007ffff63c334d in CDocument_open (_object=<optimized out>, _param=<optimized out>) at CDocument.cpp:157 #7 0x0000000000431282 in EXEC_native () at gbx_exec.c:1366 #8 0x0000000000431b15 in EXEC_native_check (defined=<optimized out>) at gbx_exec.c:1163 #9 0x000000000043b65b in EXEC_loop () at gbx_exec_loop.c:1159 #10 0x00000000004300e5 in EXEC_function_loop () at gbx_exec.c:931 #11 0x0000000000430a1e in EXEC_function_real () at gbx_exec.c:895 #12 0x0000000000432094 in EXEC_public_desc (class=<optimized out>, object=object at ...2861...=0x0, desc=desc at ...2861...=0x68ee78, nparam=nparam at ...2861...=0) at gbx_exec.c:1620 #13 0x0000000000404869 in main (argc=1, argv=0x7fffffffe678) at gbx.c:416 Regards, Tobi From bugtracker at ...3416... Wed Feb 17 01:36:57 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 17 Feb 2016 00:36:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #896: gb.xml: Crash when ending tag not complete In-Reply-To: <BUG896@...3416...> References: <BUG896@...3416...> Message-ID: <BUG896:20160217013656776@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.896&from=L21haW4- Tobias BOEGE added an attachment: xml-bug-0.0.1.tar.gz From bugtracker at ...3416... Wed Feb 17 05:11:41 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 17 Feb 2016 04:11:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #895: Error message in IDE when adding library in preference panel In-Reply-To: <BUG895@...3416...> References: <BUG895@...3416...> Message-ID: <BUG895:20160217051140967@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.895&from=L21haW4- Comment #6 by Olivier CRUILLES: Ok now. It works without error. Thank you From kicking177 at ...626... Wed Feb 17 10:13:02 2016 From: kicking177 at ...626... (KKing) Date: Wed, 17 Feb 2016 09:13:02 +0000 Subject: [Gambas-user] XmlDocument.Open(filename) gives NULL [SOLVED] In-Reply-To: <20160217003206.GB645@...2774...> References: <56C33979.6030507@...626...> <20160216203739.GA645@...2774...> <20160217003206.GB645@...2774...> Message-ID: <56C4399E.4040006@...626...> On 17/02/16 00:32, Tobias Boege wrote: > On Tue, 16 Feb 2016, Tobias Boege wrote: >> On Tue, 16 Feb 2016, KKing wrote: >>> I'm using Gambas 3.5.4 on Linux Mint >>> >>> I want to use XmlDocument but can't seem to load an existing xml >>> document file. >>> >>> It errors on loads and just gives error text of "Null object" >>> >>> I can open and read the same file via XmlReader, but I want to work with >>> the whole document via DOM. >>> >>> Is this likely to be something in the version of 3.5.4 that I'm using, >>> that if I take trouble to compile newer version from source will resolve? >>> >>> Or am I misunderstanding usage of the XmlDocument? >>> >> You are not. This issue is very possibly related to bug #894 in the bug >> tracker, but I guess you can't access bug reports if you are not registered. >> XmlDocument.FromString() and XmlDocument.Open() both basically only delegate >> their work to the same routine XMLDocument_SetContent() and we both get a >> "Null object" error. >> >> It appears that Adrien, the author of the component, is busy these days. I >> may be able to look into the issue later. >> > I spoke too soon. The problem in bug #894 was not a "Null object" but a > segfault and is fixed now. > > On my system with Gambas 3.8.90, I could not reproduce your problem at all. > Did you by any chance forgot to instantiate the XmlDocument? Like so: > > Dim x As New XmlDocument > > x.Open(sPath) > > (Note the "New" in the declaration.) This would be an easy source of a "Null > object" error. > > In any case, Gambas 3.5.4 is from July 2014. Gambas had ca. 1300 commits > since then. It would probably be profitable to update if you can, and you > should update if your problem was not the missing "New". > > Regards, > Tobi > Tobi, with the new in Dim statement it works. many thanks. - - - - - From kicking177 at ...626... Wed Feb 17 10:15:09 2016 From: kicking177 at ...626... (KKing) Date: Wed, 17 Feb 2016 09:15:09 +0000 Subject: [Gambas-user] XMLDocument GetSingleNode or XPath support? Message-ID: <56C43A1D.6050201@...626...> does the XML component support a GetSingleNode method or allow an XPath to be used to obtain single nodes? - - - - From charlie at ...2793... Thu Feb 18 12:44:50 2016 From: charlie at ...2793... (Charlie) Date: Thu, 18 Feb 2016 04:44:50 -0700 (MST) Subject: [Gambas-user] How to mention (in code) widgets which are in sub form , in the main fourm's code ? In-Reply-To: <1455719185238-55486.post@...3046...> References: <1455542539662-55455.post@...3046...> <1455632797821-55457.post@...3046...> <1455639534157-55460.post@...3046...> <1455643108251-55461.post@...3046...> <1455719185238-55486.post@...3046...> Message-ID: <1455795890256-55487.post@...3046...> OK machackerx86 I have put the attached together for you. It is a start, there are probably things to change or add but see what you think. URL-List.tar <http://gambas.8142.n7.nabble.com/file/n55487/URL-List.tar> -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention-in-code-widgets-which-are-in-sub-form-in-the-main-fourm-s-code-tp55455p55487.html Sent from the gambas-user mailing list archive at Nabble.com. From roel at ...3306... Thu Feb 18 14:59:04 2016 From: roel at ...3306... (Roel Touwen) Date: Thu, 18 Feb 2016 14:59:04 +0100 Subject: [Gambas-user] String conversion for printing Message-ID: <56C5CE28.6070405@...3306...> Hi All, I have an application that prints. The problem is that when I want to print ? it appears as ??. So I think I need a string conversion like Conv$ but wherever I look, there are no working samples. My charset of system and database are UTF8.... Who? Grtz Roel Touwen From gambas at ...1... Thu Feb 18 15:04:51 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 Feb 2016 15:04:51 +0100 Subject: [Gambas-user] String conversion for printing In-Reply-To: <56C5CE28.6070405@...3306...> References: <56C5CE28.6070405@...3306...> Message-ID: <56C5CF83.7090302@...1...> Le 18/02/2016 14:59, Roel Touwen a ?crit : > Hi All, > > I have an application that prints. The problem is that when I want to > print ? it appears as ??. > > So I think I need a string conversion like Conv$ but wherever I look, > there are no working samples. > > My charset of system and database are UTF8.... > > Who? > > Grtz > > Roel Touwen > Can you give the details? How do you print? The project? How can anyone help you otherwise??? -- Beno?t Minisini From roel at ...3306... Thu Feb 18 15:09:10 2016 From: roel at ...3306... (Roel Touwen) Date: Thu, 18 Feb 2016 15:09:10 +0100 Subject: [Gambas-user] String conversion for printing In-Reply-To: <56C5CF83.7090302@...1...> References: <56C5CE28.6070405@...3306...> <56C5CF83.7090302@...1...> Message-ID: <56C5D086.6000807@...3306...> The whole printing procedure works fine except for the 'strange' characters like ? ? etc. As a base I used the printing sample of Gambas3. Now I'm printing to PDF by providing a filename. In the draw section I simply use: Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) Grtz Roel op 18-02-16 15:04, Beno?t Minisini schreef: > Le 18/02/2016 14:59, Roel Touwen a ?crit : >> Hi All, >> >> I have an application that prints. The problem is that when I want to >> print ? it appears as ??. >> >> So I think I need a string conversion like Conv$ but wherever I look, >> there are no working samples. >> >> My charset of system and database are UTF8.... >> >> Who? >> >> Grtz >> >> Roel Touwen >> > Can you give the details? How do you print? The project? How can anyone > help you otherwise??? > From charlie at ...2793... Thu Feb 18 16:22:06 2016 From: charlie at ...2793... (Charlie) Date: Thu, 18 Feb 2016 08:22:06 -0700 (MST) Subject: [Gambas-user] String conversion for printing In-Reply-To: <56C5CE28.6070405@...3306...> References: <56C5CE28.6070405@...3306...> Message-ID: <1455808926356-55492.post@...3046...> I don't know all the answers to this but If you run the following code it may help you diagnose the problem: - Public Sub Form_Open() Dim siCount As Short Print "Length of string = " & Len("?") For siCount = 1 To 2 Print "Character " & Str(siCount) & " - " & Asc(Mid("?", siCount, 1)) Next Print "The UTF-8 Code for '?' = " & String.Code("?") End The output I get is:- Length of string = 2 Character 1 - 195 Character 2 - 169 The UTF-8 Code for '?' = 233 The ASCII characters for ?? are 195 and 169See http://www.w3schools.com/charsets/ref_utf_latin1_supplement.asp <http://www.w3schools.com/charsets/ref_utf_latin1_supplement.asp> for UTF-8 tables -- View this message in context: http://gambas.8142.n7.nabble.com/String-conversion-for-printing-tp55489p55492.html Sent from the gambas-user mailing list archive at Nabble.com. From kicking177 at ...626... Thu Feb 18 18:18:51 2016 From: kicking177 at ...626... (KKing) Date: Thu, 18 Feb 2016 17:18:51 +0000 Subject: [Gambas-user] String conversion for printing In-Reply-To: <56C5CE28.6070405@...3306...> References: <56C5CE28.6070405@...3306...> Message-ID: <56C5FCFB.1000903@...626...> On 18/02/16 13:59, Roel Touwen wrote: > Hi All, > > I have an application that prints. The problem is that when I want to > print ? it appears as ??. > > So I think I need a string conversion like Conv$ but wherever I look, > there are no working samples. > > My charset of system and database are UTF8.... > > Who? > > Grtz > > Roel Touwen > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I possibly encountered similar issue(s). I was working with text in a SQLite db that contained things like the degrees symbol and superscript characters. Populating Gambas textBoxes and textAreas from the db and updating the db with these characters was no issue. But when went to save the same content to a text file I was get those characters being prefixed with a "?", e.g. "??" instead of just "?". I ended up using the following, which worked for me for my issue. Try sTextArea = Conv$(taDescription.Text, "UTF-8", "WINDOWS-1253") If Error Then Message(Error.Text) Endif - - - - - From ivan-kern at ...308... Fri Feb 19 07:48:27 2016 From: ivan-kern at ...308... (Ivan Kern) Date: Fri, 19 Feb 2016 07:48:27 +0100 Subject: [Gambas-user] String conversion for printing Message-ID: <000601d16ae1$89d41ae0$9d7c50a0$@freenet.de> Hello, i have had the same problem before i used conversion into ISO-8859-15. sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15") Ivan From roel at ...3306... Fri Feb 19 08:54:55 2016 From: roel at ...3306... (Roel Touwen) Date: Fri, 19 Feb 2016 08:54:55 +0100 Subject: [Gambas-user] String conversion for printing In-Reply-To: <000601d16ae1$89d41ae0$9d7c50a0$@freenet.de> References: <000601d16ae1$89d41ae0$9d7c50a0$@freenet.de> Message-ID: <56C6CA4F.7020101@...3306...> Thanks all, This was the solution to my problem. Grtz Roel op 19-02-16 07:48, Ivan Kern schreef: > Hello, i have had the same problem before i used conversion into > ISO-8859-15. > > sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15") > > > > Ivan > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From t.lee.davidson at ...626... Sat Feb 20 09:05:20 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 20 Feb 2016 03:05:20 -0500 Subject: [Gambas-user] DBus.IsRegistered --> Unknown symbol Message-ID: <56C81E40.6010200@...626...> I am developing an application that conditionally registers an object on the DBus session bus. I have to use the Form_Close event to, if it was registered, unregister the object or the form will close but the application will not stop. Based on http://gambaswiki.org/wiki/comp/gb.dbus/dbus/isregistered : [quote] DBus.IsRegistered (gb.dbus) Static Function IsRegistered ( Object As DBusObject ) As Boolean Return if the specified object is registered on a DBus bus. [/quote] my code is: [code] Public Sub Form_Close() If DBus.IsRegistered(MyDBusObject) Then DBus.Session.Unregister(MyDBusObject) Endif End [/code] When the form is closed, I get, "Unknown symbol 'IsRegistered' in class 'Dbus'". Did I miss something in the documented syntax? As a temporary workaround, I can use: [code] If DBus["org.freedesktop.DBus"]["/"].NameHasOwner(DBus.Name) Then DBus.Session.Unregister(MyDBusObject) Endif [/code] But that is not very granular. System Information: [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=4.1.15-desktop-2.mga5 Architecture=x86_64 Distribution=Mageia 5 Desktop=KDE4 Theme=Oxygen Language=en_US.UTF-8 Memory=2002M [Libraries] Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.13 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.403.0 OpenGL=libGL.so.1.2.0 Qt4=libQtCore.so.4.8.6 -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From gambas at ...1... Sat Feb 20 09:58:14 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Feb 2016 09:58:14 +0100 Subject: [Gambas-user] DBus.IsRegistered --> Unknown symbol In-Reply-To: <56C81E40.6010200@...626...> References: <56C81E40.6010200@...626...> Message-ID: <56C82AA6.7010403@...1...> Le 20/02/2016 09:05, T Lee Davidson a ?crit : > I am developing an application that conditionally registers an object on the DBus session bus. I have to use the Form_Close > event to, if it was registered, unregister the object or the form will close but the application will not stop. > > Based on http://gambaswiki.org/wiki/comp/gb.dbus/dbus/isregistered : > [quote] > DBus.IsRegistered (gb.dbus) > > Static Function IsRegistered ( Object As DBusObject ) As Boolean > > Return if the specified object is registered on a DBus bus. > [/quote] > > my code is: > [code] > Public Sub Form_Close() > > If DBus.IsRegistered(MyDBusObject) Then > DBus.Session.Unregister(MyDBusObject) > Endif > > End > [/code] > > When the form is closed, I get, "Unknown symbol 'IsRegistered' in class 'Dbus'". > > Did I miss something in the documented syntax? > > > As a temporary workaround, I can use: > [code] > If DBus["org.freedesktop.DBus"]["/"].NameHasOwner(DBus.Name) Then > DBus.Session.Unregister(MyDBusObject) > Endif > [/code] > > But that is not very granular. > > > System Information: > [System] > Gambas=3.6.2 > OperatingSystem=Linux > Kernel=4.1.15-desktop-2.mga5 > Architecture=x86_64 > Distribution=Mageia 5 > Desktop=KDE4 > Theme=Oxygen > Language=en_US.UTF-8 > Memory=2002M > [Libraries] > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.8.13 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.403.0 > OpenGL=libGL.so.1.2.0 > Qt4=libQtCore.so.4.8.6 > > I think I add this method in a more recent version of Gambas and forgot to specify it in the wiki... -- Beno?t Minisini From gambas at ...1... Sat Feb 20 10:02:50 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Feb 2016 10:02:50 +0100 Subject: [Gambas-user] DBus.IsRegistered --> Unknown symbol In-Reply-To: <56C82AA6.7010403@...1...> References: <56C81E40.6010200@...626...> <56C82AA6.7010403@...1...> Message-ID: <56C82BBA.8070708@...1...> Le 20/02/2016 09:58, Beno?t Minisini a ?crit : > > I think I add this method in a more recent version of Gambas and forgot > to specify it in the wiki... > Yep, this method exists only since Gambas 3.8.2... -- Beno?t Minisini From t.lee.davidson at ...626... Sat Feb 20 13:22:09 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 20 Feb 2016 07:22:09 -0500 Subject: [Gambas-user] DBus.IsRegistered --> Unknown symbol In-Reply-To: <56C82BBA.8070708@...1...> References: <56C81E40.6010200@...626...> <56C82AA6.7010403@...1...> <56C82BBA.8070708@...1...> Message-ID: <56C85A71.6060101@...626...> On 02/20/2016 04:02 AM, Beno?t Minisini wrote: > Le 20/02/2016 09:58, Beno?t Minisini a ?crit : >> >> I think I add this method in a more recent version of Gambas and forgot >> to specify it in the wiki... >> > > Yep, this method exists only since Gambas 3.8.2... > Ah, okay. My workaround is sufficient for the time being. Thank you for the notice. Lee __________ "Artificial Intelligence is no match for natural stupidity." From t.lee.davidson at ...626... Sat Feb 20 13:32:29 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 20 Feb 2016 07:32:29 -0500 Subject: [Gambas-user] 'Single instance' app cannot reuse DBus.Name Message-ID: <56C85CDD.3090704@...626...> A single instance application is one in which only one instance is allowed to be running at the same time. Checking for an existing instance is quite regularly done simply with some sort of lock file or socket. If a lock is found, then just quit the app. But suppose you want to pass the current command line arguments along to the existing instance. DBus is handy for that. We can check to see if our DBus.Name, "org.gambas.[Application.Name]" by default, is already registered on the bus and behave accordingly. The pseudo-logic is: If DBusName.IsRegistered.With.DbusSessionDaemon ' There is already an instance running Send the command line args, via message, to the existing (primary) instance and quit out of the transient instance Else Go ahead and start a 'primary' instance and register our DBus.Name on the bus End In Gambas, we would send the message to the existing instance using the general format "DBus[DBus.Name][/Path/To/MyDBusObject].inMethod()". But, apparently, this particular format invisibly tries to register a connection on the bus using DBus.Name. This causes a problem, because you cannot register the same name on the bus more than once. In other words, even if you don't explicitly connect and register a name on the bus, simply trying to send a message on the bus causes an intrinsic registration; and, an exception. And you cannot use a random, guaranteed-unique name for DBus.Name or else you wouldn't know what it is and would have no way of knowing 'who' to send the message to. The solution is to change Dbus.Name in the transient instance just prior to passing along the command line data. Here is my original, error-producing code: ------ ' DBusInterface class file Inherits DBusObject Create Static Public Sub Receiver(myString As String) Print "Received: " & myString End --- ' Gambas module file Public Sub Main() If DBus["org.freedesktop.DBus"]["/"].NameHasOwner(DBus.Name) Print DBus.Name & " already has an owner." ' Only one instance allowed ' ' Send command line args to existing instance DBus[DBus.Name]["/DBusInterface"].Receiver("command line arguments") ' *[1] *[2] Quit Else DBus.Session.Register(DBusInterface, "/DBusInterface") Print "Press Ctrl+C to quit." While True Wait 0.1 Wend DBus.Session.Unregister(DBusInterface) Endif End ------ *[1]: That line caused "org.freedesktop.DBus.Error.Failed: No return value", and a Segmentation Fault; even though no return value should have been expected. The fix was to do some name swapping: ' ' Send command line args to existing instance ReceiverDbusName = DBus.Name 'Preserve receiver name DBus.Name = "org.gambas.Transient" & Application.Name ' Set different name for transient relay of args. DBus[ReceiverDbusName]["/DBusInterface"].Receiver("command line arguments") Problem solved! :-) -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From t.lee.davidson at ...626... Sat Feb 20 19:13:44 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 20 Feb 2016 13:13:44 -0500 Subject: [Gambas-user] 'Single instance' app cannot reuse DBus.Name In-Reply-To: <56C85CDD.3090704@...626...> References: <56C85CDD.3090704@...626...> Message-ID: <56C8ACD8.6080802@...626...> On 02/20/2016 07:32 AM, T Lee Davidson wrote: > > > Problem solved! :-) > > > Well I *thought* the problem was solved. Apparently I spoke to soon from behind bleary eyes. Lee __________ "Artificial Intelligence is no match for natural stupidity." From t.lee.davidson at ...626... Sat Feb 20 20:29:29 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 20 Feb 2016 14:29:29 -0500 Subject: [Gambas-user] Solved: Incorrect: Re: 'Single instance' app cannot reuse DBus.Name In-Reply-To: <56C8ACD8.6080802@...626...> References: <56C85CDD.3090704@...626...> <56C8ACD8.6080802@...626...> Message-ID: <56C8BE99.3030002@...626...> On 02/20/2016 01:13 PM, T Lee Davidson wrote: > On 02/20/2016 07:32 AM, T Lee Davidson wrote: >> >> >> Problem solved! :-) >> >> > > Well I *thought* the problem was solved. Apparently I spoke to soon from behind bleary eyes. > So here I thought I was helping others who may have been in the same situation. As it turns out, I've just caused alot of noise because the issue was not related to the DBus Name at all. Unfortunately, I haven't the slightest clue how I didn't get an error with the fix I presented. The original DBus object class file I was using: ------ ' DBusInterface class file Inherits DBusObject Create Static Public Sub Receiver(myString As String) Print "Received: " & myString End ------ And, I said the fix was to do some name swapping before sending the data: ' ' Send command line args to existing instance ReceiverDbusName = DBus.Name 'Preserve receiver name DBus.Name = "org.gambas.Transient" & Application.Name ' Set different name for transient relay of args. DBus[ReceiverDbusName]["/DBusInterface"].Receiver("command line arguments") WRONG!! Don't bother with name swapping. It isn't necessary. When Gambas makes a call of the format "DBus[Application][ObjectPath].Method(Arguments)", it does not create a connection on the bus with the name of DBus.Name. It allows the DBus daemon to create a generic, number-formatted-name connection. The real problem, I've discovered, was in the DBusInterface class code. According to https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-types : "When an application handles a method call message, it is required to return a reply." And, as you can see, the created DBusInterface object would do no such thing. The example class code should be: ------ ' DBusInterface class file Inherits DBusObject Create Static Public Sub Receiver(myString As String) As Boolean '** Return type Print "Received: " & myString Return True '** Return a reply End ------ *** "Artificial Intelligence is no match for natural stupidity." *** From t.lee.davidson at ...626... Sat Feb 20 23:18:44 2016 From: t.lee.davidson at ...626... (Lee) Date: Sat, 20 Feb 2016 17:18:44 -0500 Subject: [Gambas-user] [CRASH REPORT] CommandLine App Message-ID: <56C8E644.5030905@...626...> Hello, Damned, my program crashed Gambas! The program crashes on quit after having read a string from a DBus-registered application. It apparently has no problem after reading a boolean or an array. -- Lee __________ "Artificial Intelligence is no match for natural stupidity." -------------- next part -------------- A non-text attachment was scrubbed... Name: CommandLineApp-0.0.22-crash-160220-171506.tar.bz2 Type: application/x-bzip Size: 5470 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160220/b1559e64/attachment.bin> From bugtracker at ...3416... Sun Feb 21 23:38:22 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 21 Feb 2016 22:38:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early Message-ID: <BUG897@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.897&from=L21haW4- Thomas KRCAL reported a new bug. Summary ------- Function "week" is one hour to early Type : Bug Priority : Medium Gambas version : 3.8 Product : Unknown Description ----------- I think I found a Bug in the Function week() Now its Sunday the 21. Februar and its 23:24. It the 7th calendar week of year. In about half an hour its the 8th calendar week of year. But since i think exactly 23:00 gambas told me its still the 8th caklender week of year. So gambas seems to be one hour to early. see the screenshots: http://www.kk-bits.com/Week.png http://www.kk-bits.com/Week2.png System information ------------------ [System] Gambas=3.8.4 OperatingSystem=Linux Kernel=3.13.0-77-generic Architecture=x86_64 Distribution=Ubuntu 14.04.4 LTS Desktop=LXDE Theme=Gtk Language=de_AT.UTF-8 Memory=5959M [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-bA0Pd2jnD8 DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path DESKTOP_SESSION=Lubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=Lubuntu GDM_LANG=de_DE GNOME_KEYRING_CONTROL=/run/user/1000/keyring-GJ1frX GNOME_KEYRING_PID=1619 GPG_AGENT_INFO=/run/user/1000/keyring-GJ1frX/gpg:0:1 GTK_IM_MODULE=xim HOME=<home> IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=de_AT.UTF-8 LANGUAGE=de_AT:de LOGNAME=<user> MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=<home> QT4_IM_MODULE=xim SAL_USE_VCLPLUGIN=gtk SELINUX_INIT=YES SESSION=Lubuntu SESSIONTYPE=lxsession SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring-GJ1frX/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=lxsession UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1436 USER=<user> XAUTHORITY=<home>/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CONFIG_HOME=<home>/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/ XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user> XDG_MENU_PREFIX=lxde- 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=@...3498...=none _LXSESSION_PID=1642 From bugtracker at ...3416... Sun Feb 21 23:38:34 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 21 Feb 2016 22:38:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early In-Reply-To: <BUG897@...3416...> References: <BUG897@...3416...> Message-ID: <BUG897:20160221233834080@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.897&from=L21haW4- Thomas KRCAL added an attachment: Week2.png From bugtracker at ...3416... Sun Feb 21 23:38:40 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 21 Feb 2016 22:38:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early In-Reply-To: <BUG897@...3416...> References: <BUG897@...3416...> Message-ID: <BUG897:20160221233839831@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.897&from=L21haW4- Thomas KRCAL added an attachment: Week.png From bugtracker at ...3416... Sun Feb 21 23:46:43 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 21 Feb 2016 22:46:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early In-Reply-To: <BUG897@...3416...> References: <BUG897@...3416...> Message-ID: <BUG897:20160221234643385@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.897&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From eilert-sprachen at ...221... Mon Feb 22 17:43:04 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 22 Feb 2016 17:43:04 +0100 Subject: [Gambas-user] GridView and Current.Y Message-ID: <56CB3A98.9020500@...221...> Currently, I'm porting an old calendar project from Gambas2 to Gambas3. There is a GridView which shows days and times. It has 24 rows, so in order to show a Baines Line, the code was GridView.Row = Hour(Now) baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height / 60) * Minute(Now)) In Gambas3, GridView.Current.Y seems to give the relative position from the upper edge of the whole grid, even when it is not visible. That means, instead of values like 745, it now receives 1035, so the Baines Line will be too low to appear. What would you use instead of Current.Y to hit the right square of the GridView? Thanks for your help. Regards Rolf From charlie at ...2793... Tue Feb 23 11:17:25 2016 From: charlie at ...2793... (Charlie) Date: Tue, 23 Feb 2016 03:17:25 -0700 (MST) Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <56CB3A98.9020500@...221...> References: <56CB3A98.9020500@...221...> Message-ID: <1456222645519-55509.post@...3046...> What's a Baines Line? -- View this message in context: http://gambas.8142.n7.nabble.com/GridView-and-Current-Y-tp55508p55509.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Tue Feb 23 12:26:31 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Feb 2016 12:26:31 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <1456222645519-55509.post@...3046...> References: <56CB3A98.9020500@...221...> <1456222645519-55509.post@...3046...> Message-ID: <56CC41E7.6030609@...221...> Ah, ok... :) It's not so important for this topic, but: Have you seen a calendar application which has a hovering thin horizontal line showing the hour + minute graphically above the day's dates? That's a Baines Line. Maybe named after its inventor? But there are other elements which are shown on my calendar, not only this line. They do not appear in the right places or better: they do not appear at all, because they all receive wrong Y coordinates and are placed way too low. Any idea? Regards Rolf Am 23.02.2016 11:17, schrieb Charlie: > What's a Baines Line? > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/GridView-and-Current-Y-tp55508p55509.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Feb 23 12:31:19 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Feb 2016 12:31:19 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <1456222645519-55509.post@...3046...> References: <56CB3A98.9020500@...221...> <1456222645519-55509.post@...3046...> Message-ID: <56CC4307.5040304@...221...> To make things clearer: What my program needs is Y coordinates relative to the upper edge of the GridView, not relative to the grid's upper edge (which may be scrolled to somewhere above under the GridView's upper edge). Regards Rolf Am 23.02.2016 11:17, schrieb Charlie: > What's a Baines Line? > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/GridView-and-Current-Y-tp55508p55509.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Feb 23 12:39:54 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 23 Feb 2016 12:39:54 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <56CB3A98.9020500@...221...> References: <56CB3A98.9020500@...221...> Message-ID: <56CC450A.8030309@...1...> Le 22/02/2016 17:43, Rolf-Werner Eilert a ?crit : > Currently, I'm porting an old calendar project from Gambas2 to Gambas3. > > There is a GridView which shows days and times. It has 24 rows, so in > order to show a Baines Line, the code was > > GridView.Row = Hour(Now) > > baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height / > 60) * Minute(Now)) > > In Gambas3, GridView.Current.Y seems to give the relative position from > the upper edge of the whole grid, even when it is not visible. That > means, instead of values like 745, it now receives 1035, so the Baines > Line will be too low to appear. > > What would you use instead of Current.Y to hit the right square of the > GridView? > > Thanks for your help. > > Regards > Rolf > > GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the job. It returns the top cell relative to the GridView top. -- Beno?t Minisini From eilert-sprachen at ...221... Tue Feb 23 12:49:16 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Feb 2016 12:49:16 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <56CC450A.8030309@...1...> References: <56CB3A98.9020500@...221...> <56CC450A.8030309@...1...> Message-ID: <56CC473C.5040800@...221...> Am 23.02.2016 12:39, schrieb Beno?t Minisini: > Le 22/02/2016 17:43, Rolf-Werner Eilert a ?crit : >> Currently, I'm porting an old calendar project from Gambas2 to Gambas3. >> >> There is a GridView which shows days and times. It has 24 rows, so in >> order to show a Baines Line, the code was >> >> GridView.Row = Hour(Now) >> >> baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height / >> 60) * Minute(Now)) >> >> In Gambas3, GridView.Current.Y seems to give the relative position from >> the upper edge of the whole grid, even when it is not visible. That >> means, instead of values like 745, it now receives 1035, so the Baines >> Line will be too low to appear. >> >> What would you use instead of Current.Y to hit the right square of the >> GridView? >> >> Thanks for your help. >> >> Regards >> Rolf >> >> > GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the > job. It returns the top cell relative to the GridView top. > Wow, that's tricky :) But it runs, so thank you very much! Regards Rolf From gambas at ...1... Tue Feb 23 12:56:34 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 23 Feb 2016 12:56:34 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <56CC473C.5040800@...221...> References: <56CB3A98.9020500@...221...> <56CC450A.8030309@...1...> <56CC473C.5040800@...221...> Message-ID: <56CC48F2.8050103@...1...> Le 23/02/2016 12:49, Rolf-Werner Eilert a ?crit : >> GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the >> job. It returns the top cell relative to the GridView top. >> > > Wow, that's tricky :) But it runs, so thank you very much! > > Regards > Rolf > It's not tricky, it's based on the logic of the ScrollArea the GridView is now based on: - Logical coordinates for the cell. - The amount of scrolling. - The client area that takes the border into account. If your GridView has a top header, you have to take its size into account too, by using GridView.Columns.Height. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Tue Feb 23 15:23:20 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Feb 2016 15:23:20 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <56CC48F2.8050103@...1...> References: <56CB3A98.9020500@...221...> <56CC450A.8030309@...1...> <56CC473C.5040800@...221...> <56CC48F2.8050103@...1...> Message-ID: <56CC6B58.5090009@...221...> Am 23.02.2016 12:56, schrieb Beno?t Minisini: > Le 23/02/2016 12:49, Rolf-Werner Eilert a ?crit : >>> GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the >>> job. It returns the top cell relative to the GridView top. >>> >> Wow, that's tricky :) But it runs, so thank you very much! >> >> Regards >> Rolf >> > It's not tricky, it's based on the logic of the ScrollArea the GridView > is now based on: > > - Logical coordinates for the cell. > - The amount of scrolling. > - The client area that takes the border into account. > > If your GridView has a top header, you have to take its size into > account too, by using GridView.Columns.Height. > > Regards, > Oh yes, I knew that, as you had told me about GridView.Rows.Width the other day. Ok, not tricky, more versatile - but still one has to know that :) I will now try to adapt the other elements, let's hope I can solve that on my own... Regards Rolf From gambas.fr at ...626... Tue Feb 23 15:31:18 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 23 Feb 2016 15:31:18 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <56CC6B58.5090009@...221...> References: <56CB3A98.9020500@...221...> <56CC450A.8030309@...1...> <56CC473C.5040800@...221...> <56CC48F2.8050103@...1...> <56CC6B58.5090009@...221...> Message-ID: <CAFkCsL4Q18g-cwXK-bmpv2tj9oNYF=BgEA48ZwzmdEzvnnpb4A@...627...> Just make a Private function : Private Function GridViewCurrentY() as integer return GridView.Current.Y - GridView.ScrollY + GridView.ClientY end IN GridView.Row = Hour(Now) baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height / 60) * Minute(Now)) REPLACE ALL GridView.Current.Y BY GridViewCurrentY() 2016-02-23 15:23 GMT+01:00 Rolf-Werner Eilert <eilert-sprachen at ...221...>: > > Am 23.02.2016 12:56, schrieb Beno?t Minisini: >> Le 23/02/2016 12:49, Rolf-Werner Eilert a ?crit : >>>> GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the >>>> job. It returns the top cell relative to the GridView top. >>>> >>> Wow, that's tricky :) But it runs, so thank you very much! >>> >>> Regards >>> Rolf >>> >> It's not tricky, it's based on the logic of the ScrollArea the GridView >> is now based on: >> >> - Logical coordinates for the cell. >> - The amount of scrolling. >> - The client area that takes the border into account. >> >> If your GridView has a top header, you have to take its size into >> account too, by using GridView.Columns.Height. >> >> Regards, >> > > Oh yes, I knew that, as you had told me about GridView.Rows.Width the > other day. > > Ok, not tricky, more versatile - but still one has to know that :) I > will now try to adapt the other elements, let's hope I can solve that on > my own... > > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From eilert-sprachen at ...221... Tue Feb 23 17:51:17 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Feb 2016 17:51:17 +0100 Subject: [Gambas-user] GridView and Current.Y In-Reply-To: <CAFkCsL4Q18g-cwXK-bmpv2tj9oNYF=BgEA48ZwzmdEzvnnpb4A@...627...> References: <56CB3A98.9020500@...221...> <56CC450A.8030309@...1...> <56CC473C.5040800@...221...> <56CC48F2.8050103@...1...> <56CC6B58.5090009@...221...> <CAFkCsL4Q18g-cwXK-bmpv2tj9oNYF=BgEA48ZwzmdEzvnnpb4A@...627...> Message-ID: <56CC8E05.3080907@...221...> Good idea! Thank you! Rolf Am 23.02.2016 15:31, schrieb Fabien Bodard: > Just make a Private function : > > Private Function GridViewCurrentY() as integer > > return GridView.Current.Y - GridView.ScrollY + GridView.ClientY > > end > > > IN > > GridView.Row = Hour(Now) > > baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height / > 60) * Minute(Now)) > > > REPLACE ALL GridView.Current.Y > > BY GridViewCurrentY() > > > > > 2016-02-23 15:23 GMT+01:00 Rolf-Werner Eilert <eilert-sprachen at ...221...>: >> Am 23.02.2016 12:56, schrieb Beno?t Minisini: >>> Le 23/02/2016 12:49, Rolf-Werner Eilert a ?crit : >>>>> GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the >>>>> job. It returns the top cell relative to the GridView top. >>>>> >>>> Wow, that's tricky :) But it runs, so thank you very much! >>>> >>>> Regards >>>> Rolf >>>> >>> It's not tricky, it's based on the logic of the ScrollArea the GridView >>> is now based on: >>> >>> - Logical coordinates for the cell. >>> - The amount of scrolling. >>> - The client area that takes the border into account. >>> >>> If your GridView has a top header, you have to take its size into >>> account too, by using GridView.Columns.Height. >>> >>> Regards, >>> >> Oh yes, I knew that, as you had told me about GridView.Rows.Width the >> other day. >> >> Ok, not tricky, more versatile - but still one has to know that :) I >> will now try to adapt the other elements, let's hope I can solve that on >> my own... >> >> 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=272487151&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mati86_dl at ...1877... Tue Feb 23 21:54:57 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Tue, 23 Feb 2016 20:54:57 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. References: <1341497330.1509402.1456260897967.JavaMail.yahoo.ref@...3424...> Message-ID: <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> Dear All, I'm starting a new project. In a few words is a set of controls to interact with Arduino using the Firmata protocol[1]. To understand better, in general the idea is inspired by Ctrlr[2] that allows interact with MIDI controllers adding simple components in a form.. I started implementing it like that * A global "Firmata" component with: - A virtual "Firmata" control that Inherits SerialPort that is responsible for the communication through the serial port. It is completely configured graphically, and provides new functions (To send commands to Arduino) and events (To notify arduino event to others Controls) to interact with Arduino. - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to show the status of a digital input, or FirmataProgressBar to show a Analog Input.. Always responding to events of Firmata Control My idea is that it should be completely graphic, and the procedure would be like this: 1. Add a Firmata control. 2. Configure the control: ?NAME!(Eg: "Firmata1"), port, baud, etc.. 3. Add FirmataSwitchButton. 4. Configure the FirmataSwitchButton: Digital Pin to represent, but fundamentally the Firmata control used represented by the string property as "Firmata1".. Now, through the name I need to get the object Firmata configured to make controls interact with it. Why not make the controls inherit from Firmata? Because it would configure all controls individually.. The idea is to set up once, to use many.. ;) Anyone know how to do this? I found this[3], but it seems not work > Dim hFirmata As Firmata > hFirmata = Class["Firmata1"].Instance When running Gambas respond: "Is not a object". Regards, Matias. p.s: If this works could be extrapolated to MIDI fairly easy.. =) LINKS: [1] http://firmata.org/wiki/Main_Page [2] http://ctrlr.org/getting-started/ [3] http://gambaswiki.org/wiki/comp/gb/class/instance From jussi.lahtinen at ...626... Tue Feb 23 23:09:49 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Feb 2016 00:09:49 +0200 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> References: <1341497330.1509402.1456260897967.JavaMail.yahoo.ref@...3424...> <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> Message-ID: <CAFJMe7SXJUq0GwaieNVBmD7Cd5WGcGGCkH_BmNE8oyCdVh_GUA@...627...> You don't have class named Firmata1? Jussi On Tue, Feb 23, 2016 at 10:54 PM, Matias De lellis <mati86_dl at ...1877...> wrote: > Dear All, > > > I'm starting a new project. In a few words is a set of controls to > interact with Arduino using the Firmata protocol[1]. > To understand better, in general the idea is inspired by Ctrlr[2] that > allows > interact with MIDI controllers adding simple components in a form.. > > > I started implementing it like that > * A global "Firmata" component with: > > - A virtual "Firmata" control that Inherits SerialPort that is > responsible for the communication through the serial port. It is completely > configured graphically, and provides new functions (To send commands to > Arduino) and events (To notify arduino event to others Controls) to > interact with Arduino. > > - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to > show the status of a digital input, or FirmataProgressBar to show a Analog > Input.. Always responding to events of Firmata Control > > > My idea is that it should be completely graphic, and the procedure would > be like this: > > 1. Add a Firmata control. > 2. Configure the control: ?NAME!(Eg: "Firmata1"), port, baud, etc.. > 3. Add FirmataSwitchButton. > 4. Configure the FirmataSwitchButton: Digital Pin to represent, but > fundamentally the Firmata control used represented by the string property > as "Firmata1".. > > > Now, through the name I need to get the object Firmata configured to make > controls interact with it. > Why not make the controls inherit from Firmata? Because it would configure > all controls individually.. The idea is to set up once, to use many.. ;) > > Anyone know how to do this? > I found this[3], but it seems not work > > > Dim hFirmata As Firmata > > > hFirmata = Class["Firmata1"].Instance > > > When running Gambas respond: "Is not a object". > > > Regards, > Matias. > > p.s: If this works could be extrapolated to MIDI fairly easy.. =) > > > LINKS: > > [1] http://firmata.org/wiki/Main_Page > [2] http://ctrlr.org/getting-started/ > [3] http://gambaswiki.org/wiki/comp/gb/class/instance > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Feb 23 23:19:20 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Feb 2016 00:19:20 +0200 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> References: <1341497330.1509402.1456260897967.JavaMail.yahoo.ref@...3424...> <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> Message-ID: <CAFJMe7TguFrhHDRLfMbaZWQivLcY7-cz=d9TpgxHZvdFYyTSEg@...627...> I think there is error in the documentation. I don't see Class having instance method. Try: hFirmata = Object.New("Firmata") Name of the object can be passed as argument. Jussi On Tue, Feb 23, 2016 at 10:54 PM, Matias De lellis <mati86_dl at ...1877...> wrote: > Dear All, > > > I'm starting a new project. In a few words is a set of controls to > interact with Arduino using the Firmata protocol[1]. > To understand better, in general the idea is inspired by Ctrlr[2] that > allows > interact with MIDI controllers adding simple components in a form.. > > > I started implementing it like that > * A global "Firmata" component with: > > - A virtual "Firmata" control that Inherits SerialPort that is > responsible for the communication through the serial port. It is completely > configured graphically, and provides new functions (To send commands to > Arduino) and events (To notify arduino event to others Controls) to > interact with Arduino. > > - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to > show the status of a digital input, or FirmataProgressBar to show a Analog > Input.. Always responding to events of Firmata Control > > > My idea is that it should be completely graphic, and the procedure would > be like this: > > 1. Add a Firmata control. > 2. Configure the control: ?NAME!(Eg: "Firmata1"), port, baud, etc.. > 3. Add FirmataSwitchButton. > 4. Configure the FirmataSwitchButton: Digital Pin to represent, but > fundamentally the Firmata control used represented by the string property > as "Firmata1".. > > > Now, through the name I need to get the object Firmata configured to make > controls interact with it. > Why not make the controls inherit from Firmata? Because it would configure > all controls individually.. The idea is to set up once, to use many.. ;) > > Anyone know how to do this? > I found this[3], but it seems not work > > > Dim hFirmata As Firmata > > > hFirmata = Class["Firmata1"].Instance > > > When running Gambas respond: "Is not a object". > > > Regards, > Matias. > > p.s: If this works could be extrapolated to MIDI fairly easy.. =) > > > LINKS: > > [1] http://firmata.org/wiki/Main_Page > [2] http://ctrlr.org/getting-started/ > [3] http://gambaswiki.org/wiki/comp/gb/class/instance > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mati86_dl at ...1877... Tue Feb 23 23:47:21 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Tue, 23 Feb 2016 22:47:21 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <CAFJMe7TguFrhHDRLfMbaZWQivLcY7-cz=d9TpgxHZvdFYyTSEg@...627...> References: <CAFJMe7TguFrhHDRLfMbaZWQivLcY7-cz=d9TpgxHZvdFYyTSEg@...627...> Message-ID: <1495533156.1594054.1456267641271.JavaMail.yahoo@...3424...> Hi Jussi > You don't have class named Firmata1? No.. The class is "Firmata", and the instance name in "Fimata1" > I think there is error in the documentation. I don't see Class having instance method. Maybe. I did not find example of this .. :S > Try: > hFirmata = Object.New("Firmata") > > Name of the object can be passed as argument. No.. If I do this I make a new Firmata instance for each component exucute that line .. I need to use the component that put as a control and configure only once.. Consider than a new instance of firmata involves opening a new serial port.. and this is not possible .. Regards El Martes, 23 de febrero, 2016 19:19:40, Jussi Lahtinen <jussi.lahtinen at ...1107...626...> escribi?: I think there is error in the documentation. I don't see Class having instance method. Try: hFirmata = Object.New("Firmata") Name of the object can be passed as argument. Jussi On Tue, Feb 23, 2016 at 10:54 PM, Matias De lellis <mati86_dl at ...1877...> wrote: Dear All, > > >I'm starting a new project. In a few words is a set of controls to interact with Arduino using the Firmata protocol[1]. >To understand better, in general the idea is inspired by Ctrlr[2] that allows >interact with MIDI controllers adding simple components in a form.. > > >I started implementing it like that > * A global "Firmata" component with: > > - A virtual "Firmata" control that Inherits SerialPort that is responsible for the communication through the serial port. It is completely configured graphically, and provides new functions (To send commands to Arduino) and events (To notify arduino event to others Controls) to interact with Arduino. > > - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to show the status of a digital input, or FirmataProgressBar to show a Analog Input.. Always responding to events of Firmata Control > > >My idea is that it should be completely graphic, and the procedure would be like this: > > 1. Add a Firmata control. > 2. Configure the control: ?NAME!(Eg: "Firmata1"), port, baud, etc.. > 3. Add FirmataSwitchButton. > 4. Configure the FirmataSwitchButton: Digital Pin to represent, but fundamentally the Firmata control used represented by the string property as "Firmata1".. > > >Now, through the name I need to get the object Firmata configured to make controls interact with it. >Why not make the controls inherit from Firmata? Because it would configure all controls individually.. The idea is to set up once, to use many.. ;) > >Anyone know how to do this? >I found this[3], but it seems not work > >> Dim hFirmata As Firmata > >> hFirmata = Class["Firmata1"].Instance > > >When running Gambas respond: "Is not a object". > > >Regards, >Matias. > >p.s: If this works could be extrapolated to MIDI fairly easy.. =) > > >LINKS: > > [1] http://firmata.org/wiki/Main_Page > [2] http://ctrlr.org/getting-started/ > [3] http://gambaswiki.org/wiki/comp/gb/class/instance > >------------------------------------------------------------------------------ >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=272487151&iu=/4140 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Feb 24 00:07:53 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Feb 2016 01:07:53 +0200 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <1495533156.1594054.1456267641271.JavaMail.yahoo@...3424...> References: <CAFJMe7TguFrhHDRLfMbaZWQivLcY7-cz=d9TpgxHZvdFYyTSEg@...627...> <1495533156.1594054.1456267641271.JavaMail.yahoo@...3424...> Message-ID: <CAFJMe7THsxjcdphAmL3J-5GkdHEXpi9=MphQFMXeJsswyGQsNQ@...627...> I don't understand the problem. You have to instantiate the Firmata at least once, or it will have to be static class. Why don't you just make the declaration public? Jussi On Wed, Feb 24, 2016 at 12:47 AM, Matias De lellis <mati86_dl at ...1877...> wrote: > Hi Jussi > > > > > You don't have class named Firmata1? > > No.. The class is "Firmata", and the instance name in "Fimata1" > > > I think there is error in the documentation. I don't see Class having > instance method. > > > Maybe. I did not find example of this .. :S > > > Try: > > hFirmata = Object.New("Firmata") > > > > Name of the object can be passed as argument. > > No.. If I do this I make a new Firmata instance for each component exucute > that line .. I need to use the component that put as a control and > configure only once.. > > > Consider than a new instance of firmata involves opening a new serial > port.. and this is not possible .. > > Regards > > > El Martes, 23 de febrero, 2016 19:19:40, Jussi Lahtinen < > jussi.lahtinen at ...626...> escribi?: > > > > I think there is error in the documentation. I don't see Class having > instance method. > > Try: > hFirmata = Object.New("Firmata") > > > Name of the object can be passed as argument. > > > Jussi > > > > On Tue, Feb 23, 2016 at 10:54 PM, Matias De lellis <mati86_dl at ...1877...> > wrote: > > Dear All, > > > > > >I'm starting a new project. In a few words is a set of controls to > interact with Arduino using the Firmata protocol[1]. > >To understand better, in general the idea is inspired by Ctrlr[2] that > allows > >interact with MIDI controllers adding simple components in a form.. > > > > > >I started implementing it like that > > * A global "Firmata" component with: > > > > - A virtual "Firmata" control that Inherits SerialPort that is > responsible for the communication through the serial port. It is completely > configured graphically, and provides new functions (To send commands to > Arduino) and events (To notify arduino event to others Controls) to > interact with Arduino. > > > > - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to > show the status of a digital input, or FirmataProgressBar to show a Analog > Input.. Always responding to events of Firmata Control > > > > > >My idea is that it should be completely graphic, and the procedure would > be like this: > > > > 1. Add a Firmata control. > > 2. Configure the control: ?NAME!(Eg: "Firmata1"), port, baud, etc.. > > 3. Add FirmataSwitchButton. > > 4. Configure the FirmataSwitchButton: Digital Pin to represent, but > fundamentally the Firmata control used represented by the string property > as "Firmata1".. > > > > > >Now, through the name I need to get the object Firmata configured to make > controls interact with it. > >Why not make the controls inherit from Firmata? Because it would > configure all controls individually.. The idea is to set up once, to use > many.. ;) > > > >Anyone know how to do this? > >I found this[3], but it seems not work > > > >> Dim hFirmata As Firmata > > > >> hFirmata = Class["Firmata1"].Instance > > > > > >When running Gambas respond: "Is not a object". > > > > > >Regards, > >Matias. > > > >p.s: If this works could be extrapolated to MIDI fairly easy.. =) > > > > > >LINKS: > > > > [1] http://firmata.org/wiki/Main_Page > > [2] http://ctrlr.org/getting-started/ > > [3] http://gambaswiki.org/wiki/comp/gb/class/instance > > > > >------------------------------------------------------------------------------ > >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=272487151&iu=/4140 > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From taboege at ...626... Wed Feb 24 00:09:44 2016 From: taboege at ...626... (Tobias Boege) Date: Wed, 24 Feb 2016 00:09:44 +0100 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> References: <1341497330.1509402.1456260897967.JavaMail.yahoo.ref@...3424...> <1341497330.1509402.1456260897967.JavaMail.yahoo@...3424...> Message-ID: <20160223230944.GD704@...2774...> On Tue, 23 Feb 2016, Matias De lellis wrote: > Dear All, > > > I'm starting a new project. In a few words is a set of controls to interact with Arduino using the Firmata protocol[1]. > To understand better, in general the idea is inspired by Ctrlr[2] that allows > interact with MIDI controllers adding simple components in a form.. > > > I started implementing it like that > * A global "Firmata" component with: > > - A virtual "Firmata" control that Inherits SerialPort that is responsible for the communication through the serial port. It is completely configured graphically, and provides new functions (To send commands to Arduino) and events (To notify arduino event to others Controls) to interact with Arduino. > > - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to show the status of a digital input, or FirmataProgressBar to show a Analog Input.. Always responding to events of Firmata Control > > > My idea is that it should be completely graphic, and the procedure would be like this: > > 1. Add a Firmata control. > 2. Configure the control: ??NAME!(Eg: "Firmata1"), port, baud, etc.. > 3. Add FirmataSwitchButton. > 4. Configure the FirmataSwitchButton: Digital Pin to represent, but fundamentally the Firmata control used represented by the string property as "Firmata1".. > > > Now, through the name I need to get the object Firmata configured to make controls interact with it. > Why not make the controls inherit from Firmata? Because it would configure all controls individually.. The idea is to set up once, to use many.. ;) > > Anyone know how to do this? > I found this[3], but it seems not work > > > Dim hFirmata As Firmata > > > hFirmata = Class["Firmata1"].Instance > > > When running Gambas respond: "Is not a object". > I'm not sure if I understand you correctly. [ In case I don't, I would suggest that you maybe use pseudo code and simpler (Gambas-only) terms to state what you want to do. I mean: should I be required to look up the "Firmata protocol" and "Ctrlr" and "MIDI" to answer your question about a Gambas programming technique? --- Ideally, no. ] So, what I read out of your mail is that you have one object Firmata1 which has a certain configuration. You now want to add controls dynamically to the Form which should inherit Firmata1's configuration by obtaining a reference to the Firmata1 object. If this understanding is correct, you have several possibilities, three of which are: 1. Why must Firmata be an instantiable class? Wouldn't a module suffice here? (A module is a special kind of class which only has one instance. If you only have one serial port to communicate with in your application, a module should be fine.) Modules are like global variables so it will be easy for your controls to obtain a reference to this object. 2. Can't you pass the Firmata1 object to the constructors of the controls? 3. (A refinement of 2.) Make the Firmata class a Container object and create the controls inside the container Firmata1. This way, the controls can access their parent Firmata1 and its configuration directly. This is how the DataSource control from gb.db.form works, if you are familiar with that. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Wed Feb 24 00:11:26 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Feb 2016 01:11:26 +0200 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <CAFJMe7THsxjcdphAmL3J-5GkdHEXpi9=MphQFMXeJsswyGQsNQ@...627...> References: <CAFJMe7TguFrhHDRLfMbaZWQivLcY7-cz=d9TpgxHZvdFYyTSEg@...627...> <1495533156.1594054.1456267641271.JavaMail.yahoo@...3424...> <CAFJMe7THsxjcdphAmL3J-5GkdHEXpi9=MphQFMXeJsswyGQsNQ@...627...> Message-ID: <CAFJMe7QbZeyUrE7_5aK4Wm667HZ8GjPBxbtn=4wmrkdWVhsFzw@...627...> Or make the configurations static, along with boolean which tells if the serial port is already opened. Jussi On Wed, Feb 24, 2016 at 1:07 AM, Jussi Lahtinen <jussi.lahtinen at ...626...> wrote: > I don't understand the problem. You have to instantiate the Firmata at > least once, or it will have to be static class. > Why don't you just make the declaration public? > > > Jussi > > On Wed, Feb 24, 2016 at 12:47 AM, Matias De lellis <mati86_dl at ...1877... > > wrote: > >> Hi Jussi >> >> >> >> > You don't have class named Firmata1? >> >> No.. The class is "Firmata", and the instance name in "Fimata1" >> >> > I think there is error in the documentation. I don't see Class having >> instance method. >> >> >> Maybe. I did not find example of this .. :S >> >> > Try: >> > hFirmata = Object.New("Firmata") >> > >> > Name of the object can be passed as argument. >> >> No.. If I do this I make a new Firmata instance for each component >> exucute that line .. I need to use the component that put as a control and >> configure only once.. >> >> >> Consider than a new instance of firmata involves opening a new serial >> port.. and this is not possible .. >> >> Regards >> >> >> El Martes, 23 de febrero, 2016 19:19:40, Jussi Lahtinen < >> jussi.lahtinen at ...626...> escribi?: >> >> >> >> I think there is error in the documentation. I don't see Class having >> instance method. >> >> Try: >> hFirmata = Object.New("Firmata") >> >> >> Name of the object can be passed as argument. >> >> >> Jussi >> >> >> >> On Tue, Feb 23, 2016 at 10:54 PM, Matias De lellis < >> mati86_dl at ...1877...> wrote: >> >> Dear All, >> > >> > >> >I'm starting a new project. In a few words is a set of controls to >> interact with Arduino using the Firmata protocol[1]. >> >To understand better, in general the idea is inspired by Ctrlr[2] that >> allows >> >interact with MIDI controllers adding simple components in a form.. >> > >> > >> >I started implementing it like that >> > * A global "Firmata" component with: >> > >> > - A virtual "Firmata" control that Inherits SerialPort that is >> responsible for the communication through the serial port. It is completely >> configured graphically, and provides new functions (To send commands to >> Arduino) and events (To notify arduino event to others Controls) to >> interact with Arduino. >> > >> > - Others controls Inherits UserControls. Eg: A FirmataSwitchButton to >> show the status of a digital input, or FirmataProgressBar to show a Analog >> Input.. Always responding to events of Firmata Control >> > >> > >> >My idea is that it should be completely graphic, and the procedure would >> be like this: >> > >> > 1. Add a Firmata control. >> > 2. Configure the control: ?NAME!(Eg: "Firmata1"), port, baud, etc.. >> > 3. Add FirmataSwitchButton. >> > 4. Configure the FirmataSwitchButton: Digital Pin to represent, but >> fundamentally the Firmata control used represented by the string property >> as "Firmata1".. >> > >> > >> >Now, through the name I need to get the object Firmata configured to >> make controls interact with it. >> >Why not make the controls inherit from Firmata? Because it would >> configure all controls individually.. The idea is to set up once, to use >> many.. ;) >> > >> >Anyone know how to do this? >> >I found this[3], but it seems not work >> > >> >> Dim hFirmata As Firmata >> > >> >> hFirmata = Class["Firmata1"].Instance >> > >> > >> >When running Gambas respond: "Is not a object". >> > >> > >> >Regards, >> >Matias. >> > >> >p.s: If this works could be extrapolated to MIDI fairly easy.. =) >> > >> > >> >LINKS: >> > >> > [1] http://firmata.org/wiki/Main_Page >> > [2] http://ctrlr.org/getting-started/ >> > [3] http://gambaswiki.org/wiki/comp/gb/class/instance >> > >> >> >------------------------------------------------------------------------------ >> >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=272487151&iu=/4140 >> >_______________________________________________ >> >Gambas-user mailing list >> >Gambas-user at lists.sourceforge.net >> >https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > > From mati86_dl at ...1877... Wed Feb 24 00:42:39 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Tue, 23 Feb 2016 23:42:39 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <20160223230944.GD704@...2774...> References: <20160223230944.GD704@...2774...> Message-ID: <235413345.1628194.1456270959702.JavaMail.yahoo@...3424...> Hi, > I'm not sure if I understand you correctly. [ In case I don't, I would > suggest that you maybe use pseudo code and simpler (Gambas-only) terms to > state what you want to do. I mean: should I be required to look up the > "Firmata protocol" and "Ctrlr" and "MIDI" to answer your question about a > Gambas programming technique? --- Ideally, no. ] Ok, bus as is the user list and not devel, introduced in case anyone was interested. ;) > So, what I read out of your mail is that you have one object Firmata1 which > has a certain configuration. You now want to add controls dynamically to the > Form which should inherit Firmata1's configuration by obtaining a reference > to the Firmata1 object. Not completely dynamic.. After completing write the controls the idea is just change the list of properties of the controls placed on the form. (Not writing a single line of code more after design forms) > If this understanding is correct, you have several possibilities, three of > which are: > > 1. Why must Firmata be an instantiable class? Wouldn't a module suffice > here? (A module is a special kind of class which only has one instance. > If you only have one serial port to communicate with in your > application, a module should be fine.) Modules are like global > variables so it will be easy for your controls to obtain a reference > to this object. I do not want to limit the ports, but to start i will take into account. > 2. Can't you pass the Firmata1 object to the constructors of the controls? Would be ideal, but I do not see how. Justly my idea was to add a property representing the instance name, and get the instance itself from that. http://gambaswiki.org/wiki/comp/gb/class/instance seems ideal but not work here.. > 3. (A refinement of 2.) Make the Firmata class a Container object and > create the controls inside the container Firmata1. This way, the > controls can access their parent Firmata1 and its configuration > directly. This is how the DataSource control from gb.db.form works, > if you are familiar with that. I will investigate this option.. Thanks, From taboege at ...626... Wed Feb 24 01:00:02 2016 From: taboege at ...626... (Tobias Boege) Date: Wed, 24 Feb 2016 01:00:02 +0100 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <235413345.1628194.1456270959702.JavaMail.yahoo@...3424...> References: <20160223230944.GD704@...2774...> <235413345.1628194.1456270959702.JavaMail.yahoo@...3424...> Message-ID: <20160224000002.GE704@...2774...> On Tue, 23 Feb 2016, Matias De lellis wrote: > > So, what I read out of your mail is that you have one object Firmata1 which > > has a certain configuration. You now want to add controls dynamically to the > > Form which should inherit Firmata1's configuration by obtaining a reference > > to the Firmata1 object. > > > Not completely dynamic.. After completing write the controls the idea is just change the list of properties of the controls placed on the form. (Not writing a single line of code more after design forms) > > > 2. Can't you pass the Firmata1 object to the constructors of the controls? > > Would be ideal, but I do not see how. Justly my idea was to add a property representing the instance name, and get the instance itself from that. http://gambaswiki.org/wiki/comp/gb/class/instance seems ideal but not work here.. > Class["Name"].Instance returns the auto-instance of an auto-creatable (i.e. Create Static[0]) class. Unless you class is Create Static, this will not give you any object at all. > > 3. (A refinement of 2.) Make the Firmata class a Container object and > > create the controls inside the container Firmata1. This way, the > > controls can access their parent Firmata1 and its configuration > > directly. This is how the DataSource control from gb.db.form works, > > if you are familiar with that. > > > I will investigate this option.. > If you don't need to create controls at runtime, i.e. the layout of your form is complete at compile time, then this would be the way to go. I attach a small project which shows how it's done. Regards, Tobi [0] http://gambaswiki.org/wiki/lang/createstatic -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: container-config-0.0.1.tar.gz Type: application/octet-stream Size: 12398 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160224/af2e98f9/attachment.obj> From jussi.lahtinen at ...626... Wed Feb 24 01:32:53 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Feb 2016 02:32:53 +0200 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <20160224000002.GE704@...2774...> References: <20160223230944.GD704@...2774...> <235413345.1628194.1456270959702.JavaMail.yahoo@...3424...> <20160224000002.GE704@...2774...> Message-ID: <CAFJMe7S8Dy6AkXBUwJVnpp0zCU+ppFVbjgaCrAYZV7zsYY95jw@...627...> I see only Load method for Class!? Is the "instance" hidden..? Or in what version? Jussi On Wed, Feb 24, 2016 at 2:00 AM, Tobias Boege <taboege at ...626...> wrote: > On Tue, 23 Feb 2016, Matias De lellis wrote: > > > So, what I read out of your mail is that you have one object Firmata1 > which > > > has a certain configuration. You now want to add controls dynamically > to the > > > Form which should inherit Firmata1's configuration by obtaining a > reference > > > to the Firmata1 object. > > > > > > Not completely dynamic.. After completing write the controls the idea is > just change the list of properties of the controls placed on the form. (Not > writing a single line of code more after design forms) > > > > > 2. Can't you pass the Firmata1 object to the constructors of the > controls? > > > > Would be ideal, but I do not see how. Justly my idea was to add a > property representing the instance name, and get the instance itself from > that. http://gambaswiki.org/wiki/comp/gb/class/instance seems ideal but > not work here.. > > > > Class["Name"].Instance returns the auto-instance of an auto-creatable (i.e. > Create Static[0]) class. Unless you class is Create Static, this will not > give you any object at all. > > > > 3. (A refinement of 2.) Make the Firmata class a Container object and > > > create the controls inside the container Firmata1. This way, the > > > controls can access their parent Firmata1 and its configuration > > > directly. This is how the DataSource control from gb.db.form works, > > > if you are familiar with that. > > > > > > I will investigate this option.. > > > > If you don't need to create controls at runtime, i.e. the layout of your > form is complete at compile time, then this would be the way to go. I > attach > a small project which shows how it's done. > > Regards, > Tobi > > [0] http://gambaswiki.org/wiki/lang/createstatic > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mati86_dl at ...1877... Wed Feb 24 15:05:54 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Wed, 24 Feb 2016 14:05:54 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <20160224000002.GE704@...2774...> References: <20160224000002.GE704@...2774...> Message-ID: <1630123226.1872702.1456322754838.JavaMail.yahoo@...3424...> Hi El Martes, 23 de febrero, 2016 21:00:06, Tobias Boege <taboege at ...626...> escribi?: On Tue, 23 Feb 2016, Matias De lellis wrote: > > So, what I read out of your mail is that you have one object Firmata1 which > > has a certain configuration. You now want to add controls dynamically to the > > Form which should inherit Firmata1's configuration by obtaining a reference > > to the Firmata1 object. > > > Not completely dynamic.. After completing write the controls the idea is just change the list of properties of the controls placed on the form. (Not writing a single line of code more after design forms) > > > > 2. Can't you pass the Firmata1 object to the constructors of the controls? > > > > Would be ideal, but I do not see how. Justly my idea was to add a property representing the instance name, and get the instance itself from that. http://gambaswiki.org/wiki/comp/gb/class/instance seems ideal but not work here.. > > > > Class["Name"].Instance returns the auto-instance of an auto-creatable (i.e. > Create Static[0]) class. Unless you class is Create Static, this will not > give you any object at all. Then I found this explanation but not want to do it static... > > > 3. (A refinement of 2.) Make the Firmata class a Container object and > > > create the controls inside the container Firmata1. This way, the > > > controls can access their parent Firmata1 and its configuration > > > directly. This is how the DataSource control from gb.db.form works, > > > if you are familiar with that. > > > > > > I will investigate this option..> > > > > If you don't need to create controls at runtime, i.e. the layout of your > form is complete at compile time, then this would be the way to go. I attach > a small project which shows how it's done. Thanks you!. It's a very interesting way, but then dismiss it because restrict me in the construction of graphical user interface.. Or to make rich user interfaces, would have to write many new controls.. I think not worth it .. :( Attach a "sketch" of what I intend to do.. Lack entire deployment serial port, and simulated events using a timer to Raise events. To continue the development, momentarily, I do dependency injection (See FTest.class:12 and DigitalSwitch.class:39). This is exactly what I wanted to avoid, but at the moment allow me to continue.. Of course, for the user, it is a single line of code, but want to do it editable graphically.. Regards, Matias -------------- next part -------------- A non-text attachment was scrubbed... Name: Firmata-0.2.1.tar.gz Type: application/gzipped-tar Size: 16014 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160224/568d320b/attachment.bin> From mati86_dl at ...1877... Wed Feb 24 15:10:33 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Wed, 24 Feb 2016 14:10:33 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <CAFJMe7S8Dy6AkXBUwJVnpp0zCU+ppFVbjgaCrAYZV7zsYY95jw@...627...> References: <CAFJMe7S8Dy6AkXBUwJVnpp0zCU+ppFVbjgaCrAYZV7zsYY95jw@...627...> Message-ID: <1364425725.1863939.1456323033940.JavaMail.yahoo@...3424...> Hi Jussi > I see only Load method for Class!? Need the instance to use methods and observe events.. > Is the "instance" hidden..? No.. However test make it public, private, and any other options that I know.. :s > in what version? Last example attached, on Gambas 3.4.5 (Debian Jessie), but the same witg 3.8.4 (Fedora 22) Regards, Matias From jussi.lahtinen at ...626... Wed Feb 24 17:31:12 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Feb 2016 18:31:12 +0200 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <1364425725.1863939.1456323033940.JavaMail.yahoo@...3424...> References: <CAFJMe7S8Dy6AkXBUwJVnpp0zCU+ppFVbjgaCrAYZV7zsYY95jw@...627...> <1364425725.1863939.1456323033940.JavaMail.yahoo@...3424...> Message-ID: <CAFJMe7RG11ExNs7VAJYJ0bM1w_u3fXOcZN1fSbC+dLrVWySqpg@...627...> No, you completely misunderstood what I meant. I'm talking about the IDE. See the pics. Jussi On Wed, Feb 24, 2016 at 4:10 PM, Matias De lellis <mati86_dl at ...1877...> wrote: > Hi Jussi > > > > > I see only Load method for Class!? > > Need the instance to use methods and observe events.. > > > Is the "instance" hidden..? > > No.. However test make it public, private, and any other options that I > know.. :s > > > in what version? > > Last example attached, on Gambas 3.4.5 (Debian Jessie), but the same witg > 3.8.4 (Fedora 22) > > Regards, > Matias > > -------------- next part -------------- A non-text attachment was scrubbed... Name: no instance.png Type: image/png Size: 21880 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160224/fb7f6101/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: nothing.png Type: image/png Size: 1903 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160224/fb7f6101/attachment-0001.png> From mati86_dl at ...1877... Wed Feb 24 17:52:32 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Wed, 24 Feb 2016 16:52:32 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <CAFJMe7RG11ExNs7VAJYJ0bM1w_u3fXOcZN1fSbC+dLrVWySqpg@...627...> References: <CAFJMe7RG11ExNs7VAJYJ0bM1w_u3fXOcZN1fSbC+dLrVWySqpg@...627...> Message-ID: <113909471.1887361.1456332752666.JavaMail.yahoo@...3424...> Well... You're right .. The 'Instance' method seems to be hidden.. However, the example clearly indicates that this was the way to use it..? I have to research better, but if they have to be a static class, this does not help me .. El Mi?rcoles, 24 de febrero, 2016 13:31:33, Jussi Lahtinen <jussi.lahtinen at ...626...> escribi?: No, you completely misunderstood what I meant. I'm talking about the IDE. See the pics. Jussi On Wed, Feb 24, 2016 at 4:10 PM, Matias De lellis <mati86_dl at ...1877...> wrote: Hi Jussi > I see only Load method for Class!? Need the instance to use methods and observe events.. > Is the "instance" hidden..? No.. However test make it public, private, and any other options that I know.. :s > in what version? Last example attached, on Gambas 3.4.5 (Debian Jessie), but the same witg 3.8.4 (Fedora 22) Regards, Matias From taboege at ...626... Wed Feb 24 18:09:27 2016 From: taboege at ...626... (Tobias Boege) Date: Wed, 24 Feb 2016 18:09:27 +0100 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <113909471.1887361.1456332752666.JavaMail.yahoo@...3424...> References: <CAFJMe7RG11ExNs7VAJYJ0bM1w_u3fXOcZN1fSbC+dLrVWySqpg@...627...> <113909471.1887361.1456332752666.JavaMail.yahoo@...3424...> Message-ID: <20160224170927.GA3451@...2774...> On Wed, 24 Feb 2016, Matias De lellis wrote: > Well... > You're right .. The 'Instance' method seems to be hidden.. However, the example clearly indicates that this was the way to use it..?? > I have to research better, but if they have to be a static class, this does not help me .. > You seem to misunderstand Class["name"].Instance. In your first mail you wrote: >> Dim hFirmata As Firmata >> >> hFirmata = Class["Firmata1"].Instance But Firmata1 is the name of one of your *objects*. The syntax Class["name"] searches for a *class* named "Firmata1", which likely does not exist in your component. You only mentioned the class Firmata. As I said earlier, Class["name"].Instance returns the unique automatic instance of an *auto-creatable* class, i.e. one with Create Static. It does not need to be fully static, just Create Static [0]. There is no method to obtain a general object from its name -- because objects do not even need to have something like a "name". It is a different matter, though, if Firmata is a graphical control. Graphical controls always have a name property and you can use a Form's Controls property to search a control by name like this: hMyFirmata = FMain.Controls["Firmata1"] Note again: this only works if you know the form (FMain in this case) where you want to search your object and the object is a control. Regards, Tobi [0] http://gambaswiki.org/wiki/lang/createstatic PS: And yeah, the completion window for "Class[...]" doesn't show here either. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mati86_dl at ...1877... Wed Feb 24 20:04:12 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Wed, 24 Feb 2016 19:04:12 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <20160224170927.GA3451@...2774...> References: <20160224170927.GA3451@...2774...> Message-ID: <1978869609.2013366.1456340652984.JavaMail.yahoo@...3424...> Hi again, >You seem to misunderstand Class["name"].Instance. In your first mail you>wrote: > >>> Dim hFirmata As Firmata >>> >>> hFirmata = Class["Firmata1"].Instance > >But Firmata1 is the name of one of your *objects*. The syntax Class["name"] >searches for a *class* named "Firmata1", which likely does not exist in your >component. You only mentioned the class Firmata. > >As I said earlier, Class["name"].Instance returns the unique automatic >instance of an *auto-creatable* class, i.e. one with Create Static. It does >not need to be fully static, just Create Static [0]. D'Oh!. You're right. >There is no method to obtain a general object from its name -- because >objects do not even need to have something like a "name". Ok. It's a shame If so, and considering the next point, I can not do as I want. >It is a different>matter, though, if Firmata is a graphical control. Graphical controls always >have a name property and you can use a Form's Controls property to search a >control by name like this: > > hMyFirmata = FMain.Controls["Firmata1"] > >Note again: this only works if you know the form (FMain in this case) where >you want to search your object and the object is a control. I thought it, but as inherited from SerialPort (Not UserControl) does not work.. I implemented this in the previous attached example, and prints all controls except virtuals. > Dim hControl As Control > Dim hForm As Form Then > If Me.Parent Is Form ' Always can iterate to find the Form.. > hForm = Me.Parent > For Each hControl In hForm.Controls > Debug hControl.name > Next > Endif May need to do inherit from UserControl but I have to add even more code to relate the UserControl parent with the child SerialPort properties and events.. Regards, Thank for all, From taboege at ...626... Wed Feb 24 20:22:27 2016 From: taboege at ...626... (Tobias Boege) Date: Wed, 24 Feb 2016 20:22:27 +0100 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <1978869609.2013366.1456340652984.JavaMail.yahoo@...3424...> References: <20160224170927.GA3451@...2774...> <1978869609.2013366.1456340652984.JavaMail.yahoo@...3424...> Message-ID: <20160224192227.GB3451@...2774...> On Wed, 24 Feb 2016, Matias De lellis wrote: > >It is a different>matter, though, if Firmata is a graphical control. Graphical controls always > >have a name property and you can use a Form's Controls property to search a > >control by name like this: > > > > hMyFirmata = FMain.Controls["Firmata1"] > > > >Note again: this only works if you know the form (FMain in this case) where > >you want to search your object and the object is a control. > > > I thought it, but as inherited from SerialPort (Not UserControl) does not work.. > > I implemented this in the previous attached example, and prints all controls except virtuals. > > Dim hControl As Control > > Dim hForm As Form Then > > If Me.Parent Is Form ' Always can iterate to find the Form.. > > hForm = Me.Parent > > For Each hControl In hForm.Controls > > Debug hControl.name > > Next > > Endif > > May need to do inherit from UserControl but I have to add even more code to relate the UserControl parent with the child SerialPort properties and events.. > OK, then another, more self-contained way. You have a class Firmata which is instantiable and you want to keep track of the instances, right? Then modify Firmata.class like so: Static Private $cObjects As New Collection Static Public Sub _get(Name As String) As Firmata ' Search through registered objects Return $cObjects[Name] End Public Sub _new(Name As String) ' Register every newly created Firmata object $cObjects[Name] = Me End There is a static Collection which records every newly created object. You must now specify a name for each Firmata object on creation. Given a string variable sName which contains a the name of an existing Firmata object you can obtain the object simply as hMyFirmata = Firmata[sName] The above code will give you circular reference errors and it does not include a way to remove an instance from the Collection so that its refcount drops to zero and the Firmata object can be deleted. I have not enough time ATM to make a better example, but if you get the idea, I'm sure you can fix the remaining issues. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Wed Feb 24 21:49:12 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Feb 2016 21:49:12 +0100 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <20160224192227.GB3451@...2774...> References: <20160224170927.GA3451@...2774...> <1978869609.2013366.1456340652984.JavaMail.yahoo@...3424...> <20160224192227.GB3451@...2774...> Message-ID: <CAFkCsL7-MH=mG8j_N=ZMGpGaz2x868qPQQfvjz+gFo=UNJAVfg@...627...> You can use another way : Imagine a firmata that will be a container. all the children of this container will be connected to this connection. so you can work visually and children just needto search the connection in theire parent 2016-02-24 20:22 GMT+01:00 Tobias Boege <taboege at ...626...>: > On Wed, 24 Feb 2016, Matias De lellis wrote: >> >It is a different>matter, though, if Firmata is a graphical control. Graphical controls always >> >have a name property and you can use a Form's Controls property to search a >> >control by name like this: >> > >> > hMyFirmata = FMain.Controls["Firmata1"] >> > >> >Note again: this only works if you know the form (FMain in this case) where >> >you want to search your object and the object is a control. >> >> >> I thought it, but as inherited from SerialPort (Not UserControl) does not work.. >> >> I implemented this in the previous attached example, and prints all controls except virtuals. >> > Dim hControl As Control >> > Dim hForm As Form Then >> > If Me.Parent Is Form ' Always can iterate to find the Form.. >> > hForm = Me.Parent >> > For Each hControl In hForm.Controls >> > Debug hControl.name >> > Next >> > Endif >> >> May need to do inherit from UserControl but I have to add even more code to relate the UserControl parent with the child SerialPort properties and events.. >> > > OK, then another, more self-contained way. You have a class Firmata which is > instantiable and you want to keep track of the instances, right? Then modify > Firmata.class like so: > > Static Private $cObjects As New Collection > > Static Public Sub _get(Name As String) As Firmata > ' Search through registered objects > Return $cObjects[Name] > End > > Public Sub _new(Name As String) > ' Register every newly created Firmata object > $cObjects[Name] = Me > End > > There is a static Collection which records every newly created object. You > must now specify a name for each Firmata object on creation. Given a string > variable sName which contains a the name of an existing Firmata object you > can obtain the object simply as > > hMyFirmata = Firmata[sName] > > The above code will give you circular reference errors and it does not > include a way to remove an instance from the Collection so that its refcount > drops to zero and the Firmata object can be deleted. I have not enough time > ATM to make a better example, but if you get the idea, I'm sure you can fix > the remaining issues. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Wed Feb 24 22:10:27 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Feb 2016 22:10:27 +0100 Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <CAFkCsL7-MH=mG8j_N=ZMGpGaz2x868qPQQfvjz+gFo=UNJAVfg@...627...> References: <20160224170927.GA3451@...2774...> <1978869609.2013366.1456340652984.JavaMail.yahoo@...3424...> <20160224192227.GB3451@...2774...> <CAFkCsL7-MH=mG8j_N=ZMGpGaz2x868qPQQfvjz+gFo=UNJAVfg@...627...> Message-ID: <CAFkCsL4hOh368qSYGQx=A=47_STReJdc-4eUcsLv2VeHHexPMA@...627...> This is a working example 2016-02-24 21:49 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>: > You can use another way : > > Imagine a firmata that will be a container. > > all the children of this container will be connected to this connection. > > so you can work visually and children just needto search the > connection in theire parent > > > > 2016-02-24 20:22 GMT+01:00 Tobias Boege <taboege at ...626...>: >> On Wed, 24 Feb 2016, Matias De lellis wrote: >>> >It is a different>matter, though, if Firmata is a graphical control. Graphical controls always >>> >have a name property and you can use a Form's Controls property to search a >>> >control by name like this: >>> > >>> > hMyFirmata = FMain.Controls["Firmata1"] >>> > >>> >Note again: this only works if you know the form (FMain in this case) where >>> >you want to search your object and the object is a control. >>> >>> >>> I thought it, but as inherited from SerialPort (Not UserControl) does not work.. >>> >>> I implemented this in the previous attached example, and prints all controls except virtuals. >>> > Dim hControl As Control >>> > Dim hForm As Form Then >>> > If Me.Parent Is Form ' Always can iterate to find the Form.. >>> > hForm = Me.Parent >>> > For Each hControl In hForm.Controls >>> > Debug hControl.name >>> > Next >>> > Endif >>> >>> May need to do inherit from UserControl but I have to add even more code to relate the UserControl parent with the child SerialPort properties and events.. >>> >> >> OK, then another, more self-contained way. You have a class Firmata which is >> instantiable and you want to keep track of the instances, right? Then modify >> Firmata.class like so: >> >> Static Private $cObjects As New Collection >> >> Static Public Sub _get(Name As String) As Firmata >> ' Search through registered objects >> Return $cObjects[Name] >> End >> >> Public Sub _new(Name As String) >> ' Register every newly created Firmata object >> $cObjects[Name] = Me >> End >> >> There is a static Collection which records every newly created object. You >> must now specify a name for each Firmata object on creation. Given a string >> variable sName which contains a the name of an existing Firmata object you >> can obtain the object simply as >> >> hMyFirmata = Firmata[sName] >> >> The above code will give you circular reference errors and it does not >> include a way to remove an instance from the Collection so that its refcount >> drops to zero and the Firmata object can be deleted. I have not enough time >> ATM to make a better example, but if you get the idea, I'm sure you can fix >> the remaining issues. >> >> Regards, >> Tobi >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------------------------ >> 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=272487151&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Firmata-0.2.2.tar.gz Type: application/x-gzip Size: 16140 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160224/2911c025/attachment.bin> From t.lee.davidson at ...626... Thu Feb 25 03:52:55 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 24 Feb 2016 21:52:55 -0500 Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? Message-ID: <56CE6C87.2010700@...626...> I have a project with a TableView that has the cells of certain columns defined as editable since the content can change. The problem is when the user is editing a row and uses either ENTER or an arrow key to move to the next editable cell, any existing text in the cell gets in the way and needs to be manually deleted. It's a little annoying to have to continually use the delete key, or double-click to select all the text. I'd like all the text to be selected when the cell is first entered via the keyboard, but I cannot figure out how to do that. The TableView.Activate event is raised when a cell is entered, and so I have tried the following: [code] Public Sub TableView1_Activate() Dim hTextBox As TextBox TableView1.Edit() hTextBox = TableView1.Editor hTextBox.Select() End [/code] (Note: TableView.Editor is a Control and hence does not have a Select method. But TableView.Edit uses a TextBox control by default to edit the cell.) But, it doesn't work. No error is raised, but the text is not selected. Any ideas? -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From abbat.81 at ...787... Thu Feb 25 08:52:43 2016 From: abbat.81 at ...787... (abbat81) Date: Thu, 25 Feb 2016 00:52:43 -0700 (MST) Subject: [Gambas-user] Textbox transparent Message-ID: <1456386763485-55538.post@...3046...> Is there any way to get textbox transparent? -- View this message in context: http://gambas.8142.n7.nabble.com/Textbox-transparent-tp55538.html Sent from the gambas-user mailing list archive at Nabble.com. From vuott at ...325... Thu Feb 25 16:24:04 2016 From: vuott at ...325... (Ru Vuott) Date: Thu, 25 Feb 2016 15:24:04 +0000 (UTC) Subject: [Gambas-user] R: Textbox transparent References: <1110328470.15641137.1456413844194.JavaMail.yahoo.ref@...3424...> Message-ID: <1110328470.15641137.1456413844194.JavaMail.yahoo@...3424...> ....i would suggest: Public Sub Form_Open() TextBox1.Background = -16777216 End -------------------------------------------- Gio 25/2/16, abbat81 <abbat.81 at ...787...> ha scritto: Oggetto: [Gambas-user] Textbox transparent A: gambas-user at lists.sourceforge.net Data: Gioved? 25 febbraio 2016, 08:52 Is there any way to get textbox transparent? -- View this message in context: http://gambas.8142.n7.nabble.com/Textbox-transparent-tp55538.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Thu Feb 25 16:33:13 2016 From: vuott at ...325... (Ru Vuott) Date: Thu, 25 Feb 2016 15:33:13 +0000 (UTC) Subject: [Gambas-user] R: Textbox transparent References: <1493562604.15513079.1456414393987.JavaMail.yahoo.ref@...3424...> Message-ID: <1493562604.15513079.1456414393987.JavaMail.yahoo@...3424...> ... absolutly transparent: Public Sub Form_Open() With TextBox1 .Border = Border.None .Background = Color.Transparent ' id est: -16777216 End With End -------------------------------------------- Gio 25/2/16, abbat81 <abbat.81 at ...787...> ha scritto: Oggetto: [Gambas-user] Textbox transparent A: gambas-user at lists.sourceforge.net Data: Gioved? 25 febbraio 2016, 08:52 Is there any way to get textbox transparent? -- View this message in context: http://gambas.8142.n7.nabble.com/Textbox-transparent-tp55538.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From charlie at ...2793... Thu Feb 25 18:00:38 2016 From: charlie at ...2793... (Charlie) Date: Thu, 25 Feb 2016 10:00:38 -0700 (MST) Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <56CE6C87.2010700@...626...> References: <56CE6C87.2010700@...626...> Message-ID: <1456419638312-55541.post@...3046...> I could not get Gambas to do this, that's not to say it can't. I noticed that pressing [Ctrl]+A selected the text so my solution is to get BASH to press [Ctrl]+A 1/. Download and install 'xdotool' 2/. Insert the following line after 'TableView1.Edit()' Shell "xdotool key ctrl+a" It worked for me. -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-automatically-select-all-text-when-first-entering-editable-TableView-cell-tp55537p55541.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Thu Feb 25 19:30:49 2016 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 25 Feb 2016 19:30:49 +0100 Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <1456419638312-55541.post@...3046...> References: <56CE6C87.2010700@...626...> <1456419638312-55541.post@...3046...> Message-ID: <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> That is very tricky. Just try this: Public Sub Form_Open() TextBox1.SetFocus() TextBox1.Select(0, Len(TextBox1.Text)) End 2016-02-25 18:00 GMT+01:00 Charlie <charlie at ...2793...>: > I could not get Gambas to do this, that's not to say it can't. I noticed > that > pressing [Ctrl]+A selected the text so my solution is to get BASH to press > [Ctrl]+A > 1/. Download and install 'xdotool' > 2/. Insert the following line after 'TableView1.Edit()' > Shell "xdotool key ctrl+a" > It worked for me. > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-automatically-select-all-text-when-first-entering-editable-TableView-cell-tp55537p55541.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Thu Feb 25 20:30:56 2016 From: charlie at ...2793... (Charlie) Date: Thu, 25 Feb 2016 12:30:56 -0700 (MST) Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> References: <56CE6C87.2010700@...626...> <1456419638312-55541.post@...3046...> <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> Message-ID: <1456428656188-55543.post@...3046...> Hi Jorge, I looked at you solution but have a couple of points:- 1/. To select all the text in a TextBox there is no need for any more than *TextBox1.Select* 2/. Even if, having added a TextBox as an editor, you change T Lee's code to the below it doesn't work for me: - * TableView1.Editwith(TextBox1) TextBox1.Select * Can you provide code that works as it would be better than my 'Shelling' example? -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-automatically-select-all-text-when-first-entering-editable-TableView-cell-tp55537p55543.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Thu Feb 25 20:34:05 2016 From: charlie at ...2793... (Charlie) Date: Thu, 25 Feb 2016 12:34:05 -0700 (MST) Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early In-Reply-To: <BUG897:20160221234643385@...3416...> References: <BUG897@...3416...> <BUG897:20160221234643385@...3416...> Message-ID: <1456428845084-55544.post@...3046...> Please also see this thread: - * https://gambas.guru/tiki-view_forum_thread.php?forumId=31&threadId=5094&comzone=show#threadId5094 <https://gambas.guru/tiki-view_forum_thread.php?forumId=31&threadId=5094&comzone=show#threadId5094> * -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-Bug-Tracker-Bug-897-Function-week-is-one-hour-to-early-tp55504p55544.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1823... Thu Feb 25 21:55:47 2016 From: rterry at ...1823... (richard terry) Date: Fri, 26 Feb 2016 07:55:47 +1100 Subject: [Gambas-user] Feature request for gambas load screen Message-ID: <56CF6A53.7020803@...1823...> Hi benoit, If there is another way to do this please let me know. When I load gambas the boot screen has lots of 'old' projects on it. As I continue to develop my software I sometimes run in parallel different versions, they will com up looking the same except different database version and svn version numbers, it all get very confusing, especially if having to scroll down through other recently loaded gambas projects eg downloaded from the software farm. Is there any way one can currently delete the unwanted ones, or could you on the right mouse popup menu put a Delete Project from list option. Regards richard From gambas.fr at ...626... Thu Feb 25 22:29:43 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 25 Feb 2016 22:29:43 +0100 Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <1456428656188-55543.post@...3046...> References: <56CE6C87.2010700@...626...> <1456419638312-55541.post@...3046...> <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> <1456428656188-55543.post@...3046...> Message-ID: <CAFkCsL6UYLisbgWja7JmUiwbSGUwqm5HfjKvsg5zBiaZx6CZow@...627...> 2016-02-25 20:30 GMT+01:00 Charlie <charlie at ...2793...>: > Hi Jorge, > I looked at you solution but have a couple of points:- > 1/. To select all the text in a TextBox there is no need for any more than > *TextBox1.Select* Well it seem there is a problem with gtk for that. > 2/. Even if, having added a TextBox as an editor, you change T Lee's code to > the below it doesn't work for me: - > * TableView1.Editwith(TextBox1) > TextBox1.Select > * Can you provide code that works as it would be better than my 'Shelling' > example? The code below work well. It seem that the code in table view interact after the activate event on the editor. So the workaround is to do the selection after the event. That is what my code do ' Gambas class file Private hEditor As TextBox Private obs As Observer Public Sub Form_Open() TableView1.Columns.Count = 3 TableView1.Rows.Count = 4 TableView1[0, 0].Text = "lhddhdlhddkhdkhe" TableView1[0, 1].Text = "kljkljhdljdhdljh" End Public Sub TableView1_Activate() 'Dim hEditor As TextBox TableView1.Edit hEditor = TableView1.Editor obs = New Observer(hEditor, True) As "OBS" End Public Sub OBS_GotFocus() hEditor.Select(0, Len(hEditor.Text)) End From rterry at ...1823... Thu Feb 25 22:40:06 2016 From: rterry at ...1823... (richard terry) Date: Fri, 26 Feb 2016 08:40:06 +1100 Subject: [Gambas-user] An heretical suggestion for the IDE toolbar Message-ID: <56CF74B6.1050603@...1823...> Hi benoit, I wonder if you would consider this. I can't tell you how many times I click on the wrong icon up on the left hand side, when I'm constantly switching from form to code. The save, reload and the constantly switching code/form little icon are confusing. Since there is such a large amount of space on the toolbar there, why not just write the name on the code/form button so that it says "Code" or "Form". It would certainly make life alot easier. I don't have any problems with the other icons. Regards Ricchard From shordi at ...626... Thu Feb 25 22:40:42 2016 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 25 Feb 2016 22:40:42 +0100 Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <1456428656188-55543.post@...3046...> References: <56CE6C87.2010700@...626...> <1456419638312-55541.post@...3046...> <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> <1456428656188-55543.post@...3046...> Message-ID: <CAOx-q9sK11LMOTJfcoXS7SOgSfFXr3HK7SQSof+dvsvU0xXPHg@...627...> The textbox1.select() without parameters doesn't work for me, despite what gambas help says. Passing the parameters works well... However, I must say that I haven't tested it on a tableview... Regards 2016-02-25 20:30 GMT+01:00 Charlie <charlie at ...2793...>: > Hi Jorge, > I looked at you solution but have a couple of points:- > 1/. To select all the text in a TextBox there is no need for any more than > *TextBox1.Select* > 2/. Even if, having added a TextBox as an editor, you change T Lee's code > to > the below it doesn't work for me: - > * TableView1.Editwith(TextBox1) > TextBox1.Select > * Can you provide code that works as it would be better than my 'Shelling' > example? > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-automatically-select-all-text-when-first-entering-editable-TableView-cell-tp55537p55543.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Thu Feb 25 22:42:51 2016 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 25 Feb 2016 22:42:51 +0100 Subject: [Gambas-user] Feature request for gambas load screen In-Reply-To: <56CF6A53.7020803@...1823...> References: <56CF6A53.7020803@...1823...> Message-ID: <1456436571.3612.3.camel@...40...> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: > Hi benoit, > > If there is another way to do this please let me know. > > When I load gambas the boot screen has lots of 'old' projects on it. As > I continue to develop my software I sometimes run in parallel different > versions, they will com up looking the same except different database > version and svn version numbers, it all get very confusing, especially > if having to scroll down through other recently loaded gambas projects > eg downloaded from the software farm. > > Is there any way one can currently delete the unwanted ones, or could > you on the right mouse popup menu put a Delete Project from list option. > > Regards > > richard Salut Richard, cleaning up the project list, that was realised at Revision: 7589 but now on Revision: 7610 I see it got lost! -- Amicalement Charlie From jussi.lahtinen at ...626... Thu Feb 25 22:51:52 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 Feb 2016 23:51:52 +0200 Subject: [Gambas-user] An heretical suggestion for the IDE toolbar In-Reply-To: <56CF74B6.1050603@...1823...> References: <56CF74B6.1050603@...1823...> Message-ID: <CAFJMe7Rb4+rR+Pxhrd2eoVY_JB0oyrX7nipJG5OE9jLNEzHRgA@...627...> Click on the toolbar with right mouse button and select configure. That way you can rearrange the icons more suitably for you. Maybe that helps? Jussi On Thu, Feb 25, 2016 at 11:40 PM, richard terry <rterry at ...1823...> wrote: > Hi benoit, > > I wonder if you would consider this. > > I can't tell you how many times I click on the wrong icon up on the > left hand side, when I'm constantly switching from form to code. The > save, reload and the constantly switching code/form little icon are > confusing. > > Since there is such a large amount of space on the toolbar there, why > not just write the name on the code/form button so that it says "Code" > or "Form". It would certainly make life alot easier. > > I don't have any problems with the other icons. > > Regards > > Ricchard > > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Feb 25 22:54:13 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 25 Feb 2016 22:54:13 +0100 Subject: [Gambas-user] Feature request for gambas load screen In-Reply-To: <1456436571.3612.3.camel@...40...> References: <56CF6A53.7020803@...1823...> <1456436571.3612.3.camel@...40...> Message-ID: <56CF7805.6050500@...1...> Le 25/02/2016 22:42, Charlie Reinl a ?crit : > Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: >> Hi benoit, >> >> If there is another way to do this please let me know. >> >> When I load gambas the boot screen has lots of 'old' projects on it. As >> I continue to develop my software I sometimes run in parallel different >> versions, they will com up looking the same except different database >> version and svn version numbers, it all get very confusing, especially >> if having to scroll down through other recently loaded gambas projects >> eg downloaded from the software farm. >> >> Is there any way one can currently delete the unwanted ones, or could >> you on the right mouse popup menu put a Delete Project from list option. >> >> Regards >> >> richard > > Salut Richard, > > cleaning up the project list, that was realised at Revision: 7589 but > now on Revision: 7610 I see it got lost! > In '/trunk' IDE, you have a little delete icon visible when you hover the project box: click on it to remove the project from the recent list. Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: remove project from recent list.png Type: image/png Size: 230819 bytes Desc: not available URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160225/8a1df643/attachment.png> From charlie at ...2793... Thu Feb 25 22:59:29 2016 From: charlie at ...2793... (Charlie) Date: Thu, 25 Feb 2016 14:59:29 -0700 (MST) Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <CAFkCsL6UYLisbgWja7JmUiwbSGUwqm5HfjKvsg5zBiaZx6CZow@...627...> References: <56CE6C87.2010700@...626...> <1456419638312-55541.post@...3046...> <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> <1456428656188-55543.post@...3046...> <CAFkCsL6UYLisbgWja7JmUiwbSGUwqm5HfjKvsg5zBiaZx6CZow@...627...> Message-ID: <1456437569563-55552.post@...3046...> Sorry Fabien but your code does not work for me (GTK or QT4), The next selected cell's text is not 'selected' Have a look at the video attached. cinnamon-20160225-1.webm <http://gambas.8142.n7.nabble.com/file/n55552/cinnamon-20160225-1.webm> -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-automatically-select-all-text-when-first-entering-editable-TableView-cell-tp55537p55552.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Thu Feb 25 23:05:12 2016 From: charlie at ...2793... (Charlie) Date: Thu, 25 Feb 2016 15:05:12 -0700 (MST) Subject: [Gambas-user] An heretical suggestion for the IDE toolbar In-Reply-To: <CAFJMe7Rb4+rR+Pxhrd2eoVY_JB0oyrX7nipJG5OE9jLNEzHRgA@...627...> References: <56CF74B6.1050603@...1823...> <CAFJMe7Rb4+rR+Pxhrd2eoVY_JB0oyrX7nipJG5OE9jLNEzHRgA@...627...> Message-ID: <1456437912670-55553.post@...3046...> Simply press [F12] to swap between code and Form -- View this message in context: http://gambas.8142.n7.nabble.com/An-heretical-suggestion-for-the-IDE-toolbar-tp55547p55553.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Fri Feb 26 00:00:15 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 25 Feb 2016 23:00:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early In-Reply-To: <BUG897@...3416...> References: <BUG897@...3416...> Message-ID: <BUG897:20160226000014759@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.897&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #7611. Beno?t MINISINI changed the state of the bug to: Fixed. From Karl.Reinl at ...2345... Fri Feb 26 00:07:52 2016 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 26 Feb 2016 00:07:52 +0100 Subject: [Gambas-user] Feature request for gambas load screen In-Reply-To: <56CF7805.6050500@...1...> References: <56CF6A53.7020803@...1823...> <1456436571.3612.3.camel@...40...> <56CF7805.6050500@...1...> Message-ID: <1456441672.3612.7.camel@...40...> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Beno?t Minisini: > Le 25/02/2016 22:42, Charlie Reinl a ?crit : > > Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: > >> Hi benoit, > >> > >> If there is another way to do this please let me know. > >> > >> When I load gambas the boot screen has lots of 'old' projects on it. As > >> I continue to develop my software I sometimes run in parallel different > >> versions, they will com up looking the same except different database > >> version and svn version numbers, it all get very confusing, especially > >> if having to scroll down through other recently loaded gambas projects > >> eg downloaded from the software farm. > >> > >> Is there any way one can currently delete the unwanted ones, or could > >> you on the right mouse popup menu put a Delete Project from list option. > >> > >> Regards > >> > >> richard > > > > Salut Richard, > > > > cleaning up the project list, that was realised at Revision: 7589 but > > now on Revision: 7610 I see it got lost! > > > > In '/trunk' IDE, you have a little delete icon visible when you hover > the project box: click on it to remove the project from the recent list. > > Regards, Salut Beno?t, OH, yes indeed, oh thats the smarter solution! But not easy to find out. Thank you for telling. -- Amicalement Charlie From gambas at ...1... Fri Feb 26 00:10:54 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 26 Feb 2016 00:10:54 +0100 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #897: Function "week" is one hour to early In-Reply-To: <1456428845084-55544.post@...3046...> References: <BUG897@...3416...> <BUG897:20160221234643385@...3416...> <1456428845084-55544.post@...3046...> Message-ID: <56CF89FE.1080105@...1...> Le 25/02/2016 20:34, Charlie a ?crit : > Please also see this thread: - > * > https://gambas.guru/tiki-view_forum_thread.php?forumId=31&threadId=5094&comzone=show#threadId5094 > <https://gambas.guru/tiki-view_forum_thread.php?forumId=31&threadId=5094&comzone=show#threadId5094> > * > See, and fixed in revision #7612. Regards, -- Beno?t Minisini From t.lee.davidson at ...626... Fri Feb 26 01:21:56 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Thu, 25 Feb 2016 19:21:56 -0500 Subject: [Gambas-user] How to automatically select all text when first entering editable TableView cell? In-Reply-To: <CAFkCsL6UYLisbgWja7JmUiwbSGUwqm5HfjKvsg5zBiaZx6CZow@...627...> References: <56CE6C87.2010700@...626...> <1456419638312-55541.post@...3046...> <CAOx-q9t_0QA=wrhrazcMAZAd9-+XmWrJ+PLC_1wcUa1NsRP5rg@...627...> <1456428656188-55543.post@...3046...> <CAFkCsL6UYLisbgWja7JmUiwbSGUwqm5HfjKvsg5zBiaZx6CZow@...627...> Message-ID: <56CF9AA4.3060508@...626...> On 02/25/2016 04:29 PM, Fabien Bodard wrote: > The code below work well. It seem that the code in table view interact > after the activate event on the editor. So the workaround > is to do the selection after the event. That is what my code do > > > > ' Gambas class file > > Private hEditor As TextBox > Private obs As Observer > Public Sub Form_Open() > > TableView1.Columns.Count = 3 > TableView1.Rows.Count = 4 > TableView1[0, 0].Text = "lhddhdlhddkhdkhe" > TableView1[0, 1].Text = "kljkljhdljdhdljh" > End > > Public Sub TableView1_Activate() > 'Dim hEditor As TextBox > TableView1.Edit > hEditor = TableView1.Editor > obs = New Observer(hEditor, True) As "OBS" > > > End > > Public Sub OBS_GotFocus() > > hEditor.Select(0, Len(hEditor.Text)) > > End I thought indeed this was my solution, Fabien. But alas, it does not work for me on Qt. I don't have 'xdotools', Charlie, so I didn't give your interesting solution a try. But, it did give me an idea. And the solution is so simple. This works for me on Qt: Public Sub TableView1_Activate() TableView1.Edit() Desktop.SendKeys("{[Control_R]a}") Return End Thank you all for your responses. Lee __________ "Artificial Intelligence is no match for natural stupidity." From rterry at ...1823... Fri Feb 26 04:35:02 2016 From: rterry at ...1823... (richard terry) Date: Fri, 26 Feb 2016 14:35:02 +1100 Subject: [Gambas-user] Feature request for gambas load screen In-Reply-To: <1456441672.3612.7.camel@...40...> References: <56CF6A53.7020803@...1823...> <1456436571.3612.3.camel@...40...> <56CF7805.6050500@...1...> <1456441672.3612.7.camel@...40...> Message-ID: <56CFC7E6.50103@...1823...> On 26/02/16 10:07, Charlie Reinl wrote: > Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Beno?t Minisini: >> Le 25/02/2016 22:42, Charlie Reinl a ?crit : >>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: >>>> Hi benoit, >>>> >>>> If there is another way to do this please let me know. >>>> >>>> When I load gambas the boot screen has lots of 'old' projects on it. As >>>> I continue to develop my software I sometimes run in parallel different >>>> versions, they will com up looking the same except different database >>>> version and svn version numbers, it all get very confusing, especially >>>> if having to scroll down through other recently loaded gambas projects >>>> eg downloaded from the software farm. >>>> >>>> Is there any way one can currently delete the unwanted ones, or could >>>> you on the right mouse popup menu put a Delete Project from list option. >>>> >>>> Regards >>>> >>>> richard >>> Salut Richard, >>> >>> cleaning up the project list, that was realised at Revision: 7589 but >>> now on Revision: 7610 I see it got lost! >>> >> In '/trunk' IDE, you have a little delete icon visible when you hover >> the project box: click on it to remove the project from the recent list. >> >> Regards, > Salut Beno?t, > > OH, yes indeed, oh thats the smarter solution! But not easy to find out. > Thank you for telling. I'm clueless, can't see this, could someone send me a screen dump showing where it is to rterry at ...1823... (thanks) richard From eilert-sprachen at ...221... Fri Feb 26 08:40:19 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 26 Feb 2016 08:40:19 +0100 Subject: [Gambas-user] Feature request for gambas load screen In-Reply-To: <56CF7805.6050500@...1...> References: <56CF6A53.7020803@...1823...> <1456436571.3612.3.camel@...40...> <56CF7805.6050500@...1...> Message-ID: <56D00163.2030108@...221...> Am 25.02.2016 22:54, schrieb Beno?t Minisini: > Le 25/02/2016 22:42, Charlie Reinl a ?crit : >> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: >>> Hi benoit, >>> >>> If there is another way to do this please let me know. >>> >>> When I load gambas the boot screen has lots of 'old' projects on it. As >>> I continue to develop my software I sometimes run in parallel different >>> versions, they will com up looking the same except different database >>> version and svn version numbers, it all get very confusing, especially >>> if having to scroll down through other recently loaded gambas projects >>> eg downloaded from the software farm. >>> >>> Is there any way one can currently delete the unwanted ones, or could >>> you on the right mouse popup menu put a Delete Project from list >>> option. >>> >>> Regards >>> >>> richard >> >> Salut Richard, >> >> cleaning up the project list, that was realised at Revision: 7589 but >> now on Revision: 7610 I see it got lost! >> > > In '/trunk' IDE, you have a little delete icon visible when you hover > the project box: click on it to remove the project from the recent list. > > Regards, > In your screenshot, I can see that you have this mosaic pattern in the main window. Same on my laptop, but on the terminal server, the window is just gray. Any idea what that means? Regards Rolf From eilert-sprachen at ...221... Fri Feb 26 08:42:50 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 26 Feb 2016 08:42:50 +0100 Subject: [Gambas-user] Feature request for gambas load screen In-Reply-To: <56CFC7E6.50103@...1823...> References: <56CF6A53.7020803@...1823...> <1456436571.3612.3.camel@...40...> <56CF7805.6050500@...1...> <1456441672.3612.7.camel@...40...> <56CFC7E6.50103@...1823...> Message-ID: <56D001FA.2010702@...221...> Am 26.02.2016 04:35, schrieb richard terry: > On 26/02/16 10:07, Charlie Reinl wrote: >> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Beno?t Minisini: >>> Le 25/02/2016 22:42, Charlie Reinl a ?crit : >>>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: >>>>> Hi benoit, >>>>> >>>>> If there is another way to do this please let me know. >>>>> >>>>> When I load gambas the boot screen has lots of 'old' projects on it. As >>>>> I continue to develop my software I sometimes run in parallel different >>>>> versions, they will com up looking the same except different database >>>>> version and svn version numbers, it all get very confusing, especially >>>>> if having to scroll down through other recently loaded gambas projects >>>>> eg downloaded from the software farm. >>>>> >>>>> Is there any way one can currently delete the unwanted ones, or could >>>>> you on the right mouse popup menu put a Delete Project from list option. >>>>> >>>>> Regards >>>>> >>>>> richard >>>> Salut Richard, >>>> >>>> cleaning up the project list, that was realised at Revision: 7589 but >>>> now on Revision: 7610 I see it got lost! >>>> >>> In '/trunk' IDE, you have a little delete icon visible when you hover >>> the project box: click on it to remove the project from the recent list. >>> >>> Regards, >> Salut Beno?t, >> >> OH, yes indeed, oh thats the smarter solution! But not easy to find out. >> Thank you for telling. > I'm clueless, can't see this, could someone send me a screen dump > showing where it is to rterry at ...1823... (thanks) > > richard > It's on the trunk version only. I guess you use the latest official one like me? It's not there yet. Regards Rolf From rterry at ...1823... Fri Feb 26 08:46:34 2016 From: rterry at ...1823... (rterry) Date: Fri, 26 Feb 2016 18:46:34 +1100 Subject: [Gambas-user] Fwd: Re: Feature request for gambas load screen Message-ID: <9m52s84m3pcohhk6q835yiyl.1456472794254@...2550...> Sent from my Samsung GALAXY S5 -------- Original message -------- From: Rolf-Werner Eilert <eilert-sprachen at ...221...> Date: 26/02/2016 18:42 (GMT+10:00) To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Feature request for gambas load screen Am 26.02.2016 04:35, schrieb richard terry: > On 26/02/16 10:07, Charlie Reinl wrote: >> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Beno?t Minisini: >>> Le 25/02/2016 22:42, Charlie Reinl a ?crit : >>>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: >>>>> Hi benoit, >>>>> >>>>> If there is another way to do this please let me know. >>>>> >>>>> When I load gambas the boot screen has lots of 'old' projects on it. As >>>>> I continue to develop my software I sometimes run in parallel different >>>>> versions, they will com up looking the same except different database >>>>> version and svn version numbers, it all get very confusing, especially >>>>> if having to scroll down through other recently loaded gambas projects >>>>> eg downloaded from the software farm. >>>>> >>>>> Is there any way one can currently delete the unwanted ones, or could >>>>> you on the right mouse popup menu put a Delete Project from list option. >>>>> >>>>> Regards >>>>> >>>>> richard >>>> Salut Richard, >>>> >>>> cleaning up the project list, that was realised at Revision: 7589 but >>>> now on Revision: 7610 I see it got lost! >>>> >>> In '/trunk' IDE, you have a little delete icon visible when you hover >>> the project box: click on it to remove the project from the recent list. >>> >>> Regards, >> Salut Beno?t, >> >> OH, yes indeed, oh thats the smarter solution! But not easy to find out. >> Thank you for telling. > I'm clueless, can't see this, could someone send me a screen dump > showing where it is to rterry at ...1823... (thanks) > > richard > It's on the trunk version only. I guess you use the latest official one like me? It's not there yet. Regards Rolf Yes use mint 3.8.4 so obviously not there. ? ------------------------------------------------------------------------------ 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=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...2345... Fri Feb 26 12:51:13 2016 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 26 Feb 2016 12:51:13 +0100 Subject: [Gambas-user] Fwd: Re: Feature request for gambas load screen In-Reply-To: <9m52s84m3pcohhk6q835yiyl.1456472794254@...2550...> References: <9m52s84m3pcohhk6q835yiyl.1456472794254@...2550...> Message-ID: <1456487473.4188.4.camel@...40...> Am Freitag, den 26.02.2016, 18:46 +1100 schrieb rterry: > > > > > > Sent from my Samsung GALAXY S5 > > -------- Original message -------- > From: Rolf-Werner Eilert <eilert-sprachen at ...221...> > Date: 26/02/2016 18:42 (GMT+10:00) > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Feature request for gambas load screen > > > Am 26.02.2016 04:35, schrieb richard terry: > > On 26/02/16 10:07, Charlie Reinl wrote: > >> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Beno?t Minisini: > >>> Le 25/02/2016 22:42, Charlie Reinl a ?crit : > >>>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: > >>>>> Hi benoit, > >>>>> > >>>>> If there is another way to do this please let me know. > >>>>> > >>>>> When I load gambas the boot screen has lots of 'old' projects on it. As > >>>>> I continue to develop my software I sometimes run in parallel different > >>>>> versions, they will com up looking the same except different database > >>>>> version and svn version numbers, it all get very confusing, especially > >>>>> if having to scroll down through other recently loaded gambas projects > >>>>> eg downloaded from the software farm. > >>>>> > >>>>> Is there any way one can currently delete the unwanted ones, or could > >>>>> you on the right mouse popup menu put a Delete Project from list option. > >>>>> > >>>>> Regards > >>>>> > >>>>> richard > >>>> Salut Richard, > >>>> > >>>> cleaning up the project list, that was realised at Revision: 7589 but > >>>> now on Revision: 7610 I see it got lost! > >>>> > >>> In '/trunk' IDE, you have a little delete icon visible when you hover > >>> the project box: click on it to remove the project from the recent list. > >>> > >>> Regards, > >> Salut Beno?t, > >> > >> OH, yes indeed, oh thats the smarter solution! But not easy to find out. > >> Thank you for telling. > > I'm clueless, can't see this, could someone send me a screen dump > > showing where it is to rterry at ...1823... (thanks) > > > > richard > > > > It's on the trunk version only. I guess you use the latest official one > like me? It's not there yet. > > Regards > Rolf > Yes use mint 3.8.4 so obviously not there. Salut, and nothing (except sorting) on right mouse click ? Oh, i see 3.8.4 was released Dec 21 2015. But Revision: 7589 came on Jan 27 2016. So you have to wait or update. -- Amicalement Charlie From mati86_dl at ...1877... Fri Feb 26 22:02:37 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Fri, 26 Feb 2016 21:02:37 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <20160224192227.GB3451@...2774...> References: <20160224192227.GB3451@...2774...> Message-ID: <1634513588.27371.1456520557546.JavaMail.yahoo@...3424...> Hi Tobi, Sorry about the delay. > OK, then another, more self-contained way. You have a class Firmata which is > instantiable and you want to keep track of the instances, right? Then modify > Firmata.class like so: > > Static Private $cObjects As New Collection > > Static Public Sub _get(Name As String) As Firmata > ' Search through registered objects > Return $cObjects[Name] > End > > Public Sub _new(Name As String) > ' Register every newly created Firmata object > $cObjects[Name] = Me > End > > There is a static Collection which records every newly created object. You > must now specify a name for each Firmata object on creation. Given a string > variable sName which contains a the name of an existing Firmata object you > can obtain the object simply as > > hMyFirmata = Firmata[sName] > > The above code will give you circular reference errors and it does not > include a way to remove an instance from the Collection so that its refcount > drops to zero and the Firmata object can be deleted. I have not enough time > ATM to make a better example, but if you get the idea, I'm sure you can fix > the remaining issues. It seems an interesting option, but still did not dedicated enough time to even analyze. I have little free time these days.. :( Next week I will try continue this. ;) Regards and thanks for all, Matias From mati86_dl at ...1877... Fri Feb 26 22:18:08 2016 From: mati86_dl at ...1877... (Matias De lellis) Date: Fri, 26 Feb 2016 21:18:08 +0000 (UTC) Subject: [Gambas-user] Get the object of a component by name. In-Reply-To: <493512764.18707.1456521434655.JavaMail.yahoo@...3424...> References: <CAFkCsL4hOh368qSYGQx=A=47_STReJdc-4eUcsLv2VeHHexPMA@...627...> <493512764.18707.1456521434655.JavaMail.yahoo@...3424...> Message-ID: <1338487443.7655.1456521488748.JavaMail.yahoo@...3424...> El Viernes, 26 de febrero, 2016 18:17:14, Matias De lellis <mati86_dl at ...3322...77...> escribi?: Hi Fabien, As an idea is good .. I found it very interesting.. I also thought do something similar at the form level, but this implementation requires me to place all components that depend on a Firmata on the same container, forcing distribute all controls on a linear, horizontal or vertical. This ends up being an important limitation when build a user interface.. Mainly at the time of using several firmata drivers, and I want to combine the controls in a single graphic interface. :S Unlike is the case of DataView (I think this is a component that was appointed) where all information should be displayed linear homogenously.. This is not the case.. Here each control is different and can dritribuirse through the entire form Thanks for all, Regards, Matias. El Mi?rcoles, 24 de febrero, 2016 18:10:30, Fabien Bodard <gambas.fr at ...1162.....626...> escribi?: This is a working example 2016-02-24 21:49 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>: > You can use another way : > > Imagine a firmata that will be a container. > > all the children of this container will be connected to this connection. > > so you can work visually and children just needto search the > connection in theire parent > > > > 2016-02-24 20:22 GMT+01:00 Tobias Boege <taboege at ...626...>: >> On Wed, 24 Feb 2016, Matias De lellis wrote: >>> >It is a different>matter, though, if Firmata is a graphical control. Graphical controls always >>> >have a name property and you can use a Form's Controls property to search a >>> >control by name like this: >>> > >>> > hMyFirmata = FMain.Controls["Firmata1"] >>> > >>> >Note again: this only works if you know the form (FMain in this case) where >>> >you want to search your object and the object is a control. >>> >>> >>> I thought it, but as inherited from SerialPort (Not UserControl) does not work.. >>> >>> I implemented this in the previous attached example, and prints all controls except virtuals. >>> > Dim hControl As Control >>> > Dim hForm As Form Then >>> > If Me.Parent Is Form ' Always can iterate to find the Form.. >>> > hForm = Me.Parent >>> > For Each hControl In hForm.Controls >>> > Debug hControl.name >>> > Next >>> > Endif >>> >>> May need to do inherit from UserControl but I have to add even more code to relate the UserControl parent with the child SerialPort properties and events.. >>> >> >> OK, then another, more self-contained way. You have a class Firmata which is >> instantiable and you want to keep track of the instances, right? Then modify >> Firmata.class like so: >> >> Static Private $cObjects As New Collection >> >> Static Public Sub _get(Name As String) As Firmata >> ' Search through registered objects >> Return $cObjects[Name] >> End >> >> Public Sub _new(Name As String) >> ' Register every newly created Firmata object >> $cObjects[Name] = Me >> End >> >> There is a static Collection which records every newly created object. You >> must now specify a name for each Firmata object on creation. Given a string >> variable sName which contains a the name of an existing Firmata object you >> can obtain the object simply as >> >> hMyFirmata = Firmata[sName] >> >> The above code will give you circular reference errors and it does not >> include a way to remove an instance from the Collection so that its refcount >> drops to zero and the Firmata object can be deleted. I have not enough time >> ATM to make a better example, but if you get the idea, I'm sure you can fix >> the remaining issues. >> >> Regards, >> Tobi >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------------------------ >> 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=272487151&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From karl.reinl at ...9... Sat Feb 27 10:35:08 2016 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 27 Feb 2016 10:35:08 +0100 Subject: [Gambas-user] Fwd: Re: Feature request for gambas load screen In-Reply-To: <9m52s84m3pcohhk6q835yiyl.1456472794254@...2550...> References: <9m52s84m3pcohhk6q835yiyl.1456472794254@...2550...> Message-ID: <1456565708.5581.5.camel@...40...> Am Freitag, den 26.02.2016, 18:46 +1100 schrieb rterry: > > > > > > Sent from my Samsung GALAXY S5 > > -------- Original message -------- > From: Rolf-Werner Eilert <eilert-sprachen at ...221...> > Date: 26/02/2016 18:42 (GMT+10:00) > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Feature request for gambas load screen > > > Am 26.02.2016 04:35, schrieb richard terry: > > On 26/02/16 10:07, Charlie Reinl wrote: > >> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Beno?t Minisini: > >>> Le 25/02/2016 22:42, Charlie Reinl a ?crit : > >>>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry: > >>>>> Hi benoit, > >>>>> > >>>>> If there is another way to do this please let me know. > >>>>> > >>>>> When I load gambas the boot screen has lots of 'old' projects on it. As > >>>>> I continue to develop my software I sometimes run in parallel different > >>>>> versions, they will com up looking the same except different database > >>>>> version and svn version numbers, it all get very confusing, especially > >>>>> if having to scroll down through other recently loaded gambas projects > >>>>> eg downloaded from the software farm. > >>>>> > >>>>> Is there any way one can currently delete the unwanted ones, or could > >>>>> you on the right mouse popup menu put a Delete Project from list option. > >>>>> > >>>>> Regards > >>>>> > >>>>> richard > >>>> Salut Richard, > >>>> > >>>> cleaning up the project list, that was realised at Revision: 7589 but > >>>> now on Revision: 7610 I see it got lost! > >>>> > >>> In '/trunk' IDE, you have a little delete icon visible when you hover > >>> the project box: click on it to remove the project from the recent list. > >>> > >>> Regards, > >> Salut Beno?t, > >> > >> OH, yes indeed, oh thats the smarter solution! But not easy to find out. > >> Thank you for telling. > > I'm clueless, can't see this, could someone send me a screen dump > > showing where it is to rterry at ...1823... (thanks) > > > > richard > > > > It's on the trunk version only. I guess you use the latest official one > like me? It's not there yet. > > Regards > Rolf > Yes use mint 3.8.4 so obviously not there. Salut, I'v loaded to Software-Farm/development/cleanup_Gambas3_recent_list. That is a striped down IDE which can only do the job you are missing in 3.8.4. I'v tested it with a 3.8.0, worked well, for earlier versions I don't know. Hope that helps you till 3.8.5 ;?) -- Amicalement Charlie From abbat.81 at ...787... Sat Feb 27 12:13:04 2016 From: abbat.81 at ...787... (abbat81) Date: Sat, 27 Feb 2016 04:13:04 -0700 (MST) Subject: [Gambas-user] R: Textbox transparent In-Reply-To: <1493562604.15513079.1456414393987.JavaMail.yahoo@...3424...> References: <1493562604.15513079.1456414393987.JavaMail.yahoo@...3424...> Message-ID: <1456571584543-55567.post@...3046...> My Gambas 3.5.4 does not alow me transparent in your way. Thanks anyway -- View this message in context: http://gambas.8142.n7.nabble.com/R-Textbox-transparent-tp55540p55567.html Sent from the gambas-user mailing list archive at Nabble.com. From markus.schatten at ...2005... Sat Feb 27 22:35:47 2016 From: markus.schatten at ...2005... (Markus Schatten) Date: Sat, 27 Feb 2016 22:35:47 +0100 Subject: [Gambas-user] Problem reading attributes from XML file Message-ID: <CAPV47oTOThni4P_p4WzdBvKK=rhR81sy+65t-kEE_Mbf890fMw@...627...> Dear friends, I have a piece of code that was recently working, but for some reason it stopped (using 3.5.4. currently). What I would like to do is simply read out all attributes and their values (if they exists) from an XmlNode. Here is what I do: Public Sub btnLoad_Click() Dim xml As New XmlDocument Dim txt As String Dialog.Filter = ["*.xml", "XML Documents"] If Dialog.OpenFile() Then Return txt = File.Load(Dialog.Path) xml.FromString(txt) parse(xml.Root) End Public Sub parse(node As XmlNode) As Collection Dim child As XmlNode Dim ret As New Collection If node.Attributes Then For Each child In node.Attributes ret["@" & child.Name] = child.Value Next Endif Return ret End The XML file I'm trying to read is: <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist"> <exist:collection name="/db" created="2016-02-27T19:24:55.787+01:00" owner="SYSTEM" group="dba" permissions="rwxr-xr-x"> <exist:collection name="apps" created="2016-02-27T19:25:36.612+01:00" owner="SYSTEM" group="dba" permissions="rwxr-xr-x"/> <exist:collection name="system" created="2016-02-27T19:24:55.792+01:00" owner="SYSTEM" group="dba" permissions="rwxr-xr-x"/> </exist:collection> </exist:result> What happens is that in the parse function on the first entry into the for each loop the app crashes and the following message is displayed in the console: FATAL : tried to create a Gambas object with invalid type. I've lost the few past hours searching for a solution, but the only thing that I found is that the error is thrown in node.cpp from the gb.xml source (e.g. here https://github.com/justlostintime/gambas/blob/master/gb.xml/src/node.cpp). What am I doing wrong? How should I get all attributes from an XmlNode? All the best, M. -- Markus Schatten, PhD Assistant professor and head of Artificial Intelligence Lab University of Zagreb Faculty of Organization and Informatics Pavlinska 2, 42000 Varazdin, Croatia http://www.foi.hr/nastavnici/schatten.markus/index.html http://www.researchgate.net/profile/Markus_Schatten1 http://ai.foi.hr From t.lee.davidson at ...626... Sat Feb 27 23:38:24 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 27 Feb 2016 17:38:24 -0500 Subject: [Gambas-user] Problem reading attributes from XML file In-Reply-To: <CAPV47oTOThni4P_p4WzdBvKK=rhR81sy+65t-kEE_Mbf890fMw@...627...> References: <CAPV47oTOThni4P_p4WzdBvKK=rhR81sy+65t-kEE_Mbf890fMw@...627...> Message-ID: <56D22560.2090801@...626...> Hi Markus, I created a quick command-line version with your procedures. It works fine on v3.6.2. I get a collection returned with length of one and a value of "http://exist.sourceforge.net/NS/exist". Perhaps something has happened to your gb.xml component? On 02/27/2016 04:35 PM, Markus Schatten wrote: > Dear friends, > > I have a piece of code that was recently working, but for some reason > it stopped (using 3.5.4. currently). What I would like to do is simply > read out all attributes and their values (if they exists) from an > XmlNode. Here is what I do: > > Public Sub btnLoad_Click() > Dim xml As New XmlDocument > Dim txt As String > Dialog.Filter = ["*.xml", "XML Documents"] > If Dialog.OpenFile() Then Return > txt = File.Load(Dialog.Path) > xml.FromString(txt) > parse(xml.Root) > End > > Public Sub parse(node As XmlNode) As Collection > Dim child As XmlNode > Dim ret As New Collection > If node.Attributes Then > For Each child In node.Attributes > ret["@" & child.Name] = child.Value > Next > Endif > Return ret > End > > The XML file I'm trying to read is: > > <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist"> > <exist:collection name="/db" > created="2016-02-27T19:24:55.787+01:00" owner="SYSTEM" group="dba" > permissions="rwxr-xr-x"> > <exist:collection name="apps" > created="2016-02-27T19:25:36.612+01:00" owner="SYSTEM" group="dba" > permissions="rwxr-xr-x"/> > <exist:collection name="system" > created="2016-02-27T19:24:55.792+01:00" owner="SYSTEM" group="dba" > permissions="rwxr-xr-x"/> > </exist:collection> > </exist:result> > > What happens is that in the parse function on the first entry into the > for each loop the app crashes and the following message is displayed > in the console: > > FATAL : tried to create a Gambas object with invalid type. > > I've lost the few past hours searching for a solution, but the only > thing that I found is that the error is thrown in node.cpp from the > gb.xml source (e.g. here > https://github.com/justlostintime/gambas/blob/master/gb.xml/src/node.cpp). > > What am I doing wrong? How should I get all attributes from an XmlNode? > > All the best, > > M. > > > -- > Markus Schatten, PhD > Assistant professor and head of Artificial Intelligence Lab > University of Zagreb > Faculty of Organization and Informatics > Pavlinska 2, 42000 Varazdin, Croatia > http://www.foi.hr/nastavnici/schatten.markus/index.html > http://www.researchgate.net/profile/Markus_Schatten1 > http://ai.foi.hr > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From markus.schatten at ...2005... Sun Feb 28 00:29:53 2016 From: markus.schatten at ...2005... (Markus Schatten) Date: Sun, 28 Feb 2016 00:29:53 +0100 Subject: [Gambas-user] Problem reading attributes from XML file In-Reply-To: <56D22560.2090801@...626...> References: <CAPV47oTOThni4P_p4WzdBvKK=rhR81sy+65t-kEE_Mbf890fMw@...627...> <56D22560.2090801@...626...> Message-ID: <CAPV47oTbqCVdj7+rbePF5OZgegqx5GieEM6nro0pMih-caG3og@...627...> Thanks a lot Lee! I've just reinstalled my Gambas and now it works again! Still, I have no idea what happened to the xml component.. All the best, M. -- Markus Schatten, PhD Assistant professor and head of Artificial Intelligence Lab University of Zagreb Faculty of Organization and Informatics Pavlinska 2, 42000 Varazdin, Croatia http://www.foi.hr/nastavnici/schatten.markus/index.html http://www.researchgate.net/profile/Markus_Schatten1 http://ai.foi.hr On Sat, Feb 27, 2016 at 11:38 PM, T Lee Davidson <t.lee.davidson at ...626...> wrote: > Hi Markus, > > I created a quick command-line version with your procedures. It works fine on v3.6.2. I get a collection returned with length of > one and a value of "http://exist.sourceforge.net/NS/exist". > > Perhaps something has happened to your gb.xml component? > > > On 02/27/2016 04:35 PM, Markus Schatten wrote: >> Dear friends, >> >> I have a piece of code that was recently working, but for some reason >> it stopped (using 3.5.4. currently). What I would like to do is simply >> read out all attributes and their values (if they exists) from an >> XmlNode. Here is what I do: >> >> Public Sub btnLoad_Click() >> Dim xml As New XmlDocument >> Dim txt As String >> Dialog.Filter = ["*.xml", "XML Documents"] >> If Dialog.OpenFile() Then Return >> txt = File.Load(Dialog.Path) >> xml.FromString(txt) >> parse(xml.Root) >> End >> >> Public Sub parse(node As XmlNode) As Collection >> Dim child As XmlNode >> Dim ret As New Collection >> If node.Attributes Then >> For Each child In node.Attributes >> ret["@" & child.Name] = child.Value >> Next >> Endif >> Return ret >> End >> >> The XML file I'm trying to read is: >> >> <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist"> >> <exist:collection name="/db" >> created="2016-02-27T19:24:55.787+01:00" owner="SYSTEM" group="dba" >> permissions="rwxr-xr-x"> >> <exist:collection name="apps" >> created="2016-02-27T19:25:36.612+01:00" owner="SYSTEM" group="dba" >> permissions="rwxr-xr-x"/> >> <exist:collection name="system" >> created="2016-02-27T19:24:55.792+01:00" owner="SYSTEM" group="dba" >> permissions="rwxr-xr-x"/> >> </exist:collection> >> </exist:result> >> >> What happens is that in the parse function on the first entry into the >> for each loop the app crashes and the following message is displayed >> in the console: >> >> FATAL : tried to create a Gambas object with invalid type. >> >> I've lost the few past hours searching for a solution, but the only >> thing that I found is that the error is thrown in node.cpp from the >> gb.xml source (e.g. here >> https://github.com/justlostintime/gambas/blob/master/gb.xml/src/node.cpp). >> >> What am I doing wrong? How should I get all attributes from an XmlNode? >> >> All the best, >> >> M. >> >> >> -- >> Markus Schatten, PhD >> Assistant professor and head of Artificial Intelligence Lab >> University of Zagreb >> Faculty of Organization and Informatics >> Pavlinska 2, 42000 Varazdin, Croatia >> http://www.foi.hr/nastavnici/schatten.markus/index.html >> http://www.researchgate.net/profile/Markus_Schatten1 >> http://ai.foi.hr >> >> ------------------------------------------------------------------------------ >> 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=272487151&iu=/4140 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -- > Lee > __________ > > "Artificial Intelligence is no match for natural stupidity." > > ------------------------------------------------------------------------------ > 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=272487151&iu=/4140 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Mon Feb 29 14:46:05 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 29 Feb 2016 13:46:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #846: Fast routines raise error: Wanted Float[] got Integer[] instead In-Reply-To: <BUG846@...3416...> References: <BUG846@...3416...> Message-ID: <BUG846:20160229144604376@...3416...> http://gambaswiki.org/bugtracker/edit?object=BUG.846&from=L21haW4- Comment #6 by Martin CRISTIA: great! From kicking177 at ...626... Mon Feb 29 15:10:49 2016 From: kicking177 at ...626... (KKing) Date: Mon, 29 Feb 2016 14:10:49 +0000 Subject: [Gambas-user] XMLDocument GetSingleNode or XPath support? In-Reply-To: <56C43A1D.6050201@...626...> References: <56C43A1D.6050201@...626...> Message-ID: <56D45169.8010408@...626...> On 17/02/16 09:15, KKing wrote: > does the XML component support a GetSingleNode method or allow an > XPath to be used to obtain single nodes? > - - - - > is that a no then?