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=[01;31m
LESS_TERMCAP_md=[01;31m
LESS_TERMCAP_me=[0m
LESS_TERMCAP_se=[0m
LESS_TERMCAP_so=[01;44;33m
LESS_TERMCAP_ue=[0m
LESS_TERMCAP_us=[01;32m
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] '= 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] ' 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] ' 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] ' > 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: