From buster6seven at ...626... Tue Nov 1 08:04:11 2016 From: buster6seven at ...626... (Shane) Date: Tue, 1 Nov 2016 18:04:11 +1100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: References: Message-ID: <1986f89f-804d-cfab-028a-f1949fda85ad@...626...> Im getting not freeded messages form a project that uses serial port and map and a sdl game as well On 31/10/16 23:51, Moviga Technologies wrote: > Hi! > > This weekend I had some fun making a simple game in SDL that you can > find on the farm, or download here: > http://forum.gambas.one/download/file.php?id=12 > > There is a warning in the console in the Gambas IDE that says: > gbx3: warning: 2 allocation(s) non freed. > Not sure where that comes from, but as C++ needs to free up stuff, I > suppose it has to do with the gb.sdl2 component? > > > ------------------------------------------------------------------------------ > The Command Line: Reinvented for Modern Developers > Did the resurgence of CLI tooling catch you by surprise? > Reconnect with the command line and become more productive. > Learn the new .NET and ASP.NET CLI. Get your free copy! > http://sdm.link/telerik > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Tue Nov 1 09:05:36 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 01 Nov 2016 08:05:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #983: Indentation: Formatting of a Module goes wrong In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.983&from=L21haW4- Comment #4 by Fabien BODARD: It will be fixed on the Rev #7951. I've finally removed the indentation on functions. Fabien BODARD changed the state of the bug to: Fixed. From bugtracker at ...3416... Tue Nov 1 20:37:20 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 01 Nov 2016 19:37:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1027: Unexpected behavior on Sqlite3 exec quotation Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1027&from=L21haW4- Jorge CARRI?N reported a new bug. Summary ------- Unexpected behavior on Sqlite3 exec quotation Type : Bug Priority : Medium Gambas version : 3.9 Product : Database component Description ----------- Hi On Sqlite3 there is a bug on exec comand with parameters: Quotes are included in the propertie .name of resultfields. Attach a simple project that ilustrates that behavior.. System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.4.0-45-generic Architecture=x86_64 Distribution=Linux Mint 18 Sarah Desktop=CINNAMON Theme=Cleanlooks Language=es_ES.UTF-8 Memory=15989M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.0.0 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.0.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-QDB0fN58RP,guid=43c2815ddf5f864e70a795e55818c117 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=6904 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=es_ES.UTF-8 MDM_XSERVER_LOCATION=local PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1830,unix/:/tmp/.ICE-unix/1830 SHELL=/bin/bash SSH_AGENT_PID=2860 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.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=2a5d5f96ef9147c0b35535562b32d0ff-1478017299.234206-230022800 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=7 From bugtracker at ...3416... Tue Nov 1 20:37:27 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 01 Nov 2016 19:37:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1027: Unexpected behavior on Sqlite3 exec quotation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1027&from=L21haW4- Jorge CARRI?N added an attachment: dbTest-0.0.1.tar.gz From gambas at ...1... Tue Nov 1 21:11:51 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 1 Nov 2016 21:11:51 +0100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: References: Message-ID: Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : > Hi! > > This weekend I had some fun making a simple game in SDL that you can > find on the farm, or download here: > http://forum.gambas.one/download/file.php?id=12 > > There is a warning in the console in the Gambas IDE that says: > gbx3: warning: 2 allocation(s) non freed. > Not sure where that comes from, but as C++ needs to free up stuff, I > suppose it has to do with the gb.sdl2 component? > It should be fixed in revision #7952. It was related to gb.sdl2.audio. Regards, -- Beno?t Minisini From bugtracker at ...3416... Tue Nov 1 21:21:01 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 01 Nov 2016 20:21:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1027: Unexpected behavior on Sqlite3 exec quotation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1027&from=L21haW4- Comment #1 by Beno?t MINISINI: The &1, &2, ... substitution pattern are only for SQL *values*. You must not use them for SQL table of field names, which use a database-dependent different quoting mechanism. To quote a field or a table name, you have to use the DB.Quote() method. By the way, quoting a value is done with DB.Subst() too. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at ...3416... Tue Nov 1 22:38:44 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 01 Nov 2016 21:38:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #983: Indentation: Formatting of a Module goes wrong In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.983&from=L21haW4- Comment #5 by C THAL: Thank you, that's great! :-) From buster6seven at ...626... Wed Nov 2 02:29:32 2016 From: buster6seven at ...626... (Shane) Date: Wed, 2 Nov 2016 12:29:32 +1100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: References: Message-ID: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> this is what i get with your latest version and when i click away and come back On 02/11/16 07:11, Beno?t Minisini wrote: > Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : >> Hi! >> >> This weekend I had some fun making a simple game in SDL that you can >> find on the farm, or download here: >> http://forum.gambas.one/download/file.php?id=12 >> >> There is a warning in the console in the Gambas IDE that says: >> gbx3: warning: 2 allocation(s) non freed. >> Not sure where that comes from, but as C++ needs to free up stuff, I >> suppose it has to do with the gb.sdl2 component? >> > It should be fixed in revision #7952. It was related to gb.sdl2.audio. > > Regards, > From moviga at ...3488... Wed Nov 2 07:46:18 2016 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 2 Nov 2016 07:46:18 +0100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> References: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> Message-ID: <8582bec9-cc4a-89b4-17e7-02cd235a03fc@...3488...> Please rephrase what you said? Den 02. nov. 2016 02:29, skrev Shane: > this is what i get with your latest version > > and when i click away and come back > > > On 02/11/16 07:11, Beno?t Minisini wrote: >> Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : >>> Hi! >>> >>> This weekend I had some fun making a simple game in SDL that you can >>> find on the farm, or download here: >>> http://forum.gambas.one/download/file.php?id=12 >>> >>> There is a warning in the console in the Gambas IDE that says: >>> gbx3: warning: 2 allocation(s) non freed. >>> Not sure where that comes from, but as C++ needs to free up stuff, I >>> suppose it has to do with the gb.sdl2 component? >>> >> It should be fixed in revision #7952. It was related to gb.sdl2.audio. >> >> Regards, >> > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From richardpa608 at ...626... Wed Nov 2 16:18:17 2016 From: richardpa608 at ...626... (Richard Welch) Date: Wed, 2 Nov 2016 15:18:17 +0000 Subject: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3 Message-ID: <5facc658-20af-3f36-2c35-fec6c3cfb317@...626...> This is just noting the change in case it might help someone else - not a plea for a change. In g2, the Val function would ignore that part of its input string after the first space, so that, for instance Val("12 3 5") would return the integer value 12. Here and there, I use this feature when parsing a string into discrete numbers. Converting to g3 (specifically g3.8.2) this no longer works as before; Val now returns Null on such a string. The solution is obvious: append a space to the string (to guarantee there is one!) and then extract up to the first space before using Val. From eilert-sprachen at ...221... Wed Nov 2 16:49:11 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 02 Nov 2016 16:49:11 +0100 Subject: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3 In-Reply-To: <5facc658-20af-3f36-2c35-fec6c3cfb317@...626...> References: <5facc658-20af-3f36-2c35-fec6c3cfb317@...626...> Message-ID: <581A0AF7.3010607@...221...> The new behaviour of val() drove me nuts when it appeared first ;) I had used it in so many places, and all over my code. Sometimes it lasts for weeks until your program hits this place, and AGAIN val() Arrgh... :) So in most cases, I ended up either checking for null before (somewhat roundabout) or just using CInt() instead. Regards Rolf Am 02.11.2016 16:18, schrieb Richard Welch: > This is just noting the change in case it might help someone else - not > a plea for a change. > > In g2, the Val function would ignore that part of its input string after > the first space, so that, for instance Val("12 3 5") would return the > integer value 12. > > Here and there, I use this feature when parsing a string into discrete > numbers. > > Converting to g3 (specifically g3.8.2) this no longer works as before; > Val now returns Null on such a string. > > The solution is obvious: append a space to the string (to guarantee > there is one!) and then extract up to the first space before using Val. > > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 2 17:16:59 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 2 Nov 2016 17:16:59 +0100 Subject: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3 In-Reply-To: <581A0AF7.3010607@...221...> References: <5facc658-20af-3f36-2c35-fec6c3cfb317@...626...> <581A0AF7.3010607@...221...> Message-ID: Le 02/11/2016 ? 16:49, Rolf-Werner Eilert a ?crit : > The new behaviour of val() drove me nuts when it appeared first ;) I had > used it in so many places, and all over my code. Sometimes it lasts for > weeks until your program hits this place, and AGAIN val() Arrgh... :) > > So in most cases, I ended up either checking for null before (somewhat > roundabout) or just using CInt() instead. > > Regards > Rolf > This change was needed, because Val() now takes thousand separators into account, and some language uses spaces for that. Regards, -- Beno?t Minisini From buster6seven at ...626... Thu Nov 3 03:44:59 2016 From: buster6seven at ...626... (Shane) Date: Thu, 3 Nov 2016 13:44:59 +1100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: <8582bec9-cc4a-89b4-17e7-02cd235a03fc@...3488...> References: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> <8582bec9-cc4a-89b4-17e7-02cd235a03fc@...3488...> Message-ID: <3b2d6196-e17c-8c98-0d50-4a5115a5dae1@...626...> there were pics On 02/11/16 17:46, Moviga Technologies wrote: > Please rephrase what you said? > > > Den 02. nov. 2016 02:29, skrev Shane: >> this is what i get with your latest version >> >> and when i click away and come back >> >> >> On 02/11/16 07:11, Beno?t Minisini wrote: >>> Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : >>>> Hi! >>>> >>>> This weekend I had some fun making a simple game in SDL that you can >>>> find on the farm, or download here: >>>> http://forum.gambas.one/download/file.php?id=12 >>>> >>>> There is a warning in the console in the Gambas IDE that says: >>>> gbx3: warning: 2 allocation(s) non freed. >>>> Not sure where that comes from, but as C++ needs to free up stuff, I >>>> suppose it has to do with the gb.sdl2 component? >>>> >>> It should be fixed in revision #7952. It was related to gb.sdl2.audio. >>> >>> Regards, >>> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: flyer11.png Type: image/png Size: 6641 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: flyer22.png Type: image/png Size: 6987 bytes Desc: not available URL: From eilert-sprachen at ...221... Thu Nov 3 08:30:51 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Nov 2016 08:30:51 +0100 Subject: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3 In-Reply-To: References: <5facc658-20af-3f36-2c35-fec6c3cfb317@...626...> <581A0AF7.3010607@...221...> Message-ID: <581AE7AB.5000207@...221...> Am 02.11.2016 17:16, schrieb Beno?t Minisini: > Le 02/11/2016 ? 16:49, Rolf-Werner Eilert a ?crit : >> The new behaviour of val() drove me nuts when it appeared first ;) I had >> used it in so many places, and all over my code. Sometimes it lasts for >> weeks until your program hits this place, and AGAIN val() Arrgh... :) >> >> So in most cases, I ended up either checking for null before (somewhat >> roundabout) or just using CInt() instead. >> >> Regards >> Rolf >> > This change was needed, because Val() now takes thousand separators into > account, and some language uses spaces for that. > > Regards, > No problem, Benoit, I see the advantages. After all, my problem was due to sloppy programming... ;) But in BASIC, one is used to everything being converted from one format to another without raising an error that can stop the program. So in normal BASIC thinking, if val() cannot find a value in a string, it would be expected to send "0", though it isn't fully logical I have to admit. In the scope of my programming, this would do the job. Maybe I should make my own Val()... Regards Rolf From eilert-sprachen at ...221... Thu Nov 3 08:42:30 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 03 Nov 2016 08:42:30 +0100 Subject: [Gambas-user] a possible bug-report In-Reply-To: References: Message-ID: <581AEA66.2030005@...221...> Am 31.10.2016 13:51, schrieb Moviga Technologies: > Hi! > > There is a warning in the console in the Gambas IDE that says: > gbx3: warning: 2 allocation(s) non freed. > Not sure where that comes from, but as C++ needs to free up stuff, I > suppose it has to do with the gb.sdl2 component? > > Just saw this thread, and there is a similar problem with one of my Gambas hacks. Every 10 minutes, the program calls the email server of our website and asks for application forms that might have been sent. If there is one, it processes the data and makes a nice PDF which is then sent to the customer. If the webserver fails in that moment or there is no internet connection, the program stops and sends me a system mail with "3 allocations non freed". I have never found the reason, and it didn't really bother me, but if someone is interested in finding out, I would post some code and start looking for it... Regards Rolf From moviga at ...3488... Thu Nov 3 09:07:52 2016 From: moviga at ...3488... (Moviga Technologies) Date: Thu, 3 Nov 2016 09:07:52 +0100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: <3b2d6196-e17c-8c98-0d50-4a5115a5dae1@...626...> References: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> <8582bec9-cc4a-89b4-17e7-02cd235a03fc@...3488...> <3b2d6196-e17c-8c98-0d50-4a5115a5dae1@...626...> Message-ID: <51e95415-e478-7627-cb86-7046ad07f7f0@...3488...> Thank you! Are you running Wayland? There's no built in way to detect screen resolution for that (yet). But, why it apparently increases the resolution outside the borders of the window when you click outside, I have no idea why? A SDL bug? Den 03. nov. 2016 03:44, skrev Shane: > there were pics > > > > On 02/11/16 17:46, Moviga Technologies wrote: >> Please rephrase what you said? >> >> >> Den 02. nov. 2016 02:29, skrev Shane: >>> this is what i get with your latest version >>> >>> and when i click away and come back >>> >>> >>> On 02/11/16 07:11, Beno?t Minisini wrote: >>>> Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : >>>>> Hi! >>>>> >>>>> This weekend I had some fun making a simple game in SDL that you can >>>>> find on the farm, or download here: >>>>> http://forum.gambas.one/download/file.php?id=12 >>>>> >>>>> There is a warning in the console in the Gambas IDE that says: >>>>> gbx3: warning: 2 allocation(s) non freed. >>>>> Not sure where that comes from, but as C++ needs to free up stuff, I >>>>> suppose it has to do with the gb.sdl2 component? >>>>> >>>> It should be fixed in revision #7952. It was related to gb.sdl2.audio. >>>> >>>> Regards, >>>> >>> ------------------------------------------------------------------------------ >>> >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Thu Nov 3 09:59:05 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 3 Nov 2016 09:59:05 +0100 Subject: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3 In-Reply-To: <581AE7AB.5000207@...221...> References: <5facc658-20af-3f36-2c35-fec6c3cfb317@...626...> <581A0AF7.3010607@...221...> <581AE7AB.5000207@...221...> Message-ID: > > No problem, Benoit, I see the advantages. After all, my problem was due > to sloppy programming... ;) > > But in BASIC, one is used to everything being converted from one format > to another without raising an error that can stop the program. So in > normal BASIC thinking, if val() cannot find a value in a string, it > would be expected to send "0", though it isn't fully logical I have to > admit. In the scope of my programming, this would do the job. Maybe I > should make my own Val()... > > Regards > Rolf > Val() return Null because 0 is a valid result. So with Null we know that the converting fail. Regards -- Fabien Bodard From gambas at ...1... Thu Nov 3 12:41:06 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Nov 2016 12:41:06 +0100 Subject: [Gambas-user] a possible bug-report In-Reply-To: <581AEA66.2030005@...221...> References: <581AEA66.2030005@...221...> Message-ID: <5a1730a2-2710-08a2-21dc-48300aceb030@...1...> Le 03/11/2016 ? 08:42, Rolf-Werner Eilert a ?crit : > > Am 31.10.2016 13:51, schrieb Moviga Technologies: >> Hi! >> >> There is a warning in the console in the Gambas IDE that says: >> gbx3: warning: 2 allocation(s) non freed. >> Not sure where that comes from, but as C++ needs to free up stuff, I >> suppose it has to do with the gb.sdl2 component? >> >> > > Just saw this thread, and there is a similar problem with one of my > Gambas hacks. Every 10 minutes, the program calls the email server of > our website and asks for application forms that might have been sent. If > there is one, it processes the data and makes a nice PDF which is then > sent to the customer. > > If the webserver fails in that moment or there is no internet > connection, the program stops and sends me a system mail with "3 > allocations non freed". > > I have never found the reason, and it didn't really bother me, but if > someone is interested in finding out, I would post some code and start > looking for it... > > Regards > Rolf > For that I need a project that reproduces the problem. -- Beno?t Minisini From mclennan at ...3614... Thu Nov 3 12:02:23 2016 From: mclennan at ...3614... (Piper984) Date: Thu, 3 Nov 2016 04:02:23 -0700 (MST) Subject: [Gambas-user] MediaPlayer bug with AboutToFinish and URL? In-Reply-To: <1477926825761-57694.post@...3046...> References: <1477512855218-57614.post@...3046...> <047c0962-ee1a-00c1-07f0-d07f757ae747@...1...> <1477519149089-57616.post@...3046...> <2f5d5216-352b-e8bc-f995-40c59d07bffa@...1...> <1477522176006-57621.post@...3046...> <1477524613238-57623.post@...3046...> <1477926825761-57694.post@...3046...> Message-ID: <1478170943094-57714.post@...3046...> Hi Beno?t, Just a quick update: I tried running my sample application on a newly installed Ubuntu 16.04, and with my reference video clips and.... all is working as expected! Thanks a ton! Of interest, and perhaps some source of issues: Some of the video clips I have for testing (Sintel and Big Buck Bunny trailers in .webm and .mp4) will not 'end' correctly and so the next video clip doesn't load. *BUT* the actual video clips I want to use (h264 clips converted to MP4 via MP4Box) for my application do work. gb.media plays them successfully, and when .NextURL is set from the AboutToFinish event then the next video clip is loaded and rendered gaplessly! Huzzah! So: Thanks for helping with this Beno?t. I appreciate it, as I can dev my application in Gambas now and not Python/C++/Glade GTK tools. Best regards! -- View this message in context: http://gambas.8142.n7.nabble.com/MediaPlayer-bug-with-AboutToFinish-and-URL-tp57513p57714.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Nov 3 13:45:09 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Nov 2016 13:45:09 +0100 Subject: [Gambas-user] MediaPlayer bug with AboutToFinish and URL? In-Reply-To: <1478170943094-57714.post@...3046...> References: <1477512855218-57614.post@...3046...> <047c0962-ee1a-00c1-07f0-d07f757ae747@...1...> <1477519149089-57616.post@...3046...> <2f5d5216-352b-e8bc-f995-40c59d07bffa@...1...> <1477522176006-57621.post@...3046...> <1477524613238-57623.post@...3046...> <1477926825761-57694.post@...3046...> <1478170943094-57714.post@...3046...> Message-ID: <2d374b27-5622-5b2e-b2ef-0e3c33625574@...1...> Le 03/11/2016 ? 12:02, Piper984 a ?crit : > Hi Beno?t, > > Just a quick update: I tried running my sample application on a newly > installed Ubuntu 16.04, and with my reference video clips and.... all is > working as expected! Thanks a ton! > > Of interest, and perhaps some source of issues: Some of the video clips I > have for testing (Sintel and Big Buck Bunny trailers in .webm and .mp4) will > not 'end' correctly and so the next video clip doesn't load. *BUT* the > actual video clips I want to use (h264 clips converted to MP4 via MP4Box) > for my application do work. gb.media plays them successfully, and when > .NextURL is set from the AboutToFinish event then the next video clip is > loaded and rendered gaplessly! Huzzah! > > So: Thanks for helping with this Beno?t. I appreciate it, as I can dev my > application in Gambas now and not Python/C++/Glade GTK tools. > > Best regards! > As I said, all that seems to heavily depend on which GStreamer version you use. I just hope that things becomes more stable with new versions of the library! FYI, the next GStreamer version introduces (again) a new media player plugin. So cross your fingers... -- Beno?t Minisini From gambas at ...1... Thu Nov 3 13:55:12 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Nov 2016 13:55:12 +0100 Subject: [Gambas-user] MediaPlayer bug with AboutToFinish and URL? In-Reply-To: <2d374b27-5622-5b2e-b2ef-0e3c33625574@...1...> References: <1477512855218-57614.post@...3046...> <047c0962-ee1a-00c1-07f0-d07f757ae747@...1...> <1477519149089-57616.post@...3046...> <2f5d5216-352b-e8bc-f995-40c59d07bffa@...1...> <1477522176006-57621.post@...3046...> <1477524613238-57623.post@...3046...> <1477926825761-57694.post@...3046...> <1478170943094-57714.post@...3046...> <2d374b27-5622-5b2e-b2ef-0e3c33625574@...1...> Message-ID: Le 03/11/2016 ? 13:45, Beno?t Minisini a ?crit : > Le 03/11/2016 ? 12:02, Piper984 a ?crit : >> Hi Beno?t, >> >> Just a quick update: I tried running my sample application on a newly >> installed Ubuntu 16.04, and with my reference video clips and.... all is >> working as expected! Thanks a ton! >> >> Of interest, and perhaps some source of issues: Some of the video clips I >> have for testing (Sintel and Big Buck Bunny trailers in .webm and >> .mp4) will >> not 'end' correctly and so the next video clip doesn't load. *BUT* the >> actual video clips I want to use (h264 clips converted to MP4 via MP4Box) >> for my application do work. gb.media plays them successfully, and when >> .NextURL is set from the AboutToFinish event then the next video clip is >> loaded and rendered gaplessly! Huzzah! >> >> So: Thanks for helping with this Beno?t. I appreciate it, as I can >> dev my >> application in Gambas now and not Python/C++/Glade GTK tools. >> >> Best regards! >> > > As I said, all that seems to heavily depend on which GStreamer version > you use. I just hope that things becomes more stable with new versions > of the library! > > FYI, the next GStreamer version introduces (again) a new media player > plugin. So cross your fingers... > By the way, thanks for your big early X-Mas gift! -- Beno?t Minisini From buster6seven at ...626... Thu Nov 3 21:47:13 2016 From: buster6seven at ...626... (Shane) Date: Fri, 4 Nov 2016 07:47:13 +1100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: <51e95415-e478-7627-cb86-7046ad07f7f0@...3488...> References: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> <8582bec9-cc4a-89b4-17e7-02cd235a03fc@...3488...> <3b2d6196-e17c-8c98-0d50-4a5115a5dae1@...626...> <51e95415-e478-7627-cb86-7046ad07f7f0@...3488...> Message-ID: If I set resizeable=True it works as expected On 03/11/16 19:07, Moviga Technologies wrote: > Thank you! > > Are you running Wayland? There's no built in way to detect screen > resolution for that (yet). But, why it apparently increases the > resolution outside the borders of the window when you click outside, I > have no idea why? A SDL bug? > > > Den 03. nov. 2016 03:44, skrev Shane: >> there were pics >> >> >> >> On 02/11/16 17:46, Moviga Technologies wrote: >>> Please rephrase what you said? >>> >>> >>> Den 02. nov. 2016 02:29, skrev Shane: >>>> this is what i get with your latest version >>>> >>>> and when i click away and come back >>>> >>>> >>>> On 02/11/16 07:11, Beno?t Minisini wrote: >>>>> Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : >>>>>> Hi! >>>>>> >>>>>> This weekend I had some fun making a simple game in SDL that you can >>>>>> find on the farm, or download here: >>>>>> http://forum.gambas.one/download/file.php?id=12 >>>>>> >>>>>> There is a warning in the console in the Gambas IDE that says: >>>>>> gbx3: warning: 2 allocation(s) non freed. >>>>>> Not sure where that comes from, but as C++ needs to free up stuff, I >>>>>> suppose it has to do with the gb.sdl2 component? >>>>>> >>>>> It should be fixed in revision #7952. It was related to gb.sdl2.audio. >>>>> >>>>> Regards, >>>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> Developer Access Program for Intel Xeon Phi Processors >>>> Access to Intel Xeon Phi processor-based developer platforms. >>>> With one year of Intel Parallel Studio XE. >>>> Training and support from Colfax. >>>> Order your platform today. http://sdm.link/xeonphi >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------------ >>> >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From buster6seven at ...626... Thu Nov 3 23:17:15 2016 From: buster6seven at ...626... (Shane) Date: Fri, 4 Nov 2016 09:17:15 +1100 Subject: [Gambas-user] SDL Bug Message-ID: I Think there id a bug in the SDL Image.Copy method when used it is not working as expected and when you try to copy a large amount of Image it crashes this program. [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.4.0-45-generic Architecture=x86_64 Distribution=Linux Mint 17.2 Rafaela Desktop=MATE Theme=Gtk Language=en_AU.UTF-8 Memory=3805M [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 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-JwdfcZ1nfu,guid=082f2df3f4d886742a97b567581bb58e 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-mknkPE GNOME_KEYRING_PID=1957 GPG_AGENT_INFO=/run/user/1000/keyring-mknkPE/gpg:0:1 HOME=/home/ LANG=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=en_AU.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/ SESSION_MANAGER=local/:@/tmp/.ICE-unix/1711,unix/:/tmp/.ICE-unix/1711 SHELL=/bin/bash SSH_AGENT_PID=1867 SSH_AUTH_SOCK=/run/user/1000/keyring-mknkPE/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= 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=139d2632112d070b9e811bbc561842ce-1478210956.123282-1196872275 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 -------------- next part -------------- A non-text attachment was scrubbed... Name: SdlTest-0.0.1.tar.gz Type: application/gzip Size: 36563 bytes Desc: not available URL: From mclennan at ...3614... Fri Nov 4 11:52:56 2016 From: mclennan at ...3614... (Piper984) Date: Fri, 4 Nov 2016 03:52:56 -0700 (MST) Subject: [Gambas-user] Installer questions: How to package up new components? Message-ID: <1478256776540-57719.post@...3046...> Hi: I would like to deploy an application I've written to a few Ubuntu 16.04 machines, but the Project->Make->Installation package utility isn't functioning the way I'd expect, so would like to get advice on best method to deploy. I am using a few of the gb. components, including a new version of the gb.media component. When I run through the Installation package wizard, selecting Ubuntu, I do get .deb files. They don't seem very large, FYI. When I take the largest deb file (marked with an 'all' label) to a new box that doesn't have Gambas installed I get a number of error messages like 'package gambas3-gb-media' not installed. I assumed that the Installation Package wizard would supply those in the .deb file. I don't want to apt-get install gambas3 or gambas3-gb-runtime as I need the component version from the current development release of Gambas. Is there a method someone could recommend to me for packing up and deploying my application with the version of the components I used for developing? Thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Installer-questions-How-to-package-up-new-components-tp57719.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Nov 4 13:47:03 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 4 Nov 2016 13:47:03 +0100 Subject: [Gambas-user] Installer questions: How to package up new components? In-Reply-To: <1478256776540-57719.post@...3046...> References: <1478256776540-57719.post@...3046...> Message-ID: Le 04/11/2016 ? 11:52, Piper984 a ?crit : > Hi: > > I would like to deploy an application I've written to a few Ubuntu 16.04 > machines, but the Project->Make->Installation package utility isn't > functioning the way I'd expect, so would like to get advice on best method > to deploy. > > I am using a few of the gb. components, including a new version of the > gb.media component. When I run through the Installation package wizard, > selecting Ubuntu, I do get .deb files. They don't seem very large, FYI. > When I take the largest deb file (marked with an 'all' label) to a new box > that doesn't have Gambas installed I get a number of error messages like > 'package gambas3-gb-media' not installed. I assumed that the Installation > Package wizard would supply those in the .deb file. I don't want to apt-get > install gambas3 or gambas3-gb-runtime as I need the component version from > the current development release of Gambas. > > Is there a method someone could recommend to me for packing up and deploying > my application with the version of the components I used for developing? > > Thanks! > You cannot make packages for the development version. You can only make package for the gambas versions provided by the package manager of the target system. I will make a Gambas 3.9.2 release as soon as possible. Regards, -- Beno?t Minisini From yodi at ...18... Fri Nov 4 14:38:47 2016 From: yodi at ...18... (dirk) Date: Fri, 4 Nov 2016 14:38:47 +0100 Subject: [Gambas-user] WebView1 und HTML5 Message-ID: HI, (Translated with Google) I would like to display the url http://websdr.ewi.utwente.nl:8901/?tune=3688lsb in the webview Unfortunately I get no sound. Someone a tip? greetings Dirk From gambas at ...1... Fri Nov 4 14:49:13 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 4 Nov 2016 14:49:13 +0100 Subject: [Gambas-user] WebView1 und HTML5 In-Reply-To: References: Message-ID: Le 04/11/2016 ? 14:38, dirk a ?crit : > HI, > > > (Translated with Google) > > I would like to display the url > http://websdr.ewi.utwente.nl:8901/?tune=3688lsb in the webview > > Unfortunately I get no sound. > > Someone a tip? > > greetings Dirk > Maybe a flag must be set with the WebSettings class? -- Beno?t Minisini From willy at ...3474... Fri Nov 4 15:37:15 2016 From: willy at ...3474... (willy at ...3474...) Date: Fri, 04 Nov 2016 15:37:15 +0100 Subject: [Gambas-user] Installer questions: How to package up new components? In-Reply-To: <1478256776540-57719.post@...3046...> References: <1478256776540-57719.post@...3046...> Message-ID: <25bdad18b0ac4f407c821cb33e16d309@...3474...> On 2016-11-04 11:52, Piper984 wrote: > Hi: > > I would like to deploy an application I've written to a few Ubuntu > 16.04 > machines, but the Project->Make->Installation package utility isn't > functioning the way I'd expect, so would like to get advice on best > method > to deploy. > > I am using a few of the gb. components, including a new version of the > gb.media component. When I run through the Installation package > wizard, > selecting Ubuntu, I do get .deb files. They don't seem very large, > FYI. > When I take the largest deb file (marked with an 'all' label) to a new > box > that doesn't have Gambas installed I get a number of error messages > like > 'package gambas3-gb-media' not installed. I assumed that the > Installation > Package wizard would supply those in the .deb file. I don't want to > apt-get > install gambas3 or gambas3-gb-runtime as I need the component version > from > the current development release of Gambas. > > Is there a method someone could recommend to me for packing up and > deploying > my application with the version of the components I used for > developing? > > Thanks! > It should be simple, since you are making Ubuntu packages. At the target system add the Gambas3 Daily build PPA as follows: sudo add-apt-repository ppa:gambas-team/gambas-daily sudo apt-get update The PPA has a daily build of the trunk version, so includes the newer versions yo used when making teh package. Next install the package you made on the target system and it should install all Gambas3 parts that your application require. Hope this helps, gbWilly From moviga at ...3488... Fri Nov 4 16:41:11 2016 From: moviga at ...3488... (Moviga Technologies) Date: Fri, 4 Nov 2016 16:41:11 +0100 Subject: [Gambas-user] Flyer Invasion Game - And a possible bug-report In-Reply-To: References: <9bb56176-3fae-a755-7a4b-f4d6030e1d85@...626...> <8582bec9-cc4a-89b4-17e7-02cd235a03fc@...3488...> <3b2d6196-e17c-8c98-0d50-4a5115a5dae1@...626...> <51e95415-e478-7627-cb86-7046ad07f7f0@...3488...> Message-ID: <70e8ac7e-145f-ec64-e4fb-db4a4cdb117f@...3488...> That's a bit odd since it is working here. Anyway, I changed the code now so that it will only be false in windowed mode, and true when using full-screen. Den 03. nov. 2016 21:47, skrev Shane: > If I set resizeable=True it works as expected > > > > On 03/11/16 19:07, Moviga Technologies wrote: >> Thank you! >> >> Are you running Wayland? There's no built in way to detect screen >> resolution for that (yet). But, why it apparently increases the >> resolution outside the borders of the window when you click outside, I >> have no idea why? A SDL bug? >> >> >> Den 03. nov. 2016 03:44, skrev Shane: >>> there were pics >>> >>> >>> >>> On 02/11/16 17:46, Moviga Technologies wrote: >>>> Please rephrase what you said? >>>> >>>> >>>> Den 02. nov. 2016 02:29, skrev Shane: >>>>> this is what i get with your latest version >>>>> >>>>> and when i click away and come back >>>>> >>>>> >>>>> On 02/11/16 07:11, Beno?t Minisini wrote: >>>>>> Le 31/10/2016 ? 13:51, Moviga Technologies a ?crit : >>>>>>> Hi! >>>>>>> >>>>>>> This weekend I had some fun making a simple game in SDL that you can >>>>>>> find on the farm, or download here: >>>>>>> http://forum.gambas.one/download/file.php?id=12 >>>>>>> >>>>>>> There is a warning in the console in the Gambas IDE that says: >>>>>>> gbx3: warning: 2 allocation(s) non freed. >>>>>>> Not sure where that comes from, but as C++ needs to free up stuff, I >>>>>>> suppose it has to do with the gb.sdl2 component? >>>>>>> >>>>>> It should be fixed in revision #7952. It was related to gb.sdl2.audio. >>>>>> >>>>>> Regards, >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> Developer Access Program for Intel Xeon Phi Processors >>>>> Access to Intel Xeon Phi processor-based developer platforms. >>>>> With one year of Intel Parallel Studio XE. >>>>> Training and support from Colfax. >>>>> Order your platform today. http://sdm.link/xeonphi >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> ------------------------------------------------------------------------------ >>>> >>>> Developer Access Program for Intel Xeon Phi Processors >>>> Access to Intel Xeon Phi processor-based developer platforms. >>>> With one year of Intel Parallel Studio XE. >>>> Training and support from Colfax. >>>> Order your platform today. http://sdm.link/xeonphi >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> >>> >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Fri Nov 4 16:48:39 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 04 Nov 2016 15:48:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1028: Better screenshot resolution Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1028&from=L21haW4- Moviga TECHNOLOGIES reported a new bug. Summary ------- Better screenshot resolution Type : Request Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Software farm Description ----------- The screenshot resolution on the gambas farm is pretty terrible... could you increase it a bit? Look at the attached screenshot of the screenshot ;) From bugtracker at ...3416... Fri Nov 4 16:48:50 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 04 Nov 2016 15:48:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1028: Better screenshot resolution In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1028&from=L21haW4- Moviga TECHNOLOGIES added an attachment: Screenshot_20161104_164643.png From mclennan at ...3614... Fri Nov 4 17:19:53 2016 From: mclennan at ...3614... (Piper984) Date: Fri, 4 Nov 2016 09:19:53 -0700 (MST) Subject: [Gambas-user] Installer questions: How to package up new components? In-Reply-To: <25bdad18b0ac4f407c821cb33e16d309@...3474...> References: <1478256776540-57719.post@...3046...> <25bdad18b0ac4f407c821cb33e16d309@...3474...> Message-ID: <1478276393338-57727.post@...3046...> Hi Willy: Yes, that makes sense and is very helpful. I did not realize those PPA's existed. Will give it a try later on this afternoon. -- View this message in context: http://gambas.8142.n7.nabble.com/Installer-questions-How-to-package-up-new-components-tp57719p57727.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Fri Nov 4 23:23:11 2016 From: bagonergi at ...626... (Gianluigi) Date: Fri, 4 Nov 2016 23:23:11 +0100 Subject: [Gambas-user] Installer questions: How to package up new components? In-Reply-To: <25bdad18b0ac4f407c821cb33e16d309@...3474...> References: <1478256776540-57719.post@...3046...> <25bdad18b0ac4f407c821cb33e16d309@...3474...> Message-ID: Hello, also I have always done so, but the last time with Ubuntu 16.04 did not work . I still have to investigate ... Regards Gianluigi 2016-11-04 15:37 GMT+01:00 : > On 2016-11-04 11:52, Piper984 wrote: > > Hi: > > > > I would like to deploy an application I've written to a few Ubuntu > > 16.04 > > machines, but the Project->Make->Installation package utility isn't > > functioning the way I'd expect, so would like to get advice on best > > method > > to deploy. > > > > I am using a few of the gb. components, including a new version of the > > gb.media component. When I run through the Installation package > > wizard, > > selecting Ubuntu, I do get .deb files. They don't seem very large, > > FYI. > > When I take the largest deb file (marked with an 'all' label) to a new > > box > > that doesn't have Gambas installed I get a number of error messages > > like > > 'package gambas3-gb-media' not installed. I assumed that the > > Installation > > Package wizard would supply those in the .deb file. I don't want to > > apt-get > > install gambas3 or gambas3-gb-runtime as I need the component version > > from > > the current development release of Gambas. > > > > Is there a method someone could recommend to me for packing up and > > deploying > > my application with the version of the components I used for > > developing? > > > > Thanks! > > > > > It should be simple, since you are making Ubuntu packages. > At the target system add the Gambas3 Daily build PPA as follows: > > sudo add-apt-repository ppa:gambas-team/gambas-daily > sudo apt-get update > > The PPA has a daily build of the trunk version, so includes the newer > versions yo used when making teh package. > > Next install the package you made on the target system and it should > install all Gambas3 parts that your application require. > > Hope this helps, > > gbWilly > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Sat Nov 5 05:59:28 2016 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 5 Nov 2016 05:59:28 +0100 Subject: [Gambas-user] Installer questions: How to package up new components? In-Reply-To: <1478276393338-57727.post@...3046...> References: <1478256776540-57719.post@...3046...> <25bdad18b0ac4f407c821cb33e16d309@...3474...> <1478276393338-57727.post@...3046...> Message-ID: I think that the stable version of the repository is much better suited for that. The trunk version is much intended for development. Try with sudo add-apt-repository ppa:gambas-team/gambas3 It contains the last stable version of gambas. Use it for your development and install it on client's machines. We (near 60 computers in the company) have been done so for 5 years without problem at all. Best regards 2016-11-04 17:19 GMT+01:00 Piper984 : > Hi Willy: > > Yes, that makes sense and is very helpful. I did not realize those PPA's > existed. Will give it a try later on this afternoon. > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Installer-questions-How-to-package-up-new-components- > tp57719p57727.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From greg.raffaelle at ...2755... Sat Nov 5 21:18:58 2016 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Sat, 05 Nov 2016 15:18:58 -0500 Subject: [Gambas-user] help using TexImage1D in opengl component Message-ID: <581E3EB2.8030403@...2755...> I am trying to use opengl to create 2D color contour plot of some engineering data. I found the code below which colors a triangle with contours using opengl. I have been trying to convert it to work in Gambas. See below my current version converted to Gambas. I am asking for assistance for finishing the code conversion and to get these routines to run in Gambas. Help would be most appreciated. CODE WHICH I AM TRYING TO CONVERT AND RUN IN GAMBAS: void CContoursDoc:: CreateTextureObject() { / / Define texture image unsigned char Texture8[8][3] = { { 0x00, 0x00, 0xa0 }, / / Dark Blue { 0x00, 0x00, 0xff }, / / Blue { 0x00, 0xa0, 0xff }, / / Indigo { 0x00, 0xa0, 0x40 }, / / Dark Green { 0x00, 0xff, 0x00 }, / / Green { 0xff, 0xff, 0x00 }, / / Yellow { 0xff, 0xcc, 0x00 }, / / Orange { 0xff, 0x00, 0x00 } / / Red }; / / Set pixel storage mode :: glPixelStorei(GL_UNPACK_ALIGNMENT, 1); / / Generate a texture name :: glGenTextures(1, m_nTexName); / / Create a texture object :: glBindTexture(GL_TEXTURE_1D, m_nTexName[0]); :: glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); :: glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); :: glTexImage1D(GL_TEXTURE_1D, 0, 3, 8, 0, GL_RGB, GL_UNSIGNED_BYTE, Texture8); } void CContoursDoc:: CreateTriangleList(UINT nList) { :: glNewList(nList, GL_COMPILE); :: glNormal3f(0.0 f, 0.0 f, 1.0 f); :: glBegin(GL_TRIANGLES); :: glTexCoord1f(0.1 f); :: glVertex3d(-1, -1, 0); :: glTexCoord1f(0.7 f); :: glVertex3d(-1, 1, 0); :: glTexCoord1f(1.0 f); :: glVertex3d(1, 0.8, 0); :: glEnd(); :: glEndList(); } MY CURRENT GAMBAS CODE: Sub CreateTextureObject() Dim m_nTexName As New Integer[1] 'Define texture image '???????????????? I could not figure how to convert the array data for the texture ????????????????????????? 'Set pixel storage mode gl.PixelStorei(gl.UNPACK_ALIGNMENT, 1) 'Generate a texture name m_nTexName = gl.GenTextures(1) 'Create a texture object gl.BindTexture(gl.TEXTURE_1D, m_nTexName[0]) gl.TexParameteri(gl.TEXTURE_1D, gl.TEXTURE_MAG_FILTER, gl.NEAREST) gl.TexParameteri(gl.TEXTURE_1D, gl.TEXTURE_MIN_FILTER, gl.NEAREST) ' ' Gambas3 help lists different parameters for teximage1d than open gl documents 'Static Sub *TexImage1D* ( _Image_ As Image *[* , _Level_ As Integer, _Border_ As Integer *]* ) 'how do you convert the next statement to work with Gambas gl component? ' gl.TexImage1D(gl.TEXTURE_1D, 0, 3, 8, 0, gl.RGB, gl.UNSIGNED_BYTE, Texture8) End Sub CreateTriangleList(nList As Integer) gl.NewList(nList, gl.COMPILE) gl.Normal3f(0.0, 0.0, 1.0) gl.Begin(gl.TRIANGLES) gl.TexCoord1f(0.1) gl.Vertex3f(-1.0, -1.0, 0.0) gl.TexCoord1f(0.7) gl.Vertex3f(-1.0, 1.0, 0.0) gl.TexCoord1f(1.0) gl.Vertex3f(1.0, 0.8, 0.0) gl.End() gl.EndList() End From richardpa608 at ...626... Mon Nov 7 12:31:06 2016 From: richardpa608 at ...626... (Richard Welch) Date: Mon, 7 Nov 2016 11:31:06 +0000 Subject: [Gambas-user] Segmentation fault Message-ID: Of course, this may already have been solved, or even be the expected behaviour.... *I have already found a way round* (see below), so this is purely for the benefit of others. I have recently migrated from Ubuntu 12.04 (which has Gambas 2 in its repositories - Gambas 2.23.1) to Ubuntu 16.04 (Gambas 3.8.4). I am plodding through my G2 projects, converting them to G3. The converter does a good job, but for a small number the resulting code blows up. This one is the simplest and oldest: it requires no input except from the keyboard, and none at all before the problem arises. It plays (in a simple-minded way) the game of Othello, human v computer. I attach three versions of the project (subfolders in the single 95k attachment) 1. *Othello_G2* This is the unconverted Gambas2 project, which runs perfectly under Gambas2. 2. *Othello_G3_converted* This blows up. Firstly (when I press F5) it gives me an empty popup with a no-entry icon but no text, and Stack backtrace FMain.FMain.0 FMain.?.? (native code) FInit.Form_Open.6 then if I press F5 again it gives the Segmentation Fault. The operation of the program is that FInit is a simple Splash Screen which then opens FMain (closing FInit) to display the board and play the game. 3. *Othello_G3_works* The only change from G3_converted is in the FMain form. The Take Focus property has been set to False. It works. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: Othex.tar.gz Type: application/gzip Size: 95507 bytes Desc: not available URL: From ualex73 at ...626... Mon Nov 7 14:43:02 2016 From: ualex73 at ...626... (Alexie) Date: Mon, 7 Nov 2016 14:43:02 +0100 Subject: [Gambas-user] Segmentation fault In-Reply-To: References: Message-ID: I don't get a segmentation fault in 3.9.1, but your need to remove "Merge = True" from your FMain.form and then it runs here successfully. 2016-11-07 12:31 GMT+01:00 Richard Welch : > Of course, this may already have been solved, or even be the expected > behaviour.... > *I have already found a way round* (see below), so this is purely for the > benefit of others. > > I have recently migrated from Ubuntu 12.04 (which has Gambas 2 in its > repositories - Gambas 2.23.1) > to > Ubuntu 16.04 (Gambas 3.8.4). > > I am plodding through my G2 projects, converting them to G3. The > converter does a good job, but for a small number the resulting code blows > up. > > This one is the simplest and oldest: it requires no input except from the > keyboard, and none at all before the problem arises. It plays (in a > simple-minded way) the game of Othello, human v computer. > > I attach three versions of the project (subfolders in the single 95k > attachment) > 1. *Othello_G2* > This is the unconverted Gambas2 project, which runs perfectly under > Gambas2. > 2. *Othello_G3_converted* > This blows up. Firstly (when I press F5) it gives me an empty popup > with a no-entry icon but no text, and Stack backtrace > FMain.FMain.0 > FMain.?.? > (native code) > FInit.Form_Open.6 > then if I press F5 again it gives the Segmentation Fault. > The operation of the program is that FInit is a simple Splash Screen which > then opens FMain (closing FInit) to display the board and play the game. > 3. *Othello_G3_works* > The only change from G3_converted is in the FMain form. The Take > Focus property has been set to False. > It works. > > Richard > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Mon Nov 7 20:47:58 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 7 Nov 2016 20:47:58 +0100 Subject: [Gambas-user] SDL Bug In-Reply-To: References: Message-ID: <2f974996-fbf2-357c-3ee9-15ec984c9c6a@...1...> Le 03/11/2016 ? 23:17, Shane a ?crit : > I Think there id a bug in the SDL Image.Copy method when used it is > > not working as expected and when you try to copy a large amount of Image > > it crashes this program. > > I don't have any crash. Do you have more details? -- Beno?t Minisini From richardpa608 at ...626... Tue Nov 8 12:52:35 2016 From: richardpa608 at ...626... (Richard Welch) Date: Tue, 8 Nov 2016 11:52:35 +0000 Subject: [Gambas-user] Gambas2 Grab in Gambas3 Message-ID: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> I need a simple way to copy the current image in a visible DrawingArea to a hidden PictureBox. The project was written in Gambas2, where a simple Grab method did the trick, but in G3 this does something different so the converted code does not function fully. FMain.pbxPicture.W = FMain.drwRep.W FMain.pbxPicture.H = FMain.drwRep.H FMain.pbxPicture.Background = FMain.drwRep.Background FMain.pbxPicture.Picture = FMain.drwRep.Grab() With what do I replace the Grab method? (The DrawingArea is painted in many different pieces of code, depending on context, so I want to make the change which will have the smallest impact possible on the source code) There is a gambas-user thread started around 19 April 2012. Is this fully relevant? Is this the /simplest/ answer? It would need some very tedious testing in my context..... From charlie at ...2793... Tue Nov 8 14:37:00 2016 From: charlie at ...2793... (Charlie) Date: Tue, 8 Nov 2016 06:37:00 -0700 (MST) Subject: [Gambas-user] FileChooser select bug Message-ID: <1478612220202-57735.post@...3046...> When I place a *FileChooser* on a form and then deselect it, I am unable to reselect the *FileChooser* with the mouse, I can click on it repeatedly but nothing happens. I have to go to *Hierarchy* and select it there. I have noticed this also happens on my Rapberry Pi 3 with Gambas 3.8.4 but repeatedly clicking will eventually select it. [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.4.0-21-generic Architecture=x86_64 Distribution=Linux Mint 18 Sarah Desktop=CINNAMON Theme=Gtk Language=en_GB.UTF-8 Memory=7855M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.0.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ED2ArfRFez,guid=011505a6ee8e618dbeecf4b15821daaf 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=4383 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME=/home/ LANG=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=en_GB.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_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1953,unix/:/tmp/.ICE-unix/1953 SHELL=/bin/bash SSH_AGENT_PID=2022 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= 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=2a5d5f96ef9147c0b35535562b32d0ff-1478613679.475530-854405882 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 -- View this message in context: http://gambas.8142.n7.nabble.com/FileChooser-select-bug-tp57735.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Nov 8 16:12:49 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 Nov 2016 16:12:49 +0100 Subject: [Gambas-user] FileChooser select bug In-Reply-To: <1478612220202-57735.post@...3046...> References: <1478612220202-57735.post@...3046...> Message-ID: Le 08/11/2016 ? 14:37, Charlie a ?crit : > When I place a *FileChooser* on a form and then deselect it, I am unable to > reselect the *FileChooser* with the mouse, I can click on it repeatedly but > nothing happens. I have to go to *Hierarchy* and select it there. I have > noticed this also happens on my Rapberry Pi 3 with Gambas 3.8.4 but > repeatedly clicking will eventually select it. > This is a known bug with compound controls written in Gambas, where some subparts eat the mouse events even in design mode. As for the FileChooser, you can click on the toolbar. -- Beno?t Minisini From gambas.fr at ...626... Tue Nov 8 18:31:01 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 8 Nov 2016 18:31:01 +0100 Subject: [Gambas-user] Gambas2 Grab in Gambas3 In-Reply-To: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> References: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> Message-ID: Well... there is two answers. First : Use the Desktop.ScreenShot Function (http://gambaswiki.org/wiki/comp/gb.qt4/desktop/screenshot). But your widget must be visible on the screen... This is why it is a SCREEN shot. Second : When you are drawing something in a drawingarea you use a generic drawing function. Exemple : Public sub DrawingArea_Draw() DrawARect() End Private Sub DrawARect() Paint.Brush = Brush.Color(Color.Yellow) Paint.Rectangle(10,10,Paint.Width - 20, Paint.Height - 20) Paint.Fill End Public Function MakeImage(iWidth as integer, iHeight as integer) as Image Dim hImage a new Image(iWidth, iHeight, Color.White) Paint.Begin(hImage) DrawARect() Paint.End End With that you have only one drawing function (DrawARect) able to draw every where ... even on a printer. This is the way used in most of the components too 2016-11-08 12:52 GMT+01:00 Richard Welch : > I need a simple way to copy the current image in a visible DrawingArea > to a hidden PictureBox. > > The project was written in Gambas2, where a simple Grab method did the > trick, but in G3 this does something different so the converted code > does not function fully. > > FMain.pbxPicture.W = FMain.drwRep.W > FMain.pbxPicture.H = FMain.drwRep.H > FMain.pbxPicture.Background = FMain.drwRep.Background > FMain.pbxPicture.Picture = FMain.drwRep.Grab() > > With what do I replace the Grab method? > > (The DrawingArea is painted in many different pieces of code, depending > on context, so I want to make the change which will have the smallest > impact possible on the source code) > > There is a gambas-user thread started around 19 April 2012. > Is this fully relevant? > Is this the /simplest/ answer? > It would need some very tedious testing in my context..... > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bugtracker at ...3416... Wed Nov 9 15:26:24 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 09 Nov 2016 14:26:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1029: BUG: SpinBar does not block mousewheel scroll when inside a scrollview Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1029&from=L21haW4- Antonio OREFICE reported a new bug. Summary ------- BUG: SpinBar does not block mousewheel scroll when inside a scrollview Type : Bug Priority : Medium Gambas version : 3.9 Product : GUI components Description ----------- The subject pretty tells you all. When one tries to use the mousewheel on a spinbar inside a scrollview, the scrollview does scroll and the spinbar looses focus. It happens with textboxes too, but not on spinboxes. The following example trigs the bug: Public Sub Form_Open() Dim aScrollView As Scrollview Dim aSpinbar As Spinbar Dim atextbox As Textbox Dim aspinbox As Spinbox Dim i As Integer Me.Arrangement = arrange.fill aScrollView = New ScrollView(Me) aScrollView.expand = True ascrollview.arrangement = Arrange.vertical For i = 1 To 20 aSpinBar = New SpinBar(aScrollView) aSpinbar.h = 30 atextbox = New TextBox(ascrollview) atextbox.h = 30 aspinbox = New Spinbox(ascrollview) aspinbox.h = 30 Next End System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.8.6-1-ARCH Architecture=x86_64 Distribution=Arch Linux Desktop=KDE5 Theme=Breeze Language=it_IT.utf8 Memory=7933M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1000.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 GTK+3=libgtk-3.so.0.2200.2 OpenGL=libGL.so.1.0.0 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.63.0.0 QT4=libQtCore.so.4.7.4 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.3.2 QT5=libQt5Core.so.5.7.0 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] ANT_HOME=/usr/share/apache-ant Automoc4_DIR=/usr/lib/automoc4 CCACHEPATH=/usr/lib/ccache/bin DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus DESKTOP_SESSION=/usr/share/xsessions/plasma DISPLAY=:0 EDITOR=nano GB_GUI=gb.qt5 GS_LIB=/.fonts GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0:/.config/gtkrc-2.0 GTK_MODULES=canberra-gtk-module GTK_RC_FILES=/etc/gtk/gtkrc:/.gtkrc:/.config/gtkrc HG=/usr/bin/hg HISTCONTROL=ignoredups HISTSIZE=50000 HOME= INFINALITY_FT= INFINALITY_FT_AUTOFIT_FORCE_SLIGHT_HINTING=true INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=0 INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=0 INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25 INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0 INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0 INFINALITY_FT_BRIGHTNESS=0 INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0 INFINALITY_FT_CONTRAST=-20 INFINALITY_FT_FILTER_PARAMS=7 25 44 25 7 INFINALITY_FT_FRINGE_FILTER_STRENGTH=0 INFINALITY_FT_GAMMA_CORRECTION=0 100 INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0 INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0 INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0 INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0 INFINALITY_FT_STEM_FITTING_STRENGTH=0 INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0 INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true INFINALITY_FT_USE_VARIOUS_TWEAKS=true INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0 INTEL_BATCH=1 KDE_FULL_SESSION=true KDE_MULTIHEAD=false KDE_SESSION_UID=0 KDE_SESSION_VERSION=5 KMIX_PULSEAUDIO_DISABLE=1 KWIN_NVIDIA_HACK=1 LANG=it_IT.utf8 LANGUAGE=en_US LC_COLLATE=C LD_LIBRARY_PATH=/usr/local/lib/icu-55/ LESS_TERMCAP_mb= LESS_TERMCAP_md= LESS_TERMCAP_me= LESS_TERMCAP_se= LESS_TERMCAP_so= LESS_TERMCAP_ue= LESS_TERMCAP_us= LOGNAME= LS_COLORS=rs=0:di=01;34:ln=01;36: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: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:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=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:*.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:*.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: MAIL=/var/spool/mail MOZ_DISABLE_PANGO=1 MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins NXDIR=/usr/lib/nx OOO_FORCE_DESKTOP=gnome PATH=/usr/lib/ccache/bin:/usr/lib/nx/bin:/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/cuda/bin:/opt/depot_tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/scripts:/home/scripts/DominioNT/:/usr/local/bin PS4=+ PWD= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_GRAPHICSSYSTEM=raster QT_NO_GLIB=1 QT_QPA_PLATFORMTHEME=kde SESSION_MANAGER=local/:@/tmp/.ICE-unix/2002,unix/:/tmp/.ICE-unix/2002 SHELL=/bin/bash SHLVL=1 TZ=:/etc/localtime USER= WINEARCH=win32 WINEDLLOVERRIDES=winemenubuilder.exe=d XAUTHORITY=/tmp/xauth-0-_0 XCURSOR_SIZE=0 XCURSOR_THEME=Jimmac XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share XDG_DESKTOP_DIR=$HOME/Desktop" XDG_RUNTIME_DIR=/run/user/0 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=c3 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 _=/usr/lib/kf5/start_kdeinit_wrapper __GLVND_DISALLOW_PATCHING=1 __GL_SHADER_DISK_CACHE=1 __GL_YIELD=USLEEP From richardpa608 at ...626... Wed Nov 9 17:45:00 2016 From: richardpa608 at ...626... (Richard Welch) Date: Wed, 9 Nov 2016 16:45:00 +0000 Subject: [Gambas-user] Gambas2 Grab in Gambas3 In-Reply-To: References: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> Message-ID: Fabien, thank you for your reply. There are snags with each of these... First approach: Although the DrawingArea is often fully visible on screen, sometimes it will be too big. I can think of a way round this but it is not very elegant! Second approach: The image is sometimes highly complex and can comprise hundreds of rectangles and lines as well as text. I already do use generic functions as you describe, with variable-driven adjustments to cope with the differences between printing and screen display. There are many places in the code which may build a display. I found in G2 that there were times when the image in a DrawingArea was not restored if it was partially covered by a window from another application and then exposed once more. This mechanism enabled it to be restored easily without having to rebuild it from scratch. Maybe the DrawingArea in G3 is more robust? Richard On 08/11/16 17:31, Fabien Bodard wrote: > Well... there is two answers. > > First : > > Use the Desktop.ScreenShot Function > (http://gambaswiki.org/wiki/comp/gb.qt4/desktop/screenshot). > But your widget must be visible on the screen... This is why it is a > SCREEN shot. > > > Second : > > When you are drawing something in a drawingarea you use a generic > drawing function. > > Exemple : > > > Public sub DrawingArea_Draw() > > DrawARect() > > End > > > Private Sub DrawARect() > > Paint.Brush = Brush.Color(Color.Yellow) > Paint.Rectangle(10,10,Paint.Width - 20, Paint.Height - 20) > Paint.Fill > > End > > > Public Function MakeImage(iWidth as integer, iHeight as integer) as Image > > Dim hImage a new Image(iWidth, iHeight, Color.White) > > Paint.Begin(hImage) > DrawARect() > Paint.End > > End > > > With that you have only one drawing function (DrawARect) able to draw > every where ... even on a printer. This is the way used in most of the > components too > > 2016-11-08 12:52 GMT+01:00 Richard Welch : >> I need a simple way to copy the current image in a visible DrawingArea >> to a hidden PictureBox. >> >> The project was written in Gambas2, where a simple Grab method did the >> trick, but in G3 this does something different so the converted code >> does not function fully. >> >> FMain.pbxPicture.W = FMain.drwRep.W >> FMain.pbxPicture.H = FMain.drwRep.H >> FMain.pbxPicture.Background = FMain.drwRep.Background >> FMain.pbxPicture.Picture = FMain.drwRep.Grab() >> >> With what do I replace the Grab method? >> >> (The DrawingArea is painted in many different pieces of code, depending >> on context, so I want to make the change which will have the smallest >> impact possible on the source code) >> >> There is a gambas-user thread started around 19 April 2012. >> Is this fully relevant? >> Is this the /simplest/ answer? >> It would need some very tedious testing in my context..... >> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From charlie at ...2793... Wed Nov 9 16:38:24 2016 From: charlie at ...2793... (Charlie) Date: Wed, 9 Nov 2016 08:38:24 -0700 (MST) Subject: [Gambas-user] FileChooser select bug In-Reply-To: References: <1478612220202-57735.post@...3046...> Message-ID: <1478705904455-57740.post@...3046...> Thanks Beno?t that is useful information. -- View this message in context: http://gambas.8142.n7.nabble.com/FileChooser-select-bug-tp57735p57740.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed Nov 9 18:53:54 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 9 Nov 2016 18:53:54 +0100 Subject: [Gambas-user] Gambas2 Grab in Gambas3 In-Reply-To: References: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> Message-ID: 2016-11-09 17:45 GMT+01:00 Richard Welch : > Fabien, thank you for your reply. > > There are snags with each of these... > > First approach: > > Although the DrawingArea is often fully visible on screen, sometimes it > will be too big. > I can think of a way round this but it is not very elegant! > > Second approach: > > The image is sometimes highly complex and can comprise hundreds of > rectangles and lines as well as text. I already do use generic > functions as you describe, with variable-driven adjustments to cope with > the differences between printing and screen display. There are many > places in the code which may build a display. > > I found in G2 that there were times when the image in a DrawingArea was > not restored if it was partially covered by a window from another > application and then exposed once more. This mechanism enabled it to be > restored easily without having to rebuild it from scratch. Maybe the > DrawingArea in G3 is more robust? And why not using cached mode ? > > Richard > > > On 08/11/16 17:31, Fabien Bodard wrote: >> Well... there is two answers. >> >> First : >> >> Use the Desktop.ScreenShot Function >> (http://gambaswiki.org/wiki/comp/gb.qt4/desktop/screenshot). >> But your widget must be visible on the screen... This is why it is a >> SCREEN shot. >> >> >> Second : >> >> When you are drawing something in a drawingarea you use a generic >> drawing function. >> >> Exemple : >> >> >> Public sub DrawingArea_Draw() >> >> DrawARect() >> >> End >> >> >> Private Sub DrawARect() >> >> Paint.Brush = Brush.Color(Color.Yellow) >> Paint.Rectangle(10,10,Paint.Width - 20, Paint.Height - 20) >> Paint.Fill >> >> End >> >> >> Public Function MakeImage(iWidth as integer, iHeight as integer) as Image >> >> Dim hImage a new Image(iWidth, iHeight, Color.White) >> >> Paint.Begin(hImage) >> DrawARect() >> Paint.End >> >> End >> >> >> With that you have only one drawing function (DrawARect) able to draw >> every where ... even on a printer. This is the way used in most of the >> components too >> >> 2016-11-08 12:52 GMT+01:00 Richard Welch : >>> I need a simple way to copy the current image in a visible DrawingArea >>> to a hidden PictureBox. >>> >>> The project was written in Gambas2, where a simple Grab method did the >>> trick, but in G3 this does something different so the converted code >>> does not function fully. >>> >>> FMain.pbxPicture.W = FMain.drwRep.W >>> FMain.pbxPicture.H = FMain.drwRep.H >>> FMain.pbxPicture.Background = FMain.drwRep.Background >>> FMain.pbxPicture.Picture = FMain.drwRep.Grab() >>> >>> With what do I replace the Grab method? >>> >>> (The DrawingArea is painted in many different pieces of code, depending >>> on context, so I want to make the change which will have the smallest >>> impact possible on the source code) >>> >>> There is a gambas-user thread started around 19 April 2012. >>> Is this fully relevant? >>> Is this the /simplest/ answer? >>> It would need some very tedious testing in my context..... >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From adamnt42 at ...626... Thu Nov 10 04:38:27 2016 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 10 Nov 2016 14:08:27 +1030 Subject: [Gambas-user] Columnview "collapse" function Message-ID: <20161110140827.d328e2754158525ccb6f5e3a@...626...> What in the name of American erections am I doing wrong here? Public Sub mnuCollapse_Click() ' Collapse all nodes to the level of the selected node Dim hNode As CNode Dim hAttr As String Dim iLevel As Integer hNode = $hDoc.Index[tvwDoc.Key] iLevel = hNode.Level START_HERE: tvwDoc.MoveFirst While tvwDoc.MoveNext() hNode = $hDoc.Index[tvwDoc.Item.Key] '<-- All "seems" to fall apart here? If hNode.Level >= iLevel Then tvwDoc.Item.Expanded = False Endif Wend End tvwDoc is a ColumnView. There is a selected item in the _TreeView, Thus, tvwDoc.Key provides a key into the $hDoc.Index collection from which I can determine the object that was used to populate that columnView branch and from that objects values I can see the "Level" that I want. All that works fine. What I am trying to do is go through the ColumnView branches and "collapse" any branch of the same "Level". Which gets us to START_HERE. There must be something absolutely, stupidly, simple that I am trying to do wrong here - :-( Any help. rgrds b -- B Bruen From cybercamera at ...626... Thu Nov 10 05:36:35 2016 From: cybercamera at ...626... (Cam Era) Date: Thu, 10 Nov 2016 15:36:35 +1100 Subject: [Gambas-user] Unittest for Gambas In-Reply-To: <62c074d6-663f-1967-0793-47d0c75a1cfa@...3340...> References: <62c074d6-663f-1967-0793-47d0c75a1cfa@...3340...> Message-ID: Christof, nice work. Thanks. I'll be giving this a once over with me eye :-) danke On Fri, Sep 23, 2016 at 7:48 AM, Christof Thalhofer wrote: > Hello, > > one of the things I felt Gambas was lacking, was unittests. When I was > developping software with Gambas I always had a couple of testmodules in > my projects lying around, but it was not very satisfying. Especially, > because I had to rewrite stuff for each new library. > > So I searched for elaborated solutions for unittests for Gambas, but > couldnt find one. > > The only thing I found was an old framework written in Visual Basic, > called ComUnit. It was kind of software archeology to understand, how > this thing worked as I decided to fork it. And it took a couple of days > (fortunately I suffered with influenza, so I had a little time) to > rewrite it for Gambas. > > But now it is usable, it works in my projects, with Gambas 3.9. > > It is basic (sic!), there are no parameterized tests, I do not know, > whether it is secure, whether classes are exposed unnecessarily, whether > it is useful for automation of tests and it's a mixture of mine and the > original author's coding style. But I think, it could be a good > beginning. It's here: > > https://github.com/Deganius/gb.deg.unittest/ > > And in the Software Farm. But naturally more recent at Github. > > I would be glad if you could try it out. "Throw an eye on it" as the > crazy Germans say ;-) > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bugtracker at ...3416... Thu Nov 10 12:24:48 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 10 Nov 2016 11:24:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #10 by zxMarce: Christian, Finally! I installed FB2.5, the ODBC driver, and even got a simple test DB with an eight record table, hand populated with ye olde ZX-Spectrum colors (fields ColorName and ColorValue). Also connected to it successfully with a Connection String instead of an INI-based DSN. Sweet! I think I may have a little insight regarding this issue, not having done yet any code changes. The problem *seems* to be that the rec count routine does its work, but for some reason FB driver returns a zero-based record count. When I run "SELECT * FROM Colors", I get back 7 records instead of 8. When I run "SELECT COUNT (*) FROM Colors" or "SELECT AVG (ColorValue) FROM Colors" instead, I get -as you do- 0 records back. All of these statements work correctly on FlameRobin, of course! Beno?t further patched gb.db so when it gets back a record count of -1 the component simply keeps getting records until there are no more; that is why it works with SQLRowCount() which, as you know, returns -1. When gb.db gets anything besides -1, it will loop fetching as many records as told. In the case of FB, it fails to retrieve correctly because the low-level driver returns a zero-based count via unixODBC. Paraphrasing Matt Damon in "The Martian": I will have to science the f*ck out of it. Will start burning some neurones. zxMarce changed the state of the bug to: Working. From gambas.fr at ...626... Thu Nov 10 13:27:59 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 10 Nov 2016 13:27:59 +0100 Subject: [Gambas-user] Columnview "collapse" function In-Reply-To: <20161110140827.d328e2754158525ccb6f5e3a@...626...> References: <20161110140827.d328e2754158525ccb6f5e3a@...626...> Message-ID: well have you a small functional things ?.... certainly something stupid but i can't see it without touching 2016-11-10 4:38 GMT+01:00 adamnt42 at ...626... : > What in the name of American erections am I doing wrong here? > > Public Sub mnuCollapse_Click() > > ' Collapse all nodes to the level of the selected node > Dim hNode As CNode > Dim hAttr As String > Dim iLevel As Integer > > hNode = $hDoc.Index[tvwDoc.Key] > iLevel = hNode.Level > > START_HERE: > tvwDoc.MoveFirst > While tvwDoc.MoveNext() > hNode = $hDoc.Index[tvwDoc.Item.Key] '<-- All "seems" to fall apart here? > If hNode.Level >= iLevel Then > tvwDoc.Item.Expanded = False > Endif > Wend > > End > > tvwDoc is a ColumnView. There is a selected item in the _TreeView, Thus, tvwDoc.Key provides a key into the $hDoc.Index collection from which I can determine the object that was used to populate that columnView branch and from that objects values I can see the "Level" that I want. All that works fine. > > What I am trying to do is go through the ColumnView branches and "collapse" any branch of the same "Level". Which gets us to START_HERE. > > There must be something absolutely, stupidly, simple that I am trying to do wrong here - :-( > > Any help. > > > rgrds > b > > > -- > B Bruen > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bagonergi at ...626... Thu Nov 10 13:59:11 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 10 Nov 2016 13:59:11 +0100 Subject: [Gambas-user] Columnview "collapse" function In-Reply-To: References: <20161110140827.d328e2754158525ccb6f5e3a@...626...> Message-ID: I probably did not understand the problem, but: This discussion could help? [0] or perhaps starting with: tvwDoc.MoveFirst hNode = $hDoc.Index[tvwDoc.Key] iLevel = hNode.Level Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Accessing-the-Treeview-Collection-td20313.html#a20317 2016-11-10 13:27 GMT+01:00 Fabien Bodard : > well have you a small functional things ?.... certainly something > stupid but i can't see it without touching > > 2016-11-10 4:38 GMT+01:00 adamnt42 at ...626... : > > What in the name of American erections am I doing wrong here? > > > > Public Sub mnuCollapse_Click() > > > > ' Collapse all nodes to the level of the selected node > > Dim hNode As CNode > > Dim hAttr As String > > Dim iLevel As Integer > > > > hNode = $hDoc.Index[tvwDoc.Key] > > iLevel = hNode.Level > > > > START_HERE: > > tvwDoc.MoveFirst > > While tvwDoc.MoveNext() > > hNode = $hDoc.Index[tvwDoc.Item.Key] '<-- All "seems" to fall apart > here? > > If hNode.Level >= iLevel Then > > tvwDoc.Item.Expanded = False > > Endif > > Wend > > > > End > > > > tvwDoc is a ColumnView. There is a selected item in the _TreeView, Thus, > tvwDoc.Key provides a key into the $hDoc.Index collection from which I can > determine the object that was used to populate that columnView branch and > from that objects values I can see the "Level" that I want. All that works > fine. > > > > What I am trying to do is go through the ColumnView branches and > "collapse" any branch of the same "Level". Which gets us to START_HERE. > > > > There must be something absolutely, stupidly, simple that I am trying to > do wrong here - :-( > > > > Any help. > > > > > > rgrds > > b > > > > > > -- > > B Bruen > > > > ------------------------------------------------------------ > ------------------ > > Developer Access Program for Intel Xeon Phi Processors > > Access to Intel Xeon Phi processor-based developer platforms. > > With one year of Intel Parallel Studio XE. > > Training and support from Colfax. > > Order your platform today. http://sdm.link/xeonphi > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Thu Nov 10 15:18:57 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 10 Nov 2016 15:18:57 +0100 Subject: [Gambas-user] A new project gets all activated components Message-ID: A friend of ours of Gambas-it, at the opening a new project gets all activated components. He installed Gambas stable from PPA. I suggested him to uninstall and reinstall. Any other suggestions? I remember that this has already been discussed, but I not find the discussion From gambas at ...1... Thu Nov 10 15:44:20 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 10 Nov 2016 15:44:20 +0100 Subject: [Gambas-user] A new project gets all activated components In-Reply-To: References: Message-ID: <0152dfbd-83d5-e6e6-572b-8f00e161534e@...1...> Le 10/11/2016 ? 15:18, Gianluigi a ?crit : > A friend of ours of Gambas-it, at the opening a new project gets all > activated components. > He installed Gambas stable from PPA. > I suggested him to uninstall and reinstall. > Any other suggestions? I remember that this has already been discussed, but > I not find the discussion If I remember, it's a bug in the widget theme. By using another widget theme, checkboxes display normally again. -- Beno?t Minisini From bagonergi at ...626... Thu Nov 10 18:29:15 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 10 Nov 2016 18:29:15 +0100 Subject: [Gambas-user] A new project gets all activated components In-Reply-To: <0152dfbd-83d5-e6e6-572b-8f00e161534e@...1...> References: <0152dfbd-83d5-e6e6-572b-8f00e161534e@...1...> Message-ID: Thank you Benoit, as always very kind. I submit to our friend. Regards Gianluigi 2016-11-10 15:44 GMT+01:00 Beno?t Minisini : > Le 10/11/2016 ? 15:18, Gianluigi a ?crit : > > A friend of ours of Gambas-it, at the opening a new project gets all > > activated components. > > He installed Gambas stable from PPA. > > I suggested him to uninstall and reinstall. > > Any other suggestions? I remember that this has already been discussed, > but > > I not find the discussion > > If I remember, it's a bug in the widget theme. By using another widget > theme, checkboxes display normally again. > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Thu Nov 10 20:17:54 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 10 Nov 2016 19:17:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1030: Project cracks with error 11 when trying to acces connections Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1030&from=L21haW4- Jorge CARRI?N reported a new bug. Summary ------- Project cracks with error 11 when trying to acces connections Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- When there is a registered connection not completely configured and you try to observe the Connections collection, project crash with seg fault 11 See the attached project. Run it and try to observe selecting with mouse or with the observe tab and the project crash. I don't know if connections is supposed to be observable like collection, but I think that the crash it's a bug... Best regards System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.4.0-47-generic Architecture=x86_64 Distribution=Linux Mint 18 Sarah Desktop=CINNAMON Theme=Gtk Language=es_ES.UTF-8 Memory=15989M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.0.0 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.0.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-LkVxf0aqGe,guid=d440cc140b24c5248314db1958245752 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=12534 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=es_ES.UTF-8 MDM_XSERVER_LOCATION=local PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2884,unix/:/tmp/.ICE-unix/2884 SHELL=/bin/bash SSH_AGENT_PID=4773 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.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=2a5d5f96ef9147c0b35535562b32d0ff-1478776653.555739-1827055465 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=7 From bugtracker at ...3416... Thu Nov 10 20:18:26 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 10 Nov 2016 19:18:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1030: Project cracks with error 11 when trying to acces connections In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1030&from=L21haW4- Jorge CARRI?N added an attachment: dbconnections-0.0.1.tar.gz From bugtracker at ...3416... Thu Nov 10 23:39:09 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 10 Nov 2016 22:39:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #11 by Christian FAURE: Well, thanks zxMarce for the information, very appreciated work. Best regards. From chrisml at ...3340... Fri Nov 11 08:31:12 2016 From: chrisml at ...3340... (Christof Thalhofer) Date: Fri, 11 Nov 2016 08:31:12 +0100 Subject: [Gambas-user] Unittest for Gambas In-Reply-To: References: <62c074d6-663f-1967-0793-47d0c75a1cfa@...3340...> Message-ID: Am 10.11.2016 um 05:36 schrieb Cam Era: > nice work. Thanks. I'll be giving this a once over with me eye :-) > > danke Oh, thank you :-) The unittests work well and reliable with every program or library and if one has full control over every piece of Gambas code that uses these libs. But there is a caveat: If one wants to include a lib whith unittests in it, the lib requires the unittest component to be installed in the program, that uses the lib. Because every single test class has to have a "Inherits ATestContainer" in it to work as expected. Without the Unittest component installed Gambas won't start a program that relies on that library. That's bad. I searched and did not find a way around it. Therefor I see the development of the unittest component beeing in alpha state. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at ...3416... Fri Nov 11 13:39:17 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 11 Nov 2016 12:39:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #12 by zxMarce: Christian, Well, it looks like my guess was correct. I patched the function so it now does as follows: 1- Remember the current RowIndex 2- Fetch the index of the first record (firstIndex) 3- Fetch the index of the last record (lastIndex) 4- Go back to the original RowINdex from step 1 5- Return (lastIndex - firstIndex + 1) as rowcount. This change yielded correct SELECT row count for MSSQL: gb.db.odbc: 0x84cc934: SELECT * FROM SampleTable ORDER BY Field1, Field2 gb.db.odbc.GetRecordCount: First recno=1 gb.db.odbc.GetRecordCount: Last recno=63 gb.db.odbc.GetRecordCount: Record count=63 gb.db.odbc: -> 63 rows And also corrected the mishaps for FB, for both a SELECT and a SELECT COUNT(), and you can see that the first record is 0 and not 1 like in MSSQL: gb.db.odbc: 0x84cc934: SELECT * FROM Colors gb.db.odbc.GetRecordCount: First recno=0 gb.db.odbc.GetRecordCount: Last recno=7 gb.db.odbc.GetRecordCount: Record count=8 gb.db.odbc: -> 8 rows gb.db.odbc: 0x84cc934: SELECT COUNT(*) FROM Colors gb.db.odbc.GetRecordCount: First recno=0 gb.db.odbc.GetRecordCount: Last recno=0 gb.db.odbc.GetRecordCount: Record count=1 gb.db.odbc: -> 1 rows The current problem I have now is that I get nice SEGFAULTs when I run an USE command on MSSQL: gb.db.odbc: 0x9db15ac: USE Redemption gb.db.odbc: SQLFetchScroll SQL_FETCH_FIRST gb.db.odbc: H:1:0:[FreeTDS][SQL Server]Fetch type out of range gb.db.odbc: -> -1 rows [SEGFAULT!] So, the function is returning -1 as expected on failure (error occurs when trying to fetch the first record from a recordless command), so the SEGFAULT problem seems to be elsewhere and not in GetRecordCount(). If you want to add the patch yourself and recompile and use the new component, you can grab the following code and give it a try: /* zxMarce: This is one way -hope there's an easier one- to retrieve a rowset * count for SELECT statements. Four steps (must have an scrollable cursor!): * 1- Remember the current row. * 2- Seek down to the last row in the rowset * 3- Get the last row's index (recno) * 4- Seek back to wherever we were at in step 1 * 20161110 zxMarce: Ok, it did not work that OK for Firebird; it looks like * the FB driver returns one-less than the record count (record count seems to * be zero-based), so we will instead do as follows, if we have a scrollable * recordset: * 1- Remember the current row. * 2- Seek up to the first row in the rowset * 3- Get the first row's index (firstRecNo) * 4- Seek down to the last row in the rowset * 5- Get the last row's index (lastRecNo) * 6- Seek back to wherever we were at in step 1 * 7- Return (lastRecNo - firstRecNo + 1). */ int GetRecordCount(SQLHANDLE stmtHandle, SQLINTEGER cursorScrollable) { SQLRETURN retcode; //ODBC call return values int formerRecIdx = 0; //Where we were when this all started. SQLINTEGER myRecCnt = -1; //Default for when there's no cursor. SQLINTEGER firstRecNo = 0; //20161111 holder for 1st recno. SQLINTEGER lastRecNo = 0; //20161111 holder for last recno. char mssg[128]; //Error reporting text. //Make sure the statement has a cursor if (!(stmtHandle && (cursorScrollable == SQL_TRUE))) { if (DB.IsDebug()) { fprintf(stderr, "gb.db.odbc: Cannot do GetRecordCount()!\n"); } return ((int) myRecCnt); } //Tell ODBC we won't be actually reading data (speeds process up). //SQL_ATTR_RETRIEVE_DATA = [SQL_RD_ON] | SQL_RD_OFF retcode = SQLSetStmtAttr(stmtHandle, SQL_ATTR_RETRIEVE_DATA, (SQLPOINTER) SQL_RD_OFF, 0); if (!SQL_SUCCEEDED(retcode)) { reportODBCError("SQLSetStmtAttr SQL_ATTR_RETRIEVE_DATA", stmtHandle, SQL_HANDLE_STMT); } //Fetch current row's index so we can return to it when done. retcode = SQLGetStmtAttr(stmtHandle, SQL_ATTR_ROW_NUMBER, &formerRecIdx, 0, 0); if (!SQL_SUCCEEDED(retcode)) { reportODBCError("SQLGetStmtAttr SQL_ATTR_ROW_NUMBER", stmtHandle, SQL_HANDLE_STMT); } //Try to get (back?) to the first record, abort if not possible. retcode = SQLFetchScroll(stmtHandle, SQL_FETCH_FIRST, (SQLINTEGER) 0); if (!SQL_SUCCEEDED(retcode)) { reportODBCError("SQLFetchScroll SQL_FETCH_FIRST", stmtHandle, SQL_HANDLE_STMT); retcode = SQLSetStmtAttr(stmtHandle, SQL_ATTR_RETRIEVE_DATA, (SQLPOINTER) SQL_RD_ON, 0); return ((int) myRecCnt); } else { //Fetch the first record's index retcode = SQLGetStmtAttr(stmtHandle, SQL_ATTR_ROW_NUMBER, &firstRecNo, 0, 0); if (SQL_SUCCEEDED(retcode)) { //Inform first recno if in Debug mode and carry on if (DB.IsDebug()) { fprintf(stderr, "gb.db.odbc.GetRecordCount: First recno=%d\n", (int) firstRecNo); } } else { //Could not fetch the first recno: Abort! reportODBCError("SQLFetchScroll SQL_ATTR_ROW_NUMBER (first recno)", stmtHandle, SQL_HANDLE_STMT); retcode = SQLSetStmtAttr(stmtHandle, SQL_ATTR_RETRIEVE_DATA, (SQLPOINTER) SQL_RD_ON, 0); return ((int) myRecCnt); } } //Advance the cursor to the last record. retcode = SQLFetchScroll(stmtHandle, SQL_FETCH_LAST, (SQLINTEGER) 0); if (SQL_SUCCEEDED(retcode)) { //Fetch the last record's index retcode = SQLGetStmtAttr(stmtHandle, SQL_ATTR_ROW_NUMBER, &lastRecNo, 0, 0); if (SQL_SUCCEEDED(retcode)) { //Set ret value if (DB.IsDebug()) { fprintf(stderr, "gb.db.odbc.GetRecordCount: Last recno=%d\n", (int) lastRecNo); } } else { reportODBCError("SQLGetStmtAttr SQL_ATTR_ROW_NUMBER (last recno)", stmtHandle, SQL_HANDLE_STMT); } //Return cursor to original row. retcode = SQLFetchScroll(stmtHandle, SQL_FETCH_ABSOLUTE, (SQLINTEGER) formerRecIdx); //Since we have set the "do not read data" statement attribute, this call (may) return //code 100 (SQL_NO_DATA) but that's OK for our purposes of just counting rows. if (!SQL_SUCCEEDED(retcode) && (retcode != SQL_NO_DATA)) { snprintf(mssg, sizeof(mssg), "SQLFetchScroll SQL_FETCH_ABSOLUTE (code %d) (rec %d)", (int)retcode, formerRecIdx); reportODBCError(mssg, stmtHandle, SQL_HANDLE_STMT); } } else { reportODBCError("SQLFetchScroll SQL_FETCH_LAST", stmtHandle, SQL_HANDLE_STMT); } //Tell ODBC we will be reading data now. //SQL_ATTR_RETRIEVE_DATA = [SQL_RD_ON] | SQL_RD_OFF retcode = SQLSetStmtAttr(stmtHandle, SQL_ATTR_RETRIEVE_DATA, (SQLPOINTER) SQL_RD_ON, 0); if (!SQL_SUCCEEDED(retcode)) { reportODBCError("SQLSetStmtAttr SQL_ATTR_RETRIEVE_DATA", stmtHandle, SQL_HANDLE_STMT); } myRecCnt = (lastRecNo - firstRecNo + 1); if (DB.IsDebug()) { fprintf(stderr, "gb.db.odbc.GetRecordCount: Record count=%d\n", (int) myRecCnt); } return ((int) myRecCnt); } Hope that helps. Please give me some feedback as to usability/stability, as I'm afraid I still did not cover all bases. zxMarce changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Fri Nov 11 13:50:46 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 11 Nov 2016 12:50:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #13 by Beno?t MINISINI: Just a remark: if it is too hard to make a generic GetRecordCount() method, you can store in your database connection object the underlying ODBC connection type so that you can use a different method in each case. If I'm connected to a SqlServer database, do the count that way, If I'm connected to a Firebird database, do the count that other way, Otherwise use this default method. What do you think? Beno?t MINISINI changed the state of the bug to: Working. From bugtracker at ...3416... Fri Nov 11 14:22:01 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 11 Nov 2016 13:22:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #14 by zxMarce: Beno?t, Actually, it was not that hard. The subtraction trick did its job flawlessly (and fast, even with the additional API calls), and the function even worked as expected when faced a row-less query. In retrospective, I should already had known better than to assume "all records start at 1", when I know the SQL "standard" is not such ;) Moreover, given that there are many more RDBMs out there (most unknown to me), having the component remember details for each type would not be a good idea, and kind of contrary to the whole ODBC concept of standardizing RDBM access as much as possible. But now that I have your attention, Beno?t, I'd like to ask you a question instead. The usual Gambas Connection object use .Host for the host name and .Name for the desired database ("catalog" for MSSQL) to connect. When using a ConnectionString, though, .Name returns either empty or the whole connstring, which I think is undesirable. It should, IMO, hold the database name, as expected. But, alas, I cannot pinpoint in the ODBC component the correct object/place/struct/string to populate with the DB Name! Can you lend a hand and point me in the right direction? From bugtracker at ...3416... Fri Nov 11 14:51:07 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 11 Nov 2016 13:51:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #15 by Beno?t MINISINI: The open_database() driver function takes a DB_DESC structure pointer as first argument. Modify the name in that structure that way: GB.FreeString(POINTER(&desc->name)); desc->name = GB.NewZeroString(my_new_database_name); Anyway, maybe you should take into account the name provided by the user, possibly adding it to the connection string? If possible, I don't know the ODBC connection string format well. From richardpa608 at ...626... Fri Nov 11 20:16:24 2016 From: richardpa608 at ...626... (Richard Welch) Date: Fri, 11 Nov 2016 19:16:24 +0000 Subject: [Gambas-user] Gambas2 Grab in Gambas3 In-Reply-To: References: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> Message-ID: <6b51458f-245b-832f-2c1b-4590bf620c94@...626...> Fabien, right on the button. Cached now seems to work for me - when the code was first written in G2 some years ago, minimising the window blanked the DrawingArea to background and overlaying it with a window from another application blanked the hidden part of the DrawingArea (I can't now remember if this always happened or if it was intermittent, depending on some factor which I never identified). Turning on cached did not help. Hence the workaround of the use of an invisible PictureBox to backup the image, allowing its restoration to be a neat single operation independent of the original drawing process. So I'm happy. What was for you, no doubt, a simple observation has saved me a lot of hassle. Thank you. Richard On 09/11/16 17:53, Fabien Bodard wrote: > 2016-11-09 17:45 GMT+01:00 Richard Welch : >> Fabien, thank you for your reply. >> >> There are snags with each of these... >> >> First approach: >> >> Although the DrawingArea is often fully visible on screen, sometimes it >> will be too big. >> I can think of a way round this but it is not very elegant! >> >> Second approach: >> >> The image is sometimes highly complex and can comprise hundreds of >> rectangles and lines as well as text. I already do use generic >> functions as you describe, with variable-driven adjustments to cope with >> the differences between printing and screen display. There are many >> places in the code which may build a display. >> >> I found in G2 that there were times when the image in a DrawingArea was >> not restored if it was partially covered by a window from another >> application and then exposed once more. This mechanism enabled it to be >> restored easily without having to rebuild it from scratch. Maybe the >> DrawingArea in G3 is more robust? > And why not using cached mode ? >> Richard >> >> >> On 08/11/16 17:31, Fabien Bodard wrote: >>> Well... there is two answers. >>> >>> First : >>> >>> Use the Desktop.ScreenShot Function >>> (http://gambaswiki.org/wiki/comp/gb.qt4/desktop/screenshot). >>> But your widget must be visible on the screen... This is why it is a >>> SCREEN shot. >>> >>> >>> Second : >>> >>> When you are drawing something in a drawingarea you use a generic >>> drawing function. >>> >>> Exemple : >>> >>> >>> Public sub DrawingArea_Draw() >>> >>> DrawARect() >>> >>> End >>> >>> >>> Private Sub DrawARect() >>> >>> Paint.Brush = Brush.Color(Color.Yellow) >>> Paint.Rectangle(10,10,Paint.Width - 20, Paint.Height - 20) >>> Paint.Fill >>> >>> End >>> >>> >>> Public Function MakeImage(iWidth as integer, iHeight as integer) as Image >>> >>> Dim hImage a new Image(iWidth, iHeight, Color.White) >>> >>> Paint.Begin(hImage) >>> DrawARect() >>> Paint.End >>> >>> End >>> >>> >>> With that you have only one drawing function (DrawARect) able to draw >>> every where ... even on a printer. This is the way used in most of the >>> components too >>> >>> 2016-11-08 12:52 GMT+01:00 Richard Welch : >>>> I need a simple way to copy the current image in a visible DrawingArea >>>> to a hidden PictureBox. >>>> >>>> The project was written in Gambas2, where a simple Grab method did the >>>> trick, but in G3 this does something different so the converted code >>>> does not function fully. >>>> >>>> FMain.pbxPicture.W = FMain.drwRep.W >>>> FMain.pbxPicture.H = FMain.drwRep.H >>>> FMain.pbxPicture.Background = FMain.drwRep.Background >>>> FMain.pbxPicture.Picture = FMain.drwRep.Grab() >>>> >>>> With what do I replace the Grab method? >>>> >>>> (The DrawingArea is painted in many different pieces of code, depending >>>> on context, so I want to make the change which will have the smallest >>>> impact possible on the source code) >>>> >>>> There is a gambas-user thread started around 19 April 2012. >>>> Is this fully relevant? >>>> Is this the /simplest/ answer? >>>> It would need some very tedious testing in my context..... >>>> >>>> ------------------------------------------------------------------------------ >>>> Developer Access Program for Intel Xeon Phi Processors >>>> Access to Intel Xeon Phi processor-based developer platforms. >>>> With one year of Intel Parallel Studio XE. >>>> Training and support from Colfax. >>>> Order your platform today. http://sdm.link/xeonphi >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bugtracker at ...3416... Fri Nov 11 20:42:34 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 11 Nov 2016 19:42:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #16 by Christian FAURE: Thanks! new version of GetRecordCount() work fine with Firebird database!!! ----------- gb.db.odbc: 0xea8148: select current_date as MyDate from RDB$DATABASE gb.db.odbc.GetRecordCount: First recno=0 gb.db.odbc.GetRecordCount: Last recno=0 gb.db.odbc.GetRecordCount: Record count=1 gb.db.odbc: -> 1 rows Result Available! 11/11/2016 00:00:00 ----------- From bugtracker at ...3416... Sat Nov 12 20:31:07 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 12 Nov 2016 19:31:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1013&from=L21haW4- Comment #17 by zxMarce: Christian, Thanks for your feedback. I'll try to add the further patch for retrieving the database name to gb.odbc and send the updated component sources to Beno?t for publishing. Regards, zxMarce. zxMarce changed the state of the bug to: Fixed. From gambas.fr at ...626... Sun Nov 13 09:26:30 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Nov 2016 09:26:30 +0100 Subject: [Gambas-user] Gambas2 Grab in Gambas3 In-Reply-To: <6b51458f-245b-832f-2c1b-4590bf620c94@...626...> References: <8a9752ba-5d83-463a-cdf1-8c6df1da47e9@...626...> <6b51458f-245b-832f-2c1b-4590bf620c94@...626...> Message-ID: 2016-11-11 20:16 GMT+01:00 Richard Welch : > Fabien, right on the button. > > Cached now seems to work for me - when the code was first written in G2 > some years ago, minimising the window blanked the DrawingArea to > background and overlaying it with a window from another application > blanked the hidden part of the DrawingArea (I can't now remember if this > always happened or if it was intermittent, depending on some factor > which I never identified). Turning on cached did not help. Hence the > workaround of the use of an invisible PictureBox to backup the image, > allowing its restoration to be a neat single operation independent of > the original drawing process. > > So I'm happy. What was for you, no doubt, a simple observation has > saved me a lot of hassle. Thank you. > > Richard It was a pleasure > > > On 09/11/16 17:53, Fabien Bodard wrote: >> 2016-11-09 17:45 GMT+01:00 Richard Welch : >>> Fabien, thank you for your reply. >>> >>> There are snags with each of these... >>> >>> First approach: >>> >>> Although the DrawingArea is often fully visible on screen, sometimes it >>> will be too big. >>> I can think of a way round this but it is not very elegant! >>> >>> Second approach: >>> >>> The image is sometimes highly complex and can comprise hundreds of >>> rectangles and lines as well as text. I already do use generic >>> functions as you describe, with variable-driven adjustments to cope with >>> the differences between printing and screen display. There are many >>> places in the code which may build a display. >>> >>> I found in G2 that there were times when the image in a DrawingArea was >>> not restored if it was partially covered by a window from another >>> application and then exposed once more. This mechanism enabled it to be >>> restored easily without having to rebuild it from scratch. Maybe the >>> DrawingArea in G3 is more robust? >> And why not using cached mode ? >>> Richard >>> >>> >>> On 08/11/16 17:31, Fabien Bodard wrote: >>>> Well... there is two answers. >>>> >>>> First : >>>> >>>> Use the Desktop.ScreenShot Function >>>> (http://gambaswiki.org/wiki/comp/gb.qt4/desktop/screenshot). >>>> But your widget must be visible on the screen... This is why it is a >>>> SCREEN shot. >>>> >>>> >>>> Second : >>>> >>>> When you are drawing something in a drawingarea you use a generic >>>> drawing function. >>>> >>>> Exemple : >>>> >>>> >>>> Public sub DrawingArea_Draw() >>>> >>>> DrawARect() >>>> >>>> End >>>> >>>> >>>> Private Sub DrawARect() >>>> >>>> Paint.Brush = Brush.Color(Color.Yellow) >>>> Paint.Rectangle(10,10,Paint.Width - 20, Paint.Height - 20) >>>> Paint.Fill >>>> >>>> End >>>> >>>> >>>> Public Function MakeImage(iWidth as integer, iHeight as integer) as Image >>>> >>>> Dim hImage a new Image(iWidth, iHeight, Color.White) >>>> >>>> Paint.Begin(hImage) >>>> DrawARect() >>>> Paint.End >>>> >>>> End >>>> >>>> >>>> With that you have only one drawing function (DrawARect) able to draw >>>> every where ... even on a printer. This is the way used in most of the >>>> components too >>>> >>>> 2016-11-08 12:52 GMT+01:00 Richard Welch : >>>>> I need a simple way to copy the current image in a visible DrawingArea >>>>> to a hidden PictureBox. >>>>> >>>>> The project was written in Gambas2, where a simple Grab method did the >>>>> trick, but in G3 this does something different so the converted code >>>>> does not function fully. >>>>> >>>>> FMain.pbxPicture.W = FMain.drwRep.W >>>>> FMain.pbxPicture.H = FMain.drwRep.H >>>>> FMain.pbxPicture.Background = FMain.drwRep.Background >>>>> FMain.pbxPicture.Picture = FMain.drwRep.Grab() >>>>> >>>>> With what do I replace the Grab method? >>>>> >>>>> (The DrawingArea is painted in many different pieces of code, depending >>>>> on context, so I want to make the change which will have the smallest >>>>> impact possible on the source code) >>>>> >>>>> There is a gambas-user thread started around 19 April 2012. >>>>> Is this fully relevant? >>>>> Is this the /simplest/ answer? >>>>> It would need some very tedious testing in my context..... >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Developer Access Program for Intel Xeon Phi Processors >>>>> Access to Intel Xeon Phi processor-based developer platforms. >>>>> With one year of Intel Parallel Studio XE. >>>>> Training and support from Colfax. >>>>> Order your platform today. http://sdm.link/xeonphi >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > 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... Sun Nov 13 11:04:51 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Nov 2016 11:04:51 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: Message-ID: This a first preview of some terminal windows with VBoxes Hboxes, Buttons, and Labels. -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20161113_092353.png Type: image/png Size: 173675 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20161113_092453.png Type: image/png Size: 195703 bytes Desc: not available URL: From taboege at ...626... Sun Nov 13 15:39:49 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 13 Nov 2016 15:39:49 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window Message-ID: <20161113143949.GA741@...3600...> Hi, I would like to have a dialog window (containing settings for the current session, say) which I want to show when the user clicks a button on some webform, with the following behaviour: - the application should be usable while the window is visible, - it should not be possible to have the window opened twice, and - the controls in that window should retain their values after the window was closed so that I can refer to these values from another Webform and when the dialog is opened again, all controls are properly initialised already with the settings the user left it with. Oddly, I can't do any of these, e.g. for point two above, I have a Webform2 class (the dialog) and whenever I do Webform2.Show() in Webform1, a new window is created containing a fresh instance of Webform2, regardless of whether Webform2 (which is Create Static) is already shown or not. I presume I misunderstand how gb.web.form works here? Is it possible to have a dialog such as above? (I'm currently running #7949.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Nov 13 15:50:27 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Nov 2016 15:50:27 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: <20161113143949.GA741@...3600...> References: <20161113143949.GA741@...3600...> Message-ID: <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> Le 13/11/2016 ? 15:39, Tobias Boege a ?crit : > Hi, > > I would like to have a dialog window (containing settings for the current > session, say) which I want to show when the user clicks a button on some > webform, with the following behaviour: > > - the application should be usable while the window is visible, > - it should not be possible to have the window opened twice, and > - the controls in that window should retain their values after the > window was closed so that I can refer to these values from another > Webform and when the dialog is opened again, all controls are > properly initialised already with the settings the user left it with. > > Oddly, I can't do any of these, e.g. for point two above, I have a Webform2 > class (the dialog) and whenever I do > > Webform2.Show() > > in Webform1, a new window is created containing a fresh instance of Webform2, > regardless of whether Webform2 (which is Create Static) is already shown or > not. I presume I misunderstand how gb.web.form works here? Is it possible to > have a dialog such as above? (I'm currently running #7949.) > > Regards, > Tobi > I think you need the Persistent property and a working Hide() method? -- Beno?t Minisini From taboege at ...626... Sun Nov 13 16:06:14 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 13 Nov 2016 16:06:14 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> References: <20161113143949.GA741@...3600...> <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> Message-ID: <20161113150614.GB741@...3600...> On Sun, 13 Nov 2016, Beno?t Minisini wrote: > Le 13/11/2016 ? 15:39, Tobias Boege a ?crit : > > Hi, > > > > I would like to have a dialog window (containing settings for the current > > session, say) which I want to show when the user clicks a button on some > > webform, with the following behaviour: > > > > - the application should be usable while the window is visible, > > - it should not be possible to have the window opened twice, and > > - the controls in that window should retain their values after the > > window was closed so that I can refer to these values from another > > Webform and when the dialog is opened again, all controls are > > properly initialised already with the settings the user left it with. > > > > Oddly, I can't do any of these, e.g. for point two above, I have a Webform2 > > class (the dialog) and whenever I do > > > > Webform2.Show() > > > > in Webform1, a new window is created containing a fresh instance of Webform2, > > regardless of whether Webform2 (which is Create Static) is already shown or > > not. I presume I misunderstand how gb.web.form works here? Is it possible to > > have a dialog such as above? (I'm currently running #7949.) > > > > Regards, > > Tobi > > > > I think you need the Persistent property and a working Hide() method? > Yes, that may suffice. Would this Persistent property also solve the problem in the attached project: if I set a property in Webform2, it seems to just be discarded? Is that instance of Webform2 not managed by gb.web.form or something? More specifically in that project, I want that the contents of the TextArea on Webform2 are preserved across closing that window (and preferably across refreshing the page). In another matter: I'd also be a fan of being able to turn the title bar of a window off (without removing the capability to resize it), or rather to render my own title bar. That blue and the big icons don't match the design of my project very well. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: test-0.0.1.tar.gz Type: application/octet-stream Size: 11943 bytes Desc: not available URL: From gambas at ...1... Sun Nov 13 16:11:27 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Nov 2016 16:11:27 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: <20161113150614.GB741@...3600...> References: <20161113143949.GA741@...3600...> <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> <20161113150614.GB741@...3600...> Message-ID: Le 13/11/2016 ? 16:06, Tobias Boege a ?crit : > On Sun, 13 Nov 2016, Beno?t Minisini wrote: >> Le 13/11/2016 ? 15:39, Tobias Boege a ?crit : >>> Hi, >>> >>> I would like to have a dialog window (containing settings for the current >>> session, say) which I want to show when the user clicks a button on some >>> webform, with the following behaviour: >>> >>> - the application should be usable while the window is visible, >>> - it should not be possible to have the window opened twice, and >>> - the controls in that window should retain their values after the >>> window was closed so that I can refer to these values from another >>> Webform and when the dialog is opened again, all controls are >>> properly initialised already with the settings the user left it with. >>> >>> Oddly, I can't do any of these, e.g. for point two above, I have a Webform2 >>> class (the dialog) and whenever I do >>> >>> Webform2.Show() >>> >>> in Webform1, a new window is created containing a fresh instance of Webform2, >>> regardless of whether Webform2 (which is Create Static) is already shown or >>> not. I presume I misunderstand how gb.web.form works here? Is it possible to >>> have a dialog such as above? (I'm currently running #7949.) >>> >>> Regards, >>> Tobi >>> >> >> I think you need the Persistent property and a working Hide() method? >> > > Yes, that may suffice. Would this Persistent property also solve the problem > in the attached project: if I set a property in Webform2, it seems to just > be discarded? Is that instance of Webform2 not managed by gb.web.form or > something? > > More specifically in that project, I want that the contents of the TextArea > on Webform2 are preserved across closing that window (and preferably across > refreshing the page). > > In another matter: I'd also be a fan of being able to turn the title bar of > a window off (without removing the capability to resize it), or rather to > render my own title bar. That blue and the big icons don't match the design > of my project very well. > > Regards, > Tobi > I found another bug: the static instance is not correctly kept between requests. At each request, all GUI object are re-created. But when one of them is an automatic static instance, it is recreated as a normal instance. Regards, -- Beno?t Minisini From gambas at ...1... Sun Nov 13 16:29:50 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Nov 2016 16:29:50 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: References: <20161113143949.GA741@...3600...> <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> <20161113150614.GB741@...3600...> Message-ID: Le 13/11/2016 ? 16:11, Beno?t Minisini a ?crit : > > I found another bug: the static instance is not correctly kept between > requests. > > At each request, all GUI object are re-created. But when one of them is > an automatic static instance, it is recreated as a normal instance. > > Regards, > Does it work now for you with revision #7969? -- Beno?t Minisini From taboege at ...626... Sun Nov 13 17:02:51 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 13 Nov 2016 17:02:51 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: References: <20161113143949.GA741@...3600...> <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> <20161113150614.GB741@...3600...> Message-ID: <20161113160251.GC741@...3600...> On Sun, 13 Nov 2016, Beno?t Minisini wrote: > Le 13/11/2016 ? 16:11, Beno?t Minisini a ?crit : > > > > I found another bug: the static instance is not correctly kept between > > requests. > > > > At each request, all GUI object are re-created. But when one of them is > > an automatic static instance, it is recreated as a normal instance. > > > > Regards, > > > > Does it work now for you with revision #7969? > The window is persistent now. Thanks. But if I have a custom property like the Opened As Boolean in the example I attached previously, will it be preserved, too? That seems not to be the case currently (even if I make it a Read/Write property). Of course, I don't need that specific property anymore now, but will other properties added to a Webform class be restored? Since the Tag property is preserved, I can also use that for any additional data, I guess. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Nov 13 17:47:54 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 13 Nov 2016 17:47:54 +0100 Subject: [Gambas-user] gb.web.form: Multiple main forms Message-ID: <20161113164754.GD741@...3600...> Hi Benoit, in revision #7958 you removed support for multiple main forms in gb.web.form. I have two webforms, a Login.webform and a MainSite.webform, the latter of which is my startup class. If the user is not logged in yet, according to the session, I used to Response.Redirect("/Login") which would run the login webform. This does not seem to be intended anymore. How would I do something like that now? I don't want all the code in one webform, obviously. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Nov 13 18:32:29 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Nov 2016 18:32:29 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: <20161113160251.GC741@...3600...> References: <20161113143949.GA741@...3600...> <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> <20161113150614.GB741@...3600...> <20161113160251.GC741@...3600...> Message-ID: Le 13/11/2016 ? 17:02, Tobias Boege a ?crit : > On Sun, 13 Nov 2016, Beno?t Minisini wrote: >> Le 13/11/2016 ? 16:11, Beno?t Minisini a ?crit : >>> >>> I found another bug: the static instance is not correctly kept between >>> requests. >>> >>> At each request, all GUI object are re-created. But when one of them is >>> an automatic static instance, it is recreated as a normal instance. >>> >>> Regards, >>> >> >> Does it work now for you with revision #7969? >> > > The window is persistent now. Thanks. But if I have a custom property like > the Opened As Boolean in the example I attached previously, will it be > preserved, too? That seems not to be the case currently (even if I make > it a Read/Write property). > > Of course, I don't need that specific property anymore now, but will other > properties added to a Webform class be restored? Since the Tag property is > preserved, I can also use that for any additional data, I guess. > > Regards, > Tobi > You must store the property in the session, and this is not automatic. In the property write method, do that: Me._SetProperty("", value) Of course, this is not meant to be used outside of 'gb.web.form' at the moment! The _SetProperty() method store the value and the name of the property in the session. And that value is automatically restored when objects are re-created when a new request is handled. Regards, -- Beno?t Minisini From gambas at ...1... Sun Nov 13 18:33:21 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Nov 2016 18:33:21 +0100 Subject: [Gambas-user] gb.web.form: Multiple main forms In-Reply-To: <20161113164754.GD741@...3600...> References: <20161113164754.GD741@...3600...> Message-ID: Le 13/11/2016 ? 17:47, Tobias Boege a ?crit : > Hi Benoit, > > in revision #7958 you removed support for multiple main forms in gb.web.form. > I have two webforms, a Login.webform and a MainSite.webform, the latter of > which is my startup class. If the user is not logged in yet, according to the > session, I used to > > Response.Redirect("/Login") > > which would run the login webform. This does not seem to be intended anymore. > How would I do something like that now? I don't want all the code in one > webform, obviously. > > Regards, > Tobi > I'm aware of the problem, but didn't find a good solution yet. Maybe the multiple main form support will come back. -- Beno?t Minisini From taboege at ...626... Sun Nov 13 18:40:38 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 13 Nov 2016 18:40:38 +0100 Subject: [Gambas-user] gb.web.form: Preserve state of dialog window In-Reply-To: References: <20161113143949.GA741@...3600...> <7c8f7de5-2b2f-0854-1595-b7902b97b12b@...1...> <20161113150614.GB741@...3600...> <20161113160251.GC741@...3600...> Message-ID: <20161113174038.GE741@...3600...> On Sun, 13 Nov 2016, Beno?t Minisini wrote: > Le 13/11/2016 ? 17:02, Tobias Boege a ?crit : > > On Sun, 13 Nov 2016, Beno?t Minisini wrote: > >> Le 13/11/2016 ? 16:11, Beno?t Minisini a ?crit : > >>> > >>> I found another bug: the static instance is not correctly kept between > >>> requests. > >>> > >>> At each request, all GUI object are re-created. But when one of them is > >>> an automatic static instance, it is recreated as a normal instance. > >>> > >>> Regards, > >>> > >> > >> Does it work now for you with revision #7969? > >> > > > > The window is persistent now. Thanks. But if I have a custom property like > > the Opened As Boolean in the example I attached previously, will it be > > preserved, too? That seems not to be the case currently (even if I make > > it a Read/Write property). > > > > Of course, I don't need that specific property anymore now, but will other > > properties added to a Webform class be restored? Since the Tag property is > > preserved, I can also use that for any additional data, I guess. > > > > Regards, > > Tobi > > > > You must store the property in the session, and this is not automatic. > > In the property write method, do that: > > Me._SetProperty("", value) > > Of course, this is not meant to be used outside of 'gb.web.form' at the > moment! > > The _SetProperty() method store the value and the name of the property > in the session. And that value is automatically restored when objects > are re-created when a new request is handled. > Of course! It's been some time since I last worked closely with gb.web.form. I already use that method in other classes, and _AddJavascript() as well. Maybe I shouldn't cause so much trouble by using internal mechanisms which you may break later, but these were very convenient ways to get the job done when I wrote the project. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at ...626... Mon Nov 14 01:32:50 2016 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Mon, 14 Nov 2016 11:02:50 +1030 Subject: [Gambas-user] Columnview "collapse" function In-Reply-To: References: <20161110140827.d328e2754158525ccb6f5e3a@...626...> Message-ID: <20161114110250.9d27d66e57684bb76ea4abe5@...626...> On Thu, 10 Nov 2016 13:59:11 +0100 Gianluigi wrote: > I probably did not understand the problem, but: > This discussion could help? [0] > or perhaps starting with: > tvwDoc.MoveFirst > hNode = $hDoc.Index[tvwDoc.Key] > iLevel = hNode.Level > > Regards > Gianluigi > > [0] > http://gambas.8142.n7.nabble.com/Accessing-the-Treeview-Collection-td20313.html#a20317 > > 2016-11-10 13:27 GMT+01:00 Fabien Bodard : > > > well have you a small functional things ?.... certainly something > > stupid but i can't see it without touching > > > > 2016-11-10 4:38 GMT+01:00 adamnt42 at ...626... : > > > What in the name of American erections am I doing wrong here? > > > > > > Public Sub mnuCollapse_Click() > > > > > > ' Collapse all nodes to the level of the selected node > > > Dim hNode As CNode > > > Dim hAttr As String > > > Dim iLevel As Integer > > > > > > hNode = $hDoc.Index[tvwDoc.Key] > > > iLevel = hNode.Level > > > > > > START_HERE: > > > tvwDoc.MoveFirst > > > While tvwDoc.MoveNext() > > > hNode = $hDoc.Index[tvwDoc.Item.Key] '<-- All "seems" to fall apart > > here? > > > If hNode.Level >= iLevel Then > > > tvwDoc.Item.Expanded = False > > > Endif > > > Wend > > > > > > End > > > > > > tvwDoc is a ColumnView. There is a selected item in the _TreeView, Thus, > > tvwDoc.Key provides a key into the $hDoc.Index collection from which I can > > determine the object that was used to populate that columnView branch and > > from that objects values I can see the "Level" that I want. All that works > > fine. > > > > > > What I am trying to do is go through the ColumnView branches and > > "collapse" any branch of the same "Level". Which gets us to START_HERE. > > > > > > There must be something absolutely, stupidly, simple that I am trying to > > do wrong here - :-( > > > > > > Any help. > > > > > > > > > rgrds > > > b > > > > > > > > > -- > > > B Bruen > > > > > > ------------------------------------------------------------ > > ------------------ > > > Developer Access Program for Intel Xeon Phi Processors > > > Access to Intel Xeon Phi processor-based developer platforms. > > > With one year of Intel Parallel Studio XE. > > > Training and support from Colfax. > > > Order your platform today. http://sdm.link/xeonphi > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > Fabien Bodard > > > > ------------------------------------------------------------ > > ------------------ > > Developer Access Program for Intel Xeon Phi Processors > > Access to Intel Xeon Phi processor-based developer platforms. > > With one year of Intel Parallel Studio XE. > > Training and support from Colfax. > > Order your platform today. http://sdm.link/xeonphi > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hah! Finally got it. Thanks Gianluigi, that thread gave me the clues. regards Bruce -- B Bruen From cybercamera at ...626... Mon Nov 14 03:40:39 2016 From: cybercamera at ...626... (Cam Era) Date: Mon, 14 Nov 2016 13:40:39 +1100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: Message-ID: Fabien, that's looking like interesting work. Nice On Sun, Nov 13, 2016 at 9:04 PM, Fabien Bodard wrote: > This a first preview of some terminal windows with VBoxes Hboxes, > Buttons, and Labels. > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Mon Nov 14 12:21:15 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 14 Nov 2016 12:21:15 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: Message-ID: More widgets 2016-11-14 3:40 GMT+01:00 Cam Era : > Fabien, > > that's looking like interesting work. > > Nice > > > > On Sun, Nov 13, 2016 at 9:04 PM, Fabien Bodard wrote: > >> This a first preview of some terminal windows with VBoxes Hboxes, >> Buttons, and Labels. >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------ >> ------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20161114_122041.png Type: image/png Size: 188328 bytes Desc: not available URL: From gambas at ...1... Mon Nov 14 12:38:37 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 Nov 2016 12:38:37 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: Message-ID: <00ea9851-415b-437e-c726-f2cf1aca10ff@...1...> Le 14/11/2016 ? 12:21, Fabien Bodard a ?crit : > More widgets > If you want to make an ImageBox control :-) http://aa-project.sourceforge.net/aalib/aalib_toc.html -- Beno?t Minisini From gambas.fr at ...626... Mon Nov 14 13:19:01 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 14 Nov 2016 13:19:01 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: <00ea9851-415b-437e-c726-f2cf1aca10ff@...1...> References: <00ea9851-415b-437e-c726-f2cf1aca10ff@...1...> Message-ID: 2016-11-14 12:38 GMT+01:00 Beno?t Minisini : > Le 14/11/2016 ? 12:21, Fabien Bodard a ?crit : >> More widgets >> > > If you want to make an ImageBox control :-) Why not ? > > http://aa-project.sourceforge.net/aalib/aalib_toc.html > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From chrisml at ...3340... Mon Nov 14 13:19:01 2016 From: chrisml at ...3340... (Christof Thalhofer) Date: Mon, 14 Nov 2016 13:19:01 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: Message-ID: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: > More widgets Great! Tn the future the Debian installer will be programmed with Gambas! And mc, and htop and so on. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From gambas.fr at ...626... Mon Nov 14 13:50:45 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 14 Nov 2016 13:50:45 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> Message-ID: 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : > Am 14.11.2016 um 12:21 schrieb Fabien Bodard: > >> More widgets > > Great! Tn the future the Debian installer will be programmed with Gambas! > > And mc, and htop and so on. Something like mc can be done... maybe an editor I want to add menus too. In fact it remember me some learning time on Money.Bas a demo in QBasic. I need benoit to do some work on a gb.term component. As i can't get any input from the terminal. So I'm just doing all th infrastructure for rendering. The goal of this component is to make application drawing as easy in terminal as it is in graphical mode. > > ;-) > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > 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... Mon Nov 14 15:28:35 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 14 Nov 2016 15:28:35 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> Message-ID: <5829CA13.50108@...221...> Am 14.11.2016 13:50, schrieb Fabien Bodard: > 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >> >>> More widgets >> Great! Tn the future the Debian installer will be programmed with Gambas! >> >> And mc, and htop and so on. > Something like mc can be done... maybe an editor > > I want to add menus too. In fact it remember me some learning time on > Money.Bas a demo in QBasic. > > I need benoit to do some work on a gb.term component. As i can't get > any input from the terminal. So I'm just doing all th infrastructure > for > rendering. > > The goal of this component is to make application drawing as easy in > terminal as it is in graphical mode. > Long, long time ago... in another galaxy... I used to program the first PCs with Turbo Basic. For my ever-lasting project, the school database, I made myself a simple library with widgets for some primitive kind of menues and OK boxes. Some years later, the Turbo Basic thing was distributed by Kirschbaum in Germany, and they added a clever library with the same functionality your widget set shows. This gave a tremendous boost, and with the so-called PowerTools included, at that time good olde Turbo Basic was as comprehensive as is Gambas today. Yes, I like the idea :) Regards Rolf From hans at ...3219... Mon Nov 14 18:00:50 2016 From: hans at ...3219... (Hans Lehmann) Date: Mon, 14 Nov 2016 18:00:50 +0100 Subject: [Gambas-user] DBusSignal Error (Send) Message-ID: Hello, in my project 'signaltx2' I get after this source line: DBus[DBus.Name].Raise(NameVersion, "GetGBVersion", ["3.9.1"]) the following error message: Couldn't allocate D-Bus message ! Where is the error in the source code? Can someone help? Project attached. Sincerely Hans -- Author of the german Gambas book gambas-buch.de/dw/doku.php -------------- next part -------------- A non-text attachment was scrubbed... Name: signaltx2-0.1.73.tar.gz Type: application/gzip Size: 52063 bytes Desc: not available URL: From ub2 at ...36... Mon Nov 14 18:17:21 2016 From: ub2 at ...36... (ub2 at ...36...) Date: Mon, 14 Nov 2016 18:17:21 +0100 Subject: [Gambas-user] Load modules dynamically ? Message-ID: Dear Gambas users, The situation: - Different gambas-programs, - all using similar functions - All those functions are packed in modules. The question: I there a way to load those modules at runtime? As for example in the FMain.Form_Open, something like: - "ModuleXY.Load(Path_to_Module)", or - "ImportModule("Path_to_module","LoadAsModuleName") My hope: Stopping to struggle with similar but diverging functions in different programs by loading a "Master-Module" at runtime. Sorry if there is a simple and stupid answer, I've not found it yet. Thanks for any ideas, links or snippets. From gbwilly at ...3606... Mon Nov 14 19:56:37 2016 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Mon, 14 Nov 2016 19:56:37 +0100 Subject: [Gambas-user] =?utf-8?q?Load_modules_dynamically_=3F?= In-Reply-To: References: Message-ID: On 2016-11-14 18:17, ub2 at ...36... wrote: > Dear Gambas users, > > > The situation: > - Different gambas-programs, > - all using similar functions > - All those functions are packed in modules. > > The question: > I there a way to load those modules at runtime? > As for example in the FMain.Form_Open, something like: > - "ModuleXY.Load(Path_to_Module)", or > - "ImportModule("Path_to_module","LoadAsModuleName") > > My hope: > Stopping to struggle with similar but diverging functions in different > programs by loading a "Master-Module" at runtime. > > > Sorry if there is a simple and stupid answer, I've not found it yet. > > In short: I would put the modules in a seperate gambas application and make that a library, instead of regular application. Next make your applications depend on the library (done in project properties of the applications -> refers to an executable of the library), and they can use the common functions. More info: http://gambaswiki.org/wiki/doc/library If you have any questions, just ask. gbWilly From t.lee.davidson at ...626... Tue Nov 15 00:12:44 2016 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Mon, 14 Nov 2016 18:12:44 -0500 Subject: [Gambas-user] DBusSignal Error (Send) In-Reply-To: References: Message-ID: <5691972c-5f7b-5d52-4703-9f0a72cf968b@...626...> On 11/14/2016 12:00 PM, Hans Lehmann wrote: > Hello, > > in my project 'signaltx2' I get after this source line: > > DBus[DBus.Name].Raise(NameVersion, "GetGBVersion", ["3.9.1"]) > > the following error message: > > Couldn't allocate D-Bus message ! > > Where is the error in the source code? Can someone help? > Project attached. > > Sincerely > > Hans > I'm not certain it is an error in _your_ source code. When I run the app and click "Send", I get an interpreter crash and an error message in the console: " arguments to dbus_message_new_signal() were incorrect, assertion "iface != NULL" failed in file dbus-message.c l ine 1431." [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.1.34-33-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1 (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:42.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse" Desktop=KDE5 Theme=Breeze Language=en_US.UTF-8 Memory=2001M [Libraries] Cairo=libcairo.so.2.11400.2 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-1.0.so.0.405.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 OpenGL=libGL.so.1.2.0 QT4=libQtCore.so.4.8.6 SQLite=libsqlite3.so.0.8.6 -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From gambas.fr at ...626... Tue Nov 15 22:56:47 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 15 Nov 2016 22:56:47 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: <5829CA13.50108@...221...> References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> <5829CA13.50108@...221...> Message-ID: You have said ... PictureBox ? (i need to find a way to increase the color parsing ... but...) I use gb.image and gb.image.io 2016-11-14 15:28 GMT+01:00 Rolf-Werner Eilert : > > Am 14.11.2016 13:50, schrieb Fabien Bodard: >> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >>> >>>> More widgets >>> Great! Tn the future the Debian installer will be programmed with Gambas! >>> >>> And mc, and htop and so on. >> Something like mc can be done... maybe an editor >> >> I want to add menus too. In fact it remember me some learning time on >> Money.Bas a demo in QBasic. >> >> I need benoit to do some work on a gb.term component. As i can't get >> any input from the terminal. So I'm just doing all th infrastructure >> for >> rendering. >> >> The goal of this component is to make application drawing as easy in >> terminal as it is in graphical mode. >> > > Long, long time ago... in another galaxy... I used to program the first > PCs with Turbo Basic. For my ever-lasting project, the school database, > I made myself a simple library with widgets for some primitive kind of > menues and OK boxes. > > Some years later, the Turbo Basic thing was distributed by Kirschbaum in > Germany, and they added a clever library with the same functionality > your widget set shows. > > This gave a tremendous boost, and with the so-called PowerTools > included, at that time good olde Turbo Basic was as comprehensive as is > Gambas today. > > Yes, I like the idea :) > > Regards > Rolf > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20161115_225439.png Type: image/png Size: 158541 bytes Desc: not available URL: From ub2 at ...36... Wed Nov 16 06:42:19 2016 From: ub2 at ...36... (ub2 at ...36...) Date: Wed, 16 Nov 2016 06:42:19 +0100 Subject: [Gambas-user] Load modules dynamically ? Works as promised. Thanks. Closed In-Reply-To: References: Message-ID: <444e46b4-ca93-f41f-10c3-e2f327306943@...36...> Dear gbWilly Works as promised, great! Maintaining becomes much easier now. Thanks a lot! Regarding http://gambaswiki.org/wiki/doc/library: - My system: Xubuntu 16.04 LTS, Gambas 3.9.1 - The "project properties" looks slightly different (no problem) - The "Component property" I could not find at all. (but the given EXPORT-Link did it) Again, thanks very much for much your very quick and applicable support. ub2 > Am 14.11.2016 um 19:56 schrieb gbwilly at ...3606...: > > In short: > I would put the modules in a seperate gambas application and make that a > library, instead of regular application. > Next make your applications depend on the library (done in project > properties of the applications -> refers to an executable of the > library), and they can use the common functions. > > More info: http://gambaswiki.org/wiki/doc/library > > If you have any questions, just ask. > > gbWilly > >> On 2016-11-14 18:17, ub2 at ...36... wrote: >> Dear Gambas users, >> >> >> The situation: >> - Different gambas-programs, >> - all using similar functions >> - All those functions are packed in modules. >> >> The question: >> I there a way to load those modules at runtime? >> As for example in the FMain.Form_Open, something like: >> - "ModuleXY.Load(Path_to_Module)", or >> - "ImportModule("Path_to_module","LoadAsModuleName") >> >> My hope: >> Stopping to struggle with similar but diverging functions in different >> programs by loading a "Master-Module" at runtime. >> >> >> Sorry if there is a simple and stupid answer, I've not found it yet. From eilert-sprachen at ...221... Wed Nov 16 08:52:18 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 16 Nov 2016 08:52:18 +0100 Subject: [Gambas-user] Load modules dynamically ? In-Reply-To: References: Message-ID: <582C1032.3010605@...221...> Am 14.11.2016 19:56, schrieb gbwilly at ...3606...: > On 2016-11-14 18:17, ub2 at ...36... wrote: >> Dear Gambas users, >> >> >> The situation: >> - Different gambas-programs, >> - all using similar functions >> - All those functions are packed in modules. >> >> The question: >> I there a way to load those modules at runtime? >> As for example in the FMain.Form_Open, something like: >> - "ModuleXY.Load(Path_to_Module)", or >> - "ImportModule("Path_to_module","LoadAsModuleName") >> >> My hope: >> Stopping to struggle with similar but diverging functions in different >> programs by loading a "Master-Module" at runtime. >> >> >> Sorry if there is a simple and stupid answer, I've not found it yet. >> >> > In short: > I would put the modules in a seperate gambas application and make that a > library, instead of regular application. > Next make your applications depend on the library (done in project > properties of the applications -> refers to an executable of the > library), and they can use the common functions. > > More info: http://gambaswiki.org/wiki/doc/library > > If you have any questions, just ask. > > gbWilly > > > What will the Gambas IDE do when a program is packaged (Make installation package)? Will it add the library to the package, or will I have to take care for it myself? Rolf From fmfdario at ...626... Wed Nov 16 09:33:24 2016 From: fmfdario at ...626... (Francisco Martinez) Date: Wed, 16 Nov 2016 09:33:24 +0100 Subject: [Gambas-user] [gambas-user] UserControl is missing in custom control component exported classes Message-ID: <9d64d82d-e0e0-c4b5-fdfb-6112755bff2e@...626...> Hello everybody. I wrote a custom control using beta Gambas 3.92. When I add the control to a test proyect, the below error message is displayed: "CComponent.Load.624" "UserControl class is missing in 'yourclass' component exported classes" "yourclass" is the name of my custom control. I'm using: gb gb.form gb.gui.qt gb.image Synaptic say about this Gambas: 3.9.1.90+bzr6533-29.50~ubuntu14.04.1 Best regards. From moviga at ...3488... Wed Nov 16 11:39:17 2016 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 16 Nov 2016 11:39:17 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> <5829CA13.50108@...221...> Message-ID: <4b577564-a356-7eef-07ab-106ec39d4f89@...3488...> This is pretty cool! With this one could outdo links/lynx creating a fully functional terminal-GUI-webbrowser that renders pictures and all :D (Probably an enormous amount of job though, to parse css and all...) Den 15. nov. 2016 22:56, skrev Fabien Bodard: > You have said ... PictureBox ? > > > (i need to find a way to increase the color parsing ... but...) > > I use gb.image and gb.image.io > > 2016-11-14 15:28 GMT+01:00 Rolf-Werner Eilert : >> Am 14.11.2016 13:50, schrieb Fabien Bodard: >>> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >>>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >>>> >>>>> More widgets >>>> Great! Tn the future the Debian installer will be programmed with Gambas! >>>> >>>> And mc, and htop and so on. >>> Something like mc can be done... maybe an editor >>> >>> I want to add menus too. In fact it remember me some learning time on >>> Money.Bas a demo in QBasic. >>> >>> I need benoit to do some work on a gb.term component. As i can't get >>> any input from the terminal. So I'm just doing all th infrastructure >>> for >>> rendering. >>> >>> The goal of this component is to make application drawing as easy in >>> terminal as it is in graphical mode. >>> >> Long, long time ago... in another galaxy... I used to program the first >> PCs with Turbo Basic. For my ever-lasting project, the school database, >> I made myself a simple library with widgets for some primitive kind of >> menues and OK boxes. >> >> Some years later, the Turbo Basic thing was distributed by Kirschbaum in >> Germany, and they added a clever library with the same functionality >> your widget set shows. >> >> This gave a tremendous boost, and with the so-called PowerTools >> included, at that time good olde Turbo Basic was as comprehensive as is >> Gambas today. >> >> Yes, I like the idea :) >> >> Regards >> Rolf >> >> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Nov 16 12:07:41 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Nov 2016 12:07:41 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: <4b577564-a356-7eef-07ab-106ec39d4f89@...3488...> References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> <5829CA13.50108@...221...> <4b577564-a356-7eef-07ab-106ec39d4f89@...3488...> Message-ID: 2016-11-16 11:39 GMT+01:00 Moviga Technologies : > This is pretty cool! With this one could outdo links/lynx creating a > fully functional terminal-GUI-webbrowser that renders pictures and all > :D (Probably an enormous amount of job though, to parse css and all...) well ... definitively no. But it can allow a low quality picture preview in a filebroswer > > > Den 15. nov. 2016 22:56, skrev Fabien Bodard: >> You have said ... PictureBox ? >> >> >> (i need to find a way to increase the color parsing ... but...) >> >> I use gb.image and gb.image.io >> >> 2016-11-14 15:28 GMT+01:00 Rolf-Werner Eilert : >>> Am 14.11.2016 13:50, schrieb Fabien Bodard: >>>> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >>>>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >>>>> >>>>>> More widgets >>>>> Great! Tn the future the Debian installer will be programmed with Gambas! >>>>> >>>>> And mc, and htop and so on. >>>> Something like mc can be done... maybe an editor >>>> >>>> I want to add menus too. In fact it remember me some learning time on >>>> Money.Bas a demo in QBasic. >>>> >>>> I need benoit to do some work on a gb.term component. As i can't get >>>> any input from the terminal. So I'm just doing all th infrastructure >>>> for >>>> rendering. >>>> >>>> The goal of this component is to make application drawing as easy in >>>> terminal as it is in graphical mode. >>>> >>> Long, long time ago... in another galaxy... I used to program the first >>> PCs with Turbo Basic. For my ever-lasting project, the school database, >>> I made myself a simple library with widgets for some primitive kind of >>> menues and OK boxes. >>> >>> Some years later, the Turbo Basic thing was distributed by Kirschbaum in >>> Germany, and they added a clever library with the same functionality >>> your widget set shows. >>> >>> This gave a tremendous boost, and with the so-called PowerTools >>> included, at that time good olde Turbo Basic was as comprehensive as is >>> Gambas today. >>> >>> Yes, I like the idea :) >>> >>> Regards >>> Rolf >>> >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From elitedigital2005 at ...43... Wed Nov 16 21:40:59 2016 From: elitedigital2005 at ...43... (Lisandro Reynoso) Date: Wed, 16 Nov 2016 16:40:59 -0400 Subject: [Gambas-user] installing Gambas on Cygwin Message-ID: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> Hello. I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: $ make -bash: make: no se encontr? la orden in english it would be something like this: $ make -bash: make: command not found I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output.txt URL: -------------- next part -------------- I?ll Attache the output file I got. From moviga at ...3488... Wed Nov 16 22:35:09 2016 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 16 Nov 2016 22:35:09 +0100 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> Message-ID: <81899a39-996a-7333-e842-807b6ac64786@...3488...> Arrest me if I am wrong, but perhaps you need to install gcc and similar[1] build tools? 1:http://gambaswiki.org/wiki/install#t2 Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: > Hello. > > I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: > > $ make > -bash: make: no se encontr? la orden > > in english it would be something like this: > > $ make > -bash: make: command not found > > I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. > > Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. > > > I?ll Attache the output file I got. > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Nov 16 22:46:56 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Nov 2016 22:46:56 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> <5829CA13.50108@...221...> <4b577564-a356-7eef-07ab-106ec39d4f89@...3488...> Message-ID: Only work on xterm compliant as linux term not seem to support 256 colors. 2016-11-16 12:07 GMT+01:00 Fabien Bodard : > 2016-11-16 11:39 GMT+01:00 Moviga Technologies : >> This is pretty cool! With this one could outdo links/lynx creating a >> fully functional terminal-GUI-webbrowser that renders pictures and all >> :D (Probably an enormous amount of job though, to parse css and all...) > well ... definitively no. > > But it can allow a low quality picture preview in a filebroswer > > >> >> >> Den 15. nov. 2016 22:56, skrev Fabien Bodard: >>> You have said ... PictureBox ? >>> >>> >>> (i need to find a way to increase the color parsing ... but...) >>> >>> I use gb.image and gb.image.io >>> >>> 2016-11-14 15:28 GMT+01:00 Rolf-Werner Eilert : >>>> Am 14.11.2016 13:50, schrieb Fabien Bodard: >>>>> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >>>>>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >>>>>> >>>>>>> More widgets >>>>>> Great! Tn the future the Debian installer will be programmed with Gambas! >>>>>> >>>>>> And mc, and htop and so on. >>>>> Something like mc can be done... maybe an editor >>>>> >>>>> I want to add menus too. In fact it remember me some learning time on >>>>> Money.Bas a demo in QBasic. >>>>> >>>>> I need benoit to do some work on a gb.term component. As i can't get >>>>> any input from the terminal. So I'm just doing all th infrastructure >>>>> for >>>>> rendering. >>>>> >>>>> The goal of this component is to make application drawing as easy in >>>>> terminal as it is in graphical mode. >>>>> >>>> Long, long time ago... in another galaxy... I used to program the first >>>> PCs with Turbo Basic. For my ever-lasting project, the school database, >>>> I made myself a simple library with widgets for some primitive kind of >>>> menues and OK boxes. >>>> >>>> Some years later, the Turbo Basic thing was distributed by Kirschbaum in >>>> Germany, and they added a clever library with the same functionality >>>> your widget set shows. >>>> >>>> This gave a tremendous boost, and with the so-called PowerTools >>>> included, at that time good olde Turbo Basic was as comprehensive as is >>>> Gambas today. >>>> >>>> Yes, I like the idea :) >>>> >>>> Regards >>>> Rolf >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Developer Access Program for Intel Xeon Phi Processors >>>> Access to Intel Xeon Phi processor-based developer platforms. >>>> With one year of Intel Parallel Studio XE. >>>> Training and support from Colfax. >>>> Order your platform today. http://sdm.link/xeonphi >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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: Screenshot_20161116_224544.png Type: image/png Size: 205991 bytes Desc: not available URL: From elitedigital2005 at ...43... Wed Nov 16 22:47:27 2016 From: elitedigital2005 at ...43... (Lisandro Reynoso) Date: Wed, 16 Nov 2016 17:47:27 -0400 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: <81899a39-996a-7333-e842-807b6ac64786@...3488...> References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> Message-ID: Do you mean these?: Compilation gcc g++ automake autoconf libtool >= 2.0 How can I install all these? > On Nov 16, 2016, at 5:35 PM, Moviga Technologies wrote: > > Arrest me if I am wrong, but perhaps you need to install gcc and > similar[1] build tools? > > 1:http://gambaswiki.org/wiki/install#t2 > > > Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >> Hello. >> >> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >> >> $ make >> -bash: make: no se encontr? la orden >> >> in english it would be something like this: >> >> $ make >> -bash: make: command not found >> >> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >> >> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >> >> >> I?ll Attache the output file I got. >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From elitedigital2005 at ...43... Wed Nov 16 22:50:37 2016 From: elitedigital2005 at ...43... (Lisandro Reynoso) Date: Wed, 16 Nov 2016 17:50:37 -0400 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: <81899a39-996a-7333-e842-807b6ac64786@...3488...> References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> Message-ID: Do you mean these?: Compilation gcc g++ automake autoconf libtool >= 2.0 How can I install all these? > On Nov 16, 2016, at 5:35 PM, Moviga Technologies > wrote: > > Arrest me if I am wrong, but perhaps you need to install gcc and > similar[1] build tools? > > 1:http://gambaswiki.org/wiki/install#t2 > > > Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >> Hello. >> >> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >> >> $ make >> -bash: make: no se encontr? la orden >> >> in english it would be something like this: >> >> $ make >> -bash: make: command not found >> >> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >> >> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >> >> >> I?ll Attache the output file I got. >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From moviga at ...3488... Wed Nov 16 22:51:05 2016 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 16 Nov 2016 22:51:05 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> <5829CA13.50108@...221...> <4b577564-a356-7eef-07ab-106ec39d4f89@...3488...> Message-ID: <333fe554-9300-4a7e-5f66-cae252aca25a@...3488...> You're right! The linux kernel terminal has only 8 colours... Den 16. nov. 2016 22:46, skrev Fabien Bodard: > Only work on xterm compliant as linux term not seem to support 256 colors. > > 2016-11-16 12:07 GMT+01:00 Fabien Bodard : >> 2016-11-16 11:39 GMT+01:00 Moviga Technologies : >>> This is pretty cool! With this one could outdo links/lynx creating a >>> fully functional terminal-GUI-webbrowser that renders pictures and all >>> :D (Probably an enormous amount of job though, to parse css and all...) >> well ... definitively no. >> >> But it can allow a low quality picture preview in a filebroswer >> >> >>> >>> Den 15. nov. 2016 22:56, skrev Fabien Bodard: >>>> You have said ... PictureBox ? >>>> >>>> >>>> (i need to find a way to increase the color parsing ... but...) >>>> >>>> I use gb.image and gb.image.io >>>> >>>> 2016-11-14 15:28 GMT+01:00 Rolf-Werner Eilert : >>>>> Am 14.11.2016 13:50, schrieb Fabien Bodard: >>>>>> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >>>>>>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >>>>>>> >>>>>>>> More widgets >>>>>>> Great! Tn the future the Debian installer will be programmed with Gambas! >>>>>>> >>>>>>> And mc, and htop and so on. >>>>>> Something like mc can be done... maybe an editor >>>>>> >>>>>> I want to add menus too. In fact it remember me some learning time on >>>>>> Money.Bas a demo in QBasic. >>>>>> >>>>>> I need benoit to do some work on a gb.term component. As i can't get >>>>>> any input from the terminal. So I'm just doing all th infrastructure >>>>>> for >>>>>> rendering. >>>>>> >>>>>> The goal of this component is to make application drawing as easy in >>>>>> terminal as it is in graphical mode. >>>>>> >>>>> Long, long time ago... in another galaxy... I used to program the first >>>>> PCs with Turbo Basic. For my ever-lasting project, the school database, >>>>> I made myself a simple library with widgets for some primitive kind of >>>>> menues and OK boxes. >>>>> >>>>> Some years later, the Turbo Basic thing was distributed by Kirschbaum in >>>>> Germany, and they added a clever library with the same functionality >>>>> your widget set shows. >>>>> >>>>> This gave a tremendous boost, and with the so-called PowerTools >>>>> included, at that time good olde Turbo Basic was as comprehensive as is >>>>> Gambas today. >>>>> >>>>> Yes, I like the idea :) >>>>> >>>>> Regards >>>>> Rolf >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Developer Access Program for Intel Xeon Phi Processors >>>>> Access to Intel Xeon Phi processor-based developer platforms. >>>>> With one year of Intel Parallel Studio XE. >>>>> Training and support from Colfax. >>>>> Order your platform today. http://sdm.link/xeonphi >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> -- >> Fabien Bodard > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From moviga at ...3488... Wed Nov 16 22:53:38 2016 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 16 Nov 2016 22:53:38 +0100 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> Message-ID: <324069d3-baea-54df-3f09-751e2dc462f5@...3488...> Well, those and all the others. They are all required to build the complete Gambas package... without cairo >= 1.6.0 cairo-ft >= 1.6.0 you will not be able to compile the gb.cairo package and so on. Den 16. nov. 2016 22:50, skrev Lisandro Reynoso: > Do you mean these?: > Compilation gcc g++ automake autoconf libtool >= 2.0 > > How can I install all these? > >> On Nov 16, 2016, at 5:35 PM, Moviga Technologies > wrote: >> >> Arrest me if I am wrong, but perhaps you need to install gcc and >> similar[1] build tools? >> >> 1:http://gambaswiki.org/wiki/install#t2 >> >> >> Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >>> Hello. >>> >>> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >>> >>> $ make >>> -bash: make: no se encontr? la orden >>> >>> in english it would be something like this: >>> >>> $ make >>> -bash: make: command not found >>> >>> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >>> >>> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >>> >>> >>> I?ll Attache the output file I got. >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From moviga at ...3488... Wed Nov 16 22:55:17 2016 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 16 Nov 2016 22:55:17 +0100 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> Message-ID: <95c4d65f-c656-f40a-adaf-4466b9b312f1@...3488...> But, wait for some other people to chip in with some more wisdom on this, because perhaps there are smarter ways to do it, than to install each package individually (which seems a lot of work) :) Den 16. nov. 2016 22:50, skrev Lisandro Reynoso: > Do you mean these?: > Compilation gcc g++ automake autoconf libtool >= 2.0 > > How can I install all these? > >> On Nov 16, 2016, at 5:35 PM, Moviga Technologies > wrote: >> >> Arrest me if I am wrong, but perhaps you need to install gcc and >> similar[1] build tools? >> >> 1:http://gambaswiki.org/wiki/install#t2 >> >> >> Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >>> Hello. >>> >>> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >>> >>> $ make >>> -bash: make: no se encontr? la orden >>> >>> in english it would be something like this: >>> >>> $ make >>> -bash: make: command not found >>> >>> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >>> >>> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >>> >>> >>> I?ll Attache the output file I got. >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Nov 16 22:59:42 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Nov 2016 22:59:42 +0100 Subject: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms In-Reply-To: <333fe554-9300-4a7e-5f66-cae252aca25a@...3488...> References: <12f2565f-84bf-2e71-242f-791730ea4c0e@...3340...> <5829CA13.50108@...221...> <4b577564-a356-7eef-07ab-106ec39d4f89@...3488...> <333fe554-9300-4a7e-5f66-cae252aca25a@...3488...> Message-ID: there is fbterm but the result is ugly and escape codes seem to be differents 2016-11-16 22:51 GMT+01:00 Moviga Technologies : > You're right! The linux kernel terminal has only 8 colours... > > > Den 16. nov. 2016 22:46, skrev Fabien Bodard: >> Only work on xterm compliant as linux term not seem to support 256 colors. >> >> 2016-11-16 12:07 GMT+01:00 Fabien Bodard : >>> 2016-11-16 11:39 GMT+01:00 Moviga Technologies : >>>> This is pretty cool! With this one could outdo links/lynx creating a >>>> fully functional terminal-GUI-webbrowser that renders pictures and all >>>> :D (Probably an enormous amount of job though, to parse css and all...) >>> well ... definitively no. >>> >>> But it can allow a low quality picture preview in a filebroswer >>> >>> >>>> >>>> Den 15. nov. 2016 22:56, skrev Fabien Bodard: >>>>> You have said ... PictureBox ? >>>>> >>>>> >>>>> (i need to find a way to increase the color parsing ... but...) >>>>> >>>>> I use gb.image and gb.image.io >>>>> >>>>> 2016-11-14 15:28 GMT+01:00 Rolf-Werner Eilert : >>>>>> Am 14.11.2016 13:50, schrieb Fabien Bodard: >>>>>>> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer : >>>>>>>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard: >>>>>>>> >>>>>>>>> More widgets >>>>>>>> Great! Tn the future the Debian installer will be programmed with Gambas! >>>>>>>> >>>>>>>> And mc, and htop and so on. >>>>>>> Something like mc can be done... maybe an editor >>>>>>> >>>>>>> I want to add menus too. In fact it remember me some learning time on >>>>>>> Money.Bas a demo in QBasic. >>>>>>> >>>>>>> I need benoit to do some work on a gb.term component. As i can't get >>>>>>> any input from the terminal. So I'm just doing all th infrastructure >>>>>>> for >>>>>>> rendering. >>>>>>> >>>>>>> The goal of this component is to make application drawing as easy in >>>>>>> terminal as it is in graphical mode. >>>>>>> >>>>>> Long, long time ago... in another galaxy... I used to program the first >>>>>> PCs with Turbo Basic. For my ever-lasting project, the school database, >>>>>> I made myself a simple library with widgets for some primitive kind of >>>>>> menues and OK boxes. >>>>>> >>>>>> Some years later, the Turbo Basic thing was distributed by Kirschbaum in >>>>>> Germany, and they added a clever library with the same functionality >>>>>> your widget set shows. >>>>>> >>>>>> This gave a tremendous boost, and with the so-called PowerTools >>>>>> included, at that time good olde Turbo Basic was as comprehensive as is >>>>>> Gambas today. >>>>>> >>>>>> Yes, I like the idea :) >>>>>> >>>>>> Regards >>>>>> Rolf >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Developer Access Program for Intel Xeon Phi Processors >>>>>> Access to Intel Xeon Phi processor-based developer platforms. >>>>>> With one year of Intel Parallel Studio XE. >>>>>> Training and support from Colfax. >>>>>> Order your platform today. http://sdm.link/xeonphi >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> -- >>> Fabien Bodard >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bugtracker at ...3416... Wed Nov 16 23:58:54 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 16 Nov 2016 22:58:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1031: PPA for daily and stable version there is no component gb.qt5.ext Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1031&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- PPA for daily and stable version there is no component gb.qt5.ext Type : Bug Priority : Low Gambas version : 3.9.90 (TRUNK) Product : Ubuntu packages Description ----------- PPA for daily and stable version there is no component gb.qt5.ext (attach pic) System information ------------------ [System] Gambas=3.9.90 r7969 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=LXQT Theme=Gtk Language=en_US.UTF-8 Memory=492M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MI168mGbvA,guid=b9d730fb142add9297a954bd582a8405 DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path DESKTOP_SESSION=lxqt DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=lxqt GDM_LANG=en GTK_CSD=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= LXQT_SESSION_CONFIG=session MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2323 SSH_AUTH_SOCK=/tmp/ssh-OOryOWWumXur/agent.2271 TERM=qterminal TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXQt XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=lxqt- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lxqt XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at ...3416... Wed Nov 16 23:59:11 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 16 Nov 2016 22:59:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1031: PPA for daily and stable version there is no component gb.qt5.ext In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1031&from=L21haW4- Zainudin AHMAD added an attachment: pic-1.png From adamnt42 at ...626... Thu Nov 17 01:19:59 2016 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 17 Nov 2016 10:49:59 +1030 Subject: [Gambas-user] gb.util GenUUID() function Message-ID: <20161117104959.a5ee9681171a5970c3c95541@...626...> Every now and then I come across a need for a (locally) unique ID. Shelling the ubiquitous gnu "uuidgen (-t/-r)" utility usually handles this effectively enough. However, I am thinking that maybe this is a possible candidate for the gb.util component. In particular, most often times I am looking for the string representation of the UID. In which case "SHELL uuidgen TO $somevar" is all that is required. On the other hand, and on somewhat rarer occasions, I need the binary rep of the generated UID. Now "uuid_parse" can handle that ... and some years ago (gb2) I had a bit of code that could call that routine, sadly now long lost. Anyway, if there is any interest in this, as an enhancement to gb.util I'll spend some effort trying to find that old code and adding it to the gb.util component. I'm thinking about two new functions here a) "GenUUID" with optional params to force the -t/-r options which would just shell the uuidgen utility and return the string representation and b) "GenUUIDBinary" that would return the binary version. Any thoughts? B -- B Bruen From gambas at ...1... Thu Nov 17 01:24:30 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 Nov 2016 01:24:30 +0100 Subject: [Gambas-user] gb.util GenUUID() function In-Reply-To: <20161117104959.a5ee9681171a5970c3c95541@...626...> References: <20161117104959.a5ee9681171a5970c3c95541@...626...> Message-ID: <2a59b00e-1416-98b0-89fc-b856ff2b8e73@...1...> Le 17/11/2016 ? 01:19, adamnt42 at ...626... a ?crit : > Every now and then I come across a need for a (locally) unique ID. > Shelling the ubiquitous gnu "uuidgen (-t/-r)" utility usually handles > this effectively enough. However, I am thinking that maybe this is a > possible candidate for the gb.util component. In particular, most > often times I am looking for the string representation of the UID. In > which case "SHELL uuidgen TO $somevar" is all that is required. On > the other hand, and on somewhat rarer occasions, I need the binary > rep of the generated UID. Now "uuid_parse" can handle that ... and > some years ago (gb2) I had a bit of code that could call that > routine, sadly now long lost. > > Anyway, if there is any interest in this, as an enhancement to > gb.util I'll spend some effort trying to find that old code and > adding it to the gb.util component. I'm thinking about two new > functions here a) "GenUUID" with optional params to force the -t/-r > options which would just shell the uuidgen utility and return the > string representation and b) "GenUUIDBinary" that would return the > binary version. > > Any thoughts? B > > What is the need to add that to a Gambas component if there is a tool for that? Putting that in a Gambas component implies: - Implementing a similar algorithm than genuuid, not necessarily better. - Maintaining it, depending on what you put in that algorithm. Moreover, you should not need to generate those uuid million times, so the time lost in running an external process is not important. -- Beno?t Minisini From author.ilmi at ...626... Thu Nov 17 02:20:39 2016 From: author.ilmi at ...626... (zainudin ahmad) Date: Thu, 17 Nov 2016 08:20:39 +0700 Subject: [Gambas-user] DBusSignal Error (Send) In-Reply-To: References: Message-ID: Hi Hans, I hope this work for you :) (project attach) On Tue, Nov 15, 2016 at 12:00 AM, Hans Lehmann wrote: > Hello, > > in my project 'signaltx2' I get after this source line: > > DBus[DBus.Name].Raise(NameVersion, "GetGBVersion", ["3.9.1"]) > > the following error message: > > Couldn't allocate D-Bus message ! > > Where is the error in the source code? Can someone help? > Project attached. > > Sincerely > > Hans > -- > Author of the german Gambas book > gambas-buch.de/dw/doku.php > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signaltx2-0.1.73.tar.gz Type: application/x-gzip Size: 52385 bytes Desc: not available URL: From bugtracker at ...3416... Thu Nov 17 13:54:51 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 17 Nov 2016 12:54:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1029: BUG: SpinBar does not block mousewheel scroll when inside a scrollview In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1029&from=L21haW4- Comment #1 by Antonio OREFICE: Workarounded with the following: '---------------- HACKY WORKAROUND TO STOP SCROLLVIEWS SCROLLING WHEN OBJECTS ARE FOCUSED Private Scrollview_is_focused As Boolean = False Public Sub ScrollViews_GotFocus() Scrollview_is_focused = True End Public Sub ScrollViews_LostFocus() Scrollview_is_focused = False End Public my_observer As Observer Public Sub dynaobj_gotfocus() If (Last Is Spinbox) Or (Last Is Floatspinbox) Then If Not Object.IsValid(my_observer) Then Debug my_observer = New Observer(Last) As "my_observer" Endif Endif End Public Sub my_observer_MouseWheel() If Not Scrollview_is_focused Then Stop Event Endif End '---------------- HACKY WORKAROUND TO STOP SCROLLVIEWS SCROLLING WHEN OBJECTS ARE FOCUSED From bugtracker at ...3416... Thu Nov 17 14:03:11 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 17 Nov 2016 13:03:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1029: BUG: SpinBar does not block mousewheel scroll when inside a scrollview In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1029&from=L21haW4- Comment #2 by Antonio OREFICE: Wops, clearly wrong, sorry for the bad example. From gambas.fr at ...626... Thu Nov 17 16:22:40 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 17 Nov 2016 16:22:40 +0100 Subject: [Gambas-user] [CRASH REPORT] gb.term.form Message-ID: Hello, Damned, my program crashed Gambas that way : Lancer et faire pause sur le projet gb.term.form From elitedigital2005 at ...43... Thu Nov 17 18:38:18 2016 From: elitedigital2005 at ...43... (Lisandro Reynoso) Date: Thu, 17 Nov 2016 13:38:18 -0400 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: <95c4d65f-c656-f40a-adaf-4466b9b312f1@...3488...> References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> <95c4d65f-c656-f40a-adaf-4466b9b312f1@...3488...> Message-ID: Thanks for your help. I reinstalled all the packages and even completely uninstalled and then reinstalled Cygwin, along with the build tools mentioned. But I still get the same result when using the ?make? command. Here?s what I get when I use the cygcheck command: > lisandroreynoso at ...3622... ~/gambas3-3.9.1 > $ cygcheck -c gcc g++ automake autoconf libtool > Cygwin Package Information > Package Version Status > autoconf 13-1 OK > automake 9-1 OK > libtool 2.4.6-4 OK > > lisandroreynoso at ...3622... ~/gambas3-3.9.1 > $ cygcheck -c gcc-core gcc-g++ automake autoconf libtool > Cygwin Package Information > Package Version Status > autoconf 13-1 OK > automake 9-1 OK > gcc-core 5.4.0-1 OK > gcc-g++ 5.4.0-1 OK > libtool 2.4.6-4 OK It seems to me that I have all the tools installed (even though ?gcc" only comes up as ?gcc-core? and "g++" as ?gcc-g++?) > On Nov 16, 2016, at 5:55 PM, Moviga Technologies wrote: > > But, wait for some other people to chip in with some more wisdom on > this, because perhaps there are smarter ways to do it, than to install > each package individually (which seems a lot of work) :) > > > Den 16. nov. 2016 22:50, skrev Lisandro Reynoso: >> Do you mean these?: >> Compilation gcc g++ automake autoconf libtool >= 2.0 >> >> How can I install all these? >> >>> On Nov 16, 2016, at 5:35 PM, Moviga Technologies >> wrote: >>> >>> Arrest me if I am wrong, but perhaps you need to install gcc and >>> similar[1] build tools? >>> >>> 1:http://gambaswiki.org/wiki/install#t2 > >>> >>> >>> Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >>>> Hello. >>>> >>>> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >>>> >>>> $ make >>>> -bash: make: no se encontr? la orden >>>> >>>> in english it would be something like this: >>>> >>>> $ make >>>> -bash: make: command not found >>>> >>>> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >>>> >>>> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >>>> >>>> >>>> I?ll Attache the output file I got. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From moviga at ...3488... Thu Nov 17 21:05:56 2016 From: moviga at ...3488... (Moviga Technologies) Date: Thu, 17 Nov 2016 21:05:56 +0100 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> <95c4d65f-c656-f40a-adaf-4466b9b312f1@...3488...> Message-ID: <688cf482-128b-b626-5f27-57ea3eab1b3f@...3488...> This is where it gets beyond me. I did a quick google search, and found this: http://stackoverflow.com/questions/4828388/cygwin-make-bash-command-not-found. Make seems to be it's own package :) Learning something new every day, haha :D Den 17. nov. 2016 18:38, skrev Lisandro Reynoso: > Thanks for your help. > > I reinstalled all the packages and even completely uninstalled and then reinstalled Cygwin, along with the build tools mentioned. But I still get the same result when using the ?make? command. > > Here?s what I get when I use the cygcheck command: > >> lisandroreynoso at ...3622... ~/gambas3-3.9.1 >> $ cygcheck -c gcc g++ automake autoconf libtool >> Cygwin Package Information >> Package Version Status >> autoconf 13-1 OK >> automake 9-1 OK >> libtool 2.4.6-4 OK >> >> lisandroreynoso at ...3622... ~/gambas3-3.9.1 >> $ cygcheck -c gcc-core gcc-g++ automake autoconf libtool >> Cygwin Package Information >> Package Version Status >> autoconf 13-1 OK >> automake 9-1 OK >> gcc-core 5.4.0-1 OK >> gcc-g++ 5.4.0-1 OK >> libtool 2.4.6-4 OK > It seems to me that I have all the tools installed (even though ?gcc" only comes up as ?gcc-core? and "g++" as ?gcc-g++?) > > >> On Nov 16, 2016, at 5:55 PM, Moviga Technologies wrote: >> >> But, wait for some other people to chip in with some more wisdom on >> this, because perhaps there are smarter ways to do it, than to install >> each package individually (which seems a lot of work) :) >> >> >> Den 16. nov. 2016 22:50, skrev Lisandro Reynoso: >>> Do you mean these?: >>> Compilation gcc g++ automake autoconf libtool >= 2.0 >>> >>> How can I install all these? >>> >>>> On Nov 16, 2016, at 5:35 PM, Moviga Technologies >> wrote: >>>> >>>> Arrest me if I am wrong, but perhaps you need to install gcc and >>>> similar[1] build tools? >>>> >>>> 1:http://gambaswiki.org/wiki/install#t2 > >>>> >>>> >>>> Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >>>>> Hello. >>>>> >>>>> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >>>>> >>>>> $ make >>>>> -bash: make: no se encontr? la orden >>>>> >>>>> in english it would be something like this: >>>>> >>>>> $ make >>>>> -bash: make: command not found >>>>> >>>>> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >>>>> >>>>> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >>>>> >>>>> >>>>> I?ll Attache the output file I got. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bagonergi at ...626... Thu Nov 17 21:09:42 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 17 Nov 2016 21:09:42 +0100 Subject: [Gambas-user] DBus documentation mistake Message-ID: I refer to the example of the documentation of DBusConnection.Register (gb.dbus) [0] unfortunately you can not get the reference to the project as previously: Print DBus ["org.gambas.MyProject"] ["/ MyDBusClass"]. Compute (3, 4) but you need to obtain the full name comprehensive of ID, using the Honsek's trick of the German website of Gambas programmers, namely: ----------Start code Private $sApplicationName As String Public Sub Main() Dim aList As String[] Dim i As Integer ' HonseK trick aList = DBus.Session.Applications.Sort(gb.Descent) For i = 0 To aList.Max If aList[i] Begins "org.gambas.MyProject-" Then $sApplicationName = aList[i] Endif Next If Not IsNull($sApplicationName) Then Print "Result from MyDBusClass = "; DBus[$sApplicationName]["/MyDBusClass"].Compute(3, 4); Endif ------------end code [0] http://gambaswiki.org/wiki/comp/gb.dbus/dbusconnection/register From bagonergi at ...626... Thu Nov 17 21:27:52 2016 From: bagonergi at ...626... (Gianluigi) Date: Thu, 17 Nov 2016 21:27:52 +0100 Subject: [Gambas-user] DBus documentation mistake In-Reply-To: References: Message-ID: Hello to all, sorry I forgot to greet. Regards Gianluigi 2016-11-17 21:09 GMT+01:00 Gianluigi : > I refer to the example of the documentation of DBusConnection.Register > (gb.dbus) [0] > unfortunately you can not get the reference to the project as previously: > > Print DBus ["org.gambas.MyProject"] ["/ MyDBusClass"]. Compute (3, 4) > > but you need to obtain the full name comprehensive of ID, using the > Honsek's trick of the German website of Gambas programmers, namely: > > ----------Start code > Private $sApplicationName As String > > Public Sub Main() > > Dim aList As String[] > Dim i As Integer > ' HonseK trick > aList = DBus.Session.Applications.Sort(gb.Descent) > For i = 0 To aList.Max > If aList[i] Begins "org.gambas.MyProject-" Then > $sApplicationName = aList[i] > Endif > Next > If Not IsNull($sApplicationName) Then > Print "Result from MyDBusClass = "; DBus[$sApplicationName]["/MyDBusClass"].Compute(3, > 4); > Endif > ------------end code > > [0] http://gambaswiki.org/wiki/comp/gb.dbus/dbusconnection/register > From elitedigital2005 at ...43... Thu Nov 17 23:21:55 2016 From: elitedigital2005 at ...43... (Lisandro Reynoso) Date: Thu, 17 Nov 2016 18:21:55 -0400 Subject: [Gambas-user] installing Gambas on Cygwin In-Reply-To: <688cf482-128b-b626-5f27-57ea3eab1b3f@...3488...> References: <6206B98B-6F7E-4637-9EAA-398CBAE3AC31@...43...> <81899a39-996a-7333-e842-807b6ac64786@...3488...> <95c4d65f-c656-f40a-adaf-4466b9b312f1@...3488...> <688cf482-128b-b626-5f27-57ea3eab1b3f@...3488...> Message-ID: Thanks a lot. The make package was missing. I installed it and was able to pass that step. But now I?m not able to run gambas. I even used the commands to add the desktop icon but saw no results. I also changed to the root directory to see if It would run from there. I?ll attach the output I got after the make instructions to see if you can help me further. > On Nov 17, 2016, at 4:05 PM, Moviga Technologies wrote: > > This is where it gets beyond me. I did a quick google search, and found > this: > http://stackoverflow.com/questions/4828388/cygwin-make-bash-command-not-found . > Make seems to be it's own package :) Learning something new every day, > haha :D > > > Den 17. nov. 2016 18:38, skrev Lisandro Reynoso: >> Thanks for your help. >> >> I reinstalled all the packages and even completely uninstalled and then reinstalled Cygwin, along with the build tools mentioned. But I still get the same result when using the ?make? command. >> >> Here?s what I get when I use the cygcheck command: >> >>> lisandroreynoso at ...3622... ~/gambas3-3.9.1 >>> $ cygcheck -c gcc g++ automake autoconf libtool >>> Cygwin Package Information >>> Package Version Status >>> autoconf 13-1 OK >>> automake 9-1 OK >>> libtool 2.4.6-4 OK >>> >>> lisandroreynoso at ...3622... ~/gambas3-3.9.1 >>> $ cygcheck -c gcc-core gcc-g++ automake autoconf libtool >>> Cygwin Package Information >>> Package Version Status >>> autoconf 13-1 OK >>> automake 9-1 OK >>> gcc-core 5.4.0-1 OK >>> gcc-g++ 5.4.0-1 OK >>> libtool 2.4.6-4 OK >> It seems to me that I have all the tools installed (even though ?gcc" only comes up as ?gcc-core? and "g++" as ?gcc-g++?) >> >> >>> On Nov 16, 2016, at 5:55 PM, Moviga Technologies wrote: >>> >>> But, wait for some other people to chip in with some more wisdom on >>> this, because perhaps there are smarter ways to do it, than to install >>> each package individually (which seems a lot of work) :) >>> >>> >>> Den 16. nov. 2016 22:50, skrev Lisandro Reynoso: >>>> Do you mean these?: >>>> Compilation gcc g++ automake autoconf libtool >= 2.0 >>>> >>>> How can I install all these? >>>> >>>>> On Nov 16, 2016, at 5:35 PM, Moviga Technologies > >>> wrote: >>>>> >>>>> Arrest me if I am wrong, but perhaps you need to install gcc and >>>>> similar[1] build tools? >>>>> >>>>> 1:http://gambaswiki.org/wiki/install#t2 > >> >>>>> >>>>> >>>>> Den 16. nov. 2016 21:40, skrev Lisandro Reynoso: >>>>>> Hello. >>>>>> >>>>>> I?m trying to install Gambas 3.9.1 on Windows through Cygwin, I followed all the steps as described in the oficial Gambas website but when I get to the step of using the ?make? command I get an error: >>>>>> >>>>>> $ make >>>>>> -bash: make: no se encontr? la orden >>>>>> >>>>>> in english it would be something like this: >>>>>> >>>>>> $ make >>>>>> -bash: make: command not found >>>>>> >>>>>> I?m running Windows 7 32bits, on a Macbook Pro 8,1 late 2011. >>>>>> >>>>>> Could you please point me in the right direction, so I can be able to run Gambas on Cygwin. >>>>>> >>>>>> >>>>>> I?ll Attache the output file I got. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net > >> >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> ------------------------------------------------------------------------------ >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net > >> >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Fri Nov 18 03:41:41 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 02:41:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- icon in file-chooser have large space Type : Bug Priority : Low Gambas version : 3.9.90 (TRUNK) Product : GUI components Description ----------- icon in file chooser control have large space (attach pic-2) this happen with GTK2, GTK3, QT4 and QT5. it's fine with Gambas 3.8.4 Reproduce the bug: 1) Run project (attach project) 2) Change the size icon (zoom +) to big size. (attach pic-1) 3) Change the size icon (zoom -) to small size. (attach pic-2) System information ------------------ [System] Gambas=3.9.90 r7969 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=LXQT Theme=Gtk Language=en_US.UTF-8 Memory=492M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MI168mGbvA,guid=b9d730fb142add9297a954bd582a8405 DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path DESKTOP_SESSION=lxqt DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=lxqt GDM_LANG=en GTK_CSD=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= LXQT_SESSION_CONFIG=session MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2323 SSH_AUTH_SOCK=/tmp/ssh-OOryOWWumXur/agent.2271 TERM=qterminal TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXQt XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=lxqt- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lxqt XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at ...3416... Fri Nov 18 03:42:01 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 02:42:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Zainudin AHMAD added an attachment: Bug-FileChooser-IconLargeSpace-0.0.1.tar.gz From bugtracker at ...3416... Fri Nov 18 03:42:16 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 02:42:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Zainudin AHMAD added an attachment: pic-1.png From bugtracker at ...3416... Fri Nov 18 03:42:27 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 02:42:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Zainudin AHMAD added an attachment: pic-2.png From bugtracker at ...3416... Fri Nov 18 03:46:06 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 02:46:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Comment #1 by Zainudin AHMAD: This happen if the project use gb.inotify component From gambas at ...1... Fri Nov 18 16:05:26 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 Nov 2016 16:05:26 +0100 Subject: [Gambas-user] Beware to revision #7983! Message-ID: <5a2ee014-af7b-8381-b8be-428403eacb0b@...1...> Hi, In revision #7983, I fixed a bug in date / string conversion, so that now, as it is logically expected: CDate(CStr(CDate(2))) = CDate(2) BEFORE: $ gbx3 -e 'CStr(CDate(2))' 01/01/-4801 23:00:00 $ gbx3 -e 'CStr(CDate(CStr(CDate(2))))' 00/00/0000 23:00:00 $ gbx3 -e 'CDate(CStr(CDate(CStr(CDate(2)))))' Type mismatch: wanted Date, got String instead AFTER: $ gbx3 -e 'CStr(CDate(2))' 01/02/-4801 $ gbx3 -e 'CStr(CDate(CStr(CDate(2))))' 01/02/-4801 $ gbx3 -e 'CDate(CStr(CDate(CStr(CDate(2)))))' 01/01/-4801 23:00:00 (Note: The last line is displayed as a local date/time.) It was not the case before, because the conversion were internally done by taking the timezone into account, even if date/time values are internally stored in UTC. Now CDate() on a string always interpret it as an UTC date, and CStr() on a date displays its UTC value. Consequently, check your code! CStr() and CDate() are not supposed to use a local time representation. On the contrary. This is the job of Val(), Str() and Format(). If you wrote code that made that assumption, you did wrong. BEWARE! BEWARE! BEWARE! -- Beno?t Minisini From hans at ...3219... Fri Nov 18 17:26:02 2016 From: hans at ...3219... (Hans Lehmann) Date: Fri, 18 Nov 2016 17:26:02 +0100 Subject: [Gambas-user] DBusSignal Error (Send) In-Reply-To: References: Message-ID: <0be7a8d7-9288-772d-7d77-7bea7f1e01aa@...3219...> Am 17.11.2016 um 02:20 schrieb zainudin ahmad: > Hi Hans, I hope this work for you:) (project attach) Yes, that has solved it! The new code in the attached project 'signalsend-0.1.82.tar.gz' is correct. It works fine. Hans -- Author of the german Gambas book gambas-buch.de/dw/doku.php -------------- next part -------------- A non-text attachment was scrubbed... Name: signalsend-0.1.82.tar.gz Type: application/gzip Size: 52442 bytes Desc: not available URL: From gambas at ...1... Fri Nov 18 18:16:46 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 Nov 2016 18:16:46 +0100 Subject: [Gambas-user] DBusSignal Error (Send) In-Reply-To: References: Message-ID: Le 14/11/2016 ? 18:00, Hans Lehmann a ?crit : > Hello, > > in my project 'signaltx2' I get after this source line: > > DBus[DBus.Name].Raise(NameVersion, "GetGBVersion", ["3.9.1"]) > > the following error message: > > Couldn't allocate D-Bus message ! > > Where is the error in the source code? Can someone help? > Project attached. > > Sincerely > > Hans > It should behave better with revision #7984. The problem was in the event name. You didn't specified the event interface, and so you got a crash. Now, when no interface is specified in the event name, the default interface of the object is used. Thus: DBus[$sDBusService].Raise($hDBusObject, "GetGBVersion", ["3.9.1"]) is replaced by: DBus[$sDBusService].Raise($hDBusObject, "org.gambas.signaltx2.nameversion.GetGBVersion", ["3.9.1"]) Regards, -- Beno?t Minisini From karl.reinl at ...9... Sat Nov 19 00:16:31 2016 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 19 Nov 2016 00:16:31 +0100 Subject: [Gambas-user] gb.util GenUUID() function In-Reply-To: <20161117104959.a5ee9681171a5970c3c95541@...626...> References: <20161117104959.a5ee9681171a5970c3c95541@...626...> Message-ID: <1479510991.4099.6.camel@...3609...> Am Donnerstag, den 17.11.2016, 10:49 +1030 schrieb adamnt42 at ...626...: > Every now and then I come across a need for a (locally) unique ID. Shelling the ubiquitous gnu "uuidgen (-t/-r)" utility usually handles this effectively enough. However, I am thinking that maybe this is a possible candidate for the gb.util component. > In particular, most often times I am looking for the string representation of the UID. In which case "SHELL uuidgen TO $somevar" is all that is required. On the other hand, and on somewhat rarer occasions, I need the binary rep of the generated UID. Now "uuid_parse" can handle that ... and some years ago (gb2) I had a bit of code that could call that routine, sadly now long lost. > > Anyway, if there is any interest in this, as an enhancement to gb.util I'll spend some effort trying to find that old code and adding it to the gb.util component. I'm thinking about two new functions here > a) "GenUUID" with optional params to force the -t/-r options which would just shell the uuidgen utility and return the string representation and > b) "GenUUIDBinary" that would return the binary version. > > Any thoughts? > B > > Salut B, I use the attached (now on gambas3 as library) uuidgen since 12 year now, works pretty simple and never failed since. I use it in a CRM DB as PK in every table. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: uuidgen-0.3.13.tar.gz Type: application/x-compressed-tar Size: 6052 bytes Desc: not available URL: From bugtracker at ...3416... Sat Nov 19 00:55:54 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 23:55:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Interpreter Crash when delete directory from file-chooser control Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : GUI components Description ----------- Interpreter Crash when deleting directory from file-chooser control Reproduce the bug: 1) Run project (attach project) 3) Remove Test-DelteMe directory.(attach pic-1) 4) when message box shows, click the delete button. This happen with GTK2, GTK3, QT4, QT5 and if the project using gb.inotify component. it's fine with Gambas 3.8.4 (because no delete fiture) System information ------------------ [System] Gambas=3.9.90 r7969 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=LXQT Theme=Gtk Language=en_US.UTF-8 Memory=492M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MI168mGbvA,guid=b9d730fb142add9297a954bd582a8405 DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path DESKTOP_SESSION=lxqt DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=lxqt GDM_LANG=en GTK_CSD=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= LXQT_SESSION_CONFIG=session MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2323 SSH_AUTH_SOCK=/tmp/ssh-OOryOWWumXur/agent.2271 TERM=qterminal TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXQt XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=lxqt- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lxqt XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at ...3416... Sat Nov 19 00:56:42 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 23:56:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD added an attachment: Bug-segf-FileChooserDelete-0.0.1.tar.gz From bugtracker at ...3416... Sat Nov 19 00:57:13 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 18 Nov 2016 23:57:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD added an attachment: pic-1.png From gambas.fr at ...626... Sat Nov 19 07:47:23 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Nov 2016 07:47:23 +0100 Subject: [Gambas-user] gb.util GenUUID() function In-Reply-To: <1479510991.4099.6.camel@...3609...> References: <20161117104959.a5ee9681171a5970c3c95541@...626...> <1479510991.4099.6.camel@...3609...> Message-ID: if there is only one function in your class ... why don't you use the _Call special function ? So you can use it like : uuidgen(...) 2016-11-19 0:16 GMT+01:00 Karl Reinl : > Am Donnerstag, den 17.11.2016, 10:49 +1030 schrieb adamnt42 at ...626...: >> Every now and then I come across a need for a (locally) unique ID. Shelling the ubiquitous gnu "uuidgen (-t/-r)" utility usually handles this effectively enough. However, I am thinking that maybe this is a possible candidate for the gb.util component. >> In particular, most often times I am looking for the string representation of the UID. In which case "SHELL uuidgen TO $somevar" is all that is required. On the other hand, and on somewhat rarer occasions, I need the binary rep of the generated UID. Now "uuid_parse" can handle that ... and some years ago (gb2) I had a bit of code that could call that routine, sadly now long lost. >> >> Anyway, if there is any interest in this, as an enhancement to gb.util I'll spend some effort trying to find that old code and adding it to the gb.util component. I'm thinking about two new functions here >> a) "GenUUID" with optional params to force the -t/-r options which would just shell the uuidgen utility and return the string representation and >> b) "GenUUIDBinary" that would return the binary version. >> >> Any thoughts? >> B >> >> > > Salut B, > > I use the attached (now on gambas3 as library) uuidgen since 12 year > now, works pretty simple and never failed since. > I use it in a CRM DB as PK in every table. > > > > -- > Amicalement > Charlie > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From charlie at ...2793... Sat Nov 19 11:59:14 2016 From: charlie at ...2793... (Charlie) Date: Sat, 19 Nov 2016 03:59:14 -0700 (MST) Subject: [Gambas-user] SimpleEval - Error Message-ID: <1479553154469-57833.post@...3046...> I am interested in SimpleEval 0.2.0 which is on the 'Farm' but I get this error: - If I try to run the program another error appears: - http://www.cogier.com/gambas/Eval2.png Any advice will be appreciated. System details below: - GambasInfo.txt -- View this message in context: http://gambas.8142.n7.nabble.com/SimpleEval-Error-tp57833.html Sent from the gambas-user mailing list archive at Nabble.com. From hans at ...3219... Sat Nov 19 17:14:38 2016 From: hans at ...3219... (Hans Lehmann) Date: Sat, 19 Nov 2016 17:14:38 +0100 Subject: [Gambas-user] Monitoring DBus-Signal ? Message-ID: <66102679-aa05-530e-9d83-e2c509df1f02@...3219...> Hello, I want to see the signal 'VolumeChanged' sent by the application 'org.gtk.Private.MTPVolumeMonitor' with the interface 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows: signal sender=:1.10 -> dest=(null destination) serial=319 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeChanged I am not able to observe this DBus signal. The project is attached. The project follows the documentation under the link: http://gambaswiki.org/wiki/doc/dbus#t4 . Sincerely, Hans Code: ' Gambas class file Public hDBusObject As New DBusObject Public hDBusSignal As DBusSignal Public Sub Form_Open() FMain.Resizable = False DBus.Debug = True DBus.Unique = True DBus.Session.Register(hDBusObject, Application.Path) ' o.k. hDBusSignal = New DBusSignal(DBus.Session, "org.gtk.Private.RemoteVolumeMonitor") As "MySignal" End Public Sub MySignal_Signal(Signal As String, Arguments As Variant[]) Print Signal Print Arguments.Count ' If Signal = "VolumeChanged" Then Print ("USB-Stick or SD-Card registered!") ' If Signal = "VolumeRemoved" Then Print ("USB-Stick or SD-Card deregistered!") End -------------- next part -------------- A non-text attachment was scrubbed... Name: SignalWatch-1.2.10.tar.gz Type: application/gzip Size: 52070 bytes Desc: not available URL: From gambas.fr at ...626... Sat Nov 19 23:00:51 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 19 Nov 2016 23:00:51 +0100 Subject: [Gambas-user] SimpleEval - Error In-Reply-To: <1479553154469-57833.post@...3046...> References: <1479553154469-57833.post@...3046...> Message-ID: You must to know that gambas have it's own external interpreter now that use the internal stuff of gambas. An example of use can be see in the reportlabel.class of gb.report. Le 19 nov. 2016 13:29, "Charlie" a ?crit : > I am interested in SimpleEval 0.2.0 which is on the 'Farm' but I get this > error: - > border="0"/> > If I try to run the program another error appears: - > > http://www.cogier.com/gambas/Eval2.png > > Any advice will be appreciated. > System details below: - > GambasInfo.txt com/file/n57833/GambasInfo.txt> > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/SimpleEval-Error-tp57833.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Nov 20 08:12:35 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 20 Nov 2016 08:12:35 +0100 Subject: [Gambas-user] Monitoring DBus-Signal ? In-Reply-To: <66102679-aa05-530e-9d83-e2c509df1f02@...3219...> References: <66102679-aa05-530e-9d83-e2c509df1f02@...3219...> Message-ID: gb.dbus: start watching connection gb.dbus: add match: type='signal',interface='org.gtk.Private.RemoteVolumeMonitor',destination=':1.232' gb.dbus: warning: unhandled message: signal sender=org.freedesktop.DBus -> dest=:1.232 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.232" i have this 2016-11-19 17:14 GMT+01:00 Hans Lehmann : > Hello, > > I want to see the signal 'VolumeChanged' sent by the application > 'org.gtk.Private.MTPVolumeMonitor' with the interface > 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows: > > signal sender=:1.10 -> dest=(null destination) serial=319 > path=/org/gtk/Private/RemoteVolumeMonitor; > interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeChanged > > I am not able to observe this DBus signal. The project is attached. The > project follows the documentation under the link: > http://gambaswiki.org/wiki/doc/dbus#t4 . > > Sincerely, > Hans > > Code: > > ' Gambas class file > > Public hDBusObject As New DBusObject > Public hDBusSignal As DBusSignal > > Public Sub Form_Open() > > FMain.Resizable = False > DBus.Debug = True > DBus.Unique = True > DBus.Session.Register(hDBusObject, Application.Path) ' o.k. > > hDBusSignal = New DBusSignal(DBus.Session, > "org.gtk.Private.RemoteVolumeMonitor") As "MySignal" > > End > > Public Sub MySignal_Signal(Signal As String, Arguments As Variant[]) > > Print Signal > Print Arguments.Count > > ' If Signal = "VolumeChanged" Then Print ("USB-Stick or SD-Card > registered!") > ' If Signal = "VolumeRemoved" Then Print ("USB-Stick or SD-Card > deregistered!") > > End > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From taboege at ...626... Sun Nov 20 16:09:41 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 20 Nov 2016 16:09:41 +0100 Subject: [Gambas-user] gb.web.form feature request: Custom title bar for windows Message-ID: <20161120150940.GA730@...3600...> Hi Benoit, I would like to be able to render the title bar of a window by myself, because the gb.web.form standard does not match the design of my site. Is there any hook for that already? If not, I could imagine it being a new Titlebar event which is raised by the form. If the user handles it, they should Stop Event afterwards to prevent the standard title bar from being rendered. However, I *would* like gb.web.form to still handle window resizing and moving. Is it possible? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gbwilly at ...3606... Sun Nov 20 16:10:00 2016 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Sun, 20 Nov 2016 16:10:00 +0100 Subject: [Gambas-user] =?utf-8?q?Load_modules_dynamically_=3F?= In-Reply-To: <582C1032.3010605@...221...> References: <582C1032.3010605@...221...> Message-ID: On 2016-11-16 08:52, Rolf-Werner Eilert wrote: > Am 14.11.2016 19:56, schrieb gbwilly at ...3606...: >> On 2016-11-14 18:17, ub2 at ...36... wrote: >>> Dear Gambas users, >>> >>> >>> The situation: >>> - Different gambas-programs, >>> - all using similar functions >>> - All those functions are packed in modules. >>> >>> The question: >>> I there a way to load those modules at runtime? >>> As for example in the FMain.Form_Open, something like: >>> - "ModuleXY.Load(Path_to_Module)", or >>> - "ImportModule("Path_to_module","LoadAsModuleName") >>> >>> My hope: >>> Stopping to struggle with similar but diverging functions in >>> different >>> programs by loading a "Master-Module" at runtime. >>> >>> >>> Sorry if there is a simple and stupid answer, I've not found it yet. >>> >>> >> In short: >> I would put the modules in a seperate gambas application and make that >> a >> library, instead of regular application. >> Next make your applications depend on the library (done in project >> properties of the applications -> refers to an executable of the >> library), and they can use the common functions. >> >> More info: http://gambaswiki.org/wiki/doc/library >> >> If you have any questions, just ask. >> >> gbWilly >> >> >> > > What will the Gambas IDE do when a program is packaged (Make > installation package)? Will it add the library to the package, or will > I > have to take care for it myself? > > Rolf Hi Rolf, First, you need to package the Gambas library. Next, you package the application. In the packaging wizard (when packaging the application) at the step Extra dependencies, you need to add the exectable name and version of the library. The name of the library has to be in lower case (and without the .gambas extension). The library version, is the version you used when packaging the library. When distributing the application you need to distribute the libary package along with it. When installing the application, the OS installer will check if the library is installed, if not it will not install the application. So, first install the library package, next the application package and you should be good. Have fun, gbWilly From gbwilly at ...3606... Sun Nov 20 16:12:49 2016 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Sun, 20 Nov 2016 16:12:49 +0100 Subject: [Gambas-user] =?utf-8?q?Load_modules_dynamically_=3F_Works_as_pro?= =?utf-8?q?mised=2E_Thanks=2E_Closed?= In-Reply-To: <444e46b4-ca93-f41f-10c3-e2f327306943@...36...> References: <444e46b4-ca93-f41f-10c3-e2f327306943@...36...> Message-ID: <465c7bf80c34c26ceeef1036a82ffe52@...3606...> On 2016-11-16 06:42, ub2 at ...36... wrote: > Dear gbWilly > > Works as promised, great! > Maintaining becomes much easier now. > Thanks a lot! > > Regarding http://gambaswiki.org/wiki/doc/library: > - My system: Xubuntu 16.04 LTS, Gambas 3.9.1 > - The "project properties" looks slightly different (no problem) > - The "Component property" I could not find at all. > (but the given EXPORT-Link did it) Well, since version 3.9 stuff has changed concerning libraries. Seems the wiki still hasn't undergone that change :) Luckily, you managed, even with outdated instructions :) Enjoy, gbWilly From hans at ...3219... Sun Nov 20 16:26:46 2016 From: hans at ...3219... (Hans Lehmann) Date: Sun, 20 Nov 2016 16:26:46 +0100 Subject: [Gambas-user] DBusSignal Error (Send) In-Reply-To: References: Message-ID: <00eaa116-f7e6-11a2-4071-3d67a2e39363@...3219...> Am 18.11.2016 um 18:16 schrieb Beno?t Minisini: > Thus: > > DBus[$sDBusService].Raise($hDBusObject, "GetGBVersion", ["3.9.1"]) > > is replaced by: > > DBus[$sDBusService].Raise($hDBusObject, > "org.gambas.signaltx2.nameversion.GetGBVersion", ["3.9.1"]) Hello, This change has the disadvantage that the signal is not displayed in the introspection! With the code: Event GetGBVersion (version As String), the XML file of Introspection contains the interface 'org.gambas.signaltx.nameversion' and the signal 'GetGBVersion'. However, the interpreter terminates with an error message. What now? What to do? Regards, Hans From hans at ...3219... Sun Nov 20 18:54:59 2016 From: hans at ...3219... (Hans Lehmann) Date: Sun, 20 Nov 2016 18:54:59 +0100 Subject: [Gambas-user] Monitoring DBus-Signal ? In-Reply-To: <66102679-aa05-530e-9d83-e2c509df1f02@...3219...> References: <66102679-aa05-530e-9d83-e2c509df1f02@...3219...> Message-ID: <2a2f1df0-c86e-878b-1135-f657a7440a0f@...3219...> Am 19.11.2016 um 17:14 schrieb Hans Lehmann: > I want to see the signal 'VolumeChanged' sent by the application > 'org.gtk.Private.MTPVolumeMonitor' with the interface > 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows: > > signal sender=:1.10 -> dest=(null destination) serial=319 > path=/org/gtk/Private/RemoteVolumeMonitor; > interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeChanged > > I am not able to observe this DBus signal. The project is attached. > The project follows the documentation under the link: > http://gambaswiki.org/wiki/doc/dbus#t4 . Hello, this line in attached Project: $hDBusSignal = New DBusSignal(DBus.Session, "org.gtk.Private.RemoteVolumeMonitor", True) As "MySignal" generated an error. Example: USB-Stick in: Under Stack.Backstrace in line 19 (DBusSignal.DBusObserver_Message.19): Error-Message: Typ mismatch: wanted String, got String[] instead USB-Stick out: Under Stack.Backstrace in line 19 (DBusSignal.DBusObserver_Message.19): Error-Message: Typ mismatch: wanted String, got Collection instead Regards, Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: SignalWatch-1.2.11.tar.gz Type: application/gzip Size: 52083 bytes Desc: not available URL: From gambas at ...1... Sun Nov 20 21:26:54 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 20 Nov 2016 21:26:54 +0100 Subject: [Gambas-user] gb.web.form feature request: Custom title bar for windows In-Reply-To: <20161120150940.GA730@...3600...> References: <20161120150940.GA730@...3600...> Message-ID: Le 20/11/2016 ? 16:09, Tobias Boege a ?crit : > Hi Benoit, > > I would like to be able to render the title bar of a window by myself, > because the gb.web.form standard does not match the design of my site. > Is there any hook for that already? If not, I could imagine it being a > new Titlebar event which is raised by the form. If the user handles it, > they should Stop Event afterwards to prevent the standard title bar > from being rendered. > > However, I *would* like gb.web.form to still handle window resizing and > moving. Is it possible? > > Regards, > Tobi > Isn't style sheet enough to customize the window title bar? -- Beno?t Minisini From taboege at ...626... Sun Nov 20 23:16:16 2016 From: taboege at ...626... (Tobias Boege) Date: Sun, 20 Nov 2016 23:16:16 +0100 Subject: [Gambas-user] gb.web.form feature request: Custom title bar for windows In-Reply-To: References: <20161120150940.GA730@...3600...> Message-ID: <20161120221616.GD730@...3600...> On Sun, 20 Nov 2016, Beno?t Minisini wrote: > Le 20/11/2016 ? 16:09, Tobias Boege a ?crit : > > Hi Benoit, > > > > I would like to be able to render the title bar of a window by myself, > > because the gb.web.form standard does not match the design of my site. > > Is there any hook for that already? If not, I could imagine it being a > > new Titlebar event which is raised by the form. If the user handles it, > > they should Stop Event afterwards to prevent the standard title bar > > from being rendered. > > > > However, I *would* like gb.web.form to still handle window resizing and > > moving. Is it possible? > > > > Regards, > > Tobi > > > > Isn't style sheet enough to customize the window title bar? > Yes, I'm getting by with CSS for now. The two things I was worried about were: that I may want to add a custom button to the title bar in the future and that my style sheets break when you change some CSS class in gb.web.form. But for now, I'm happy. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Mon Nov 21 08:31:59 2016 From: taboege at ...626... (Tobias Boege) Date: Mon, 21 Nov 2016 08:31:59 +0100 Subject: [Gambas-user] gb.web.form: Multiple main forms In-Reply-To: References: <20161113164754.GD741@...3600...> Message-ID: <20161121073159.GA721@...3600...> On Sun, 13 Nov 2016, Beno?t Minisini wrote: > Le 13/11/2016 ? 17:47, Tobias Boege a ?crit : > > Hi Benoit, > > > > in revision #7958 you removed support for multiple main forms in gb.web.form. > > I have two webforms, a Login.webform and a MainSite.webform, the latter of > > which is my startup class. If the user is not logged in yet, according to the > > session, I used to > > > > Response.Redirect("/Login") > > > > which would run the login webform. This does not seem to be intended anymore. > > How would I do something like that now? I don't want all the code in one > > webform, obviously. > > > > Regards, > > Tobi > > > > I'm aware of the problem, but didn't find a good solution yet. > > Maybe the multiple main form support will come back. > The Webform.Startup introduced in #7977 does the job for me. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Mon Nov 21 09:11:59 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 21 Nov 2016 09:11:59 +0100 Subject: [Gambas-user] gb.web.form: Multiple main forms In-Reply-To: <20161121073159.GA721@...3600...> References: <20161113164754.GD741@...3600...> <20161121073159.GA721@...3600...> Message-ID: Le 21/11/2016 ? 08:31, Tobias Boege a ?crit : > > The Webform.Startup introduced in #7977 does the job for me. > > Regards, > Tobi > So am I. :-) -- Beno?t Minisini From charlie at ...2793... Tue Nov 22 14:51:53 2016 From: charlie at ...2793... (Charlie) Date: Tue, 22 Nov 2016 06:51:53 -0700 (MST) Subject: [Gambas-user] SimpleEval - Error In-Reply-To: References: <1479553154469-57833.post@...3046...> Message-ID: <1479822713378-57846.post@...3046...> I am sorry but I do not understand your explanation. I obviously don't have the in depth knowledge of Gambas that you do. Can you please be a little more explicit. Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/SimpleEval-Error-tp57833p57846.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed Nov 23 12:01:01 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 23 Nov 2016 12:01:01 +0100 Subject: [Gambas-user] SimpleEval - Error In-Reply-To: <1479822713378-57846.post@...3046...> References: <1479553154469-57833.post@...3046...> <1479822713378-57846.post@...3046...> Message-ID: I will do a little example for you 2016-11-22 14:51 GMT+01:00 Charlie : > I am sorry but I do not understand your explanation. I obviously don't have > the in depth knowledge of Gambas that you do. Can you please be a little > more explicit. Thanks. > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/SimpleEval-Error-tp57833p57846.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From cybercamera at ...626... Thu Nov 24 05:40:05 2016 From: cybercamera at ...626... (Cam Era) Date: Thu, 24 Nov 2016 15:40:05 +1100 Subject: [Gambas-user] Slow Gambas Startup In-Reply-To: References: Message-ID: On Thu, Aug 4, 2016 at 5:50 AM, Nigel Verity wrote: > Hi > > I have Gambas 3.8.4 installed on 3 laptops, in each case running Mint 17.3 > Mate. While each is a different hardware spec they are similar. Two have > SSDs and one a spinning HD. > > My problem is that on 2 machines Gambas starts up in a few seconds. On the > 3rd it takes more than a minute. Once it is running it works well - it's > purely the startup which is very slow. All other applications installed on > this machine (SSD) seem to start normally. > > I have reinstalled Gambas but it makes no difference. Does Gambas perform > any disk or file checks during startup which might explain this odd > behaviour? > Nigel, late response to an old thread, but in case this helps... I had a similar problem on one laptop running Ubuntu and Gambas about 18 months ago. Gambas would essentially 'hang' for about 1 minute while loading. That problem turned out to be something to do with CUPS. Once the config for the local CUPS config was commented out, Gambas loaded in seconds. You may be facing a similar issue. HTH -- Cam From rterry at ...1823... Thu Nov 24 22:59:32 2016 From: rterry at ...1823... (richard terry) Date: Fri, 25 Nov 2016 08:59:32 +1100 Subject: [Gambas-user] ?anyone have rich text to html code for gambas Message-ID: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> Hi List, I've just encountered a situation in my medical software where the pathology lab has suddently started sending me histopathology reports in RTF format instead of plain text markup, which is of course unreadable. I wondered if anyone had any code to convert rich text to html or any ideas? Thanks richard From bugtracker at ...3416... Thu Nov 24 23:34:21 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 24 Nov 2016 22:34:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1034: Doing : hForm.Delete , Interpreter Crash Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1034&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Doing : hForm.Delete , Interpreter Crash Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : GUI components Description ----------- Doing : hForm.Delete , Interpreter Crash This happen with QT4, QT5, GTK2(Sometimes) and GTK3 Reproduce the Bug : 1) Run project (attach project) 2) Click the Button 3) Wait until the main form completed move System information ------------------ [System] Gambas=3.9.90 r7969 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=LXQT Theme=Gtk Language=en_US.UTF-8 Memory=492M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MI168mGbvA,guid=b9d730fb142add9297a954bd582a8405 DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path DESKTOP_SESSION=lxqt DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=lxqt GDM_LANG=en GTK_CSD=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= LXQT_SESSION_CONFIG=session MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2323 SSH_AUTH_SOCK=/tmp/ssh-OOryOWWumXur/agent.2271 TERM=qterminal TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXQt XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=lxqt- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lxqt XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at ...3416... Thu Nov 24 23:34:54 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 24 Nov 2016 22:34:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1034: Doing : hForm.Delete , Interpreter Crash In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1034&from=L21haW4- Zainudin AHMAD added an attachment: Bug-segf-FormDelete-0.0.tar.gz From gambas at ...1... Fri Nov 25 00:14:41 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 25 Nov 2016 00:14:41 +0100 Subject: [Gambas-user] ?anyone have rich text to html code for gambas In-Reply-To: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> References: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> Message-ID: <48d51b82-42d8-99c3-e6a5-ee80c0ea32ac@...1...> Le 24/11/2016 ? 22:59, richard terry a ?crit : > Hi List, > > I've just encountered a situation in my medical software where the > pathology lab has suddently started sending me histopathology reports in > RTF format instead of plain text markup, which is of course unreadable. > > > I wondered if anyone had any code to convert rich text to html or any ideas? > > > Thanks > > > richard > I think now libreoffice can convert RTF to any of its format from the command-line, if it helps. -- Beno?t Minisini From bugtracker at ...3416... Fri Nov 25 00:40:18 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 24 Nov 2016 23:40:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1030: Project cracks with error 11 when trying to acces connections In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1030&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Fri Nov 25 00:58:25 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 24 Nov 2016 23:58:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1030: Project cracks with error 11 when trying to acces connections In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1030&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #7995. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Fri Nov 25 01:17:47 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 25 Nov 2016 00:17:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1034: Doing : hForm.Delete , Interpreter Crash In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1034&from=L21haW4- Comment #1 by Beno?t MINISINI: All these libraries do not like when you destroy a control (the form) while you handle an event occurring on this control... It's not true for all events, but most of them. I don't know if I can reliably do something against that. But it's the goal... Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Fri Nov 25 01:49:07 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 25 Nov 2016 00:49:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Comment #1 by Beno?t MINISINI: I can't reproduce any crash. Can you provide more details? An error message, or a stack backtrace from gdb? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From rterry at ...1823... Fri Nov 25 04:53:52 2016 From: rterry at ...1823... (richard terry) Date: Fri, 25 Nov 2016 14:53:52 +1100 Subject: [Gambas-user] ?anyone have rich text to html code for gambas In-Reply-To: <48d51b82-42d8-99c3-e6a5-ee80c0ea32ac@...1...> References: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> <48d51b82-42d8-99c3-e6a5-ee80c0ea32ac@...1...> Message-ID: On 25/11/16 10:14, Beno?t Minisini wrote: > Le 24/11/2016 ? 22:59, richard terry a ?crit : >> Hi List, >> >> I've just encountered a situation in my medical software where the >> pathology lab has suddently started sending me histopathology reports in >> RTF format instead of plain text markup, which is of course unreadable. >> >> >> I wondered if anyone had any code to convert rich text to html or any ideas? >> >> >> Thanks >> >> >> richard >> > I think now libreoffice can convert RTF to any of its format from the > command-line, if it helps. > Thanks Benoit, quite useful, this code does it, either to a pdf or html soffice --headless --convert-to html my_file.rtf soffice --headless --convert-to pdf my_file.rtf From gambas at ...1... Fri Nov 25 07:34:11 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 25 Nov 2016 07:34:11 +0100 Subject: [Gambas-user] ?anyone have rich text to html code for gambas In-Reply-To: References: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> <48d51b82-42d8-99c3-e6a5-ee80c0ea32ac@...1...> Message-ID: <05e0ba2c-bff5-8a3b-8ae8-a3aa16f4b4b6@...1...> Le 25/11/2016 ? 04:53, richard terry a ?crit : >> I think now libreoffice can convert RTF to any of its format from the >> command-line, if it helps. >> > Thanks Benoit, quite useful, this code does it, either to a pdf or html > > soffice --headless --convert-to html my_file.rtf > > soffice --headless --convert-to pdf my_file.rtf > Wow, it's simpler than I thought! -- Beno?t Minisini From gambas.fr at ...626... Fri Nov 25 10:29:30 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 25 Nov 2016 10:29:30 +0100 Subject: [Gambas-user] ?anyone have rich text to html code for gambas In-Reply-To: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> References: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> Message-ID: I've done something like that on the far far past in vb (before 2002) I'll take a look this evening in my old storage. Le 24 nov. 2016 23:01, "richard terry" a ?crit : > Hi List, > > I've just encountered a situation in my medical software where the > pathology lab has suddently started sending me histopathology reports in > RTF format instead of plain text markup, which is of course unreadable. > > > I wondered if anyone had any code to convert rich text to html or any > ideas? > > > Thanks > > > richard > > > > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 25 10:30:51 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 25 Nov 2016 10:30:51 +0100 Subject: [Gambas-user] ?anyone have rich text to html code for gambas In-Reply-To: References: <1784b292-c24d-27f1-2f55-c0234415e0d7@...1823...> Message-ID: Ok .. so all is good... ? Le 25 nov. 2016 10:29, "Fabien Bodard" a ?crit : > I've done something like that on the far far past in vb (before 2002) I'll > take a look this evening in my old storage. > Le 24 nov. 2016 23:01, "richard terry" a ?crit : > >> Hi List, >> >> I've just encountered a situation in my medical software where the >> pathology lab has suddently started sending me histopathology reports in >> RTF format instead of plain text markup, which is of course unreadable. >> >> >> I wondered if anyone had any code to convert rich text to html or any >> ideas? >> >> >> Thanks >> >> >> richard >> >> >> >> ------------------------------------------------------------ >> ------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From vuott at ...325... Fri Nov 25 13:25:49 2016 From: vuott at ...325... (Vuott) Date: Fri, 25 Nov 2016 12:25:49 +0000 (UTC) Subject: [Gambas-user] How to use GridView1[0, 0].Border.... References: <645478915.514728.1480076749200.ref@...3424...> Message-ID: <645478915.514728.1480076749200@...3424...> Hello, How to use the resources of GridView1[0, 0].Border....... ? For example: GridView1[0, 0].Border.Color = Color.Red gives an error: Null object ??? Regards vuott From hiperzeus at ...626... Fri Nov 25 14:13:17 2016 From: hiperzeus at ...626... (zeus Jesus) Date: Fri, 25 Nov 2016 09:13:17 -0400 Subject: [Gambas-user] FRAME Message-ID: GREETINGS. IS THERE ANY OPTION TO ADD A SCROLL TO A FRAME? I HAVE AN APPLICATION WITH ALL THE ELEMENTS CONTAINED IN A FRAME BUT WHEN THE RESOLUTION OF THE SCREEN WHERE THE APPLICATION IS INSTALLED IS LOW THE SYSTEM IS NOT SHOWN PROPERLY, LOSING PART OF THE ELEMENTS CONTAINED IN THE FRAME. From bagonergi at ...626... Fri Nov 25 20:56:16 2016 From: bagonergi at ...626... (Gianluigi) Date: Fri, 25 Nov 2016 20:56:16 +0100 Subject: [Gambas-user] How-to-use-GridView1-0-0-Border Message-ID: (Your question: For example: GridView1[0, 0].Border.Color = Color.Red gives an error: Null object) Hello Vuott, (continually struggling with spam) :-( I think it is something like this, but it does not work. Sorry :-( Gianluigi '----------------------------------------------- Public Sub Form_Open() Dim b As Border GridView1.Columns.Count = 3 GridView1.Rows.Count = 3 b = New Border("Style=\"border-color:red;\"") GridView1[0, 2].Border = b End '------------------------------------------------ From bagonergi at ...626... Fri Nov 25 21:14:51 2016 From: bagonergi at ...626... (Gianluigi) Date: Fri, 25 Nov 2016 21:14:51 +0100 Subject: [Gambas-user] How-to-use-GridView1-0-0-Border In-Reply-To: References: Message-ID: Now work :-) Public Sub Form_Open() Dim b As Border GridView1.Columns.Count = 3 GridView1.Rows.Count = 3 b = New Border("color:blue;top-style:dotted") GridView1[0, 2].Border = b End Regards Gianluigi 2016-11-25 20:56 GMT+01:00 Gianluigi : > (Your question: > For example: > GridView1[0, 0].Border.Color = Color.Red > gives an error: Null object) > > Hello Vuott, > (continually struggling with spam) :-( > > I think it is something like this, but it does not work. > > Sorry :-( > Gianluigi > > '----------------------------------------------- > Public Sub Form_Open() > > Dim b As Border > > GridView1.Columns.Count = 3 > GridView1.Rows.Count = 3 > b = New Border("Style=\"border-color:red;\"") > GridView1[0, 2].Border = b > > End > '------------------------------------------------ > From bagonergi at ...626... Fri Nov 25 21:19:42 2016 From: bagonergi at ...626... (Gianluigi) Date: Fri, 25 Nov 2016 21:19:42 +0100 Subject: [Gambas-user] How-to-use-GridView1-0-0-Border In-Reply-To: References: Message-ID: I found the announcement of Benoit: http://gambas.8142.n7.nabble.com/The-new-Border-class-td50110.html#a50140 Regards Gianluigi 2016-11-25 21:14 GMT+01:00 Gianluigi : > Now work :-) > > Public Sub Form_Open() > > Dim b As Border > > GridView1.Columns.Count = 3 > GridView1.Rows.Count = 3 > b = New Border("color:blue;top-style:dotted") > GridView1[0, 2].Border = b > > End > > Regards > Gianluigi > > 2016-11-25 20:56 GMT+01:00 Gianluigi : > >> (Your question: >> For example: >> GridView1[0, 0].Border.Color = Color.Red >> gives an error: Null object) >> >> Hello Vuott, >> (continually struggling with spam) :-( >> >> I think it is something like this, but it does not work. >> >> Sorry :-( >> Gianluigi >> >> '----------------------------------------------- >> Public Sub Form_Open() >> >> Dim b As Border >> >> GridView1.Columns.Count = 3 >> GridView1.Rows.Count = 3 >> b = New Border("Style=\"border-color:red;\"") >> GridView1[0, 2].Border = b >> >> End >> '------------------------------------------------ >> > > From bugtracker at ...3416... Fri Nov 25 23:49:26 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 25 Nov 2016 22:49:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Comment #2 by Zainudin AHMAD: attach gdb From bugtracker at ...3416... Fri Nov 25 23:49:41 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 25 Nov 2016 22:49:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD added an attachment: gdb.out From bugtracker at ...3416... Fri Nov 25 23:52:32 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 25 Nov 2016 22:52:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD added an attachment: error-message.png From bugtracker at ...3416... Fri Nov 25 23:53:30 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 25 Nov 2016 22:53:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD changed the state of the bug to: Opened. From author.ilmi at ...626... Sat Nov 26 00:06:33 2016 From: author.ilmi at ...626... (zainudin ahmad) Date: Sat, 26 Nov 2016 06:06:33 +0700 Subject: [Gambas-user] DBusSignal Error (Send) In-Reply-To: <0be7a8d7-9288-772d-7d77-7bea7f1e01aa@...3219...> References: <0be7a8d7-9288-772d-7d77-7bea7f1e01aa@...3219...> Message-ID: Hi Hans This project for : - Send and Receive (1 project for 2 process) - With better code for form_close event (attach file) On Fri, Nov 18, 2016 at 11:26 PM, Hans Lehmann wrote: > Am 17.11.2016 um 02:20 schrieb zainudin ahmad: > >> Hi Hans, I hope this work for you:) (project attach) >> > > Yes, that has solved it! > The new code in the attached project 'signalsend-0.1.82.tar.gz' is > correct. It works fine. > > > Hans > -- > Author of the german Gambas book > gambas-buch.de/dw/doku.php > > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signalsend-0.1.82.tar.gz Type: application/x-gzip Size: 52838 bytes Desc: not available URL: From gambas.fr at ...626... Sat Nov 26 09:01:13 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 26 Nov 2016 09:01:13 +0100 Subject: [Gambas-user] FRAME In-Reply-To: References: Message-ID: Put a scrollview between the frame and the elements So the elements are contained by the scrollview witch show scrollbar if the content not feet the visible part. Le 25 nov. 2016 14:15, "zeus Jesus" a ?crit : > GREETINGS. > IS THERE ANY OPTION TO ADD A SCROLL TO A FRAME? > I HAVE AN APPLICATION WITH ALL THE ELEMENTS CONTAINED IN A FRAME BUT WHEN > THE RESOLUTION OF THE SCREEN WHERE THE APPLICATION IS INSTALLED IS LOW THE > SYSTEM IS NOT SHOWN PROPERLY, LOSING PART OF THE ELEMENTS CONTAINED IN THE > FRAME. > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Sat Nov 26 19:31:55 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 18:31:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Alexander SIGMANOR reported a new bug. Summary ------- Timer. Cant set delay more than 16777215 Type : Bug Priority : Medium Gambas version : 3.9 Product : GUI components Description ----------- How to reproduce - for example, place button and timer control to form, then use folowing code: Public Sub Button1_Click() Timer1.Delay = 16777215 Message(Timer1.Delay) Timer1.Delay = 16777216 Message(Timer1.Delay) End Run, press button. Result: First message - http://i.imgur.com/2HwPbYD.png Second message - http://i.imgur.com/qxaWJ1L.png System information ------------------ Ubuntu 16.04 Gambas 3.9.1 From bugtracker at ...3416... Sat Nov 26 19:32:29 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 18:32:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Alexander SIGMANOR added an attachment: 1.png From bugtracker at ...3416... Sat Nov 26 19:32:33 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 18:32:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Alexander SIGMANOR added an attachment: 2.png From bugtracker at ...3416... Sat Nov 26 19:41:43 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 18:41:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Comment #1 by Jussi LAHTINEN: Binary presentation of number 16777215 is 111111111111111111111111 (so, 16777216 is 1000000000000000000000000). So I guess 24 bits is the maximum value. I have no clue where the limit comes. From bugtracker at ...3416... Sat Nov 26 19:56:27 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 18:56:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Comment #2 by Alexander SIGMANOR: I need set timer dealy more than 16777215, any idea how to do this? From bugtracker at ...3416... Sat Nov 26 20:12:33 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 19:12:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Comment #3 by zxMarce: You can always set the timer to 1000 (1 sec) and use it to increment a form variable. Then, you use the form variable to check the time. There are other ways, though. For example, set the timer to 0.5 sec and having a DATE variable with the deadline datetime: you compare NOW with the deadline variable every time the timer ticks. From bugtracker at ...3416... Sat Nov 26 21:15:55 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 20:15:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Comment #4 by Alexander SIGMANOR: Thank you! Nice ideas. From bugtracker at ...3416... Sat Nov 26 22:22:25 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 21:22:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Comment #5 by zxMarce: Anytime! From bugtracker at ...3416... Sat Nov 26 22:51:51 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 21:51:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Comment #6 by Beno?t MINISINI: It has been fixed in revision #7925. Timer delay is now stored with 31 bits instead of 24. From bugtracker at ...3416... Sat Nov 26 22:51:59 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 21:51:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Sat Nov 26 23:56:43 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 26 Nov 2016 22:56:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Comment #3 by Beno?t MINISINI: Does the revision #7996 change anything? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Sun Nov 27 08:35:50 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 07:35:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Alexander SIGMANOR changed the state of the bug to: Opened. From bugtracker at ...3416... Sun Nov 27 08:36:02 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 07:36:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1035: Timer. Cant set delay more than 16777215 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1035&from=L21haW4- Alexander SIGMANOR changed the state of the bug to: Fixed. From bugtracker at ...3416... Sun Nov 27 09:29:56 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 08:29:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1030: Project cracks with error 11 when trying to acces connections In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1030&from=L21haW4- Jorge CARRI?N changed the state of the bug to: Opened. From bugtracker at ...3416... Sun Nov 27 09:30:52 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 08:30:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1030: Project cracks with error 11 when trying to acces connections In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1030&from=L21haW4- Jorge CARRI?N changed the state of the bug to: Fixed. From bugtracker at ...3416... Sun Nov 27 15:40:09 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 14:40:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Sun Nov 27 21:13:07 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 20:13:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1032: icon in file-chooser have large space In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1032&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in revision #8000 (yeah). Normally it does not depend whether you use gb.inotify or not. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Sun Nov 27 22:36:29 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 21:36:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1014: org.freedesktop.DBus.Properties Method:GetALL not implemented? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1014&from=L21haW4- Comment #8 by Beno?t MINISINI: Fixed in revision #8001. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Mon Nov 28 00:19:02 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 23:19:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Comment #4 by Zainudin AHMAD: yes, it's fine with revision #8001 From bugtracker at ...3416... Mon Nov 28 00:19:29 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 23:19:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1033: Interpreter Crash when delete directory from file-chooser control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1033&from=L21haW4- Zainudin AHMAD changed the state of the bug to: Fixed. From bugtracker at ...3416... Mon Nov 28 00:34:35 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 23:34:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1036: Revision number not update Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1036&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Revision number not update Type : Bug Priority : Low Gambas version : 3.9.90 (TRUNK) Product : Development Environment Description ----------- revision number not update - with svn checkout, I get a result : Checked out revision 8001. - with gbx3 -V, I get a result : 3.9.90 r7969 - in source code "trunk_version.h" the code : #define TRUNK_VERSION "7969" (not change when doing make) System information ------------------ [System] Gambas=3.9.90 r8001 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=LXQT Theme=Gtk Language=en_US.UTF-8 Memory=492M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-kNkDW7kvqW,guid=db99730b62e4e386debcb6d4583b5721 DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path DESKTOP_SESSION=lxqt DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=lxqt GDM_LANG=en GTK_CSD=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= LXQT_SESSION_CONFIG=session MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2263 SSH_AUTH_SOCK=/tmp/ssh-i9jD1HLGL62N/agent.2208 TERM=qterminal TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXQt XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=lxqt- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lxqt XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at ...3416... Mon Nov 28 00:34:53 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 23:34:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1036: Revision number not update In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1036&from=L21haW4- Zainudin AHMAD added an attachment: pic-sys-info.png From bugtracker at ...3416... Mon Nov 28 00:38:14 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 27 Nov 2016 23:38:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1036: Revision number not update In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1036&from=L21haW4- Comment #1 by Beno?t MINISINI: You must recompile after having updated the source code. From bugtracker at ...3416... Mon Nov 28 01:18:38 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 00:18:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1036: Revision number not update In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1036&from=L21haW4- Comment #2 by Zainudin AHMAD: It's means I must doing "make clean" before make ??? . Documentation say : (http://gambaswiki.org/wiki/install) ./reconf-all ./configure -C ./make ./make install From bugtracker at ...3416... Mon Nov 28 06:25:05 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 05:25:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #996: F2 does not work on classes followed by () In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.996&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #8002. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Mon Nov 28 06:35:19 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 05:35:19 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1008: Library window crashes IDE because of double libs In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1008&from=L21haW4- Comment #6 by Beno?t MINISINI: Fixed in revision #8003. Thanks for the patch, and sorry for the delay! Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Mon Nov 28 07:19:18 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 06:19:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1011: Background color of popup tooltips in IDE wrong In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1011&from=L21haW4- Comment #2 by Beno?t MINISINI: I implemented a workaround in revision #8004. When the tooltip foreground luminance is almost the same as the tooltip background luminance, I invert the tooltip foreground color. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Mon Nov 28 15:59:17 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 14:59:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1014: org.freedesktop.DBus.Properties Method:GetALL not implemented? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1014&from=L21haW4- Comment #9 by Antonio OREFICE: Thanks, now the kde plasmoid seems to be able to control basic playback! (Now i've issues with the standard PropertiesChanged signal and argument passing) From charlie at ...2793... Mon Nov 28 15:17:51 2016 From: charlie at ...2793... (Charlie) Date: Mon, 28 Nov 2016 07:17:51 -0700 (MST) Subject: [Gambas-user] SimpleEval - Error In-Reply-To: References: <1479553154469-57833.post@...3046...> <1479822713378-57846.post@...3046...> Message-ID: <1480342671503-57900.post@...3046...> Hi Fabien, is there any progress on this please. Thanks, Charlie -- View this message in context: http://gambas.8142.n7.nabble.com/SimpleEval-Error-tp57833p57900.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Mon Nov 28 19:42:26 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 18:42:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1037: Backgaund color of tip message in dark themes. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1037&from=L21haW4- Mart?n BELMONTE reported a new bug. Summary ------- Backgaund color of tip message in dark themes. Type : Request Priority : Low Gambas version : 3.9 Product : Development Environment Description ----------- Hi, I use xubuntu and a dark theme call Vertex. Everiting is fine but sometimes the Tooltips Sign apears the Foreground white and the background White also, this make impossible to read the message. Thanks. System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.4.0-47-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=XFCE Theme=Gtk Language=es_ES.UTF-8 Memory=8089M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-gnoXthWRSq DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=es_ES GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE=xim GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=es_ES.UTF-8 LANGUAGE=es_ES LIBVIRT_DEFAULT_URI=qemu:///system LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE= QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1749,unix/:/tmp/.ICE-unix/1749 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=startxfce4 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1578 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xubuntu XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@...3498...=none From bugtracker at ...3416... Mon Nov 28 19:43:27 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 18:43:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1037: Backgaund color of tip message in dark themes. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1037&from=L21haW4- Mart?n BELMONTE added an attachment: message-white-1.png From bugtracker at ...3416... Mon Nov 28 19:43:34 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 18:43:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1037: Backgaund color of tip message in dark themes. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1037&from=L21haW4- Mart?n BELMONTE added an attachment: message-white-2.png From bugtracker at ...3416... Mon Nov 28 19:43:38 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 18:43:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1037: Backgaund color of tip message in dark themes. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1037&from=L21haW4- Mart?n BELMONTE added an attachment: message-white-3.png From bugtracker at ...3416... Mon Nov 28 19:46:11 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 18:46:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1037: Backgaund color of tip message in dark themes. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1037&from=L21haW4- Comment #1 by Beno?t MINISINI: It has just been fixed in revision #8004. Beno?t MINISINI changed the state of the bug to: Fixed. From gambas.fr at ...626... Mon Nov 28 21:26:51 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 28 Nov 2016 21:26:51 +0100 Subject: [Gambas-user] SimpleEval - Error In-Reply-To: <1480342671503-57900.post@...3046...> References: <1479553154469-57833.post@...3046...> <1479822713378-57846.post@...3046...> <1480342671503-57900.post@...3046...> Message-ID: Here it is :-) This is a simple demo of how to do a specific interpreter. You can add variable with value numbers or text. You can set a formula with just numbers function and iif function In the formula in the demo you can see the sum function that is a custom function (that just add the two parameter and return it) All the Expression Class Overloading is in the Interpret Class. have fun, you if you have questions ... write us :-) Best regards, Fabien Bodard 2016-11-28 15:17 GMT+01:00 Charlie : > Hi Fabien, > is there any progress on this please. > Thanks, > Charlie > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/SimpleEval-Error-tp57833p57900.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: DemoInterpreter-0.0.1.tar.gz Type: application/x-gzip Size: 13211 bytes Desc: not available URL: From bugtracker at ...3416... Mon Nov 28 22:44:10 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 21:44:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1038: URLLabel bug Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1038&from=L21haW4- Alexander SIGMANOR reported a new bug. Summary ------- URLLabel bug Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : GUI components Description ----------- When pressing on URLLabel nothing happens, and control disappear. Gif with demonstration - http://i.imgur.com/NT4BLbO.gif System information ------------------ [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-47-generic Architecture=x86_64 Distribution=Ubuntu 16.04.1 LTS Desktop=UNITY Theme=Gtk Language=ru_UA.UTF-8 Memory=5853M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-4IHeadRsZE DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=ru GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=5458 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=ru_UA.UTF-8 LANGUAGE=ru_UA:ru LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1459,unix/:/tmp/.ICE-unix/1459 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1216 USER= XAUTHORITY=/.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/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From bugtracker at ...3416... Mon Nov 28 22:45:50 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 28 Nov 2016 21:45:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1039: URLLabel bug Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1039&from=L21haW4- Alexander SIGMANOR reported a new bug. Summary ------- URLLabel bug Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : GUI components Description ----------- When pressing on URLLabel nothing happens, and control disappear Gif with demonstration - http://i.imgur.com/NT4BLbO.gif System information ------------------ [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-47-generic Architecture=x86_64 Distribution=Ubuntu 16.04.1 LTS Desktop=UNITY Theme=Gtk Language=ru_UA.UTF-8 Memory=5853M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-4IHeadRsZE DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=ru GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=5458 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=ru_UA.UTF-8 LANGUAGE=ru_UA:ru LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1459,unix/:/tmp/.ICE-unix/1459 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1216 USER= XAUTHORITY=/.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/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From cybercamera at ...626... Tue Nov 29 01:50:26 2016 From: cybercamera at ...626... (Cam Era) Date: Tue, 29 Nov 2016 11:50:26 +1100 Subject: [Gambas-user] Setting focus to form. Message-ID: Greetings all. I suspect that this is a question with an easy answer, but I've had no luck in finding it. In short, I have a project with two forms. One is the main form, the other a splash screen. While the first form loads, I display the splash screen with: frmGenerating.show and when the application has completed its loading stage, I close the splash screen with: frmGenerating.close At that point, I'd like the focus to come back to my main form, but I have found no way for this to occur. Things like FMain.SetFocus and FMain.Activate don't achieve this. Am using stock standard Ubuntu 16.04. Any suggestions? TIA -- Cam From cybercamera at ...626... Tue Nov 29 04:40:28 2016 From: cybercamera at ...626... (Cam Era) Date: Tue, 29 Nov 2016 14:40:28 +1100 Subject: [Gambas-user] Arrays of Structs Message-ID: I expect I'm trying to do something that's not possible with Gambas, but I'll ask this anyway. I'm trying to create an n x n array of a STRUCT which itself contains an array of type STRUCT. I have this declaration: Public Struct MapObjec xPos As Integer yPos As Integer ObjectType As Integer isVisible As Boolean ObjectPicture As Picture End Struct Public Struct MapRoom MapObjects[50] As MapObject End Struct Static Private WorldMap[100, 100] As MapObject and this code: WorldMap[5, 10].MapObjects.yPos = 100 which generates a "NULL object" error. Any pointers as to whether this is possible and if so, how? Cheers -- Cam From cybercamera at ...626... Tue Nov 29 04:51:16 2016 From: cybercamera at ...626... (Cam Era) Date: Tue, 29 Nov 2016 14:51:16 +1100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: Message-ID: On Tue, Nov 29, 2016 at 2:40 PM, Cam Era wrote: > I expect I'm trying to do something that's not possible with Gambas, but > I'll ask this anyway. > > I'm trying to create an n x n array of a STRUCT which itself contains an > array of type STRUCT. > > I have this declaration: > > Public Struct MapObjec > xPos As Integer > yPos As Integer > ObjectType As Integer > isVisible As Boolean > ObjectPicture As Picture > End Struct > > Public Struct MapRoom > MapObjects[50] As MapObject > End Struct > > Static Private WorldMap[100, 100] As MapObject > > > and this code: > > WorldMap[5, 10].MapObjects.yPos = 100 > apologies, this should read: WorldMap[5, 10].MapObjects[5].yPos = 100 and still gives the error. TIA From jussi.lahtinen at ...626... Tue Nov 29 05:05:12 2016 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 29 Nov 2016 06:05:12 +0200 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: Message-ID: Seems that the arrays remain uninitialized... I'm not sure why. Do you really need embedded arrays and structs? They are mainly for interacting with libraries written in C, and using Pictures inside of the struct kind of contradicts that. I'm mean that all works if you do it with classes and initialize the arrays as: '' In MapRoom class Public MapObjects As New MapObject[50] '' And this where ever you need it Static Private WorldMap As New MapObject[100, 100] Jussi On Tue, Nov 29, 2016 at 5:40 AM, Cam Era wrote: > I expect I'm trying to do something that's not possible with Gambas, but > I'll ask this anyway. > > I'm trying to create an n x n array of a STRUCT which itself contains an > array of type STRUCT. > > I have this declaration: > > Public Struct MapObjec > xPos As Integer > yPos As Integer > ObjectType As Integer > isVisible As Boolean > ObjectPicture As Picture > End Struct > > Public Struct MapRoom > MapObjects[50] As MapObject > End Struct > > Static Private WorldMap[100, 100] As MapObject > > > and this code: > > WorldMap[5, 10].MapObjects.yPos = 100 > > > which generates a "NULL object" error. > > Any pointers as to whether this is possible and if so, how? > > > Cheers > > -- Cam > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Nov 29 05:11:31 2016 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 29 Nov 2016 05:11:31 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: Message-ID: <87cdbd03-642c-dd51-49b9-bf95f8efe525@...1...> Le 29/11/2016 ? 04:40, Cam Era a ?crit : > I expect I'm trying to do something that's not possible with Gambas, but > I'll ask this anyway. > > I'm trying to create an n x n array of a STRUCT which itself contains an > array of type STRUCT. > > I have this declaration: > > Public Struct MapObjec > xPos As Integer > yPos As Integer > ObjectType As Integer > isVisible As Boolean > ObjectPicture As Picture > End Struct > > Public Struct MapRoom > MapObjects[50] As MapObject --> This creates an inner array of 50 MapObject NULL references. Try that: MapObjects[50] As Struct MapObject By the way, I strongly suggest not to use Struct, but normal objects. Struct were mainly made to interface with C libraries. Regards, -- Beno?t Minisini From cybercamera at ...626... Tue Nov 29 05:11:37 2016 From: cybercamera at ...626... (Cam Era) Date: Tue, 29 Nov 2016 15:11:37 +1100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: Message-ID: On Tue, Nov 29, 2016 at 3:05 PM, Jussi Lahtinen wrote: > Seems that the arrays remain uninitialized... I'm not sure why. > Do you really need embedded arrays and structs? They are mainly for > interacting with libraries written in C, and using Pictures inside of the > struct kind of contradicts that. > > I'm mean that all works if you do it with classes and initialize the arrays > as: > > '' In MapRoom class > Public MapObjects As New MapObject[50] > > > '' And this where ever you need it > Static Private WorldMap As New MapObject[100, 100] > > > > Jussi > Jussi, firstly, thanks for the response. I probably don't need to be using an array of Structs - considering how sparsely these will be populated, I can probably get by with using a multi-dimensional array of strings and then parsing the strings to obtain complex data from within them. This was more of an exercise in better understanding how Gambas works. Your explanation makes sense, so when necessary, I'll use the Class approach rather than fall-back onto Structs. Cheers. -- Cam From cybercamera at ...626... Tue Nov 29 05:38:29 2016 From: cybercamera at ...626... (Cam Era) Date: Tue, 29 Nov 2016 15:38:29 +1100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: <87cdbd03-642c-dd51-49b9-bf95f8efe525@...1...> References: <87cdbd03-642c-dd51-49b9-bf95f8efe525@...1...> Message-ID: On Tue, Nov 29, 2016 at 3:11 PM, Beno?t Minisini < gambas at ...1...> wrote: > ... > --> This creates an inner array of 50 MapObject NULL references. > > Try that: MapObjects[50] As Struct MapObject > > By the way, I strongly suggest not to use Struct, but normal objects. > Struct were mainly made to interface with C libraries. > > Regards, > Beno?t, I'll do exactly that from now on. Thanks again. -- Cam From bagonergi at ...626... Tue Nov 29 11:37:12 2016 From: bagonergi at ...626... (Gianluigi) Date: Tue, 29 Nov 2016 11:37:12 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: <87cdbd03-642c-dd51-49b9-bf95f8efe525@...1...> Message-ID: Out of curiosity you may have a look here [0], and more precisely to MyStruct-DB. Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Random-access-files-with-fixed-length-string-td50880.html 2016-11-29 5:38 GMT+01:00 Cam Era : > On Tue, Nov 29, 2016 at 3:11 PM, Beno?t Minisini < > gambas at ...1...> wrote: > > > ... > > --> This creates an inner array of 50 MapObject NULL references. > > > > Try that: MapObjects[50] As Struct MapObject > > > > By the way, I strongly suggest not to use Struct, but normal objects. > > Struct were mainly made to interface with C libraries. > > > > Regards, > > > > Beno?t, > > I'll do exactly that from now on. > > Thanks again. > > > -- Cam > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Tue Nov 29 11:38:34 2016 From: bagonergi at ...626... (Gianluigi) Date: Tue, 29 Nov 2016 11:38:34 +0100 Subject: [Gambas-user] Setting focus to form. In-Reply-To: References: Message-ID: frmGenerating.ShowModal or ShowDialog? Regards Gianluigi 2016-11-29 1:50 GMT+01:00 Cam Era : > Greetings all. > > I suspect that this is a question with an easy answer, but I've had no luck > in finding it. > > In short, I have a project with two forms. One is the main form, the other > a splash screen. > While the first form loads, I display the splash screen with: > > frmGenerating.show > > and when the application has completed its loading stage, I close the > splash screen with: > > frmGenerating.close > > At that point, I'd like the focus to come back to my main form, but I have > found no way for this to occur. Things like FMain.SetFocus and > FMain.Activate don't achieve this. > > Am using stock standard Ubuntu 16.04. > > Any suggestions? > > TIA > > -- Cam > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Nov 29 12:15:35 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 29 Nov 2016 12:15:35 +0100 Subject: [Gambas-user] Setting focus to form. In-Reply-To: References: Message-ID: <583D6357.9040702@...221...> In one of my projects, there are two forms the user switches forth and back with "F9". I use ".Main" to show the other form, so FMain.Main would it be in your case. But the calling form must still exist for this to run, so the splash screen would have to disappear later. Try and tell if it does what you mean... Maybe Gianluigi's way is better... Regards Rolf Am 29.11.2016 11:38, schrieb Gianluigi: > frmGenerating.ShowModal or ShowDialog? > > Regards > Gianluigi > > 2016-11-29 1:50 GMT+01:00 Cam Era : > >> Greetings all. >> >> I suspect that this is a question with an easy answer, but I've had no luck >> in finding it. >> >> In short, I have a project with two forms. One is the main form, the other >> a splash screen. >> While the first form loads, I display the splash screen with: >> >> frmGenerating.show >> >> and when the application has completed its loading stage, I close the >> splash screen with: >> >> frmGenerating.close >> >> At that point, I'd like the focus to come back to my main form, but I have >> found no way for this to occur. Things like FMain.SetFocus and >> FMain.Activate don't achieve this. >> >> Am using stock standard Ubuntu 16.04. >> >> Any suggestions? >> >> TIA >> >> -- Cam >> ------------------------------------------------------------ >> ------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Tue Nov 29 13:17:48 2016 From: bagonergi at ...626... (Gianluigi) Date: Tue, 29 Nov 2016 13:17:48 +0100 Subject: [Gambas-user] Setting focus to form. In-Reply-To: <583D6357.9040702@...221...> References: <583D6357.9040702@...221...> Message-ID: Hello Rolf, *FMain.Main* is very good! If what that Cam Era need is a splash, he might also get with this: FMain: Public Sub Form_Open() Dim i As Integer Form1.Show ' Here I make something that I ' can communicate through Form1 For i = 1 To 10 Form1.Comunicate("foo " & CStr(i)) Wait 1 Next Form1.Comunicate("foo " & CStr(i)) Me.SetFocus Form1.Hide End Public Sub Form_Close() Form1.Close End Form1(splash): Public Sub Comunicate(value As String) Label1.Text = "Form 1 " & value End Regards Gianluigi 2016-11-29 12:15 GMT+01:00 Rolf-Werner Eilert : > In one of my projects, there are two forms the user switches forth and > back with "F9". I use ".Main" to show the other form, so > > FMain.Main > > would it be in your case. But the calling form must still exist for this > to run, so the splash screen would have to disappear later. > > Try and tell if it does what you mean... Maybe Gianluigi's way is better... > > Regards > Rolf > > Am 29.11.2016 11:38, schrieb Gianluigi: > > frmGenerating.ShowModal or ShowDialog? > > > > Regards > > Gianluigi > > > > 2016-11-29 1:50 GMT+01:00 Cam Era : > > > >> Greetings all. > >> > >> I suspect that this is a question with an easy answer, but I've had no > luck > >> in finding it. > >> > >> In short, I have a project with two forms. One is the main form, the > other > >> a splash screen. > >> While the first form loads, I display the splash screen with: > >> > >> frmGenerating.show > >> > >> and when the application has completed its loading stage, I close the > >> splash screen with: > >> > >> frmGenerating.close > >> > >> At that point, I'd like the focus to come back to my main form, but I > have > >> found no way for this to occur. Things like FMain.SetFocus and > >> FMain.Activate don't achieve this. > >> > >> Am using stock standard Ubuntu 16.04. > >> > >> Any suggestions? > >> > >> TIA > >> > >> -- Cam > >> ------------------------------------------------------------ > >> ------------------ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Tue Nov 29 14:19:22 2016 From: charlie at ...2793... (Charlie) Date: Tue, 29 Nov 2016 06:19:22 -0700 (MST) Subject: [Gambas-user] Setting focus to form. In-Reply-To: References: <583D6357.9040702@...221...> Message-ID: <1480425562515-57920.post@...3046...> Here is my contribution to this solution. This code shows a 'Splash' screen while doing a little work then closes the 'Splash' and returns the focus to FMain. Hope it helps. FMainFocus.tar -- View this message in context: http://gambas.8142.n7.nabble.com/Setting-focus-to-form-tp57909p57920.html Sent from the gambas-user mailing list archive at Nabble.com. From chrisml at ...3340... Tue Nov 29 19:17:16 2016 From: chrisml at ...3340... (Christof Thalhofer) Date: Tue, 29 Nov 2016 19:17:16 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: <87cdbd03-642c-dd51-49b9-bf95f8efe525@...1...> Message-ID: <9b81cdf0-eeab-0596-a102-bf6070a70547@...3340...> Am 29.11.2016 um 05:38 schrieb Cam Era: >> By the way, I strongly suggest not to use Struct, but normal objects. >> Struct were mainly made to interface with C libraries. > > I'll do exactly that from now on. For object-oriented programming in Gambas a struct can be replaced with a class. When I started Gambas programming I also made some structs for the purpose of bringing a couple of variables together to define an object. But in Gambas the right tool for that is a class. The class defines an object, you can create an array of a couple of such objects and you can sort that array. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bagonergi at ...626... Tue Nov 29 21:10:56 2016 From: bagonergi at ...626... (Gianluigi) Date: Tue, 29 Nov 2016 21:10:56 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: <9b81cdf0-eeab-0596-a102-bf6070a70547@...3340...> References: <87cdbd03-642c-dd51-49b9-bf95f8efe525@...1...> <9b81cdf0-eeab-0596-a102-bf6070a70547@...3340...> Message-ID: Hello Christof, I do not use structures and would not recommend using them. I have only mentioned a file that could satisfy the curiosity of Cam. In this regard I point to my example DynamicMatrixExample of Software farm. Regards Gianluigi 2016-11-29 19:17 GMT+01:00 Christof Thalhofer : > Am 29.11.2016 um 05:38 schrieb Cam Era: > > >> By the way, I strongly suggest not to use Struct, but normal objects. > >> Struct were mainly made to interface with C libraries. > > > > I'll do exactly that from now on. > > For object-oriented programming in Gambas a struct can be replaced with > a class. When I started Gambas programming I also made some structs for > the purpose of bringing a couple of variables together to define an > object. But in Gambas the right tool for that is a class. > > The class defines an object, you can create an array of a couple of such > objects and you can sort that array. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From tmorehen at ...3602... Tue Nov 29 21:29:03 2016 From: tmorehen at ...3602... (Tony Morehen) Date: Tue, 29 Nov 2016 15:29:03 -0500 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: Message-ID: I may just be responding to a typo but your struct is named MapObjec while the code using it refers to MapObject. On 28/11/16 10:40 PM, Cam Era wrote: > I expect I'm trying to do something that's not possible with Gambas, but > I'll ask this anyway. > > I'm trying to create an n x n array of a STRUCT which itself contains an > array of type STRUCT. > > I have this declaration: > > Public Struct MapObjec > xPos As Integer > yPos As Integer > ObjectType As Integer > isVisible As Boolean > ObjectPicture As Picture > End Struct > > Public Struct MapRoom > MapObjects[50] As MapObject > End Struct > > Static Private WorldMap[100, 100] As MapObject > > > and this code: > > WorldMap[5, 10].MapObjects.yPos = 100 > > > which generates a "NULL object" error. > > Any pointers as to whether this is possible and if so, how? > > > Cheers > > -- Cam > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...951... Wed Nov 30 07:27:13 2016 From: nando_f at ...951... (nando_f at ...951...) Date: Wed, 30 Nov 2016 01:27:13 -0500 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: Message-ID: <20161130062046.M10051@...951...> I use structs to write binary to a file in struct order. Nice and easy. Not so easy with a class. Your example is possible. I have done similar. The STRUCT only defines the structure...it doesn't create the memory allocation. Static Private WorldMap[100, 100] As MapObject just defines arrays to point to objects. You need to run code to actually create new objects at each array element. hint: Loop x Loop y [x][y] = new MapObject 'the new actually creates a memory allocation for it. -Fernando -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Tony Morehen To: gambas-user at lists.sourceforge.net Sent: Tue, 29 Nov 2016 15:29:03 -0500 Subject: Re: [Gambas-user] Arrays of Structs > I may just be responding to a typo but your struct is named MapObjec > while the code using it refers to MapObject. > > On 28/11/16 10:40 PM, Cam Era wrote: > > I expect I'm trying to do something that's not possible with Gambas, but > > I'll ask this anyway. > > > > I'm trying to create an n x n array of a STRUCT which itself contains an > > array of type STRUCT. > > > > I have this declaration: > > > > Public Struct MapObjec > > xPos As Integer > > yPos As Integer > > ObjectType As Integer > > isVisible As Boolean > > ObjectPicture As Picture > > End Struct > > > > Public Struct MapRoom > > MapObjects[50] As MapObject > > End Struct > > > > Static Private WorldMap[100, 100] As MapObject > > > > > > and this code: > > > > WorldMap[5, 10].MapObjects.yPos = 100 > > > > > > which generates a "NULL object" error. > > > > Any pointers as to whether this is possible and if so, how? > > > > > > Cheers > > > > -- Cam > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From bugtracker at ...3416... Wed Nov 30 11:52:28 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 30 Nov 2016 10:52:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1040: WITH Super is suppoerted by the IDE but not by the interpreter Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1040&from=L21haW4- Fabien BODARD reported a new bug. Summary ------- WITH Super is suppoerted by the IDE but not by the interpreter Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Language Description ----------- This code work with autocompletion on the IDE byut when i try to compile it fail. "Super ne peut ?tre utilis? seul" INHERIT GridView ... With Super .Columns.Count = 50 .Rows.Count = 250 .Header = .Both For i = 0 To .Columns.Max .Columns[i].Text = Chr(65+ i) Next End With ... From bugtracker at ...3416... Wed Nov 30 11:55:17 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 30 Nov 2016 10:55:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1040: WITH Super is suppoerted by the IDE but not by the interpreter In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1040&from=L21haW4- Comment #1 by Beno?t MINISINI: As says the error message, you can't use Super alone. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at ...3416... Wed Nov 30 11:55:54 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 30 Nov 2016 10:55:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1039: URLLabel bug In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1039&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Invalid. From bugtracker at ...3416... Wed Nov 30 12:17:21 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 30 Nov 2016 11:17:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1036: Revision number not update In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1036&from=L21haW4- Comment #3 by Beno?t MINISINI: svn database modification was incorrectly detected. This has been fixed in revision #8005. Beware that it should not work for older version of subversion. Beno?t MINISINI changed the state of the bug to: Fixed. From eilert-sprachen at ...221... Wed Nov 30 15:46:03 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 30 Nov 2016 15:46:03 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: <20161130062046.M10051@...951...> References: <20161130062046.M10051@...951...> Message-ID: <583EE62B.8010207@...221...> Would this be possible? Static Private WorldMap[100, 100] As New MapObject or in a similar way... Just ask because I tend to use New in the first declaration line if possible. Regards Rolf Am 30.11.2016 07:27, schrieb nando_f at ...951...: > I use structs to write binary to a file in struct order. > Nice and easy. > Not so easy with a class. > > Your example is possible. I have done similar. > > The STRUCT only defines the structure...it doesn't create the memory allocation. > Static Private WorldMap[100, 100] As MapObject just defines arrays to point to objects. > You need to run code to actually create new objects at each array element. > hint: > Loop x > Loop y > [x][y] = new MapObject 'the new actually creates a memory allocation for it. > > -Fernando > > -- > Open WebMail Project (http://openwebmail.org) > > > ---------- Original Message ----------- > From: Tony Morehen > To: gambas-user at lists.sourceforge.net > Sent: Tue, 29 Nov 2016 15:29:03 -0500 > Subject: Re: [Gambas-user] Arrays of Structs > >> I may just be responding to a typo but your struct is named MapObjec >> while the code using it refers to MapObject. >> >> On 28/11/16 10:40 PM, Cam Era wrote: >>> I expect I'm trying to do something that's not possible with Gambas, but >>> I'll ask this anyway. >>> >>> I'm trying to create an n x n array of a STRUCT which itself contains an >>> array of type STRUCT. >>> >>> I have this declaration: >>> >>> Public Struct MapObjec >>> xPos As Integer >>> yPos As Integer >>> ObjectType As Integer >>> isVisible As Boolean >>> ObjectPicture As Picture >>> End Struct >>> >>> Public Struct MapRoom >>> MapObjects[50] As MapObject >>> End Struct >>> >>> Static Private WorldMap[100, 100] As MapObject >>> >>> >>> and this code: >>> >>> WorldMap[5, 10].MapObjects.yPos = 100 >>> >>> >>> which generates a "NULL object" error. >>> >>> Any pointers as to whether this is possible and if so, how? >>> >>> >>> Cheers >>> >>> -- Cam >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Nov 30 16:03:55 2016 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 30 Nov 2016 16:03:55 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: <583EE62B.8010207@...221...> References: <20161130062046.M10051@...951...> <583EE62B.8010207@...221...> Message-ID: no 2016-11-30 15:46 GMT+01:00 Rolf-Werner Eilert : > Would this be possible? > > Static Private WorldMap[100, 100] As New MapObject > > > or in a similar way... Just ask because I tend to use New in the first > declaration line if possible. > > Regards > Rolf > > Am 30.11.2016 07:27, schrieb nando_f at ...951...: >> I use structs to write binary to a file in struct order. >> Nice and easy. >> Not so easy with a class. >> >> Your example is possible. I have done similar. >> >> The STRUCT only defines the structure...it doesn't create the memory allocation. >> Static Private WorldMap[100, 100] As MapObject just defines arrays to point to objects. >> You need to run code to actually create new objects at each array element. >> hint: >> Loop x >> Loop y >> [x][y] = new MapObject 'the new actually creates a memory allocation for it. >> >> -Fernando >> >> -- >> Open WebMail Project (http://openwebmail.org) >> >> >> ---------- Original Message ----------- >> From: Tony Morehen >> To: gambas-user at lists.sourceforge.net >> Sent: Tue, 29 Nov 2016 15:29:03 -0500 >> Subject: Re: [Gambas-user] Arrays of Structs >> >>> I may just be responding to a typo but your struct is named MapObjec >>> while the code using it refers to MapObject. >>> >>> On 28/11/16 10:40 PM, Cam Era wrote: >>>> I expect I'm trying to do something that's not possible with Gambas, but >>>> I'll ask this anyway. >>>> >>>> I'm trying to create an n x n array of a STRUCT which itself contains an >>>> array of type STRUCT. >>>> >>>> I have this declaration: >>>> >>>> Public Struct MapObjec >>>> xPos As Integer >>>> yPos As Integer >>>> ObjectType As Integer >>>> isVisible As Boolean >>>> ObjectPicture As Picture >>>> End Struct >>>> >>>> Public Struct MapRoom >>>> MapObjects[50] As MapObject >>>> End Struct >>>> >>>> Static Private WorldMap[100, 100] As MapObject >>>> >>>> >>>> and this code: >>>> >>>> WorldMap[5, 10].MapObjects.yPos = 100 >>>> >>>> >>>> which generates a "NULL object" error. >>>> >>>> Any pointers as to whether this is possible and if so, how? >>>> >>>> >>>> Cheers >>>> >>>> -- Cam >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------- End of Original Message ------- >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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... Wed Nov 30 16:13:28 2016 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 30 Nov 2016 16:13:28 +0100 Subject: [Gambas-user] Arrays of Structs In-Reply-To: References: <20161130062046.M10051@...951...> <583EE62B.8010207@...221...> Message-ID: <583EEC98.4040604@...221...> Thought so :) Am 30.11.2016 16:03, schrieb Fabien Bodard: > no > > 2016-11-30 15:46 GMT+01:00 Rolf-Werner Eilert : >> Would this be possible? >> >> Static Private WorldMap[100, 100] As New MapObject >> >> >> or in a similar way... Just ask because I tend to use New in the first >> declaration line if possible. >> >> Regards >> Rolf >> >> Am 30.11.2016 07:27, schrieb nando_f at ...951...: >>> I use structs to write binary to a file in struct order. >>> Nice and easy. >>> Not so easy with a class. >>> >>> Your example is possible. I have done similar. >>> >>> The STRUCT only defines the structure...it doesn't create the memory allocation. >>> Static Private WorldMap[100, 100] As MapObject just defines arrays to point to objects. >>> You need to run code to actually create new objects at each array element. >>> hint: >>> Loop x >>> Loop y >>> [x][y] = new MapObject 'the new actually creates a memory allocation for it. >>> >>> -Fernando >>> >>> -- >>> Open WebMail Project (http://openwebmail.org) >>> >>> >>> ---------- Original Message ----------- >>> From: Tony Morehen >>> To: gambas-user at lists.sourceforge.net >>> Sent: Tue, 29 Nov 2016 15:29:03 -0500 >>> Subject: Re: [Gambas-user] Arrays of Structs >>> >>>> I may just be responding to a typo but your struct is named MapObjec >>>> while the code using it refers to MapObject. >>>> >>>> On 28/11/16 10:40 PM, Cam Era wrote: >>>>> I expect I'm trying to do something that's not possible with Gambas, but >>>>> I'll ask this anyway. >>>>> >>>>> I'm trying to create an n x n array of a STRUCT which itself contains an >>>>> array of type STRUCT. >>>>> >>>>> I have this declaration: >>>>> >>>>> Public Struct MapObjec >>>>> xPos As Integer >>>>> yPos As Integer >>>>> ObjectType As Integer >>>>> isVisible As Boolean >>>>> ObjectPicture As Picture >>>>> End Struct >>>>> >>>>> Public Struct MapRoom >>>>> MapObjects[50] As MapObject >>>>> End Struct >>>>> >>>>> Static Private WorldMap[100, 100] As MapObject >>>>> >>>>> >>>>> and this code: >>>>> >>>>> WorldMap[5, 10].MapObjects.yPos = 100 >>>>> >>>>> >>>>> which generates a "NULL object" error. >>>>> >>>>> Any pointers as to whether this is possible and if so, how? >>>>> >>>>> >>>>> Cheers >>>>> >>>>> -- Cam >>>>> ------------------------------------------------------------------------------ >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------- End of Original Message ------- >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bugtracker at ...3416... Wed Nov 30 23:42:20 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 30 Nov 2016 22:42:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1041: [JIT] Doing : Return [2/8] , I get "Type Mismatch ..." Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1041&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- [JIT] Doing : Return [2/8] , I get "Type Mismatch ..." Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Development Environment Description ----------- The code : '--------------------------------------------- Fast Public Function testFast2() As Integer[] Return [2 / 8] End '--------------------------------------------- It's Fine without Fast keyword(JIT). attach project (with some function) System information ------------------ [System] Gambas=3.9.90 r8004 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=LXQT Theme=Gtk Language=en_US.UTF-8 Memory=492M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8qXRGsJJ9k,guid=f36c09faab67b7515fff26fd583f4beb DEFAULTS_PATH=/usr/share/gconf/lxqt.default.path DESKTOP_SESSION=lxqt DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=lxqt GDM_LANG=en GTK_CSD=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= LXQT_SESSION_CONFIG=session MANDATORY_PATH=/usr/share/gconf/lxqt.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2313 SSH_AUTH_SOCK=/tmp/ssh-9ueo0Yf1OExy/agent.2258 TERM=qterminal TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-lxqt:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXQt XDG_DATA_DIRS=/usr/share/lxqt:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/.local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=lxqt- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lxqt XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at ...3416... Wed Nov 30 23:42:47 2016 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 30 Nov 2016 22:42:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1041: [JIT] Doing : Return [2/8] , I get "Type Mismatch ..." In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1041&from=L21haW4- Zainudin AHMAD added an attachment: Bug-jit-ArrayInteger-0.0.1.tar.gz