From gambas at ...2524... Thu Sep 1 01:43:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 23:43:50 +0000 Subject: [Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short. In-Reply-To: <4-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> <0-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 94 by benoit.m... at ...626...: A For-statement can store an Integer in a Byte/Short. http://code.google.com/p/gambas/issues/detail?id=94 Fixed in revision #4068. From gambas at ...2524... Thu Sep 1 01:47:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 23:47:51 +0000 Subject: [Gambas-user] Issue 95 in gambas: FOR-optimization not correct In-Reply-To: <1-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> <0-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 95 by benoit.m... at ...626...: FOR-optimization not correct http://code.google.com/p/gambas/issues/detail?id=95 Fixed in revision #4068. From gambas at ...2524... Thu Sep 1 01:47:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 23:47:51 +0000 Subject: [Gambas-user] Issue 95 in gambas: FOR-optimization not correct In-Reply-To: <1-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> <0-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 95 by benoit.m... at ...626...: FOR-optimization not correct http://code.google.com/p/gambas/issues/detail?id=95 Fixed in revision #4068. From sbungay at ...981... Thu Sep 1 02:53:01 2011 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 31 Aug 2011 20:53:01 -0400 Subject: [Gambas-user] Using EXEC Message-ID: <4E5ED76D.3020608@...981...> EXEC is a wonderful thing, lighter than SHELL, but it needs things passed as elements of a string array and that is making for some ugly code. Say for example you want to play two videos as a playlist in VLC, in exec the command might look like this; EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"] But what if you had different quantities of videos to play, lets say next time you needed to play 4 videos? How would you use EXEC to do this? I thought of building the string and embedding the quotes in it like this; ExecString = chr$(34)& "vlc" & chr$(34) & "," & chr$(34) & "--intf" & chr$(34) & "," & chr$(34) & "rc"& chr$(34) & "," For X= 0 TO sFile.Count - 1 ExecString = ExecString & chr$934) & sFile[X] & chr$(34) IF X < sFile.Count -1 then ExecString = ExecString & "," End IF NEXT Which would result in a string that looks like this; "vlc", "--intf", "rc", "video1.avi", "video2.avi" Nope. It sees the one string as one element when what I want is the contents of the string to be inserted as multiple elements. At the moment I am fetching the video file names from a directory listing, splitting that up into an array, then checking the number of elements in the array and using a case statement to do the work... SELECT CASE sFile.Count CASE 1 mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0]] FOR INPUT OUTPUT AS "VLC" CASE 2 mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], sFile[1]] FOR INPUT OUTPUT AS "VLC" CASE 3 mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" CASE 4 mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" END SELECT It ain't pretty. "sFile" is a string array derived from another string that contains the names of videos which in my case are delimited by spaces. Definetly the brute-force/bulldozer approach, big, ugly, and cumbersome, but it does work. Does anyone else know of a more elegant solution? Regards Steve. From gambas at ...1... Thu Sep 1 03:01:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 1 Sep 2011 03:01:49 +0200 Subject: [Gambas-user] Using EXEC In-Reply-To: <4E5ED76D.3020608@...981...> References: <4E5ED76D.3020608@...981...> Message-ID: <201109010301.49132.gambas@...1...> > EXEC is a wonderful thing, lighter than SHELL, but it needs things > passed as elements of a string array and that is making for some ugly code. > > Say for example you want to play two videos as a playlist in VLC, in > exec the command might look like this; > > EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"] > > But what if you had different quantities of videos to play, lets say > next time you needed to play 4 videos? How would you use EXEC to do this? > > > I thought of building the string and embedding the quotes in it like this; > > ExecString = chr$(34)& "vlc" & chr$(34) & "," & chr$(34) & "--intf" & > chr$(34) & "," & chr$(34) & "rc"& chr$(34) & "," > For X= 0 TO sFile.Count - 1 > ExecString = ExecString & chr$934) & sFile[X] & chr$(34) > IF X < sFile.Count -1 then > ExecString = ExecString & "," > End IF > NEXT > > Which would result in a string that looks like this; > > "vlc", "--intf", "rc", "video1.avi", "video2.avi" > > Nope. It sees the one string as one element when what I want is the > contents of the string to be inserted as multiple elements. > > At the moment I am fetching the video file names from a directory > listing, splitting that up into an array, then checking the number of > elements in the array and using a case statement to do the work... > > SELECT CASE sFile.Count > CASE 1 > mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0]] > FOR INPUT OUTPUT AS "VLC" > CASE 2 > mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], > sFile[1]] FOR INPUT OUTPUT AS "VLC" > CASE 3 > mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], > sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" > CASE 4 > mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], > sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" > END SELECT > > It ain't pretty. "sFile" is a string array derived from another string > that contains the names of videos which in my case are delimited by > spaces. Definetly the brute-force/bulldozer approach, big, ugly, and > cumbersome, but it does work. Does anyone else know of a more elegant > solution? > > Regards > Steve. > [ ... ] is not a compiler thing, but an operator that build an array at runtime. So you can make the EXEC array with "New String[]" and populate it as you need: Dim aFile As String[] ' The files to open Dim aArg As String[] aArg = ["vlc", "--intf", "rc"] aArg.Insert(aFile) Exec aArg For Input Output As "VLC" Regards, -- Beno?t Minisini From sbungay at ...981... Thu Sep 1 04:22:07 2011 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 31 Aug 2011 22:22:07 -0400 Subject: [Gambas-user] Using EXEC In-Reply-To: <201109010301.49132.gambas@...1...> References: <4E5ED76D.3020608@...981...> <201109010301.49132.gambas@...1...> Message-ID: <4E5EEC4F.4030801@...981...> On 08/31/2011 09:01 PM, Beno?t Minisini wrote: >> EXEC is a wonderful thing, lighter than SHELL, but it needs things >> passed as elements of a string array and that is making for some ugly code. >> >> Say for example you want to play two videos as a playlist in VLC, in >> exec the command might look like this; >> >> EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"] >> >> But what if you had different quantities of videos to play, lets say >> next time you needed to play 4 videos? How would you use EXEC to do this? >> >> >> I thought of building the string and embedding the quotes in it like this; >> >> ExecString = chr$(34)& "vlc"& chr$(34)& ","& chr$(34)& "--intf"& >> chr$(34)& ","& chr$(34)& "rc"& chr$(34)& "," >> For X= 0 TO sFile.Count - 1 >> ExecString = ExecString& chr$934)& sFile[X]& chr$(34) >> IF X< sFile.Count -1 then >> ExecString = ExecString& "," >> End IF >> NEXT >> >> Which would result in a string that looks like this; >> >> "vlc", "--intf", "rc", "video1.avi", "video2.avi" >> >> Nope. It sees the one string as one element when what I want is the >> contents of the string to be inserted as multiple elements. >> >> At the moment I am fetching the video file names from a directory >> listing, splitting that up into an array, then checking the number of >> elements in the array and using a case statement to do the work... >> >> SELECT CASE sFile.Count >> CASE 1 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0]] >> FOR INPUT OUTPUT AS "VLC" >> CASE 2 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], >> sFile[1]] FOR INPUT OUTPUT AS "VLC" >> CASE 3 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], >> sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" >> CASE 4 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], >> sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" >> END SELECT >> >> It ain't pretty. "sFile" is a string array derived from another string >> that contains the names of videos which in my case are delimited by >> spaces. Definetly the brute-force/bulldozer approach, big, ugly, and >> cumbersome, but it does work. Does anyone else know of a more elegant >> solution? >> >> Regards >> Steve. >> > [ ... ] is not a compiler thing, but an operator that build an array at > runtime. > > So you can make the EXEC array with "New String[]" and populate it as you > need: > > Dim aFile As String[] ' The files to open > Dim aArg As String[] > > aArg = ["vlc", "--intf", "rc"] > aArg.Insert(aFile) > Exec aArg For Input Output As "VLC" > > Regards, > I see.... never thought of it that way.... thought about everything else... including pointers, but not that. Will give it a whirl and see what come of it. Much more elegant. From sbungay at ...981... Thu Sep 1 04:34:04 2011 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 31 Aug 2011 22:34:04 -0400 Subject: [Gambas-user] Using EXEC In-Reply-To: <201109010301.49132.gambas@...1...> References: <4E5ED76D.3020608@...981...> <201109010301.49132.gambas@...1...> Message-ID: <4E5EEF1C.7080509@...981...> On 08/31/2011 09:01 PM, Beno?t Minisini wrote: >> EXEC is a wonderful thing, lighter than SHELL, but it needs things >> passed as elements of a string array and that is making for some ugly code. >> >> Say for example you want to play two videos as a playlist in VLC, in >> exec the command might look like this; >> >> EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"] >> >> But what if you had different quantities of videos to play, lets say >> next time you needed to play 4 videos? How would you use EXEC to do this? >> >> >> I thought of building the string and embedding the quotes in it like this; >> >> ExecString = chr$(34)& "vlc"& chr$(34)& ","& chr$(34)& "--intf"& >> chr$(34)& ","& chr$(34)& "rc"& chr$(34)& "," >> For X= 0 TO sFile.Count - 1 >> ExecString = ExecString& chr$934)& sFile[X]& chr$(34) >> IF X< sFile.Count -1 then >> ExecString = ExecString& "," >> End IF >> NEXT >> >> Which would result in a string that looks like this; >> >> "vlc", "--intf", "rc", "video1.avi", "video2.avi" >> >> Nope. It sees the one string as one element when what I want is the >> contents of the string to be inserted as multiple elements. >> >> At the moment I am fetching the video file names from a directory >> listing, splitting that up into an array, then checking the number of >> elements in the array and using a case statement to do the work... >> >> SELECT CASE sFile.Count >> CASE 1 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0]] >> FOR INPUT OUTPUT AS "VLC" >> CASE 2 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], >> sFile[1]] FOR INPUT OUTPUT AS "VLC" >> CASE 3 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], >> sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" >> CASE 4 >> mpProcessHandle = EXEC ["vlc", "--intf", "rc", sFile[0], >> sFile[1], sFile[2]] FOR INPUT OUTPUT AS "VLC" >> END SELECT >> >> It ain't pretty. "sFile" is a string array derived from another string >> that contains the names of videos which in my case are delimited by >> spaces. Definetly the brute-force/bulldozer approach, big, ugly, and >> cumbersome, but it does work. Does anyone else know of a more elegant >> solution? >> >> Regards >> Steve. >> > [ ... ] is not a compiler thing, but an operator that build an array at > runtime. > > So you can make the EXEC array with "New String[]" and populate it as you > need: > > Dim aFile As String[] ' The files to open > Dim aArg As String[] > > aArg = ["vlc", "--intf", "rc"] > aArg.Insert(aFile) > Exec aArg For Input Output As "VLC" > > Regards, > Works like a jet. From robert1juhasz at ...626... Thu Sep 1 07:32:40 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Thu, 01 Sep 2011 07:32:40 +0200 Subject: [Gambas-user] install gambas Message-ID: <1314855160.26698.27.camel@...2425...> Hello, I have a very basic problem: I cannot install the latest version of gambas2. It works from the ubuntu software center but it is not up-to-date (and I don't know if it's possible to update the version installed from the rep). I already had problem to install from source code before but I was not sure if it's my computer / OS who has problem. So now I installed a brand new ubuntu 10.04 32 bit (all updates done) and I followed these instructions: http://gambasdoc.org/help/install/ubuntu?show Until "make" everything seem to be ok but at the end of "make install" I got the attached result. gambas2 don't start. Can anyone help ? BTW, is there any .deb package to install gambas on an easier way for those who are not used by compiling from source. It would be great for me. Thx, Robi -------------- next part -------------- ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.opengl/src' Creating the information files for gb.opengl component... gb.opengl make[4]: Leaving directory `/usr/src/gambas2-2.23.1/gb.opengl/src' make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.opengl/src' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.opengl/src' make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.opengl' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.opengl' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.opengl' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.opengl' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/gb.opengl' Making install in gb.corba make[1]: Entering directory `/usr/src/gambas2-2.23.1/gb.corba' Making install in src make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.corba/src' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.corba/src' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.corba.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.corba.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.corba.la '/usr/local/lib/gambas2' libtool: install: /usr/bin/install -c .libs/gb.corba.so.0.0.0 /usr/local/lib/gambas2/gb.corba.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.corba.so.0.0.0 gb.corba.so.0 || { rm -f gb.corba.so.0 && ln -s gb.corba.so.0.0.0 gb.corba.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.corba.so.0.0.0 gb.corba.so || { rm -f gb.corba.so && ln -s gb.corba.so.0.0.0 gb.corba.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.corba.lai /usr/local/lib/gambas2/gb.corba.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas2 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas2 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.corba/src' Creating the information files for gb.corba component... gb.corba make[4]: Leaving directory `/usr/src/gambas2-2.23.1/gb.corba/src' make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.corba/src' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.corba/src' make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.corba' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.corba' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.corba' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.corba' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/gb.corba' Making install in gb.pdf make[1]: Entering directory `/usr/src/gambas2-2.23.1/gb.pdf' Making install in src make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.pdf/src' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.pdf/src' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.pdf.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.pdf.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.pdf.la '/usr/local/lib/gambas2' libtool: install: /usr/bin/install -c .libs/gb.pdf.so.0.0.0 /usr/local/lib/gambas2/gb.pdf.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.pdf.so.0.0.0 gb.pdf.so.0 || { rm -f gb.pdf.so.0 && ln -s gb.pdf.so.0.0.0 gb.pdf.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.pdf.so.0.0.0 gb.pdf.so || { rm -f gb.pdf.so && ln -s gb.pdf.so.0.0.0 gb.pdf.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.pdf.lai /usr/local/lib/gambas2/gb.pdf.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas2 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas2 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.pdf/src' Creating the information files for gb.pdf component... gb.pdf make[4]: Leaving directory `/usr/src/gambas2-2.23.1/gb.pdf/src' make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.pdf/src' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.pdf/src' make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.pdf' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.pdf' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.pdf' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.pdf' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/gb.pdf' Making install in gb.gtk.svg make[1]: Entering directory `/usr/src/gambas2-2.23.1/gb.gtk.svg' Making install in src make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.gtk.svg/src' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.gtk.svg/src' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.gtk.svg.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.gtk.svg.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.gtk.svg.la '/usr/local/lib/gambas2' libtool: install: /usr/bin/install -c .libs/gb.gtk.svg.so.0.0.0 /usr/local/lib/gambas2/gb.gtk.svg.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.gtk.svg.so.0.0.0 gb.gtk.svg.so.0 || { rm -f gb.gtk.svg.so.0 && ln -s gb.gtk.svg.so.0.0.0 gb.gtk.svg.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.gtk.svg.so.0.0.0 gb.gtk.svg.so || { rm -f gb.gtk.svg.so && ln -s gb.gtk.svg.so.0.0.0 gb.gtk.svg.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.gtk.svg.lai /usr/local/lib/gambas2/gb.gtk.svg.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas2 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas2 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.gtk.svg/src' Creating the information files for gb.gtk.svg component... gb.gtk.svg make[4]: Leaving directory `/usr/src/gambas2-2.23.1/gb.gtk.svg/src' make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.gtk.svg/src' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.gtk.svg/src' make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.gtk.svg' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.gtk.svg' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.gtk.svg' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.gtk.svg' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/gb.gtk.svg' Making install in gb.image make[1]: Entering directory `/usr/src/gambas2-2.23.1/gb.image' Making install in src make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.image/src' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.image/src' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.image.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.image.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.image.la '/usr/local/lib/gambas2' libtool: install: /usr/bin/install -c .libs/gb.image.so.0.0.0 /usr/local/lib/gambas2/gb.image.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.image.so.0.0.0 gb.image.so.0 || { rm -f gb.image.so.0 && ln -s gb.image.so.0.0.0 gb.image.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.image.so.0.0.0 gb.image.so || { rm -f gb.image.so && ln -s gb.image.so.0.0.0 gb.image.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.image.lai /usr/local/lib/gambas2/gb.image.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas2 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas2 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.image/src' Creating the information files for gb.image component... gb.image make[4]: Leaving directory `/usr/src/gambas2-2.23.1/gb.image/src' make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.image/src' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.image/src' make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.image' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.image' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.image' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.image' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/gb.image' Making install in gb.desktop make[1]: Entering directory `/usr/src/gambas2-2.23.1/gb.desktop' Making install in src make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.desktop/src' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.desktop/src' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.desktop.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /usr/bin/install -c -m 644 gb.desktop.component '/usr/local/lib/gambas2' test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /bin/bash ../libtool --mode=install /usr/bin/install -c gb.desktop.la '/usr/local/lib/gambas2' libtool: install: /usr/bin/install -c .libs/gb.desktop.so.0.0.0 /usr/local/lib/gambas2/gb.desktop.so.0.0.0 libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so.0 || { rm -f gb.desktop.so.0 && ln -s gb.desktop.so.0.0.0 gb.desktop.so.0; }; }) libtool: install: (cd /usr/local/lib/gambas2 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so || { rm -f gb.desktop.so && ln -s gb.desktop.so.0.0.0 gb.desktop.so; }; }) libtool: install: /usr/bin/install -c .libs/gb.desktop.lai /usr/local/lib/gambas2/gb.desktop.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib/gambas2 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas2 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.desktop/src' Compiling the gb.desktop project... gb.desktop OK Creating the information files for gb.desktop component... gb.desktop make[4]: Leaving directory `/usr/src/gambas2-2.23.1/gb.desktop/src' make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.desktop/src' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.desktop/src' make[2]: Entering directory `/usr/src/gambas2-2.23.1/gb.desktop' make[3]: Entering directory `/usr/src/gambas2-2.23.1/gb.desktop' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/gb.desktop' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/gb.desktop' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/gb.desktop' Making install in comp make[1]: Entering directory `/usr/src/gambas2-2.23.1/comp' make[2]: Entering directory `/usr/src/gambas2-2.23.1/comp' Running the informer again because of dependencies between information files gb.gtk.ext gb.qt.opengl gb.xml.xslt gb.db.sqlite3 gb.gui gb.settings gb.compress gb.debug gb.crypt gb.qt gb.form gb.gtk.svg gb.db.odbc gb.corba gb.web gb.image gb.qt.kde gb.xml.rpc gb.eval gb.gtk gb.form.dialog gb.xml gb.db.sqlite2 gb.vb gb.desktop gb.form.mdi gb.db.mysql gb.db.form gb.net.smtp gb.chart gb.opengl gb.db.postgresql gb.net.curl gb.v4l gb.pcre gb.db gb.net gb.qt.kde.html gb.sdl gb.db.firebird gb.info gb gb.report gb.qt.ext gb.pdf gb.sdl.sound gb.option Installing the components... Compiling gb.settings... OK Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... OK Installing gb.form... Compiling gb.form.dialog... OK Installing gb.form.dialog... Compiling gb.form.mdi... OK Installing gb.form.mdi... Compiling gb.db.form... OK Installing gb.db.form... Compiling gb.web... OK Installing gb.web... Compiling gb.report... OK Installing gb.report... Compiling gb.chart... OK Installing gb.chart... make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/gambas2-2.23.1/comp' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/comp' Making install in app make[1]: Entering directory `/usr/src/gambas2-2.23.1/app' make[2]: Entering directory `/usr/src/gambas2-2.23.1/app' Installing the development environment... Compiling gambas2... OK Compiling gambas2-database-manager... OK Compiling gbs2... OK ln: creating symbolic link `/usr/local/bin/gambas2': File exists Installing the scripter... ln: creating symbolic link `/usr/local/bin/gbs2': File exists ln: creating symbolic link `/usr/local/bin/gbw2': File exists Registering Gambas script mimetype Registering Gambas server page mimetype make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/gambas2-2.23.1/app' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/app' Making install in help make[1]: Entering directory `/usr/src/gambas2-2.23.1/help' Making install in help make[2]: Entering directory `/usr/src/gambas2-2.23.1/help/help' make[3]: Entering directory `/usr/src/gambas2-2.23.1/help/help' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/help/help' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/help/help' make[2]: Entering directory `/usr/src/gambas2-2.23.1/help' make[3]: Entering directory `/usr/src/gambas2-2.23.1/help' Installing the gambas help files... make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/src/gambas2-2.23.1/help' make[2]: Leaving directory `/usr/src/gambas2-2.23.1/help' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/help' Making install in examples make[1]: Entering directory `/usr/src/gambas2-2.23.1/examples' make[2]: Entering directory `/usr/src/gambas2-2.23.1/examples' Installing the gambas examples... Compiling Automation/KateBrowser/... OK Compiling Automation/Scripting/... OK Compiling Basic/Blights/... OK Compiling Basic/Collection/... OK Compiling Basic/DragNDrop/... OK Compiling Basic/Object/... OK Compiling Basic/Timer/... OK Compiling Control/Embedder/... OK Compiling Control/HighlightEditor/... OK Compiling Control/TextEdit/... OK Compiling Control/TreeView/... OK Compiling Database/Database/... OK Compiling Database/DataReportExample/... OK Compiling Database/PictureDatabase/... OK Compiling Drawing/AnalogWatch/... OK Compiling Drawing/Barcode/... OK Compiling Drawing/Chart/... OK Compiling Drawing/Clock/... OK Compiling Drawing/Gravity/... OK Compiling Drawing/ImageViewer/... OK Compiling Drawing/OnScreenDisplay/... OK Compiling Drawing/Sensor/... OK Compiling Games/BeastScroll/... OK Compiling Games/Concent/... OK Compiling Games/DeepSpace/... OK Compiling Games/GameOfLife/... OK Compiling Games/RobotFindsKitten/... OK Compiling Games/Snake/... OK Compiling Games/Solitaire/... OK Compiling Misc/Console/... OK Compiling Misc/Evaluator/... OK Compiling Misc/Explorer/... OK Compiling Misc/Notepad/... OK Compiling Misc/PDFViewer/... OK Compiling Networking/ClientSocket/... OK Compiling Networking/DnsClient/... OK Compiling Networking/HTTPGet/... OK Compiling Networking/HTTPPost/... OK Compiling Networking/SerialPort/... OK Compiling Networking/ServerSocket/... OK Compiling Networking/UDPServerClient/... OK Compiling Networking/WebBrowser/... OK Compiling OpenGL/3DWebCam/... OK Compiling OpenGL/GambasGears/... OK Compiling OpenGL/PDFPresentation/... OK Compiling Printing/Printing/... OK Compiling Sound/CDPlayer/... OK Compiling Sound/MusicPlayer/... OK Compiling Video/MoviePlayer/... OK Compiling Video/MyWebCam/... OK make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/gambas2-2.23.1/examples' make[1]: Leaving directory `/usr/src/gambas2-2.23.1/examples' make[1]: Entering directory `/usr/src/gambas2-2.23.1' make[2]: Entering directory `/usr/src/gambas2-2.23.1' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/gambas2-2.23.1' make[1]: Leaving directory `/usr/src/gambas2-2.23.1' robi at ...2660...:/usr/src/gambas2-2.23.1$ gambas2 ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file robi at ...2660...:/usr/src/gambas2-2.23.1$ From gambas at ...2524... Thu Sep 1 10:56:00 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 01 Sep 2011 08:56:00 +0000 Subject: [Gambas-user] Issue 95 in gambas: FOR-optimization not correct In-Reply-To: <2-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> <0-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Comment #3 on issue 95 by emil.len... at ...626...: FOR-optimization not correct http://code.google.com/p/gambas/issues/detail?id=95 Critical: The current solution is not correct for floating point numbers. In this case: Dim i As Float For i = -10.0 To -1.0 Step 1.0 Print i Next The loop terminates before it is entered. That is because, if you take the *(long long int*)&a_double - *(long long int*)&another_double, the result will be reversed if both are negative, as floating point numbers are not twos complement. From gambas at ...1... Thu Sep 1 13:37:16 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 1 Sep 2011 13:37:16 +0200 Subject: [Gambas-user] install gambas In-Reply-To: <1314855160.26698.27.camel@...2425...> References: <1314855160.26698.27.camel@...2425...> Message-ID: <201109011337.16571.gambas@...1...> > Hello, > > I have a very basic problem: I cannot install the latest version of > gambas2. > It works from the ubuntu software center but it is not up-to-date (and I > don't know if it's possible to update the version installed from the > rep). > > I already had problem to install from source code before but I was not > sure if it's my computer / OS who has problem. > So now I installed a brand new ubuntu 10.04 32 bit (all updates done) > and I followed these instructions: > http://gambasdoc.org/help/install/ubuntu?show > > Until "make" everything seem to be ok but at the end of "make install" I > got the attached result. gambas2 don't start. > > Can anyone help ? > > BTW, is there any .deb package to install gambas on an easier way for > those who are not used by compiling from source. It would be great for > me. > > Thx, Robi Did you remove the binary packages of the old version? -- Beno?t Minisini From gambas at ...2524... Thu Sep 1 13:47:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 01 Sep 2011 11:47:36 +0000 Subject: [Gambas-user] Issue 95 in gambas: FOR-optimization not correct In-Reply-To: <3-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> <0-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Comment #4 on issue 95 by benoit.m... at ...626...: FOR-optimization not correct http://code.google.com/p/gambas/issues/detail?id=95 Fixed in revision #4072. From rterry at ...1946... Thu Sep 1 14:02:23 2011 From: rterry at ...1946... (richard terry) Date: Thu, 1 Sep 2011 22:02:23 +1000 Subject: [Gambas-user] Creating a new form instance in code + and Case Message-ID: <201109012202.23572.rterry@...1946...> Hi benoit. In the code tree one of my forms, for arguments sake, my work cover form is called FWorkCover (note the capitalisation) I've a subroutine, pivotal to my clinical program where I add new instances of forms onto my main workspace workspace, using this sort of logic: Public sub Add_Page(pagename as string) Dim Form_Workcover as FWorkcover (note the C not capitalised as I'd typed it wrongly) Select case pagename case "workcover" Form_Workcover = new FWorkcover (some_container) End select end ie when i did the original Dim Form_Workcover I'd typed Fworkcover (no caps for the C in workcover, instead of FWorkCover which is the name in the code tree. This didn't seem to affect anything at all. In another part of my program I had occasion to test which form was active on the workspace tab, and, according to its name, activate or inactivate buttons for new, print,preview etc like as follows. I'd assumed, that as in the code tree the form was FWorkCover, that was the name I'd be testing for (not realising that I'd not capped the 'C' of FWorkcover in the other routine. For Each page In WorkspaceEditor.Windows If page = WorkspaceEditor.ActiveWindow Then For Each hctrl In page.VBoxEditor.Children If hctrl Is Form Then Select Case hctrl.Name Case "FWorkCover" 'activate appropriate buttons etc End Select I kept on getting inconsistant results and when I checked it out, I noticed that hctrl.name here was "FWorkcover" when i went back and corrected the original name, it was then FWorkCover and worked. So the question is how come it is possible to create a new instance of a form, when not using the exactly capitalised name fo the original form? Hope that makes sense Regards Richard From bbruen at ...2308... Thu Sep 1 14:38:20 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Thu, 01 Sep 2011 22:08:20 +0930 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <201108311634.59218.gambas@...1...> References: <201108310156.48262.gambas@...1...> <201108310313.02390.gambas@...1...> <1314758686.28789.67.camel@...2657...> <201108311634.59218.gambas@...1...> Message-ID: <1314880700.28789.118.camel@...2657...> On Wed, 2011-08-31 at 16:34 +0200, Beno?t Minisini wrote: > This is one the design rule of Gambas : a method has to always return > the same > datatype, otherwise it must return a Variant. Beno?t, I think you may have missed the point of my, albeit "contrived", sample. On the other hand I may not have made it explicit enough to let you answer my fears. I'll try again: Emil gave an example where the result "a" of a loop construct was one of two closely related object references: "For i = 1 To 2 If i = 1 Then a = New Class1 Else If i = 2 Then a = New Class2 End If Print a.F() + i 'Will print the address in memory for "2" + i the second time Next" There is a hidden artefact in this code in that a (an object reference) is of a particular inheritance sequence. However, because both Class1 and Class2 both have explicit and in the case of Class2 an overridding implementation of an attribute called F the interpreter has optimised that "any a.F will be an integer", which is not true in the case where a happens to be a Class2. In resolving this issue you have spent a great deal of time and effort on introducing a "rule" that says, to me at least, "once F is declared in Class1, then any specialised class of Class1 "must" declare F of the same type,scope and signature as was declared in Class1. Please don't react yet. Just consider the replacement of the original code with this: "For i = 1 To infinty Select case Int(Random(i:infinty)) Case 1 a = new Class1 Case 2 a = new Class2 Case 3 a = Object.New("gorilla") .... Case 23165 a= Object.New("blue_whale") Case 23166 a=Object.New("bowl_of_petunias") .... Case 10^2134532 and falling a=Object.New("trillian") .... Case infinity-1 a=Object.New("marvin") Case else ' I'll leave THAT for the readers homework End Select ' Now magically and against all levels of improbability all of these classes just "happen" to have a method ' called "F". Strange, but not altogether improbable. Print a.F() + i 'Will succeed, somehow in some format, or not Next" the original code, at an improbability level of 2^3498423432 just happened to include a situation where on the first invocation Int(Random(i:infinty)) was 1 and even more strangely on the second invocation Int(Random(i:infinty)) just happened to be 2. Many pundits and philosophers have argued over exceedingly long lunches as to how this came about, but at the end of the day disagreed. Which only gave them the opportunity to have lunch again sometime, preferably before or at the end of the Universe. OK, enough of my reminiscing of Doug Anderson. For i =1 to 2 a="something" PRINT a.F() Next Just because a happens to have a method called F, there should be no RULE that a.F(), which happened to be an integer the first time is an integer the second. It could be a small furry beast from Alpha Centauri. Emil's example, in my opinion, has sent you off on a search for an explicit answer to the highly improbable sequence Int(Random(i:infinty)={1,2} where Class1 and Class2 are related through inheritance. His "a" is an object reference which just happens to have a method "F" which returns an integer. Your optimization rule seems to be "any a.F() is an integer". I hope that through the above ramble, I have illustrated that such a supposition cannot be considered to be true in all instances. Putting that another way, any expression that includes a reference to an object cannot EXPECT that an instance within a (subsequent) iteration IS going to return a SPECIFIC TYPE based on prior experience. Benoit, I am Australian and therefore have a poor level of expressing myself objectively and unemotively, in the English language. Please Consider. regards Bruce From gambas at ...1... Thu Sep 1 14:49:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 1 Sep 2011 14:49:33 +0200 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <1314880700.28789.118.camel@...2657...> References: <201108310156.48262.gambas@...1...> <201108311634.59218.gambas@...1...> <1314880700.28789.118.camel@...2657...> Message-ID: <201109011449.33152.gambas@...1...> > On Wed, 2011-08-31 at 16:34 +0200, Beno?t Minisini wrote: > > This is one the design rule of Gambas : a method has to always return > > the same > > datatype, otherwise it must return a Variant. > > Beno?t, > I think you may have missed the point of my, albeit "contrived", sample. > On the other hand I may not have made it explicit enough to let you > answer my fears. I'll try again: > Emil gave an example where the result "a" of a loop construct was one of > two closely related object references: > "For i = 1 To 2 > > If i = 1 Then > a = New Class1 > Else If i = 2 Then > a = New Class2 > End If > Print a.F() + i 'Will print the address in memory for "2" + i the second > time Next" > > There is a hidden artefact in this code in that a (an object reference) > is of a particular inheritance sequence. However, because both Class1 > and Class2 both have explicit and in the case of Class2 an overridding > implementation of an attribute called F the interpreter has optimised > that "any a.F will be an integer", which is not true in the case where a > happens to be a Class2. > > In resolving this issue you have spent a great deal of time and effort > on introducing a "rule" that says, to me at least, "once F is declared > in Class1, then any specialised class of Class1 "must" declare F of the > same type,scope and signature as was declared in Class1. Please don't > react yet. > > Just consider the replacement of the original code with this: > > "For i = 1 To infinty > > Select case Int(Random(i:infinty)) > Case 1 > a = new Class1 > Case 2 > a = new Class2 > Case 3 > a = Object.New("gorilla") > .... > Case 23165 > a= Object.New("blue_whale") > Case 23166 > a=Object.New("bowl_of_petunias") > .... > Case 10^2134532 and falling > a=Object.New("trillian") > .... > Case infinity-1 > a=Object.New("marvin") > Case else > ' I'll leave THAT for the readers homework > End Select > ' Now magically and against all levels of improbability all of these > classes just "happen" to have a method ' called "F". Strange, but not > altogether improbable. > > Print a.F() + i 'Will succeed, somehow in some format, or not > > Next" > > > the original code, at an improbability level of 2^3498423432 just > happened to include a situation where on the first invocation > Int(Random(i:infinty)) was 1 and even more strangely on the second > invocation Int(Random(i:infinty)) just happened to be 2. Many pundits > and philosophers have argued over exceedingly long lunches as to how > this came about, but at the end of the day disagreed. Which only gave > them the opportunity to have lunch again sometime, preferably before or > at the end of the Universe. > > OK, enough of my reminiscing of Doug Anderson. > > > For i =1 to 2 > a="something" > PRINT a.F() > Next > > Just because a happens to have a method called F, there should be no > RULE that a.F(), which happened to be an integer the first time is an > integer the second. It could be a small furry beast from Alpha > Centauri. > > Emil's example, in my opinion, has sent you off on a search for an > explicit answer to the highly improbable sequence > Int(Random(i:infinty)={1,2} where Class1 and Class2 are related through > inheritance. His "a" is an object reference which just happens to have > a method "F" which returns an integer. Your optimization rule seems to > be "any a.F() is an integer". I hope that through the above ramble, I > have illustrated that such a supposition cannot be considered to be true > in all instances. > > Putting that another way, any expression that includes a reference to an > object cannot EXPECT that an instance within a (subsequent) iteration IS > going to return a SPECIFIC TYPE based on prior experience. > > Benoit, I am Australian and therefore have a poor level of expressing > myself objectively and unemotively, in the English language. > > Please Consider. > > regards > Bruce Maybe I should have talked about the difference between explicit and anonymous object references. If a variable has a well-defined class datatype, then it is an "explict" object reference. Then, that reference can point at an object of its class or any inherited class only, and the inheritance constraints I described apply. If a variable is "Object" or "Variant", then it is an "anonymous" object reference. In that case, the variable can be any object of any class. then the interpreter makes no optimization, and inheritance constraints do not apply. (But things are slower then!). So, if the same method return different datatypes between all your inherited classes, then you must use the Variant or Object datatype instead of a specific class. And I didn't know that Australian characteristic. :-) Regards, -- Beno?t Minisini From john.aaron.rose at ...1601... Thu Sep 1 20:11:15 2011 From: john.aaron.rose at ...1601... (John Rose) Date: Thu, 1 Sep 2011 19:11:15 +0100 Subject: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump) Message-ID: Clicking a particular button in one of my Gambas apps causes a PERL script to run (using an EXEC statement). This PERL script then calls another program (rtmpdump). The Gambas app hangs with no error displayed. Unfortunately, I am unable to prevent the call of rtmpdump as I am not the author of the PERL script (not to mention that it is very complicated (33.4kB of script lines) and I do not know PERL (and have no intention of learning it). Is this concept possible in a Gambas app? If so, how do I make it work? Regards, John (+44) 1902 331266 (+44) 7894 211434 From sourceforge-raindog2 at ...94... Thu Sep 1 20:47:47 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 1 Sep 2011 14:47:47 -0400 Subject: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump) In-Reply-To: References: Message-ID: <201109011447.47429.sourceforge-raindog2@...94...> On Thursday 01 September 2011 14:11, John Rose wrote: > very complicated (33.4kB of script lines) and I do not know PERL (and > have no intention of learning it). Is this concept possible in a Gambas > app? If so, how do I make it work? Calling rtmpdump from Gambas should work more or less the same way as it does in Perl (maybe better because you can do input and output on the same file handle without complicated select() or fork() stuff), but if you're asking whether you can reimplement a long and involved Perl script in Gambas without knowing both languages, I think you're out of luck. If you can get TubeMaster++ to work, it's a much better Linux RTMP/RTMPE dumper than rtmpdump, but not command-line and not scriptable. Rob From gambas at ...1... Thu Sep 1 23:34:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 1 Sep 2011 23:34:52 +0200 Subject: [Gambas-user] Creating a new form instance in code + and Case In-Reply-To: <201109012202.23572.rterry@...1946...> References: <201109012202.23572.rterry@...1946...> Message-ID: <201109012334.52352.gambas@...1...> > Hi benoit. > > In the code tree one of my forms, for arguments sake, my work cover form is > called FWorkCover (note the capitalisation) > > > I've a subroutine, pivotal to my clinical program where I add new instances > of forms onto my main workspace workspace, using this sort of logic: > > > Public sub Add_Page(pagename as string) > > > Dim Form_Workcover as FWorkcover (note the C not capitalised as I'd typed > it wrongly) > > Select case pagename > > case "workcover" > Form_Workcover = new FWorkcover (some_container) > > End select > > end > > ie when i did the original Dim Form_Workcover I'd typed Fworkcover (no caps > for the C in workcover, instead of FWorkCover which is the name in the > code tree. This didn't seem to affect anything at all. > > > In another part of my program I had occasion to test which form was active > on the workspace tab, and, according to its name, activate or inactivate > buttons for new, print,preview etc like as follows. I'd assumed, that as > in the code tree the form was FWorkCover, that was the name I'd be testing > for (not realising that I'd not capped the 'C' of FWorkcover in the other > routine. > > For Each page In WorkspaceEditor.Windows > If page = WorkspaceEditor.ActiveWindow Then > For Each hctrl In page.VBoxEditor.Children > If hctrl Is Form Then > > Select Case hctrl.Name > Case "FWorkCover" > 'activate appropriate buttons etc > End Select > > I kept on getting inconsistant results and when I checked it out, I noticed > that hctrl.name here was "FWorkcover" > > when i went back and corrected the original name, it was then FWorkCover > and worked. > > So the question is how come it is possible to create a new instance of a > form, when not using the exactly capitalised name fo the original form? > > Hope that makes sense > > Regards > > Richard > The first time a class name is encountered by the compiler specifies which name the class will have in the interpreter, and how the interpreter will memorize it. And for Form objects, it implies the value of the Name property. So the interpreter will take the name from the first loaded class that uses "FWorkCover" or any case variant. I guess this is "FWorkcover" in your case. Then this name will be used during the entire life of the program. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Sep 2 01:01:01 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 01 Sep 2011 23:01:01 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 Message-ID: <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 96 by adamn... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 1) I have a new gambas3 project called ABC (say), I want to import a form from an old unrelated gambas2 project. When I do this the form's .class and .form file are imported, but the form is unreadable by the IDE. It looks as though it is just copying the files without converting them. Occasionally this also creashes the IDE. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: somewhere recent (on another machine) Operating system: Linux Distribution: Gentoo based Architecture: x86 / x86_64 / ARM GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. See Description From gambas at ...2524... Fri Sep 2 01:17:14 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 01 Sep 2011 23:17:14 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 In-Reply-To: <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 96 by benoit.m... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 Please provide the full project you are importing, otherwise I cannot do anything. From rterry at ...1946... Fri Sep 2 00:52:08 2011 From: rterry at ...1946... (richard terry) Date: Fri, 2 Sep 2011 08:52:08 +1000 Subject: [Gambas-user] Creating a new form instance in code + and Case In-Reply-To: <201109012334.52352.gambas@...1...> References: <201109012202.23572.rterry@...1946...> <201109012334.52352.gambas@...1...> Message-ID: <201109020852.08961.rterry@...1946...> On Friday 02 September 2011 07:34:52 Beno?t Minisini wrote: > > Hi benoit. > > > > In the code tree one of my forms, for arguments sake, my work cover form > > is called FWorkCover (note the capitalisation) > > > > > > I've a subroutine, pivotal to my clinical program where I add new > > instances of forms onto my main workspace workspace, using this sort of > > logic: > > > > > > Public sub Add_Page(pagename as string) > > > > > > Dim Form_Workcover as FWorkcover (note the C not capitalised as I'd > > typed it wrongly) > > > > Select case pagename > > > > case "workcover" > > Form_Workcover = new FWorkcover (some_container) > > > > End select > > > > end > > > > ie when i did the original Dim Form_Workcover I'd typed Fworkcover (no > > caps for the C in workcover, instead of FWorkCover which is the name in > > the code tree. This didn't seem to affect anything at all. > > > > > > In another part of my program I had occasion to test which form was > > active on the workspace tab, and, according to its name, activate or > > inactivate buttons for new, print,preview etc like as follows. I'd > > assumed, that as in the code tree the form was FWorkCover, that was the > > name I'd be testing for (not realising that I'd not capped the 'C' of > > FWorkcover in the other routine. > > > > For Each page In WorkspaceEditor.Windows > > If page = WorkspaceEditor.ActiveWindow Then > > For Each hctrl In page.VBoxEditor.Children > > If hctrl Is Form Then > > > > Select Case hctrl.Name > > Case "FWorkCover" > > 'activate appropriate buttons etc > > End Select > > > > I kept on getting inconsistant results and when I checked it out, I > > noticed that hctrl.name here was "FWorkcover" > > > > when i went back and corrected the original name, it was then FWorkCover > > and worked. > > > > So the question is how come it is possible to create a new instance of a > > form, when not using the exactly capitalised name fo the original form? > > > > Hope that makes sense > > > > Regards > > > > Richard > > The first time a class name is encountered by the compiler specifies which > name the class will have in the interpreter, and how the interpreter will > memorize it. > > And for Form objects, it implies the value of the Name property. > > So the interpreter will take the name from the first loaded class that uses > "FWorkCover" or any case variant. I guess this is "FWorkcover" in your > case. Then this name will be used during the entire life of the program. Yes, but wouldn't it be better to enforce case on class names? richard > > Regards, > From gambas at ...2524... Fri Sep 2 02:06:14 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Sep 2011 00:06:14 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 In-Reply-To: <1-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Comment #2 on issue 96 by adamn... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 OK. 1) unpack both. 2) open issue96 project in gambas3 IDE 3) right click on Sources and select New/Form 4) select the Existing tab 5) navigate to the "anygb2form" directory 6) select FMain form and click OK The form is loaded into the project but is unuseable. See attached screen shot. Attachments: issue96gambas2-0.0.1.tar.gz 7.6 KB issue96gambas3-0.0.1.tar.gz 4.5 KB issue96.png 51.2 KB From john.aaron.rose at ...1601... Fri Sep 2 08:43:46 2011 From: john.aaron.rose at ...1601... (John Rose) Date: Fri, 02 Sep 2011 07:43:46 +0100 Subject: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump) Message-ID: <1314945826.17436.16.camel@...2661...> Rob, Thanks for your reply. I've obviously expressed my problem badly, so I'll try again. Please do not take my explanation below as patronising: I'm just trying to ensure that enough detail is given to enable problem resolution. When a particular button (named Record) is clicked within the application it calls a routine containing a statement of the form: EXEC ["get_iplayer", "--force", "--type=" & sType] TO sOutput where sType & sOutput are both strings with sType having the value "TV". This is equivalent to "get_iplayer --force --type="TV" run in a Gnome Terminal except that the output to StdOut is placed in sOutput. This command works fine in a Gnome Terminal or even with >Output.txt keyed in at the end of the command so that the output goes to a file Output.txt. get_iplayer is a very complex PERL script which I do NOT want to amend. get_iplayer involves calling rtmpdump. rtmpdump can be executed in a Gnome Terminal. I do not even know what language rtmpdump is written in. As I previously said, the Gambas app hangs on the EXEC statement. And I think that it's due to the app executing get_iplayer which calls rtmpdump. I wonder if there's a problem with this in Gambas or if it's due to some other reason? This app used to work until a month ago. I'm using Gambas version 2.22 from a Ubuntu ppa (on Launchpad) created by madnessmike. I'm using Ubuntu 10.04 fully up to date. -- Regards, John +44 1902 331266 +44 7894 211434 From ihaywood at ...1979... Fri Sep 2 09:16:04 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 2 Sep 2011 17:16:04 +1000 Subject: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump) In-Reply-To: <1314945826.17436.16.camel@...2661...> References: <1314945826.17436.16.camel@...2661...> Message-ID: On Fri, Sep 2, 2011 at 4:43 PM, John Rose wrote: > get_iplayer is a very complex PERL script which I do NOT want to amend. > get_iplayer involves calling rtmpdump. rtmpdump can be executed in a > Gnome Terminal. I do not even know what language rtmpdump is written in. I wonder if the script is expecting user input such as a password, this would cause it to freeze from within gambas as no input will ever come Another possiblity is it produces heaps and heaps of output that can't fit into the sOutput buffer, again programme becomes blocked because it can't write. Do you need sOutput? what happens if you run without this, just a plain EXEC? In this case you might see errors or something come up in the gambas terminal window which goves you a clue as to what's going on. the other thing to do (which you may have already done of course) is to run the exact command that gambas EXEC does in a gnome terminal, in the same current directory as your gambas programme would be in, and see what happens. Ian From ea7dfh at ...2382... Fri Sep 2 20:32:39 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Fri, 02 Sep 2011 20:32:39 +0200 Subject: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump) In-Reply-To: <1314945826.17436.16.camel@...2661...> References: <1314945826.17436.16.camel@...2661...> Message-ID: <4E612147.2010901@...2382...> El 02/09/11 08:43, John Rose escribi?: > it calls a routine containing a statement of the form: > EXEC ["get_iplayer", "--force", "--type=" & sType] TO sOutput > where sType & sOutput are both strings with sType having the value "TV". > This is equivalent to "get_iplayer --force --type="TV" run in a Gnome > Terminal Well, as I've seen, there is a subtle difference in the way you wrote the command in gambas: there are missing quotes in the --type argument, compared as you have wrote it in the console: get_iplayer --force --type="TV" so the gambas part should read: EXEC ["get_iplayer", "--force", "--type=\"" & sType & "\""] TO sOutput or the other way: arg = Subst("--type=\"&1\"", sType) EXEC ["get_iplayer", "--force", arg] TO sOutput You might escape the quotes in gambas, in case your script is expecting a quoted string. Hope this helps, regards -- Jesus, EA7DFH From sourceforge-raindog2 at ...94... Fri Sep 2 21:45:53 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 2 Sep 2011 15:45:53 -0400 Subject: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump) In-Reply-To: <1314945826.17436.16.camel@...2661...> References: <1314945826.17436.16.camel@...2661...> Message-ID: <201109021545.53400.sourceforge-raindog2@...94...> Before I begin, I should tell you that I tried to duplicate your problem but got the list of programmes in my Gambas app just fine using your EXEC command, adjusted to find the copy of get_iplayer I just downloaded. I created a form with a button and a textarea and wrote this in its class: PUBLIC SUB Button1_Click() DIM sType AS String DIM sOutput AS String stype = "TV" EXEC ["/home/schmoe/build/get_iplayer-2.80/get_iplayer", "--force", "-- type=" & sType] TO sOutput TextArea1.Text = sOutput END Please excuse the word wrapping above and below. The result of clicking the button was the textarea being filled with the following: get_iplayer v2.80, Copyright (C) 2008-2010 Phil Lewis This program comes with ABSOLUTELY NO WARRANTY; for details use -- warranty. This is free software, and you are welcome to redistribute it under certain conditions; use --conditions for details. Matches: 1: 1911 Centenary Lecture - 1. David Lloyd George, BBC Parliament, Factual,History,Politics,TV, default 2: 1911 Centenary Lecture - 3. Nancy Astor, BBC Parliament, Factual,History,Politics,TV, default 3: 1911 Centenary Lecture - 5. Aneurin Bevan, BBC Parliament, Factual,History,Politics,TV, default [about 792 more lines...] So what I have to say here is just theoretical. I'm using get_iplayer 2.80, Gambas 2.16. On Friday 02 September 2011 02:43, John Rose wrote: > EXEC ["get_iplayer", "--force", "--type=" & sType] TO sOutput > where sType & sOutput are both strings with sType having the value "TV". > This is equivalent to "get_iplayer --force --type="TV" run in a Gnome > Terminal except that the output to StdOut is placed in sOutput. This > command works fine in a Gnome Terminal or even with >Output.txt keyed in > at the end of the command so that the output goes to a file Output.txt. Successfully redirecting the output may not be quite the same thing as EXEC to a variable in Gambas, as outlined below. > get_iplayer is a very complex PERL script which I do NOT want to amend. > get_iplayer involves calling rtmpdump. rtmpdump can be executed in a > Gnome Terminal. I do not even know what language rtmpdump is written in. I'm familiar with rtmpdump, having compiled it myself a few times. It's just C, but in this case that's probably not relevant. To expand upon something Ian said in his reply (it's probably not specifically a password prompt issue since you're able to redirect stdout successfully), it may be that your version of rtmpdump and/or get_iplayer tries to open a TTY (interactive terminal). I didn't see anything obvious in the current version of get_iplayer or my copy of rtmpdump that should do that, but it's almost 10,000 lines of code and the symptoms fit. It would work fine in a terminal, even if you redirect input and output, but not when run from another process outside of a terminal. I ran into the same problem years ago when writing a Gambas program for a client that needed to ssh somewhere. Benoit has made a lot of improvements since then. Try something like this: EXEC ["get_iplayer", "--force", "--type=" & sType] FOR INPUT OUTPUT ... PUBLIC SUB Process_Read DIM tmp as String READ #LAST, tmp, lof(LAST) sOutput = sOutput & tmp ' sOuput END INPUT OUTPUT simulates a tty when executing the process. I have no way of testing this since it works for me as is, and since it's been a few years since I did a Gambas project I'm not even sure that Read event syntax is right. But I hope it's enough to point you in a helpful direction. Rob From gambas at ...2524... Sat Sep 3 02:10:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Sep 2011 00:10:39 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 In-Reply-To: <2-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 96 by benoit.m... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 OK, sorry, I didn't understood. When importing a form that way, the converter is not called. I will see if I can do something to fix that.. From gambas at ...2524... Sat Sep 3 02:30:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Sep 2011 00:30:54 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 In-Reply-To: <3-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Comment #4 on issue 96 by adamn... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 In the back of my mind there is a feeling that the same could apply to manually imported classes and modules as well. I have not had a problem though. (Aside: this arose from a gambas2 project that will not convert to gambas3. It had something to do with images in the source directory. I have not had time to look into that yet, but I'll see if I can isolate the exact issue next week and raise a report for it.) Bruce From robert1juhasz at ...626... Sat Sep 3 07:31:46 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Sat, 03 Sep 2011 07:31:46 +0200 Subject: [Gambas-user] install gambas In-Reply-To: <201109011337.16571.gambas@...1...> References: <1314855160.26698.27.camel@...2425...> <201109011337.16571.gambas@...1...> Message-ID: <1315027906.26698.109.camel@...2425...> Hello Benoit, Can you tell me how to remove the binary packages? What I installed from the software center I also removed with the software center. Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] install gambas Date: Thu, 1 Sep 2011 13:37:16 +0200 > Hello, > > I have a very basic problem: I cannot install the latest version of > gambas2. > It works from the ubuntu software center but it is not up-to-date (and I > don't know if it's possible to update the version installed from the > rep). > > I already had problem to install from source code before but I was not > sure if it's my computer / OS who has problem. > So now I installed a brand new ubuntu 10.04 32 bit (all updates done) > and I followed these instructions: > http://gambasdoc.org/help/install/ubuntu?show > > Until "make" everything seem to be ok but at the end of "make install" I > got the attached result. gambas2 don't start. > > Can anyone help ? > > BTW, is there any .deb package to install gambas on an easier way for > those who are not used by compiling from source. It would be great for > me. > > Thx, Robi Did you remove the binary packages of the old version? From gambas at ...1... Sat Sep 3 19:16:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 3 Sep 2011 19:16:30 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3 Message-ID: <201109031916.30768.gambas@...1...> Hi, Here is the release of Gambas 3 third release candidate. Everything about it is on the Release Notes inside the wiki, with a link on the web site. As soon as nobody find any big design bugs like in that version (but I know you are cruel!), I will make a "final" release candidate that will become the true final release of Gambas 3.0! An important point: I don't receive much information about how Gambas is packaged on your system. I need that to update the web site and to be sure that Gambas 3 packages will be available when the final version is released. So, please report!!! Best regards, -- Beno?t Minisini From gambas at ...1... Sat Sep 3 19:18:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 3 Sep 2011 19:18:48 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: <201109031916.30768.gambas@...1...> References: <201109031916.30768.gambas@...1...> Message-ID: <201109031918.48857.gambas@...1...> > Hi, > > Here is the release of Gambas 3 third release candidate. > > Everything about it is on the Release Notes inside the wiki, with a link on > the web site. > > As soon as nobody find any big design bugs like in that version (but I know > you are cruel!), I will make a "final" release candidate that will become > the true final release of Gambas 3.0! > > An important point: I don't receive much information about how Gambas is > packaged on your system. I need that to update the web site and to be sure > that Gambas 3 packages will be available when the final version is > released. > > So, please report!!! > > Best regards, Here is the wiki page to edit for information about Gambas binary packages. http://gambasdoc.org/help/doc/package -- Beno?t Minisini From gambas at ...2524... Sat Sep 3 20:49:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Sep 2011 18:49:38 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <5-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Comment #6 on issue 78 by emil.len... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 Assume Class2 inherits Class1. Is this OK:? In Class1: Public func(a As Integer) As Integer End In Class2: Private func(a As Float) As Float End When running func() on either a Class1, or a Class2, only the method in Class1 will be invoked, because it is public and the other is private. Or, easier said: Are private symbols affected by inheritance rules at all? From gambas at ...2524... Sat Sep 3 21:14:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Sep 2011 19:14:47 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <6-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Comment #7 on issue 78 by benoit.m... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 It works, because private symbols are *really* private, the interpreter does not see them at all (the debugger excepted), and so the inheritance mechanism does not as well. And please: this is a bug tracker, so I prefer you ask such questions on the mailing-list. Thanks in advance! :-) From demosthenesk at ...626... Sun Sep 4 00:01:51 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 04 Sep 2011 01:01:51 +0300 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: <201109031918.48857.gambas@...1...> References: <201109031916.30768.gambas@...1...> <201109031918.48857.gambas@...1...> Message-ID: <1315087311.5825.7.camel@...2494...> Great news!!! Personaly so far i downloaded the svn and made deb files with checkinstall. So i could install and uninstall easily. On Sat, 2011-09-03 at 19:18 +0200, Beno?t Minisini wrote: > > Hi, > > > > Here is the release of Gambas 3 third release candidate. > > > > Everything about it is on the Release Notes inside the wiki, with a link on > > the web site. > > > > As soon as nobody find any big design bugs like in that version (but I know > > you are cruel!), I will make a "final" release candidate that will become > > the true final release of Gambas 3.0! > > > > An important point: I don't receive much information about how Gambas is > > packaged on your system. I need that to update the web site and to be sure > > that Gambas 3 packages will be available when the final version is > > released. > > > > So, please report!!! > > > > Best regards, > > Here is the wiki page to edit for information about Gambas binary packages. > > http://gambasdoc.org/help/doc/package > -- Regards, Demosthenes From bbruen at ...2308... Sun Sep 4 03:55:24 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 04 Sep 2011 11:25:24 +0930 Subject: [Gambas-user] Gambas2 to gambas3 conversion - some problems Message-ID: <1315101324.21788.40.camel@...2657...> Hi Beno?t and everyone, I have some misgivings about how gambas3 is converting or "porting" gambas2 projects. I'm talking about the way it is renaming the old project and creating a new project with the same name. This can have a result of breaking stable "production" gambas2 applications at worst and annoying one or more developers at least. >From least to worst, the following scenarios arise: 1) the converter leaves the backup project ("MyProject~") in a locked state. When the developer goes to open the backup project in gambas2 they receive the "This project seems to be already opened" message. Colin Confused, the developer, who has multiple instances of gambas2 running is annoyed because he has to make a decision as to whether it really is open somewhere (maybe even by another developer on another machine) or whether they should take the risk and open it anyway. I was going to raise a bug about this one, but some more thinking and testing led to the following. Analysis - "annoying". 2) the converter ignores the existence of the .lock file in the gambas2 project and converts it anyway, thus if the project is open in gambas2 somewhere the following could occur. Steve Stable, the support programmer for gambas2 has MyProject open in gambas2 and has spent several hours finding and fixing an obscure issue and is just about to compile and test. Fanny Frantic, the new junior programmer, opens MyProject in gambas3 and says yes to the convert question. Gambas3 then renames (I presume) MyProject to MyProject~ and copies and converts the code. Steve Stable then presses F5 whereupon gambas2 crashes and all his work is lost (because the file system has been altered and his project now points to the wrong place). Analysis - could result in Steve causing serious physical harm to Fanny, therefore "dangerous". 3) converting existing gambas2 components will break the gambas2 user projects that use them. Bruce Ballistic (senior programmer, head chef and dog washer) who is normally very careful to copy his gambas2 projects to a new gambas3 directory structure, accidentally opens the wrong project. He then makes major changes to the component and recompiles it. The existing ("production") gambas2 applications will now fail as the symbolic links in .local/lib and .local/share point to the gambas3 component. Analysis - could result in Bruce muttering "If I ever get my hands on that Minisini character, ...", therefore "extremely dangerous". 4) I think (I haven't tested this) that there could be issues with .config/gambas as well??? In my opinion the converter should insist on the user entering a new name for the gambas3 project and leave the gambas2 structures alone, but at the very least it should be alerting the user in the strongest possible way as to which project it is going to convert and observe any existing .lock files. Please consider. regards Bruce "where's my shotgun" Ballistic Steve "don't call me" Stable, Fanny "why are you hitting me Steve" Frantic, and Colin "??????" Confused From john.aaron.rose at ...1601... Sun Sep 4 12:14:08 2011 From: john.aaron.rose at ...1601... (John Rose) Date: Sun, 4 Sep 2011 11:14:08 +0100 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: <1315087311.5825.7.camel@...2494...> References: <201109031916.30768.gambas@...1...> <201109031918.48857.gambas@...1...> <1315087311.5825.7.camel@...2494...> Message-ID: Demosthenes, Could you make the .deb available to Gambas devs? I'm happy to put it on my Dropbox site as a Public file if you email it to me. Regards, John (+44) 1902 331266 (+44) 7894 211434 On 3 September 2011 23:01, Demosthenes Koptsis wrote: > Great news!!! > > Personaly so far i downloaded the svn and made deb files with > checkinstall. So i could install and uninstall easily. > > > On Sat, 2011-09-03 at 19:18 +0200, Beno?t Minisini wrote: > > > Hi, > > > > > > Here is the release of Gambas 3 third release candidate. > > > > > > Everything about it is on the Release Notes inside the wiki, with a > link on > > > the web site. > > > > > > As soon as nobody find any big design bugs like in that version (but I > know > > > you are cruel!), I will make a "final" release candidate that will > become > > > the true final release of Gambas 3.0! > > > > > > An important point: I don't receive much information about how Gambas > is > > > packaged on your system. I need that to update the web site and to be > sure > > > that Gambas 3 packages will be available when the final version is > > > released. > > > > > > So, please report!!! > > > > > > Best regards, > > > > Here is the wiki page to edit for information about Gambas binary > packages. > > > > http://gambasdoc.org/help/doc/package > > > > -- > Regards, > Demosthenes > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Sun Sep 4 12:18:14 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 04 Sep 2011 12:18:14 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: <201109031918.48857.gambas@...1...> References: <201109031916.30768.gambas@...1...> <201109031918.48857.gambas@...1...> Message-ID: <1863718.HWM8unf8vf@...2592...> Le Samedi 3 Septembre 2011 19:18:48, Beno?t Minisini a ?crit : > > Hi, > > > > Here is the release of Gambas 3 third release candidate. > > > > Everything about it is on the Release Notes inside the wiki, with a link > > on the web site. > > > > As soon as nobody find any big design bugs like in that version (but I > > know you are cruel!), I will make a "final" release candidate that will > > become the true final release of Gambas 3.0! > > > > An important point: I don't receive much information about how Gambas is > > packaged on your system. I need that to update the web site and to be > > sure that Gambas 3 packages will be available when the final version is > > released. > > > > So, please report!!! > > > > Best regards, > > Here is the wiki page to edit for information about Gambas binary packages. > > http://gambasdoc.org/help/doc/package Archlinux packages pushed to the repos ++ From ron at ...1740... Sun Sep 4 12:35:46 2011 From: ron at ...1740... (Ron) Date: Sun, 4 Sep 2011 12:35:46 +0200 Subject: [Gambas-user] Gambas2 to gambas3 conversion - some problems In-Reply-To: <1315101324.21788.40.camel@...2657...> References: <1315101324.21788.40.camel@...2657...> Message-ID: Yep, here too,conversion from gambas2 to 3 is broken. Running r4082 It starts converting the project and then halts with this error: Cannot open project file: /home/ron/domotiga/convert/DomotiGaServer File or directory does not exist Project.Open.511 No wonder, because if you look at the last directory name it's renamed to DomotiGaServer~ Regards, Ron_2nd. 2011/9/4 Bruce Bruen > Hi Beno?t and everyone, > > I have some misgivings about how gambas3 is converting or "porting" > gambas2 projects. I'm talking about the way it is renaming the old > project and creating a new project with the same name. This can have a > result of breaking stable "production" gambas2 applications at worst and > annoying one or more developers at least. > > From least to worst, the following scenarios arise: > > 1) the converter leaves the backup project ("MyProject~") in a locked > state. When the developer goes to open the backup project in gambas2 > they receive the "This project seems to be already opened" message. > Colin Confused, the developer, who has multiple instances of gambas2 > running is annoyed because he has to make a decision as to whether it > really is open somewhere (maybe even by another developer on another > machine) or whether they should take the risk and open it anyway. I was > going to raise a bug about this one, but some more thinking and testing > led to the following. Analysis - "annoying". > > 2) the converter ignores the existence of the .lock file in the gambas2 > project and converts it anyway, thus if the project is open in gambas2 > somewhere the following could occur. Steve Stable, the support > programmer for gambas2 has MyProject open in gambas2 and has spent > several hours finding and fixing an obscure issue and is just about to > compile and test. Fanny Frantic, the new junior programmer, opens > MyProject in gambas3 and says yes to the convert question. Gambas3 then > renames (I presume) MyProject to MyProject~ and copies and converts the > code. Steve Stable then presses F5 whereupon gambas2 crashes and all > his work is lost (because the file system has been altered and his > project now points to the wrong place). Analysis - could result in Steve > causing serious physical harm to Fanny, therefore "dangerous". > > 3) converting existing gambas2 components will break the gambas2 user > projects that use them. Bruce Ballistic (senior programmer, head chef > and dog washer) who is normally very careful to copy his gambas2 > projects to a new gambas3 directory structure, accidentally opens the > wrong project. He then makes major changes to the component and > recompiles it. The existing ("production") gambas2 applications will > now fail as the symbolic links in .local/lib and .local/share point to > the gambas3 component. Analysis - could result in Bruce muttering "If I > ever get my hands on that Minisini character, ...", therefore "extremely > dangerous". > > 4) I think (I haven't tested this) that there could be issues > with .config/gambas as well??? > > In my opinion the converter should insist on the user entering a new > name for the gambas3 project and leave the gambas2 structures alone, but > at the very least it should be alerting the user in the strongest > possible way as to which project it is going to convert and observe any > existing .lock files. > > Please consider. > > regards > Bruce "where's my shotgun" Ballistic > Steve "don't call me" Stable, > Fanny "why are you hitting me Steve" Frantic, and > Colin "??????" Confused > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From karl.reinl at ...9... Sun Sep 4 12:36:13 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 04 Sep 2011 12:36:13 +0200 Subject: [Gambas-user] back and foreground on buttons don't work (gb2.99.3 rev 4080 ) (qt only) Message-ID: <1315132573.7192.7.camel@...40...> Salut, this is still true on Gambas3=2.99.3 rev 4080 Using back and foreground on all buttons (qt only) don't still work correctly. Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.33.7-server-2mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.2" [System] CPUArchitecture=i686 TotalRam=511092 kB Desktop=KDE4 [Gambas] Gambas1=Not Installed Gambas2=2.23.1 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.3 Gambas3Path=/usr/local/bin/gbx3 From gambas at ...1... Sun Sep 4 12:40:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 12:40:50 +0200 Subject: [Gambas-user] =?utf-8?q?back_and_foreground_on_buttons_don=27t_wo?= =?utf-8?q?rk_=28gb2=2E99=2E3_rev_4080_=29__=28qt_only=29?= In-Reply-To: <1315132573.7192.7.camel@...40...> References: <1315132573.7192.7.camel@...40...> Message-ID: <201109041240.50216.gambas@...1...> > Salut, > > this is still true on Gambas3=2.99.3 rev 4080 > Using back and foreground on all buttons (qt only) don't still work > correctly. > Apparently it depends on the widget theme you are using. It works well with Oxygen for example. -- Beno?t Minisini From rolf.frogs at ...221... Sun Sep 4 12:45:49 2011 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sun, 4 Sep 2011 12:45:49 +0200 Subject: [Gambas-user] Compiling Gambas3 in Debian squeeze Message-ID: <201109041245.49812.rolf.frogs@...221...> Hi, I need some help to compile Gambas3 in Debian squeeze. The problem seems to be the compile environment especial the auto-tools. I installed from the debian repository: autoconf 2.67-2 automake1.9 libtool 2.2.6b-2 The reconf-all-command generates the follwoing few lines before it exits. libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install aclocal: unrecognized option -- `--install' Try `aclocal --help' for more information. autoreconf: aclocal failed with exit status: 1 What to do? Please help. Fine regards Rolf From ron at ...1740... Sun Sep 4 12:52:45 2011 From: ron at ...1740... (Ron) Date: Sun, 4 Sep 2011 12:52:45 +0200 Subject: [Gambas-user] Cannot open gambas3 project with r4082 Message-ID: If I want to open the gambas3 project with r4082 (to correct bug with converting project) I cannot open it. So I have a chicken and egg problem here. I have this with every default project. Cannot open project file : /home/ron/install/gambas/trunk/app/src/gambas3 File or directory does not exist VersionControl.CheckPaths.215 I also see this: RC3 is certainly not release ready, at least not in my environment: [System] OperatingSystem=Linux KernelRelease=2.6.38-11-generic Architecture=x86_64 Memory=3787836 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" Desktop=Gnome [Gambas 2] Version=2.23.1 Path=/usr/local/bin/gbx2 [Gambas 3] Version=2.99.3 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.2 GTK+=libgtk-x11-2.0.so.0.2400.4 Regards, Ron_2nd From ron at ...1740... Sun Sep 4 12:55:46 2011 From: ron at ...1740... (Ron) Date: Sun, 4 Sep 2011 12:55:46 +0200 Subject: [Gambas-user] Cannot open gambas3 project with r4082 In-Reply-To: References: Message-ID: I also see this: FileView.RefreshView.267: FileView.RefreshView.229: File or directory does not exist 2011/9/4 Ron > If I want to open the gambas3 project with r4082 (to correct bug with > converting project) I cannot open it. > So I have a chicken and egg problem here. > I have this with every default project. > > Cannot open project file : > /home/ron/install/gambas/trunk/app/src/gambas3 > > File or directory does not exist > VersionControl.CheckPaths.215 > > I also see this: > > RC3 is certainly not release ready, at least not in my environment: > > [System] > OperatingSystem=Linux > KernelRelease=2.6.38-11-generic > Architecture=x86_64 > Memory=3787836 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 11.04" > Desktop=Gnome > > [Gambas 2] > Version=2.23.1 > Path=/usr/local/bin/gbx2 > > [Gambas 3] > Version=2.99.3 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.2 > GTK+=libgtk-x11-2.0.so.0.2400.4 > > Regards, > Ron_2nd > From gambas at ...1... Sun Sep 4 13:11:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 13:11:34 +0200 Subject: [Gambas-user] Cannot open gambas3 project with r4082 In-Reply-To: References: Message-ID: <201109041311.34143.gambas@...1...> > If I want to open the gambas3 project with r4082 (to correct bug with > converting project) I cannot open it. > So I have a chicken and egg problem here. > I have this with every default project. > > Cannot open project file : > /home/ron/install/gambas/trunk/app/src/gambas3 > > File or directory does not exist > VersionControl.CheckPaths.215 > > I also see this: > > RC3 is certainly not release ready, at least not in my environment: > > [System] > OperatingSystem=Linux > KernelRelease=2.6.38-11-generic > Architecture=x86_64 > Memory=3787836 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 11.04" > Desktop=Gnome > > [Gambas 2] > Version=2.23.1 > Path=/usr/local/bin/gbx2 > > [Gambas 3] > Version=2.99.3 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.2 > GTK+=libgtk-x11-2.0.so.0.2400.4 > > Regards, > Ron_2nd There is something strange on your system, because that error on 'VersionControl.CheckPaths.215' and 'Project.OpenFile.511' are when running the Shell command, as if the interpreter couldn't find the "sh" shell. Which should be theoritically impossible... -- Beno?t Minisini From ron at ...1740... Sun Sep 4 13:17:50 2011 From: ron at ...1740... (Ron) Date: Sun, 4 Sep 2011 13:17:50 +0200 Subject: [Gambas-user] Cannot open gambas3 project with r4082 In-Reply-To: <201109041311.34143.gambas@...1...> References: <201109041311.34143.gambas@...1...> Message-ID: I'm running gambas2 on it for some time without any problems. I'm using it via NX but that never caused any problems. ron at ...2662...:~$ which sh /bin/sh Dunno... 2011/9/4 Beno?t Minisini > > If I want to open the gambas3 project with r4082 (to correct bug with > > converting project) I cannot open it. > > So I have a chicken and egg problem here. > > I have this with every default project. > > > > Cannot open project file : > > /home/ron/install/gambas/trunk/app/src/gambas3 > > > > File or directory does not exist > > VersionControl.CheckPaths.215 > > > > I also see this: > > > > RC3 is certainly not release ready, at least not in my environment: > > > > [System] > > OperatingSystem=Linux > > KernelRelease=2.6.38-11-generic > > Architecture=x86_64 > > Memory=3787836 kB > > DistributionVendor=Ubuntu > > DistributionRelease="Ubuntu 11.04" > > Desktop=Gnome > > > > [Gambas 2] > > Version=2.23.1 > > Path=/usr/local/bin/gbx2 > > > > [Gambas 3] > > Version=2.99.3 > > Path=/usr/local/bin/gbx3 > > > > [Libraries] > > Qt4=libQtCore.so.4.7.2 > > GTK+=libgtk-x11-2.0.so.0.2400.4 > > > > Regards, > > Ron_2nd > > There is something strange on your system, because that error on > 'VersionControl.CheckPaths.215' and 'Project.OpenFile.511' are when running > the Shell command, as if the interpreter couldn't find the "sh" shell. > Which > should be theoritically impossible... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sun Sep 4 13:24:54 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 04 Sep 2011 14:24:54 +0300 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: References: <201109031916.30768.gambas@...1...> <201109031918.48857.gambas@...1...> <1315087311.5825.7.camel@...2494...> Message-ID: <1315135494.4131.8.camel@...2494...> Ok, sure i can. There are some differences although with checkinstall and official deb files from Ubuntu or other release. checkinstall makes only one deb with all the files all together, when official debs have many files to install. Another point is that when i tried to enter to checkinstall the names of required packages had some problems to make the deb file. So i have left this info empty. After that deb file was created well. i will try to fill it again and make a deb file with checkinstall with all info which required. And i will inform you again with the progress. The system which i make the deb file is Ubuntu 10.04.2 LTS On Sun, 2011-09-04 at 11:14 +0100, John Rose wrote: > Demosthenes, > > Could you make the .deb available to Gambas devs? I'm happy to put it on my > Dropbox site as a Public file if you email it to me. > > Regards, > John > (+44) 1902 331266 > (+44) 7894 211434 > > > > On 3 September 2011 23:01, Demosthenes Koptsis wrote: > > > Great news!!! > > > > Personaly so far i downloaded the svn and made deb files with > > checkinstall. So i could install and uninstall easily. > > > > > > On Sat, 2011-09-03 at 19:18 +0200, Beno?t Minisini wrote: > > > > Hi, > > > > > > > > Here is the release of Gambas 3 third release candidate. > > > > > > > > Everything about it is on the Release Notes inside the wiki, with a > > link on > > > > the web site. > > > > > > > > As soon as nobody find any big design bugs like in that version (but I > > know > > > > you are cruel!), I will make a "final" release candidate that will > > become > > > > the true final release of Gambas 3.0! > > > > > > > > An important point: I don't receive much information about how Gambas > > is > > > > packaged on your system. I need that to update the web site and to be > > sure > > > > that Gambas 3 packages will be available when the final version is > > > > released. > > > > > > > > So, please report!!! > > > > > > > > Best regards, > > > > > > Here is the wiki page to edit for information about Gambas binary > > packages. > > > > > > http://gambasdoc.org/help/doc/package > > > > > > > -- > > Regards, > > Demosthenes > > > > > > > > ------------------------------------------------------------------------------ > > Special Offer -- Download ArcSight Logger for FREE! > > Finally, a world-class log management solution at an even better > > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > > download Logger. Secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsisghtdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From Karl.Reinl at ...2345... Sun Sep 4 13:47:12 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 04 Sep 2011 13:47:12 +0200 Subject: [Gambas-user] back and foreground on buttons don't work (gb2.99.3 rev 4080 ) (qt only) In-Reply-To: <201109041240.50216.gambas@...1...> References: <1315132573.7192.7.camel@...40...> <201109041240.50216.gambas@...1...> Message-ID: <1315136832.7192.10.camel@...40...> Am Sonntag, den 04.09.2011, 12:40 +0200 schrieb Beno?t Minisini: > > Salut, > > > > this is still true on Gambas3=2.99.3 rev 4080 > > Using back and foreground on all buttons (qt only) don't still work > > correctly. > > > > Apparently it depends on the widget theme you are using. It works well with > Oxygen for example. > Salut, you right, with Oxygen looks pretty good, and does what it should do. But I use laOra-Kde Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.33.7-server-2mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.2" [System] CPUArchitecture=i686 TotalRam=511092 kB Desktop=KDE4 From wally at ...2037... Sun Sep 4 14:57:18 2011 From: wally at ...2037... (wally) Date: Sun, 4 Sep 2011 14:57:18 +0200 Subject: [Gambas-user] using QwtPlot widget in Gambas3 ? Message-ID: <201109041457.19025.wally@...2037...> Can i use QwtPlot widget with Gambas 3 ? If yes, how to get the widget on a form ? From matteo.pasotti at ...626... Sun Sep 4 16:25:42 2011 From: matteo.pasotti at ...626... (Matteo Pasotti) Date: Sun, 04 Sep 2011 16:25:42 +0200 Subject: [Gambas-user] gambas3 gb.mysql package Message-ID: <4E638A66.8090601@...626...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'm packaging gambas3 (svn version 4082) for Mageia. Reading the documentation at http://gambasdoc.org/help/howto/package#t8 I see that there's no mention to gambas3-gb-mysql package. What am I supposed to do? Do I need to package the gb.mysql component or do I have to ignore it? Am I missing some information? Regards, - -- Matteo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mageia - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOY4piAAoJED3LowjDDWbNObUH/31V5xkFtx2b6ZTjsE6mXpjn hU7yGYD+7h1ge46/cyfJZv/CqL6zl/zcoZg9D0QTwwjXK/s0tmrObym+xjSp7/sh hyYHP8gCV5LbbTrRCsninZ++BD7xvDKUJB+1SDX6ua3rXlmP7JSi2Dl7x6CKoAmc wk1OaTRuIni63zlaAgi8TWGsC+MDoDRhS7/fHxaatsh7W1p5QCCvWjHrrFLVFTmY 0NAkpYO5XbCTgFsti01tYWwQnNCbKDLOho+IUAphfg53ivEnKKZgYv8dcwVmJpCl CxjqN8U9YkBlVztENZvqtN9QB4RE64y+66qclXLcP371wvlxmJm+A+i+BnNNMd8= =VQXN -----END PGP SIGNATURE----- From sotema at ...626... Sun Sep 4 17:13:09 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 04 Sep 2011 17:13:09 +0200 Subject: [Gambas-user] Action.Register new parameter Message-ID: <1315149189.26719.0.camel@...2476...> Hi to all, i can't understand what the new 'old as string' parameter means in Action.Register. I have a class in which i define all actions used for Menus and ToolButtons, than each action is linked to appropriate controls at application start-up. I use this to give the user the chance to select different themes. ' Gambas class file 'Classe : psTheme.Class 'Autore : Emanuele Sottocorno 'Email : sotema at ...626... 'Descrizione: Menus and buttons actions Public Const ACTION_DEALER_OPEN As String = "DEALER_OPEN" Public Const ACTION_DEALER_CLOSE As String = "DEALER_CLOSE" Public Const ACTION_DEALER_EDIT As String = "DEALER_EDIT" Public Const ACTION_USER_ADD As String = "USER_ADD" Public Const ACTION_USER_EDIT As String = "USER_EDIT" ... ... Static Public Sub ActionConfigure() With Action[ACTION_DEALER_OPEN] .Picture = psTheme.GetIcon(psTheme.DEALER_OPEN) End With With Action[ACTION_DEALER_EDIT] .Picture = psTheme.GetIcon(psTheme.DEALER_EDIT) End With With Action[ACTION_USER_ADD] .Picture = psTheme.GetIcon(psTheme.USER_ADD) End With With Action[ACTION_USER_EDIT] .Picture = psTheme.GetIcon(psTheme.USER_EDIT) End With ... End Ok, the right picture is asoociated to controls. Since rev 4072 i used the following to register the actions: ' Gambas class file 'Classe : Fmain.Class 'Autore : Emanuele Sottocorno 'Email : sotema at ...626... 'Descrizione: Application Main Window Event MoveMenu(obj As Object) Event MainMenu(obj As Object) Event FormEvent(hForm As Form) Public Sub _new() Me.Icon = pneusoft.GetIconFile(psTheme.PNEUSOFT_ICON_64) ' Configure Actions for Menu an buttons ' Menu Actions: Action.Register(mnuAziendaApri,psAction.ACTION_DEALER_OPEN) Action.Register(mnuAziendaModifica,psAction.ACTION_DEALER_EDIT) Action.Register(mnuUtenzaAdd,psAction.ACTION_USER_ADD) Action.Register(mnuUtenzaEdit, psAction.ACTION_USER_EDIT) ... End Now, starting with rev 7073 this becomes invalid due the 'old as string' parameter . Modifing the lines like (no action associated to objects in the IDE): Public Sub _new() Me.Icon = pneusoft.GetIconFile(psTheme.PNEUSOFT_ICON_64) ' Configure Actions for Menu an buttons ' Menu Actions: Action.Register(mnuAziendaApri, "", psAction.ACTION_DEALER_OPEN) Action.Register(mnuAziendaModifica, "", psAction.ACTION_DEALER_EDIT) Action.Register(mnuUtenzaAdd, "", psAction.ACTION_USER_ADD) Action.Register(mnuUtenzaEdit, "", psAction.ACTION_USER_EDIT) ... End Public Sub menuevent_click() Raise MainMenu(Last) End when i click an object it raise a NULL string action. I mean that looking at LAST there is a void string in Action Field property. Executing the cycle: Dim o As Object For Each o In Action[psAction.ACTION_USER_EDIT].Controls Debug o.Name Next the right object name are printed in console. How can i do that now? Thanks, Emanuele From gambas at ...1... Sun Sep 4 17:20:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 17:20:58 +0200 Subject: [Gambas-user] Action.Register new parameter In-Reply-To: <1315149189.26719.0.camel@...2476...> References: <1315149189.26719.0.camel@...2476...> Message-ID: <201109041720.58191.gambas@...1...> > Hi to all, > i can't understand what the new 'old as string' parameter means in > Action.Register. I have a class in which i define all actions used for > Menus and ToolButtons, than each action is linked to appropriate > controls at application start-up. I use this to give the user the chance > to select different themes. > > ' Gambas class file > > 'Classe : psTheme.Class > 'Autore : Emanuele Sottocorno > 'Email : sotema at ...626... > 'Descrizione: Menus and buttons actions > > > Public Const ACTION_DEALER_OPEN As String = "DEALER_OPEN" > Public Const ACTION_DEALER_CLOSE As String = "DEALER_CLOSE" > Public Const ACTION_DEALER_EDIT As String = "DEALER_EDIT" > Public Const ACTION_USER_ADD As String = "USER_ADD" > Public Const ACTION_USER_EDIT As String = "USER_EDIT" > ... > ... > Static Public Sub ActionConfigure() > With Action[ACTION_DEALER_OPEN] > .Picture = psTheme.GetIcon(psTheme.DEALER_OPEN) > End With > With Action[ACTION_DEALER_EDIT] > .Picture = psTheme.GetIcon(psTheme.DEALER_EDIT) > End With > With Action[ACTION_USER_ADD] > .Picture = psTheme.GetIcon(psTheme.USER_ADD) > End With > With Action[ACTION_USER_EDIT] > .Picture = psTheme.GetIcon(psTheme.USER_EDIT) > End With > ... > End > Ok, the right picture is asoociated to controls. > > Since rev 4072 i used the following to register the actions: > ' Gambas class file > > 'Classe : Fmain.Class > 'Autore : Emanuele Sottocorno > 'Email : sotema at ...626... > 'Descrizione: Application Main Window > > > Event MoveMenu(obj As Object) > Event MainMenu(obj As Object) > Event FormEvent(hForm As Form) > > > > Public Sub _new() > Me.Icon = pneusoft.GetIconFile(psTheme.PNEUSOFT_ICON_64) > ' Configure Actions for Menu an buttons > ' Menu Actions: > Action.Register(mnuAziendaApri,psAction.ACTION_DEALER_OPEN) > Action.Register(mnuAziendaModifica,psAction.ACTION_DEALER_EDIT) > Action.Register(mnuUtenzaAdd,psAction.ACTION_USER_ADD) > Action.Register(mnuUtenzaEdit, psAction.ACTION_USER_EDIT) > ... > End > > Now, starting with rev 7073 this becomes invalid due the 'old as string' > parameter . > > Modifing the lines like (no action associated to objects in the IDE): > > Public Sub _new() > Me.Icon = pneusoft.GetIconFile(psTheme.PNEUSOFT_ICON_64) > ' Configure Actions for Menu an buttons > ' Menu Actions: > Action.Register(mnuAziendaApri, "", psAction.ACTION_DEALER_OPEN) > Action.Register(mnuAziendaModifica, "", psAction.ACTION_DEALER_EDIT) > Action.Register(mnuUtenzaAdd, "", psAction.ACTION_USER_ADD) > Action.Register(mnuUtenzaEdit, "", psAction.ACTION_USER_EDIT) > ... > End > > > Public Sub menuevent_click() > Raise MainMenu(Last) > End > > when i click an object it raise a NULL string action. I mean that > looking at LAST there is a void string in Action Field property. > > Executing the cycle: > Dim o As Object > For Each o In Action[psAction.ACTION_USER_EDIT].Controls > Debug o.Name > Next > > the right object name are printed in console. > > How can i do that now? > Thanks, > Emanuele > Sorry, Action.Register() was never intended to be used directly. It even has been renamed recently to become an hidden symbol. To associate an action with a control, you have to define the Action property of that control. For example, instead of: Action.Register(mnuAziendaApri, "", psAction.ACTION_DEALER_OPEN) You must do: mnuAziendaApri.Action = psAction.ACTION_DEALER_OPEN And to know when an action is activated, you must define the "Action_Activate" event handler in your form. That event handler takes one argument which is the action that has been activated. And actions should be defined directly in the IDE. That way, you have automatic toolbar configuration (if you use the gb.form.mdi component). Regards, -- Beno?t Minisini From gambas at ...1... Sun Sep 4 17:21:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 17:21:22 +0200 Subject: [Gambas-user] Compiling Gambas3 in Debian squeeze In-Reply-To: <201109041245.49812.rolf.frogs@...221...> References: <201109041245.49812.rolf.frogs@...221...> Message-ID: <201109041721.22481.gambas@...1...> > Hi, > > I need some help to compile Gambas3 in Debian squeeze. > > The problem seems to be the compile environment especial the auto-tools. I > installed from the debian repository: > autoconf 2.67-2 > automake1.9 > libtool 2.2.6b-2 > automake seems too old (I have 1.11 version there). -- Beno?t Minisini From demosthenesk at ...626... Sun Sep 4 17:38:22 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 04 Sep 2011 18:38:22 +0300 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: References: <201109031916.30768.gambas@...1...> <201109031918.48857.gambas@...1...> <1315087311.5825.7.camel@...2494...> Message-ID: <1315150703.20057.3.camel@...2493...> ok i did it for you, the link is http://db.tt/zxdULVV i will copy new files soon. Feel free to redistribute them if you like. Contains deb files i386/amd64 for ubuntu 10.04 LTS. All debs created by checkinstall. Note checkinstall has a bug and does not allow to fill Required packages field while creation. Make sure you have all necessary packages according http://gambasdoc.org/help/install/ubuntu?view On Sun, 2011-09-04 at 11:14 +0100, John Rose wrote: > Demosthenes, > > Could you make the .deb available to Gambas devs? I'm happy to put it on my > Dropbox site as a Public file if you email it to me. > > Regards, > John > (+44) 1902 331266 > (+44) 7894 211434 > > > > On 3 September 2011 23:01, Demosthenes Koptsis wrote: > > > Great news!!! > > > > Personaly so far i downloaded the svn and made deb files with > > checkinstall. So i could install and uninstall easily. > > > > > > On Sat, 2011-09-03 at 19:18 +0200, Beno?t Minisini wrote: > > > > Hi, > > > > > > > > Here is the release of Gambas 3 third release candidate. > > > > > > > > Everything about it is on the Release Notes inside the wiki, with a > > link on > > > > the web site. > > > > > > > > As soon as nobody find any big design bugs like in that version (but I > > know > > > > you are cruel!), I will make a "final" release candidate that will > > become > > > > the true final release of Gambas 3.0! > > > > > > > > An important point: I don't receive much information about how Gambas > > is > > > > packaged on your system. I need that to update the web site and to be > > sure > > > > that Gambas 3 packages will be available when the final version is > > > > released. > > > > > > > > So, please report!!! > > > > > > > > Best regards, > > > > > > Here is the wiki page to edit for information about Gambas binary > > packages. > > > > > > http://gambasdoc.org/help/doc/package > > > > > > > -- > > Regards, > > Demosthenes > > > > > > > > ------------------------------------------------------------------------------ > > Special Offer -- Download ArcSight Logger for FREE! > > Finally, a world-class log management solution at an even better > > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > > download Logger. Secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsisghtdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From karl.reinl at ...9... Sun Sep 4 17:40:11 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 04 Sep 2011 17:40:11 +0200 Subject: [Gambas-user] Error message a bit confusing Message-ID: <1315150811.7192.32.camel@...40...> Salut, Gambas2.99.3 rev 4080 I wasted my afternoon to find an "Unexpected Error", which came by using rev 4080. In fact, I found a sub with same name in a class and in the class which Inherits the first one. A clearer Error message would be nice here. Thanks -- Amicalement Charlie From gambas at ...1... Sun Sep 4 17:44:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 17:44:09 +0200 Subject: [Gambas-user] Error message a bit confusing In-Reply-To: <1315150811.7192.32.camel@...40...> References: <1315150811.7192.32.camel@...40...> Message-ID: <201109041744.09207.gambas@...1...> > Salut, > > Gambas2.99.3 rev 4080 > > I wasted my afternoon to find an "Unexpected Error", which came by > using rev 4080. > In fact, I found a sub with same name in a class and in the class which > Inherits the first one. > > A clearer Error message would be nice here. > > Thanks Please provide the project, because there is no "Unexpected Error" message in the interpreter or the compiler. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Sun Sep 4 18:34:02 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 04 Sep 2011 18:34:02 +0200 Subject: [Gambas-user] Error message a bit confusing In-Reply-To: <201109041744.09207.gambas@...1...> References: <1315150811.7192.32.camel@...40...> <201109041744.09207.gambas@...1...> Message-ID: <1315154042.7192.48.camel@...40...> Am Sonntag, den 04.09.2011, 17:44 +0200 schrieb Beno?t Minisini: > > Salut, > > > > Gambas2.99.3 rev 4080 > > > > I wasted my afternoon to find an "Unexpected Error", which came by > > using rev 4080. > > In fact, I found a sub with same name in a class and in the class which > > Inherits the first one. > > > > A clearer Error message would be nice here. > > > > Thanks > > Please provide the project, because there is no "Unexpected Error" message in > the interpreter or the compiler. > > Regards, > http://dbreport.svn.sourceforge.net/viewvc/dbreport/DBReport3/trunk/ use Download GNU tarball Then in the IDE 1. compile obfuscation 2. enter in DBReportViewer3 > obfuscation as library 3. compile DBReportViewer3 3. all mod*.class and cls*.class are links to DBReportDesigner3/.src 4. enter in DBReportDesigner3 > DBReportViewer3 and obfuscation as library 5. open FToolbox.class and goto ~line 284 => t = New ("CTOOL" & cmd) and set a BreakPoint the error occurs on that line 6. F5 by that way in Dialog to add files or links to the projekt, we need to switch on hidden files. From sotema at ...626... Sun Sep 4 18:53:37 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 04 Sep 2011 18:53:37 +0200 Subject: [Gambas-user] Action.Register new parameter In-Reply-To: References: Message-ID: <1315155217.2822.7.camel@...2516...> Thanks for the reply, should take 20 minutes to get it work. Emanuele > > Hi to all, > > i can't understand what the new 'old as string' parameter means in > > Action.Register. I have a class in which i define all actions used for > > Menus and ToolButtons, than each action is linked to appropriate > > controls at application start-up. I use this to give the user the chance > > to select different themes. > > > > ' Gambas class file > > > > 'Classe : psTheme.Class > > 'Autore : Emanuele Sottocorno > > 'Email : sotema at ...626... > > 'Descrizione: Menus and buttons actions > > > > > > Public Const ACTION_DEALER_OPEN As String = "DEALER_OPEN" > > Public Const ACTION_DEALER_CLOSE As String = "DEALER_CLOSE" > > Public Const ACTION_DEALER_EDIT As String = "DEALER_EDIT" > > Public Const ACTION_USER_ADD As String = "USER_ADD" > > Public Const ACTION_USER_EDIT As String = "USER_EDIT" > > ... > > ... > > Static Public Sub ActionConfigure() > > With Action[ACTION_DEALER_OPEN] > > .Picture = psTheme.GetIcon(psTheme.DEALER_OPEN) > > End With > > With Action[ACTION_DEALER_EDIT] > > .Picture = psTheme.GetIcon(psTheme.DEALER_EDIT) > > End With > > With Action[ACTION_USER_ADD] > > .Picture = psTheme.GetIcon(psTheme.USER_ADD) > > End With > > With Action[ACTION_USER_EDIT] > > .Picture = psTheme.GetIcon(psTheme.USER_EDIT) > > End With > > ... > > End > > Ok, the right picture is asoociated to controls. > > > > Since rev 4072 i used the following to register the actions: > > ' Gambas class file > > > > 'Classe : Fmain.Class > > 'Autore : Emanuele Sottocorno > > 'Email : sotema at ...626... > > 'Descrizione: Application Main Window > > > > > > Event MoveMenu(obj As Object) > > Event MainMenu(obj As Object) > > Event FormEvent(hForm As Form) > > > > > > > > Public Sub _new() > > Me.Icon = pneusoft.GetIconFile(psTheme.PNEUSOFT_ICON_64) > > ' Configure Actions for Menu an buttons > > ' Menu Actions: > > Action.Register(mnuAziendaApri,psAction.ACTION_DEALER_OPEN) > > Action.Register(mnuAziendaModifica,psAction.ACTION_DEALER_EDIT) > > Action.Register(mnuUtenzaAdd,psAction.ACTION_USER_ADD) > > Action.Register(mnuUtenzaEdit, psAction.ACTION_USER_EDIT) > > ... > > End > > > > Now, starting with rev 7073 this becomes invalid due the 'old as string' > > parameter . > > > > Modifing the lines like (no action associated to objects in the IDE): > > > > Public Sub _new() > > Me.Icon = pneusoft.GetIconFile(psTheme.PNEUSOFT_ICON_64) > > ' Configure Actions for Menu an buttons > > ' Menu Actions: > > Action.Register(mnuAziendaApri, "", psAction.ACTION_DEALER_OPEN) > > Action.Register(mnuAziendaModifica, "", psAction.ACTION_DEALER_EDIT) > > Action.Register(mnuUtenzaAdd, "", psAction.ACTION_USER_ADD) > > Action.Register(mnuUtenzaEdit, "", psAction.ACTION_USER_EDIT) > > ... > > End > > > > > > Public Sub menuevent_click() > > Raise MainMenu(Last) > > End > > > > when i click an object it raise a NULL string action. I mean that > > looking at LAST there is a void string in Action Field property. > > > > Executing the cycle: > > Dim o As Object > > For Each o In Action[psAction.ACTION_USER_EDIT].Controls > > Debug o.Name > > Next > > > > the right object name are printed in console. > > > > How can i do that now? > > Thanks, > > Emanuele > > > > Sorry, Action.Register() was never intended to be used directly. It even has > been renamed recently to become an hidden symbol. > > To associate an action with a control, you have to define the Action property > of that control. For example, instead of: > > Action.Register(mnuAziendaApri, "", psAction.ACTION_DEALER_OPEN) > > You must do: > > mnuAziendaApri.Action = psAction.ACTION_DEALER_OPEN > > And to know when an action is activated, you must define the "Action_Activate" > event handler in your form. That event handler takes one argument which is the > action that has been activated. > > And actions should be defined directly in the IDE. That way, you have > automatic toolbar configuration (if you use the gb.form.mdi component). > > Regards, > > -- > Beno?t Minisini From leandrosansilva at ...626... Sun Sep 4 20:16:59 2011 From: leandrosansilva at ...626... (Leandro Santiago) Date: Sun, 4 Sep 2011 15:16:59 -0300 Subject: [Gambas-user] Gambas3 crash (QAbstractScrollArea::viewport) In-Reply-To: <201108301522.59442.gambas@...1...> References: <201108281952.08362.gambas@...1...> <201108301522.59442.gambas@...1...> Message-ID: Ops, I'm not so fast :-( The config I use can be found in: http://dl.dropbox.com/u/3550969/tiny-scroll.bespin 2011/8/30 Beno?t Minisini : >> Wow, you're really fast :-) >> >> Yes, You're right. With oxygen it works fine. That's very strange. All >> Qt4 programs I use work fine with bespin. >> > > When I use bespin, gambas3 does not crash. Can you export your configuration > of bespin and send it to me? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Atenciosamente, Leandro From rolf.frogs at ...221... Sun Sep 4 20:25:11 2011 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sun, 4 Sep 2011 20:25:11 +0200 Subject: [Gambas-user] Compiling Gambas3 in Debian squeeze Message-ID: <201109042025.12265.rolf.frogs@...221...> Hello Beno?t, thanks for your fast answer. > automake seems too old (I have 1.11 version there). > after install automake 1.11 and running reconf-all I get message: ... autoreconf: running: aclocal -I m4 --install autoreconf: running: libtoolize --copy autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:6: installing `./config.guess' configure.ac:6: installing `./config.sub' configure.ac:6: installing `./install-sh' configure.ac:8: required file `./ltmain.sh' not found autoreconf: automake failed with exit status: 1 Please help again. Fine regards Rolf From leandrosansilva at ...626... Sun Sep 4 21:29:44 2011 From: leandrosansilva at ...626... (Leandro Santiago) Date: Sun, 4 Sep 2011 16:29:44 -0300 Subject: [Gambas-user] Gambas3 crash (QAbstractScrollArea::viewport) In-Reply-To: References: <201108281952.08362.gambas@...1...> <201108301522.59442.gambas@...1...> Message-ID: Ops, I recompiled bespin today and this problem doesn't happen anymore. Really strange... 2011/9/4 Leandro Santiago : > Ops, I'm not so fast :-( > > The config I use can be found in: > http://dl.dropbox.com/u/3550969/tiny-scroll.bespin > > 2011/8/30 Beno?t Minisini : >>> Wow, you're really fast :-) >>> >>> Yes, You're right. With oxygen it works fine. That's very strange. All >>> Qt4 programs I use work fine with bespin. >>> >> >> When I use bespin, gambas3 does not crash. Can you export your configuration >> of bespin and send it to me? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Atenciosamente, > Leandro > -- Atenciosamente, Leandro From gambas at ...1... Sun Sep 4 23:04:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 23:04:24 +0200 Subject: [Gambas-user] gambas3 gb.mysql package In-Reply-To: <4E638A66.8090601@...626...> References: <4E638A66.8090601@...626...> Message-ID: <201109042304.24306.gambas@...1...> > Hi all, > I'm packaging gambas3 (svn version 4082) for Mageia. > Reading the documentation at http://gambasdoc.org/help/howto/package#t8 > I see that there's no mention to gambas3-gb-mysql package. > What am I supposed to do? Do I need to package the gb.mysql component or > do I have to ignore it? Am I missing some information? > Regards, Sorry, I forgot to put it in the list. Yes, you can package it the same way as any other component written in Gambas located in the /comp directory. Regards, -- Beno?t Minisini From gambas at ...1... Sun Sep 4 23:15:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Sep 2011 23:15:04 +0200 Subject: [Gambas-user] Gambas2 to gambas3 conversion - some problems In-Reply-To: References: <1315101324.21788.40.camel@...2657...> Message-ID: <201109042315.04515.gambas@...1...> > Yep, here too,conversion from gambas2 to 3 is broken. > > Running r4082 > > It starts converting the project and then halts with this error: > > Cannot open project file: > /home/ron/domotiga/convert/DomotiGaServer > > File or directory does not exist > Project.Open.511 > > No wonder, because if you look at the last directory name it's renamed to > DomotiGaServer~ > > Regards, > Ron_2nd. > This is not a conversion problem there, but apparently the same problem that you already reported. Can you let me login to your server with nx client again so that I can try to find what happens exactly? -- Beno?t Minisini From and.bertini at ...626... Sun Sep 4 23:26:06 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sun, 04 Sep 2011 23:26:06 +0200 Subject: [Gambas-user] Hyperlink and TextEdit control Message-ID: <1315171566.2831.2.camel@...2658...> Is it possible to create an hyperlink in richtextbox control TextEdit? How syntax? Thx Andrea Bertini From matteo.pasotti at ...626... Mon Sep 5 00:07:01 2011 From: matteo.pasotti at ...626... (Matteo Pasotti) Date: Mon, 05 Sep 2011 00:07:01 +0200 Subject: [Gambas-user] gambas3 gb.mysql package In-Reply-To: <201109042304.24306.gambas@...1...> References: <4E638A66.8090601@...626...> <201109042304.24306.gambas@...1...> Message-ID: <4E63F685.2020407@...626...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 04/09/2011 23:04, Beno?t Minisini ha scritto: >> Hi all, >> I'm packaging gambas3 (svn version 4082) for Mageia. >> Reading the documentation at http://gambasdoc.org/help/howto/package#t8 >> I see that there's no mention to gambas3-gb-mysql package. >> What am I supposed to do? Do I need to package the gb.mysql component or >> do I have to ignore it? Am I missing some information? >> Regards, > > Sorry, I forgot to put it in the list. > > Yes, you can package it the same way as any other component written in Gambas > located in the /comp directory. > > Regards, > Fine, thank you Beno?t. Regards, - -- Matteo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mageia - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOY/aBAAoJED3LowjDDWbNI5sH/RUzbD8eEZVrkfh27Jg8Ri26 K3VevdA0ySFbwC9sXRZEbgXlT8xnK1hPKtLTj9DhixKcWo0yl6YQdUohla+h1CPa 7Z3FfXOJoNfSaxE+Cw9LjZIMDVDIH1QWQ1PCwJZz6dw3QGREaHV7Rd5MMEkXCaMz f+W0HPIxrIJLhHAqhqmepAGK51O+II5rlqpVC0bHH9l39A4Qd/Bx5LzHO0fbgWW2 si4Yrc/6PE3as8IZiCDZ/tKMiyGYoTsTG+iU6SK1OFbUC/Rzh1h2q/mCsWm4DDwL IKcFx9B0UNlBju/+FovTXwCBjgOUQ5RrQHWf1EVVUXSaf8RhNpJ1Ketax4v6fjE= =8uS4 -----END PGP SIGNATURE----- From vuott at ...325... Mon Sep 5 00:19:25 2011 From: vuott at ...325... (Ru Vuott) Date: Sun, 4 Sep 2011 23:19:25 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109031916.30768.gambas@...1...> Message-ID: <1315174765.39109.YahooMailClassic@...2664...> A dream for future RC4 or Component. I have a dream. Yes, people, I have a bright dream. I dream a new RC of Gambas3, or a new Component, ...that adds the possibility to insert file descriptors polls in the main message loop. I have a dream. I have an hope... Regards Paolo From gambas at ...1... Mon Sep 5 00:26:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 5 Sep 2011 00:26:39 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1315174765.39109.YahooMailClassic@...2664...> References: <1315174765.39109.YahooMailClassic@...2664...> Message-ID: <201109050026.39643.gambas@...1...> > A dream for future RC4 or Component. > > > I have a dream. > Yes, people, I have a bright dream. > I dream a new RC of Gambas3, or a new Component, ...that adds the > possibility to insert file descriptors polls in the main message loop. > > I have a dream. > I have an hope... > > Regards > Paolo > And where will these file descriptors come from? -- Beno?t Minisini From vuott at ...325... Mon Sep 5 00:41:04 2011 From: vuott at ...325... (Ru Vuott) Date: Sun, 4 Sep 2011 23:41:04 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109050026.39643.gambas@...1...> Message-ID: <1315176064.10529.YahooMailClassic@...2666...> > And where will these file descriptors come from? ...from ALSA. If I have a Gambas3-program, able to *receive* data Midi from ALSA (external Midi-Keyboard-->ALSA-sistem--->My-Gambas-Program), I could use "snd_seq_poll_descriptors_count()" and "snd_seq_poll_descriptors()" ALSA functions to get one or more file descriptors and event masks for the sequencer device; these file descriptors can be used to wait for events. When I receive an event, I 'ld check if the device is actually ready for reading or writing by calling snd_seq_poll_descriptors_revents(). These ALSA functions are designed to be used with poll() ! I'ld need some mechanism to watch a file that is identified by its already opened file descriptor. Bye Paolo From gambas at ...2524... Mon Sep 5 01:13:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 04 Sep 2011 23:13:23 +0000 Subject: [Gambas-user] Issue 97 in gambas: Cannot use ByRef on more than 32 parameters Message-ID: <0-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 97 by emil.len... at ...626...: Cannot use ByRef on more than 32 parameters http://code.google.com/p/gambas/issues/detail?id=97 1) Describe the problem. The interpreter will crash with "error: Internal compiler error: Bad stack usage computed!" when using ByRef on a function that takes more than 32 parameters. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4086 Operating system: Linux Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Public Sub Run(a As Variant, b As Variant, c As Variant, d As Variant, e As Variant) c(ByRef d, b, b, a, b, b, b, b, b, b, b, b, b, b, b, a, b, b, b, b, a, b, b, b, b, b, b, b, b, b, b, b, ByRef e) End 4) If your project needs a database, try to provide it, or part of it. - 5) Explain clearly how to reproduce the bug or the crash. Try to compile 6) By doing that carefully, you have done 50% of the bug fix job! It seems to be fixed when changing for (i = 0; i < nparam; i++) { if (byref & (1 << i)) n++; } use_stack(n); to for (i = 0; i < nparam; i++) { if (byref & (1ULL << i)) n++; } use_stack(n); in CODE_call_byref in gb_code_temp.h From gambas at ...2524... Mon Sep 5 01:19:24 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 04 Sep 2011 23:19:24 +0000 Subject: [Gambas-user] Issue 97 in gambas: Cannot use ByRef on more than 32 parameters In-Reply-To: <0-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 97 by benoit.m... at ...626...: Cannot use ByRef on more than 32 parameters http://code.google.com/p/gambas/issues/detail?id=97 (No comment was entered for this change.) From gambas at ...2524... Mon Sep 5 01:23:24 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 04 Sep 2011 23:23:24 +0000 Subject: [Gambas-user] Issue 97 in gambas: Cannot use ByRef on more than 32 parameters In-Reply-To: <1-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> <0-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4322698570893180327-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 97 by benoit.m... at ...626...: Cannot use ByRef on more than 32 parameters http://code.google.com/p/gambas/issues/detail?id=97 Thanks for the fix! I put it in revision #4087. From gambas at ...1... Mon Sep 5 03:00:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 5 Sep 2011 03:00:46 +0200 Subject: [Gambas-user] Gambas2 to gambas3 conversion - some problems In-Reply-To: <1315101324.21788.40.camel@...2657...> References: <1315101324.21788.40.camel@...2657...> Message-ID: <201109050300.46265.gambas@...1...> > Hi Beno?t and everyone, > > I have some misgivings about how gambas3 is converting or "porting" > gambas2 projects. I'm talking about the way it is renaming the old > project and creating a new project with the same name. This can have a > result of breaking stable "production" gambas2 applications at worst and > annoying one or more developers at least. > > From least to worst, the following scenarios arise: > > 1) the converter leaves the backup project ("MyProject~") in a locked > state. When the developer goes to open the backup project in gambas2 > they receive the "This project seems to be already opened" message. > Colin Confused, the developer, who has multiple instances of gambas2 > running is annoyed because he has to make a decision as to whether it > really is open somewhere (maybe even by another developer on another > machine) or whether they should take the risk and open it anyway. I was > going to raise a bug about this one, but some more thinking and testing > led to the following. Analysis - "annoying". > > 2) the converter ignores the existence of the .lock file in the gambas2 > project and converts it anyway, thus if the project is open in gambas2 > somewhere the following could occur. Steve Stable, the support > programmer for gambas2 has MyProject open in gambas2 and has spent > several hours finding and fixing an obscure issue and is just about to > compile and test. Fanny Frantic, the new junior programmer, opens > MyProject in gambas3 and says yes to the convert question. Gambas3 then > renames (I presume) MyProject to MyProject~ and copies and converts the > code. Steve Stable then presses F5 whereupon gambas2 crashes and all > his work is lost (because the file system has been altered and his > project now points to the wrong place). Analysis - could result in Steve > causing serious physical harm to Fanny, therefore "dangerous". > > 3) converting existing gambas2 components will break the gambas2 user > projects that use them. Bruce Ballistic (senior programmer, head chef > and dog washer) who is normally very careful to copy his gambas2 > projects to a new gambas3 directory structure, accidentally opens the > wrong project. He then makes major changes to the component and > recompiles it. The existing ("production") gambas2 applications will > now fail as the symbolic links in .local/lib and .local/share point to > the gambas3 component. Analysis - could result in Bruce muttering "If I > ever get my hands on that Minisini character, ...", therefore "extremely > dangerous". > > 4) I think (I haven't tested this) that there could be issues > with .config/gambas as well??? > > In my opinion the converter should insist on the user entering a new > name for the gambas3 project and leave the gambas2 structures alone, but > at the very least it should be alerting the user in the strongest > possible way as to which project it is going to convert and observe any > existing .lock files. > > Please consider. > > regards > Bruce "where's my shotgun" Ballistic > Steve "don't call me" Stable, > Fanny "why are you hitting me Steve" Frantic, and > Colin "??????" Confused > Here are the changes I made in revision #4088: - When converting a Gambas 2 project, the IDE now checks that it is not opened somewhere else, and then locks it in the Gambas 2 way. - When the backup is made, it is unlocked. But I won't change the name of the project at the moment. The converted project keeps the same name, and the old project gets a "~" added to the end of its name. I will see if I can do what you suggest without too much work. Regards, -- Beno?t Minisini From gambas.fr at ...626... Mon Sep 5 07:39:04 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Sep 2011 07:39:04 +0200 Subject: [Gambas-user] Hyperlink and TextEdit control In-Reply-To: <1315171566.2831.2.camel@...2658...> References: <1315171566.2831.2.camel@...2658...> Message-ID: TextEdit.Link (gb.qt.ext) EVENT Link ( Path AS String ) This event is raised when the user clicks on a link. Path is the contents of the link specified in the = markup. This event is raised only if ReadOnly is set to TRUE. but on qt4 ... it seem to not have the link event :/ 2011/9/4 Andrea Bertini : > Is it possible to create an hyperlink in richtextbox control TextEdit? > How syntax? > > Thx > > Andrea Bertini > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Mon Sep 5 09:57:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 07:57:13 +0000 Subject: [Gambas-user] Issue 98 in gambas: IDE "System informations.." reports the wrong desktop Message-ID: <0-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 98 by adamn... at ...626...: IDE "System informations.." reports the wrong desktop http://code.google.com/p/gambas/issues/detail?id=98 1) Describe the problem. Under LXDE, the "?/Systems informations..." menu in the IDE reports KDE3 as the Desktop. (See 2) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux KernelRelease=2.6.38.8-pclos1.bfs Architecture=i686 Memory=1553368 kB DistributionVendor=Paddys-Hill DistributionRelease="Paddys-Hill dot Net (r0.1)" Desktop=KDE3 [Gambas 3] Version=2.99.3 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.3 GTK+=libgtk-x11-2.0.so.0.2400.4 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. The problem is in the report-ng.sh script in app/source/gambas3 at line 97 it says: elif [ x"$DESKTOP_SESSION" != x"kde" ]; then DESKTOP=KDE3; so any desktop that uses the DESKTOP_SESSION environment variable that has not been resolved by that time will be called KDE3. In the LXDE case, [ xLXDE != xkde ] is true, so ... I have attached a rewrite of the script that uses the logic from the GetDesktop() method in Desktop.class in the gb.Desktop component. However, I cannot verify it on anything but LXDE. I hope I've explained it clearly enough. regards Bruce Attachments: new_report-ng.sh 3.8 KB From Karl.Reinl at ...2345... Mon Sep 5 10:18:20 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 05 Sep 2011 10:18:20 +0200 Subject: [Gambas-user] Hyperlink and TextEdit control In-Reply-To: References: <1315171566.2831.2.camel@...2658...> Message-ID: <1315210700.6432.4.camel@...40...> Am Montag, den 05.09.2011, 07:39 +0200 schrieb Fabien Bodard: > TextEdit.Link (gb.qt.ext) > EVENT Link ( Path AS String ) > This event is raised when the user clicks on a link. > > Path is the contents of the link specified in the = markup. > > This event is raised only if ReadOnly is set to TRUE. > > > but on qt4 ... it seem to not have the link event :/ > > 2011/9/4 Andrea Bertini : > > Is it possible to create an hyperlink in richtextbox control TextEdit? > > How syntax? > > > > Thx > > > > Andrea Bertini > > Salut Andrea, I attached you the answer from Beno?t, given the 21/08/2011 -- Amicalement Charlie -------------- next part -------------- An embedded message was scrubbed... From: =?utf-8?q?Beno=C3=AEt_Minisini?= Subject: Re: [Gambas-user] TextEdit, and missing Link event Date: Sun, 21 Aug 2011 14:07:10 +0200 Size: 3927 URL: From gambas.fr at ...626... Mon Sep 5 11:13:14 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Sep 2011 11:13:14 +0200 Subject: [Gambas-user] Hyperlink and TextEdit control In-Reply-To: <1315210700.6432.4.camel@...40...> References: <1315171566.2831.2.camel@...2658...> <1315210700.6432.4.camel@...40...> Message-ID: Le 5 septembre 2011 10:18, Charlie Reinl a ?crit : > Am Montag, den 05.09.2011, 07:39 +0200 schrieb Fabien Bodard: >> TextEdit.Link (gb.qt.ext) >> EVENT Link ( Path AS String ) >> This event is raised when the user clicks on a link. >> >> Path is the contents of the link specified in the = markup. >> >> ? ? ? ?This event is raised only if ReadOnly is set to TRUE. >> >> >> but on qt4 ... it seem to not have the link event :/ >> >> 2011/9/4 Andrea Bertini : >> > Is it possible to create an hyperlink in richtextbox control TextEdit? >> > How syntax? >> > >> > Thx >> > >> > Andrea Bertini >> > > Salut Andrea, > > I attached you the answer from Beno?t, given the 21/08/2011 > > > > -- > Amicalement > Charlie > > > ---------- Message transf?r? ---------- > From:?"Beno?t Minisini" > To:?Karl.Reinl at ...9..., mailing list for gambas users > Date:?Sun, 21 Aug 2011 14:07:10 +0200 > Subject:?Re: [Gambas-user] TextEdit, and missing Link event >> Am Mittwoch, den 03.08.2011, 00:03 +0200 schrieb Charlie Reinl: >> > Am Dienstag, den 02.08.2011, 23:34 +0200 schrieb Beno?t Minisini: >> > > > Salut, >> > > > >> > > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks >> > > > here, I move my project from gb2 to gb3. >> > > > I used a TextEdit with very simple HTML and a href in, and the Link >> > > > event to open it in the browser. >> > > > Now gb3 TextEdit don't show my very simple HTML any more (test only) >> > > > und has no Link event (the Link event was never in the >> > > > documentation, even in gb2) >> > > > >> > > > The TextLabel shows the simple HTML like it should be, but I don't >> > > > find no Link event. >> > > > >> > > > gambas3 rev 3956 >> > > > Mandriva 2010.2 >> > > > qt4 only (gtk not tested) >> > > >> > > TextEdit does not have a Link event anymore in Gambas 3. >> > >> > Salut, >> > >> > so what is the replacement. >> > What's happened for TextLabel ? >> >> Salut Beno?t, >> >> I didn't find any answer till now, and also whats about the Link event >> in TextLabel. > > TextEdit and TextLabel do not have Link event, and there will be no > replacement. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > hum ... there is webview but it's more heavy -- Fabien Bodard From vuott at ...325... Mon Sep 5 11:24:08 2011 From: vuott at ...325... (Ru Vuott) Date: Mon, 5 Sep 2011 10:24:08 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109050026.39643.gambas@...1...> Message-ID: <1315214648.15200.YahooMailClassic@...2668...> > > And where will these file descriptors come from? > Hello Beno?t, did you receive my answer ? Bye Paolo From eficara at ...626... Mon Sep 5 11:43:45 2011 From: eficara at ...626... (robotop) Date: Mon, 5 Sep 2011 02:43:45 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp Message-ID: <32388134.post@...1379...> Hello all, I'm playing with the gb.net.smtp component and there is something strange in the behaviour. Almost all works fine, I can send my emails using "text/plain", but sometimes, when I put dots '.' in the message, some of those is preceeded (in the received email) by an equal sign '=' ; note: not all dots, some are passed exactly how in the source text file. I monitored the TCP packets with a net analyzer (ethereal) and there is no doubt, the unwanted chars are introduced by the net.smtp component. It's something involving the Mime encoding ? Has the "plain/text" some encoding rule for ascii characters ? Actually, I'm thinking about writing my own smtp client, but if you know why such extra chars are generated and how to solve the problem, I will continue to use the original gb.net.smtp. My development platform is Puppy Linux V4.3.1 and Gambas 2.2 . Thank you for your attention. -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32388134.html Sent from the gambas-user mailing list archive at Nabble.com. From sotema at ...626... Mon Sep 5 12:14:16 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 05 Sep 2011 12:14:16 +0200 Subject: [Gambas-user] rev4088 make error Message-ID: <1315217656.28080.1.camel@...2516...> CNet.c:136: error: ?CURLE_FTP_PRET_FAILED? undeclared here (not in a function) CNet.c:139: error: ?CURLE_FTP_BAD_FILE_LIST? undeclared here (not in a function) CNet.c:140: error: ?CURLE_CHUNK_FAILED? undeclared here (not in a function) make[4]: *** [CNet.lo] Errore 1 [System] OperatingSystem=Linux KernelRelease=2.6.32-33-generic Architecture=x86_64 Memory=4059336 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.3 LTS" Desktop=Gnome [Gambas 2] Version=2.23.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=2.99.3 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.2 GTK+=libgtk-x11-2.0.so.0.2000.1 From eilert-sprachen at ...221... Mon Sep 5 12:16:43 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 05 Sep 2011 12:16:43 +0200 Subject: [Gambas-user] General Mouse and Keyboard Monitor Message-ID: <4E64A18B.3080200@...221...> Hi folks, Is there a general function that counts or registers mouse and keyboard events on an application-wide level? In Gambas 2 ? What I need is something that simply watches if the user has clicked or typed ANYWHERE into the program within a given period without having to count the clicks and types of each GUI element separately. My idea is to hide personal data parts of the GUI after some time of no action and require a password before releasing the surface again. Thanks for all ideas and hints! Rolf From lordheavym at ...626... Mon Sep 5 12:32:57 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 05 Sep 2011 12:32:57 +0200 Subject: [Gambas-user] rev4088 make error In-Reply-To: <1315217656.28080.1.camel@...2516...> References: <1315217656.28080.1.camel@...2516...> Message-ID: <2171781.kqxUBCijgW@...2592...> Le Lundi 5 Septembre 2011 12:14:16, Emanuele Sottocorno a ?crit : > CNet.c:136: error: ?CURLE_FTP_PRET_FAILED? undeclared here (not in a > function) > CNet.c:139: error: ?CURLE_FTP_BAD_FILE_LIST? undeclared here (not in a > function) > CNet.c:140: error: ?CURLE_CHUNK_FAILED? undeclared here (not in a > function) > make[4]: *** [CNet.lo] Errore 1 > What is your libcurl version ? ++ From wally at ...2037... Mon Sep 5 13:11:13 2011 From: wally at ...2037... (wally) Date: Mon, 5 Sep 2011 13:11:13 +0200 Subject: [Gambas-user] rev4088 make error In-Reply-To: <2171781.kqxUBCijgW@...2592...> References: <1315217656.28080.1.camel@...2516...> <2171781.kqxUBCijgW@...2592...> Message-ID: <201109051311.13743.wally@...2037...> same problem here: libcurl-devel 7.20.1-3.4 OpenSuse 11.3 On Monday, September 05, 2011 12:32:57 Laurent Carlier wrote: > Le Lundi 5 Septembre 2011 12:14:16, Emanuele Sottocorno a ?crit : > > CNet.c:136: error: ?CURLE_FTP_PRET_FAILED? undeclared here (not in a > > function) > > CNet.c:139: error: ?CURLE_FTP_BAD_FILE_LIST? undeclared here (not in a > > function) > > CNet.c:140: error: ?CURLE_CHUNK_FAILED? undeclared here (not in a > > function) > > make[4]: *** [CNet.lo] Errore 1 > > What is your libcurl version ? > > ++ > > > --------------------------------------------------------------------------- > --- Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Mon Sep 5 13:32:28 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 05 Sep 2011 13:32:28 +0200 Subject: [Gambas-user] rev4088 make error In-Reply-To: <201109051311.13743.wally@...2037...> References: <1315217656.28080.1.camel@...2516...> <2171781.kqxUBCijgW@...2592...> <201109051311.13743.wally@...2037...> Message-ID: <2011975.Wg9juUVZWF@...2592...> Le Lundi 5 Septembre 2011 13:11:13, wally a ?crit : > same problem here: > libcurl-devel 7.20.1-3.4 > OpenSuse 11.3 > Please check with rev 4089 ++ From lknetpl at ...626... Mon Sep 5 13:38:32 2011 From: lknetpl at ...626... (l k) Date: Mon, 5 Sep 2011 13:38:32 +0200 Subject: [Gambas-user] Pictures load from web Message-ID: Hello, is it possible to load the image from the web address? When I try to load the address from the Google API, eg: "http://maps.googleapis.com/maps/api/staticmap?center=Berkeley, CA & zoom = 14 & size = 400x400 & sensor = false" it does not display the map, only this: http:/ / imageshack.us/photo/my-images/853/zrzutekranur.png / Please help. LeszekK From wally at ...2037... Mon Sep 5 14:00:00 2011 From: wally at ...2037... (wally) Date: Mon, 5 Sep 2011 14:00:00 +0200 Subject: [Gambas-user] rev4088 make error In-Reply-To: <2011975.Wg9juUVZWF@...2592...> References: <1315217656.28080.1.camel@...2516...> <201109051311.13743.wally@...2037...> <2011975.Wg9juUVZWF@...2592...> Message-ID: <201109051400.00880.wally@...2037...> no, same error On Monday, September 05, 2011 13:32:28 Laurent Carlier wrote: > Le Lundi 5 Septembre 2011 13:11:13, wally a ?crit : > > same problem here: > > libcurl-devel 7.20.1-3.4 > > OpenSuse 11.3 > > Please check with rev 4089 > > ++ > > > --------------------------------------------------------------------------- > --- Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sotema at ...626... Mon Sep 5 14:48:59 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 05 Sep 2011 14:48:59 +0200 Subject: [Gambas-user] rev4088 make error Message-ID: <1315226939.8099.1.camel@...2516...> Ubuntu 10.04-3 rev 4089 same error libcurl rev. 7.9.17-1 From gambas.fr at ...626... Mon Sep 5 15:27:43 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Sep 2011 15:27:43 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1315214648.15200.YahooMailClassic@...2668...> References: <201109050026.39643.gambas@...1...> <1315214648.15200.YahooMailClassic@...2668...> Message-ID: Yes we have Le lundi 5 septembre 2011, Ru Vuott a ?crit : > >> >> And where will these file descriptors come from? >> > > Hello Beno?t, > > did you receive my answer ? > Bye > Paolo > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From vuott at ...325... Mon Sep 5 15:44:02 2011 From: vuott at ...325... (Ru Vuott) Date: Mon, 5 Sep 2011 14:44:02 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: Message-ID: <1315230242.94445.YahooMailClassic@...2668...> > Yes we have > Well, Fabien ! So, do you think you'll can make something about it? Thanks Paolo From gambas.fr at ...626... Mon Sep 5 15:44:34 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Sep 2011 15:44:34 +0200 Subject: [Gambas-user] Pictures load from web In-Reply-To: References: Message-ID: yes there is httpclient1.url = "http..." httpClient.get(null, $myfile) image.load($myfile) 2011/9/5 l k : > Hello, is it possible to load the image from the web address? When I > try to load the address from the Google API, eg: > "http://maps.googleapis.com/maps/api/staticmap?center=Berkeley, CA & > zoom = 14 & size = 400x400 & sensor = false" it does not display the > map, only this: http:/ / > imageshack.us/photo/my-images/853/zrzutekranur.png / Please help. > > LeszekK > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > 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... Mon Sep 5 15:56:07 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Sep 2011 15:56:07 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1315230242.94445.YahooMailClassic@...2668...> References: <1315230242.94445.YahooMailClassic@...2668...> Message-ID: wait for benoit answer :) 2011/9/5 Ru Vuott : > >> Yes we have >> > > > Well, Fabien ! > ?So, do you think you'll can make something about it? > > Thanks > > Paolo > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Mon Sep 5 16:20:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 14:20:50 +0000 Subject: [Gambas-user] Issue 99 in gambas: gb2 to gb3 port : deprecated control property not removed Message-ID: <0-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 99 by adamn... at ...626...: gb2 to gb3 port : deprecated control property not removed http://code.google.com/p/gambas/issues/detail?id=99 1) Describe the problem. My gambas2 project has a form with a ValueBox in it with the MaxLength property set. When I imported the project to gambas3 (by opening the project and answering yes to the convert question) the conversion appeared to work but when I run it it fails with the error "Unknown symbol MaxLength in class ValueBox". Since the property is deprecated surely the converter should have removed the property from the .form file? This is a problem because if the form is rarely used in the application, the error may not show up in the short term. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4080 I think Operating system: Linux Distribution: Gentoo based... Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Convert a project as explained above From gambas at ...2524... Mon Sep 5 16:43:01 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 14:43:01 +0000 Subject: [Gambas-user] Issue 100 in gambas: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) Message-ID: <0-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 100 by adamn... at ...626...: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) http://code.google.com/p/gambas/issues/detail?id=100 1) Describe the problem. (Background: This arose because of a gambas2 project that would not convert to gambas3.) In the IDE Project.class, in the MakeDirectoryIcon sub the line hDirIcon.Save(sDir &/ ".icon.png") fails if the path is a symbolic link. It's line 4988 in my build. I am not sure how I ended up with projects like this but I have plenty of them. The exact scenario is that .icon.png is a link to another image file in the project that was imported as a symbolic link. I'll try to explain a bit more. I have a set of .png files that are used in many projects, so I have them in a library directory and just link to them as I need them. I also have set the project icon (.icon.png) to one of these items many times. Another clue is that in the project I'm looking at the two files are both -r--r--r-- but I'm not sure why. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4080 Operating system: Linux Distribution: Gentoo ... Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Can't oblige because the symbolic links will be broken. 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. See above From gambas at ...2524... Mon Sep 5 21:46:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 19:46:09 +0000 Subject: [Gambas-user] Issue 98 in gambas: IDE "System informations.." reports the wrong desktop In-Reply-To: <0-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 98 by benoit.m... at ...626...: IDE "System informations.." reports the wrong desktop http://code.google.com/p/gambas/issues/detail?id=98 Thanks, I will fix the script. From gambas at ...2524... Mon Sep 5 22:02:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:02:13 +0000 Subject: [Gambas-user] Issue 99 in gambas: gb2 to gb3 port : deprecated control property not removed In-Reply-To: <0-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 99 by benoit.m... at ...626...: gb2 to gb3 port : deprecated control property not removed http://code.google.com/p/gambas/issues/detail?id=99 (No comment was entered for this change.) From gambas at ...1... Mon Sep 5 22:02:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 5 Sep 2011 22:02:11 +0200 Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <32388134.post@...1379...> References: <32388134.post@...1379...> Message-ID: <201109052202.11906.gambas@...1...> > Hello all, I'm playing with the gb.net.smtp component and there is > something strange in the behaviour. Almost all works fine, I can send my > emails using "text/plain", but sometimes, when I put dots '.' in the > message, some of those is preceeded (in the received email) by an equal > sign '=' ; note: not all dots, some are passed exactly how in the source > text file. I monitored the TCP packets with a net analyzer (ethereal) and > there is no doubt, the unwanted chars are introduced by the net.smtp > component. It's something involving the Mime encoding ? Has the > "plain/text" some encoding rule for ascii characters ? Actually, I'm > thinking about writing my own smtp client, but if you know why such extra > chars are generated and how to solve the problem, I will continue to use > the original gb.net.smtp. My development platform is Puppy Linux V4.3.1 > and Gambas 2.2 . Thank you for your attention. Can you provide me the sent e-mail and the received e-mail (in full text, with the headers) ? -- Beno?t Minisini From gambas at ...1... Mon Sep 5 22:02:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 5 Sep 2011 22:02:49 +0200 Subject: [Gambas-user] rev4088 make error In-Reply-To: <1315226939.8099.1.camel@...2516...> References: <1315226939.8099.1.camel@...2516...> Message-ID: <201109052202.49482.gambas@...1...> > Ubuntu 10.04-3 > > rev 4089 same error > libcurl rev. 7.9.17-1 > It should be fixed in revision #4091. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Sep 5 21:58:12 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 19:58:12 +0000 Subject: [Gambas-user] Issue 98 in gambas: IDE "System informations.." reports the wrong desktop In-Reply-To: <1-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> <0-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14232206282253550461-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 98 by benoit.m... at ...626...: IDE "System informations.." reports the wrong desktop http://code.google.com/p/gambas/issues/detail?id=98 It should be fixed in revision #4092. From gambas at ...2524... Mon Sep 5 22:08:15 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:08:15 +0000 Subject: [Gambas-user] Issue 99 in gambas: gb2 to gb3 port : deprecated control property not removed In-Reply-To: <1-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> <0-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9215249116799635577-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 99 by benoit.m... at ...626...: gb2 to gb3 port : deprecated control property not removed http://code.google.com/p/gambas/issues/detail?id=99 Fixed in revision #4093. From gambas at ...2524... Mon Sep 5 22:12:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:12:16 +0000 Subject: [Gambas-user] Issue 100 in gambas: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) In-Reply-To: <0-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 100 by benoit.m... at ...626...: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) http://code.google.com/p/gambas/issues/detail?id=100 (No comment was entered for this change.) From gambas at ...2524... Mon Sep 5 22:16:17 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:16:17 +0000 Subject: [Gambas-user] Issue 101 in gambas: Add support for adding extra files in the "AutoTools" packager Message-ID: <0-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Status: New Owner: benoit.m... at ...626... Labels: Version-TRUNK Type-Enhancement Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 101 by benoit.m... at ...626...: Add support for adding extra files in the "AutoTools" packager http://code.google.com/p/gambas/issues/detail?id=101 This request comes from the issue #65. From gambas at ...2524... Mon Sep 5 22:20:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:20:19 +0000 Subject: [Gambas-user] Issue 65 in gambas: Trying to add an additional file when building an AutoTools package chashes the IDE In-Reply-To: <2-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> <0-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Updates: Status: Duplicate Mergedinto: 101 Comment #3 on issue 65 by benoit.m... at ...626...: Trying to add an additional file when building an AutoTools package chashes the IDE http://code.google.com/p/gambas/issues/detail?id=65 (No comment was entered for this change.) From gambas at ...2524... Mon Sep 5 22:24:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:24:19 +0000 Subject: [Gambas-user] Issue 101 in gambas: Add support for adding extra files in the "AutoTools" packager In-Reply-To: <0-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Comment #1 on issue 101 by benoit.m... at ...626...: Add support for adding extra files in the "AutoTools" packager http://code.google.com/p/gambas/issues/detail?id=101 Issue 65 has been merged into this issue. From gambas at ...2524... Mon Sep 5 22:28:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Sep 2011 20:28:20 +0000 Subject: [Gambas-user] Issue 101 in gambas: Add support for adding extra files in the "AutoTools" packager In-Reply-To: <1-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> <0-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #2 on issue 101 by benoit.m... at ...626...: Add support for adding extra files in the "AutoTools" packager http://code.google.com/p/gambas/issues/detail?id=101 (No comment was entered for this change.) From sotema at ...626... Mon Sep 5 22:46:10 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 05 Sep 2011 22:46:10 +0200 Subject: [Gambas-user] rev4088 make error Message-ID: <1315255570.19727.1.camel@...2476...> Ubuntu 10.04-3 rev 4094, it is fixed. Tanks, Emanuele From eficara at ...626... Mon Sep 5 22:47:28 2011 From: eficara at ...626... (robotop) Date: Mon, 5 Sep 2011 13:47:28 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <201109052202.11906.gambas@...1...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> Message-ID: <32403858.post@...1379...> Hello, Mr Minisini, first of all, thank you for this answer, it's emotioning to speak (write) to the creator of Gambas. Well, I've zipped 3 files in a folder with the contents of originating mail text, the received email and the procedure I used with Gambas2,2 on Puppy linux 4.3.1 : I'm sure there is something wrong in my work, hope you will clarify to me. The files have been created using a simulated network hosted on my notebook where I used my own smtp and dns server, so all the IP are fake, but the packet contents was tested with ethereal to be sure that it wasn't simply a string content error. Thank you so much for you attention... http://old.nabble.com/file/p32403858/smtp.zip smtp.zip -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32403858.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Sep 5 22:53:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 5 Sep 2011 22:53:44 +0200 Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <32403858.post@...1379...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> <32403858.post@...1379...> Message-ID: <201109052253.44466.gambas@...1...> > Hello, Mr Minisini, first of all, thank you for this answer, it's > emotioning to speak (write) to the creator of Gambas. Well, I've zipped 3 > files in a folder with the contents of originating mail text, the received > email and the procedure I used with Gambas2,2 on Puppy linux 4.3.1 : I'm > sure there is something wrong in my work, hope you will clarify to me. The > files have been created using a simulated network hosted on my notebook > where I used my own smtp and dns server, so all the IP are fake, but the > packet contents was tested with ethereal to be sure that it wasn't simply > a string content error. Thank you so much for you attention... > http://old.nabble.com/file/p32403858/smtp.zip smtp.zip Gambas 2.2 !!! Maybe if you use a recent version (the last one is 2.23) your bug will disappear.. -- Beno?t Minisini From eficara at ...626... Mon Sep 5 23:11:16 2011 From: eficara at ...626... (robotop) Date: Mon, 5 Sep 2011 14:11:16 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <201109052253.44466.gambas@...1...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> <32403858.post@...1379...> <201109052253.44466.gambas@...1...> Message-ID: <32403979.post@...1379...> oops, the most recent compiled .pet (package for puppy linux) is for gambas2.2 ... May be someone can create a new one, but at this moment I can't do it by myself (almost all my life was spent under Windows, bad way, I know). Ok, I will survive with small workaround. The full application works so fine, I'll implement a very basic smtp client using gb net components... thank you for all your great work :-) -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32403979.html Sent from the gambas-user mailing list archive at Nabble.com. From lknetpl at ...626... Mon Sep 5 23:36:08 2011 From: lknetpl at ...626... (l k) Date: Mon, 5 Sep 2011 23:36:08 +0200 Subject: [Gambas-user] Pictures load from web In-Reply-To: References: Message-ID: Hello again, unfortunately, does not work. I wrote it another way: HttpClient1.URL = Trim (tb_webadres.Text) HttpClient1.get (myfile) image.load (myfile) Of course, I declare the variable myfile. I get an error when start program: Unable to open file for writing. I read the help but still can not figure out anything. Yours. PS> I'm sorry if I write badly, but my English is poor;) LeszekK 2011/9/5 Fabien Bodard : > yes > there is > httpclient1.url = "http..." > httpClient.get(null, $myfile) > image.load($myfile) > > > > > 2011/9/5 l k : >> Hello, is it possible to load the image from the web address? When I >> try to load the address from the Google API, eg: >> "http://maps.googleapis.com/maps/api/staticmap?center=Berkeley, CA & >> zoom = 14 & size = 400x400 & sensor = false" it does not display the >> map, only this: http:/ / >> imageshack.us/photo/my-images/853/zrzutekranur.png / Please help. >> >> LeszekK >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sbungay at ...981... Tue Sep 6 04:44:39 2011 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 05 Sep 2011 22:44:39 -0400 Subject: [Gambas-user] dateadd overflow... Message-ID: <4E658917.30708@...981...> Gambas 2.23 I have three variables, all of type date. mdStartTime mdEndTime newEndTime The first two contain time values with no date portion. This was obtained from a function which used Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) to generate the value to return. It ends up that the following get assigned; mdStartTime = 10:01:31 mdEndTIme = 10:16:31 I want to use DateAdd to get a new value based on the mdEndTime value + 15 minutes. To do this I used newEndTIme = DateAdd(mdEndTime, gb.minute, 15) And promptly got an Overflow error. Now I'm puzzled. Is there a problem with DateAdd? Regards Steve. From sbungay at ...981... Tue Sep 6 04:55:31 2011 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 05 Sep 2011 22:55:31 -0400 Subject: [Gambas-user] dateadd overflow... In-Reply-To: <4E658917.30708@...981...> References: <4E658917.30708@...981...> Message-ID: <4E658BA3.3070107@...981...> On 09/05/2011 10:44 PM, Stephen Bungay wrote: > Gambas 2.23 > > I have three variables, all of type date. > > mdStartTime > mdEndTime > newEndTime > > The first two contain time values with no date portion. This was > obtained from a function which used > > Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) > > to generate the value to return. It ends up that the following get assigned; > > mdStartTime = 10:01:31 > mdEndTIme = 10:16:31 > > I want to use DateAdd to get a new value based on the mdEndTime value + > 15 minutes. To do this I used > > newEndTIme = DateAdd(mdEndTime, gb.minute, 15) > > And promptly got an Overflow error. > > Now I'm puzzled. Is there a problem with DateAdd? > > > Regards > Steve. > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I coded around the problem.... but would still like to know what the heck is causing the overflow. From and.bertini at ...626... Tue Sep 6 06:00:59 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Tue, 06 Sep 2011 06:00:59 +0200 Subject: [Gambas-user] yperlink and TextEdit control In-Reply-To: References: Message-ID: <1315281659.1869.3.camel@...2658...> @Charlie thx:-) I insert an hyperlink in TextEdit control with the code (test code): TextEdit1.RichText = "" & $_Param[1] & "/a>" The problem is to insert an hyperlink in an existing text at the curson position Andrea From gambas at ...2524... Tue Sep 6 06:44:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Sep 2011 04:44:54 +0000 Subject: [Gambas-user] Issue 102 in gambas: (Minor) help error for Settings array write Message-ID: <0-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 102 by adamn... at ...626...: (Minor) help error for Settings array write http://code.google.com/p/gambas/issues/detail?id=102 1) Describe the problem. This is pretty minor, but the help for Settings array write says "hsettings [ Key as String [ , Default As Variant ] ] = aVariant" but Settings["Cow","milk"] = "coffee" fails at run time with a "Too many arguments" error. (This is a bit of a shame actually, because it would have been a cool way to set a default setting if the assignee is null, as in the case where the setting is being set from say a user control and the user enters nothing. Like in Settings["Cow","milk"] = FMyCowSetting.Text Such is life! ) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): N/A 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. N/A From gambas at ...2524... Tue Sep 6 06:59:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Sep 2011 04:59:10 +0000 Subject: [Gambas-user] Issue 103 in gambas: Treeview KeyRelease behaves differently with gtk and qt4 Message-ID: <0-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 103 by adamn... at ...626...: Treeview KeyRelease behaves differently with gtk and qt4 http://code.google.com/p/gambas/issues/detail?id=103 1) Describe the problem. In qt4 the treeview KeyRelease event is being fired even if the key has not been released yet. gtk behaves correctly. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4094 Operating system: Linux Distribution: Gentoo ... Architecture: x86 GUI component: QT4 and GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. 1) Decompress and load the attached in the gambas3 IDE 2. Check in the project properties Environment tab that it has GB_GUI defined and set to gb.gtk 3. Run the project. 4. In the treeview press and hold the down arrow key. After it has scrolled a bit release it. You should see one line in the textarea indicating the treeview item that was current when the key was released. 5. Close the form and set the project properties Environment GB_GUI item to gb.qt4 6 Re-run the project and repeat step 4. Now the event is firing on each treeview item. Attachments: tvwkeyrelease-0.0.1.tar.gz 4.8 KB From joem at ...2671... Tue Sep 6 09:33:51 2011 From: joem at ...2671... (Joe Michael) Date: Tue, 06 Sep 2011 08:33:51 +0100 Subject: [Gambas-user] ARM debugging - where to start? Message-ID: <1315294431.1775.17.camel@...2672...> Hi, I have an ARM based Genesi Smarttop unit which runs Ubuntu 10.10 and it has Gambas version 2. When Gambas starts up gbx2 runs, consumes all resources in a big loop. If I start with it in command line, I get no output - zip. No clues what could be going on. I left a message in their forum http://www.powerdeveloper.org/forums/viewtopic.php?t=2042 but no response for some weeks now. So it looks like I have an excuse to go from being a big fan of Gambas to an even bigger fan and help debug :-) Bearing in mind this is ARM platform, and I don't know first thing about gamabas development, what is the first things I should do? Please be explicit with syntax for use of commands and parameters to be sent to get some debug messages and results, as I won't be able to second guess what is being suggested. I am familiar with C (skill rating 9/10), C++ (4/10), using gambas (8/10). Thanks. JM ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From Karl.Reinl at ...2345... Tue Sep 6 10:57:20 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 06 Sep 2011 10:57:20 +0200 Subject: [Gambas-user] yperlink and TextEdit control In-Reply-To: <1315281659.1869.3.camel@...2658...> References: <1315281659.1869.3.camel@...2658...> Message-ID: <1315299441.6450.2.camel@...40...> Am Dienstag, den 06.09.2011, 06:00 +0200 schrieb Andrea Bertini: > @Charlie > > thx:-) > > I insert an hyperlink in TextEdit control with the code (test code): > > TextEdit1.RichText = "" & $_Param[1] & > "/a>" > > The problem is to insert an hyperlink in an existing text at the curson > position > > Andrea Salut Andrea, Param1 = "gambas_1" Param2 = "http://gambas.sourceforge.net/en/main.html" s = "" & Param1 & "" s &= "
" s &= " gambas_2 " but you have no link event -- Amicalement Charlie From gambas at ...2524... Tue Sep 6 12:54:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Sep 2011 10:54:10 +0000 Subject: [Gambas-user] Issue 102 in gambas: (Minor) help error for Settings array write In-Reply-To: <0-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 102 by benoit.m... at ...626...: (Minor) help error for Settings array write http://code.google.com/p/gambas/issues/detail?id=102 (No comment was entered for this change.) From gambas at ...1... Tue Sep 6 13:01:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Sep 2011 13:01:43 +0200 Subject: [Gambas-user] dateadd overflow... In-Reply-To: <4E658917.30708@...981...> References: <4E658917.30708@...981...> Message-ID: <201109061301.43451.gambas@...1...> > Gambas 2.23 > > I have three variables, all of type date. > > mdStartTime > mdEndTime > newEndTime > > The first two contain time values with no date portion. This was > obtained from a function which used > > Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) > > to generate the value to return. It ends up that the following get > assigned; > > mdStartTime = 10:01:31 > mdEndTIme = 10:16:31 > > I want to use DateAdd to get a new value based on the mdEndTime value + > 15 minutes. To do this I used > > newEndTIme = DateAdd(mdEndTime, gb.minute, 15) > > And promptly got an Overflow error. > > Now I'm puzzled. Is there a problem with DateAdd? > > > Regards > Steve. > I confirm the bug. I will look at it... -- Beno?t Minisini From gambas at ...2524... Tue Sep 6 12:58:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Sep 2011 10:58:13 +0000 Subject: [Gambas-user] Issue 102 in gambas: (Minor) help error for Settings array write In-Reply-To: <1-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> <0-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12680700879163464704-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 102 by benoit.m... at ...626...: (Minor) help error for Settings array write http://code.google.com/p/gambas/issues/detail?id=102 Fixed. For the idea about new Settings syntax, you must create another "enhancement" issue. Do not put two different things in the same issue! From gambas at ...1... Tue Sep 6 13:09:45 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Sep 2011 13:09:45 +0200 Subject: [Gambas-user] dateadd overflow... In-Reply-To: <201109061301.43451.gambas@...1...> References: <4E658917.30708@...981...> <201109061301.43451.gambas@...1...> Message-ID: <201109061309.45747.gambas@...1...> > > Gambas 2.23 > > > > I have three variables, all of type date. > > > > mdStartTime > > mdEndTime > > newEndTime > > > > The first two contain time values with no date portion. This was > > obtained from a function which used > > > > Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) > > > > to generate the value to return. It ends up that the following get > > assigned; > > > > mdStartTime = 10:01:31 > > mdEndTIme = 10:16:31 > > > > I want to use DateAdd to get a new value based on the mdEndTime value + > > 15 minutes. To do this I used > > > > newEndTIme = DateAdd(mdEndTime, gb.minute, 15) > > > > And promptly got an Overflow error. > > > > Now I'm puzzled. Is there a problem with DateAdd? > > > > Regards > > Steve. > > I confirm the bug. I will look at it... OK, fixed in revision #4097. Regards, -- Beno?t Minisini From gambas at ...1... Tue Sep 6 13:12:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Sep 2011 13:12:53 +0200 Subject: [Gambas-user] ARM debugging - where to start? In-Reply-To: <1315294431.1775.17.camel@...2672...> References: <1315294431.1775.17.camel@...2672...> Message-ID: <201109061312.53335.gambas@...1...> > Hi, > > I have an ARM based Genesi Smarttop unit which runs Ubuntu 10.10 and it > has Gambas version 2. When Gambas starts up gbx2 runs, consumes all > resources > in a big loop. If I start with it in command line, I get no output - > zip. No clues what > could be going on. I left a message in their forum > http://www.powerdeveloper.org/forums/viewtopic.php?t=2042 > but no response for some weeks now. > > So it looks like I have an excuse to go from being a big fan of Gambas > to an even > bigger fan and help debug :-) > > Bearing in mind this is ARM platform, and I don't know first thing about > gamabas > development, what is the first things I should do? > Please be explicit with syntax for use of commands and parameters to be > sent > to get some debug messages and results, as I won't be able to > second guess what is being suggested. > > I am familiar with C (skill rating 9/10), C++ (4/10), using gambas > (8/10). > > > Thanks. > > JM > Gambas 2 already runs some project on ARM, but two ARM computers are well- known to be very different! Go to the directory of the Gambas 2 project you want to run, and use the debugger. Hit CTRL+C to stop it when it loops, and send me the backtrace. $ cd /path/to/my/gambas/project $ gdb gbx2 ... (gdb) run ... ^C (gdb) bt ... Please try to compile the latest version of gambas, and with debugging information enabled. Try to compile with and without optimization too, to see if something changes. Regards, -- Beno?t Minisini From sbungay at ...981... Tue Sep 6 13:12:54 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 06 Sep 2011 07:12:54 -0400 Subject: [Gambas-user] dateadd overflow... In-Reply-To: <201109061309.45747.gambas@...1...> References: <4E658917.30708@...981...> <201109061301.43451.gambas@...1...> <201109061309.45747.gambas@...1...> Message-ID: <4E660036.3030001@...981...> On 09/06/2011 07:09 AM, Beno?t Minisini wrote: >>> Gambas 2.23 >>> >>> I have three variables, all of type date. >>> >>> mdStartTime >>> mdEndTime >>> newEndTime >>> >>> The first two contain time values with no date portion. This was >>> obtained from a function which used >>> >>> Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2])) >>> >>> to generate the value to return. It ends up that the following get >>> assigned; >>> >>> mdStartTime = 10:01:31 >>> mdEndTIme = 10:16:31 >>> >>> I want to use DateAdd to get a new value based on the mdEndTime value + >>> 15 minutes. To do this I used >>> >>> newEndTIme = DateAdd(mdEndTime, gb.minute, 15) >>> >>> And promptly got an Overflow error. >>> >>> Now I'm puzzled. Is there a problem with DateAdd? >>> >>> Regards >>> Steve. >> I confirm the bug. I will look at it... > OK, fixed in revision #4097. > > Regards, > Merci. From gambas at ...2524... Tue Sep 6 13:02:14 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Sep 2011 11:02:14 +0000 Subject: [Gambas-user] Issue 103 in gambas: Treeview KeyRelease behaves differently with gtk and qt4 In-Reply-To: <0-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 103 by benoit.m... at ...626...: Treeview KeyRelease behaves differently with gtk and qt4 http://code.google.com/p/gambas/issues/detail?id=103 I know that the behaviour of Qt4 is by design, (it is automatic repetition, and so simulates multiple press and release events). But I don't know for GTK+. Maybe they decide to simulate only the press events, and so I guess I won't be able to change that. I will investigate... From sbungay at ...981... Tue Sep 6 15:09:28 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 06 Sep 2011 09:09:28 -0400 Subject: [Gambas-user] Slider event trapping... Message-ID: <4E661B88.8020709@...981...> Only event that seems to work is the Change event.... documentation says it inherits Control so I'm thinking that MouseUp/Down/Wheel etc. should also get raised. Am I mistaken? Regards Steve. From eilert-sprachen at ...221... Tue Sep 6 15:38:16 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 06 Sep 2011 15:38:16 +0200 Subject: [Gambas-user] Does really nobody have an idea? Message-ID: <4E662248.9080403@...221...> I sent this yesterday, but nobody seems to know - or is the question too stupid to be answered? :-) As the mailing list doesn't accept a repost, I put it under a new Re. Hope you aren't annoyed, guys... Hi folks, Is there a general function that counts or registers mouse and keyboard events on an application-wide level? Already in Gambas 2 ? What I need is something that simply watches if the user has clicked or typed ANYWHERE into the program within a given period without having to count the clicks and types of each GUI element separately. My idea is to hide personal data parts of the GUI after some time of no action and require a password before releasing the surface again. Thanks for all ideas and hints! Rolf From sbungay at ...981... Tue Sep 6 15:48:52 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 06 Sep 2011 09:48:52 -0400 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E662248.9080403@...221...> References: <4E662248.9080403@...221...> Message-ID: <4E6624C4.9010400@...981...> On 09/06/2011 09:38 AM, Rolf-Werner Eilert wrote: > I sent this yesterday, but nobody seems to know - or is the question too > stupid to be answered? :-) > > As the mailing list doesn't accept a repost, I put it under a new Re. > Hope you aren't annoyed, guys... > > Hi folks, > > Is there a general function that counts or registers mouse and keyboard > events on an application-wide level? Already in Gambas 2 ? > > What I need is something that simply watches if the user has clicked or > typed ANYWHERE into the program within a given period without having to > count the clicks and types of each GUI element separately. > > My idea is to hide personal data parts of the GUI after some time of no > action and require a password before releasing the surface again. > > Thanks for all ideas and hints! > > Rolf > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi Rolf! Not an answer for you (yet) but I'll add my voice because what you're looking for would probably also help me. Basically I need to know when a user has released the mouse button on a slider control, signalling that they have finished making changes and allowing normal program execution to resume... so far no luck. Regards Steve From gambas.fr at ...626... Tue Sep 6 16:20:22 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Sep 2011 16:20:22 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E6624C4.9010400@...981...> References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> Message-ID: first answer for steve Public Sub Slider1_MouseUp() Print "Mouse is released" End From gambas.fr at ...626... Tue Sep 6 16:42:03 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Sep 2011 16:42:03 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> Message-ID: good question rolf :/ 2011/9/6 Fabien Bodard : > first answer for steve > > Public Sub Slider1_MouseUp() > > ?Print "Mouse is released" > > End > -- Fabien Bodard From dag.jarle.johansen at ...626... Tue Sep 6 16:54:55 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 6 Sep 2011 11:54:55 -0300 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> Message-ID: Hi, I had to write something like that in VB for QM. Even though the effort might be overwhelming, I would do some thing like this: make a global object in some module, f.eks. m.module public GetMe as object in the same module you save or do anything f.eks puclic sub WriteLogg() 2011/9/6 Fabien Bodard > good question rolf :/ > > 2011/9/6 Fabien Bodard : > > first answer for steve > > > > Public Sub Slider1_MouseUp() > > > > Print "Mouse is released" > > > > End > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Tue Sep 6 17:04:23 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 6 Sep 2011 12:04:23 -0300 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> Message-ID: Something happened.... public sub WriteLogg() print GetMe.name (and or other options) end And the heavy stuff is here: for every Object you want to control, you will have to: private sub xxx_control_click() GetMet=xxx_control m.WriteLogg Alternate WriteLogg as function public WriteLogg(xctrl as control) print xctrl.name.... I am sure one of the guys here have more sophisticated solutions for you., f.eks the event-handler on every form, but I am not so good at that yet. Regards, Dag-Jarle 2011/9/6 Dag-Jarle Johansen > Hi, > > I had to write something like that in VB for QM. Even though the effort > might be overwhelming, I would do some thing like this: > > make a global object in some module, > f.eks. > m.module > public GetMe as object > > in the same module you save or do anything f.eks > > puclic sub WriteLogg() > > > > 2011/9/6 Fabien Bodard > >> good question rolf :/ >> >> 2011/9/6 Fabien Bodard : >> > first answer for steve >> > >> > Public Sub Slider1_MouseUp() >> > >> > Print "Mouse is released" >> > >> > End >> > >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From eilert-sprachen at ...221... Tue Sep 6 17:29:10 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 06 Sep 2011 17:29:10 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> Message-ID: <4E663C46.7030704@...221...> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I would like to avoid? I guess the whole thing depends on the question of how QT or GTK handle the events of the controls within a window/application. I cannot imagine that the controls are accessed by the GUI (X) directly. That would imply an event loop for each control. Instead, I would expect one event loop for the application within which you have one event request for each window within which you have one event request for each control of that window. If there is a slot for the overall mouse activities of one window or application in QT (on the C++ side), it should be easy for Benoit to connect this to a Gambas event. If not, things are different :-) Regards Rolf Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: > Something happened.... > > public sub WriteLogg() > print GetMe.name (and or other options) > end > > And the heavy stuff is here: > > for every Object you want to control, you will have to: > > private sub xxx_control_click() > GetMet=xxx_control > m.WriteLogg > > Alternate WriteLogg as function > > public WriteLogg(xctrl as control) > print xctrl.name.... > > I am sure one of the guys here have more sophisticated solutions for you., > f.eks the event-handler on every form, but I am not so good at that yet. > > Regards, > Dag-Jarle > > 2011/9/6 Dag-Jarle Johansen > >> Hi, >> >> I had to write something like that in VB for QM. Even though the effort >> might be overwhelming, I would do some thing like this: >> >> make a global object in some module, >> f.eks. >> m.module >> public GetMe as object >> >> in the same module you save or do anything f.eks >> >> puclic sub WriteLogg() >> >> >> >> 2011/9/6 Fabien Bodard >> >>> good question rolf :/ >>> >>> 2011/9/6 Fabien Bodard: >>>> first answer for steve >>>> >>>> Public Sub Slider1_MouseUp() >>>> >>>> Print "Mouse is released" >>>> >>>> End >>>> >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> >>> ------------------------------------------------------------------------------ >>> Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eficara at ...626... Tue Sep 6 17:30:10 2011 From: eficara at ...626... (robotop) Date: Tue, 6 Sep 2011 08:30:10 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <32403979.post@...1379...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> <32403858.post@...1379...> <201109052253.44466.gambas@...1...> <32403979.post@...1379...> Message-ID: <32409066.post@...1379...> ahem, sorry for my previous infos: the puppy linux gambas version I'm using is 2.7 not 2.2 as I erroneously mentioned (it's shown in big capital letters !!!) . So, may be, that's not so old version. May this new infos can have any impact on the solution of "equal signs mistery" ? :-/ -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32409066.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Sep 6 18:18:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Sep 2011 18:18:01 +0200 Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <32409066.post@...1379...> References: <32388134.post@...1379...> <32403979.post@...1379...> <32409066.post@...1379...> Message-ID: <201109061818.01515.gambas@...1...> > ahem, sorry for my previous infos: the puppy linux gambas version I'm using > is 2.7 not 2.2 as I erroneously mentioned (it's shown in big capital > letters !!!) . So, may be, that's not so old version. May this new infos > can have any impact on the solution of "equal signs mistery" ? :-/ "=" signs are not a mystery, this is the standard way of quoting dots in the "quoted-printable" mail format. -- Beno?t Minisini From gambas at ...2524... Tue Sep 6 18:20:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Sep 2011 16:20:51 +0000 Subject: [Gambas-user] Issue 100 in gambas: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) In-Reply-To: <1-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> <0-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9376645274935882674-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 100 by benoit.m... at ...626...: GB2 to GB3 convert fails if .icon.png is a symbolic link or read-only(?) http://code.google.com/p/gambas/issues/detail?id=100 Fixed in revision #4098. Now instead of crashing, the IDE just prints a warning on the standard error output. From eficara at ...626... Tue Sep 6 19:22:03 2011 From: eficara at ...626... (robotop) Date: Tue, 6 Sep 2011 10:22:03 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <201109061818.01515.gambas@...1...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> <32403858.post@...1379...> <201109052253.44466.gambas@...1...> <32403979.post@...1379...> <32409066.post@...1379...> <201109061818.01515.gambas@...1...> Message-ID: <32410054.post@...1379...> Thank you, I supposed something similar, but was confused by the fact that some dots are sent exacly as dots and others are padded with the equal sign, so what's the rule ? Now, I will immediatly load the specs for the quoted-printable mail format and learn (what I missed to do before). Another question: is there a way to force the gb.net.smtp to use a different format that simply uses (without any encoding) the standard 7 bits ascii set ? Thank you again for your kindness and patience. -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32410054.html Sent from the gambas-user mailing list archive at Nabble.com. From eficara at ...626... Tue Sep 6 20:07:05 2011 From: eficara at ...626... (robotop) Date: Tue, 6 Sep 2011 11:07:05 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <32410054.post@...1379...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> <32403858.post@...1379...> <201109052253.44466.gambas@...1...> <32403979.post@...1379...> <32409066.post@...1379...> <201109061818.01515.gambas@...1...> <32410054.post@...1379...> Message-ID: <32410387.post@...1379...> robotop wrote: > > Thank you, I supposed something similar, but was confused by the fact that > some dots are sent exacly as dots and others are padded with the equal > sign, so what's the rule ? Now, I will immediatly load the specs for the > quoted-printable mail format and learn (what I missed to do before). > Another question: is there a way to force the gb.net.smtp to use a > different format that simply uses (without any encoding) the standard 7 > bits ascii set ? Thank you again for your kindness and patience. > After reading the specs, the quoted-printable is the right format for my purposes, but the rule is that every printable character is represented by itself as in the following text copied from the specs: "All printable ASCII characters (decimal values between 33 and 126) may be represented by themselves, except "=" (decimal 61)." So, the dot, being printable and different from decimal 61, doesn't need for any translation, in my opinion. Do you agreed ? -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32410387.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Tue Sep 6 20:35:39 2011 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 6 Sep 2011 20:35:39 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E663C46.7030704@...221...> References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> Message-ID: Here there is a class that do exactly what you want (I hope). http://www.gambas-es.org/download.php?id=82 I included a little proyect with example. Hope it'll be usefull. Regards. 2011/9/6 Rolf-Werner Eilert > Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I > would like to avoid? > > I guess the whole thing depends on the question of how QT or GTK handle > the events of the controls within a window/application. I cannot imagine > that the controls are accessed by the GUI (X) directly. That would imply > an event loop for each control. Instead, I would expect one event loop > for the application within which you have one event request for each > window within which you have one event request for each control of that > window. > > If there is a slot for the overall mouse activities of one window or > application in QT (on the C++ side), it should be easy for Benoit to > connect this to a Gambas event. If not, things are different :-) > > Regards > > Rolf > > > Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: > > Something happened.... > > > > public sub WriteLogg() > > print GetMe.name (and or other options) > > end > > > > And the heavy stuff is here: > > > > for every Object you want to control, you will have to: > > > > private sub xxx_control_click() > > GetMet=xxx_control > > m.WriteLogg > > > > Alternate WriteLogg as function > > > > public WriteLogg(xctrl as control) > > print xctrl.name.... > > > > I am sure one of the guys here have more sophisticated solutions for > you., > > f.eks the event-handler on every form, but I am not so good at that yet. > > > > Regards, > > Dag-Jarle > > > > 2011/9/6 Dag-Jarle Johansen > > > >> Hi, > >> > >> I had to write something like that in VB for QM. Even though the effort > >> might be overwhelming, I would do some thing like this: > >> > >> make a global object in some module, > >> f.eks. > >> m.module > >> public GetMe as object > >> > >> in the same module you save or do anything f.eks > >> > >> puclic sub WriteLogg() > >> > >> > >> > >> 2011/9/6 Fabien Bodard > >> > >>> good question rolf :/ > >>> > >>> 2011/9/6 Fabien Bodard: > >>>> first answer for steve > >>>> > >>>> Public Sub Slider1_MouseUp() > >>>> > >>>> Print "Mouse is released" > >>>> > >>>> End > >>>> > >>> > >>> > >>> > >>> -- > >>> Fabien Bodard > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Special Offer -- Download ArcSight Logger for FREE! > >>> Finally, a world-class log management solution at an even better > >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you > >>> download Logger. Secure your free ArcSight Logger TODAY! > >>> http://p.sf.net/sfu/arcsisghtdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > >> > > > ------------------------------------------------------------------------------ > > Special Offer -- Download ArcSight Logger for FREE! > > Finally, a world-class log management solution at an even better > > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > > download Logger. Secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsisghtdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From karl.reinl at ...9... Tue Sep 6 22:37:46 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 06 Sep 2011 22:37:46 +0200 Subject: [Gambas-user] gambas3 and the hidden .src Message-ID: <1315341466.6456.10.camel@...40...> Salut, now I work more and more with gambas3, and I found out, in daily work the hidden .src is really .."now it's time for the sh.. or f... word". I don't remember if there was/is a reason to hide the source code, but now I know it sucks, that it is hidden. What does the community think about that? -- Amicalement Charlie From rterry at ...1946... Wed Sep 7 00:14:30 2011 From: rterry at ...1946... (richard terry) Date: Wed, 7 Sep 2011 08:14:30 +1000 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: <1315341466.6456.10.camel@...40...> References: <1315341466.6456.10.camel@...40...> Message-ID: <201109070814.30232.rterry@...1946...> On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: > Salut, > > now I work more and more with gambas3, and I found out, in daily work > the hidden .src is really .."now it's time for the sh.. or f... word". > > I don't remember if there was/is a reason to hide the source code, but > now I know it sucks, that it is hidden. > > What does the community think about that? > No issues, what's the problem?, if you really need to access the code tree outside of the gambas IDE just type in the dir as you usually would Richard From Karl.Reinl at ...2345... Wed Sep 7 00:31:19 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 07 Sep 2011 00:31:19 +0200 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: <201109070814.30232.rterry@...1946...> References: <1315341466.6456.10.camel@...40...> <201109070814.30232.rterry@...1946...> Message-ID: <1315348279.6456.25.camel@...40...> Am Mittwoch, den 07.09.2011, 08:14 +1000 schrieb richard terry: > On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: > > Salut, > > > > now I work more and more with gambas3, and I found out, in daily work > > the hidden .src is really .."now it's time for the sh.. or f... word". > > > > I don't remember if there was/is a reason to hide the source code, but > > now I know it sucks, that it is hidden. > > > > What does the community think about that? > > > No issues, what's the problem?, if you really need to access the code tree > outside of the gambas IDE just type in the dir as you usually would > > Richard Salut Richard, it is not the problem outside the code tree, it's the access with the gambas3-IDE which makes the problem. May be only on Mandriva 2010.2. But that sucks. Did you try to add a source code from an other project ? Try it more then one time, .. not nice, for not saying hoorible! -- Amicalement Charlie From rterry at ...1946... Wed Sep 7 00:43:23 2011 From: rterry at ...1946... (richard terry) Date: Wed, 7 Sep 2011 08:43:23 +1000 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: <1315348279.6456.25.camel@...40...> References: <1315341466.6456.10.camel@...40...> <201109070814.30232.rterry@...1946...> <1315348279.6456.25.camel@...40...> Message-ID: <201109070843.23440.rterry@...1946...> On Wednesday 07 September 2011 08:31:19 Charlie Reinl wrote: > Am Mittwoch, den 07.09.2011, 08:14 +1000 schrieb richard terry: > > On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: > > > Salut, > > > > > > now I work more and more with gambas3, and I found out, in daily work > > > the hidden .src is really .."now it's time for the sh.. or f... word". > > > > > > I don't remember if there was/is a reason to hide the source code, but > > > now I know it sucks, that it is hidden. > > > > > > What does the community think about that? > > > > No issues, what's the problem?, if you really need to access the code > > tree outside of the gambas IDE just type in the dir as you usually would > > > > Richard > > Salut Richard, > > it is not the problem outside the code tree, it's the access with the > gambas3-IDE which makes the problem. May be only on Mandriva 2010.2. > But that sucks. Did you try to add a source code from an other project ? > Try it more then one time, .. not nice, for not saying hoorible! Must say I havn't other than copy the class and form files into the dir from outside into the appropriate part of the tree, didn't find that a problem. Otherwise if I need to copy from another project I just Ctrl C the Graphics and paste onto a blank form, or Ctrl copy the entire code or Ctrl C any menu's and paste into the menu editor. I've worked with gambas 3 for several years - its fabulous and Benoit has slowly evolved it incorporating many of my own (and many others) personal design requests into the IDE as he went along for which I'm eternally grateful. Richard From ihaywood at ...1979... Wed Sep 7 01:34:32 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Wed, 7 Sep 2011 09:34:32 +1000 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: <1315341466.6456.10.camel@...40...> References: <1315341466.6456.10.camel@...40...> Message-ID: On Wed, Sep 7, 2011 at 6:37 AM, Karl Reinl wrote: > Salut, > > now I work more and more with gambas3, and I found out, in daily work > the hidden .src is really .."now it's time for the sh.. or f... word". > > I don't remember if there was/is a reason to hide the source code, but > now I know it sucks, that it is hidden. > > What does the community think about that? I'd second this. Yes .src makes no difference for the GUI IDE, but src with no dot would also work just as well. The only point of the dot is it hides the directory from standard UNIX tools such as ls and grep. Maybe I'm just a command-line diehard, but I *like* using those tools and so I agree with Karl. Also it is more "standard" as all other languages have their src directory without a dot. Ian From gambas at ...1... Wed Sep 7 01:54:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Sep 2011 01:54:59 +0200 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: References: <1315341466.6456.10.camel@...40...> Message-ID: <201109070154.59241.gambas@...1...> > On Wed, Sep 7, 2011 at 6:37 AM, Karl Reinl wrote: > > Salut, > > > > now I work more and more with gambas3, and I found out, in daily work > > the hidden .src is really .."now it's time for the sh.. or f... word". > > > > I don't remember if there was/is a reason to hide the source code, but > > now I know it sucks, that it is hidden. > > > > What does the community think about that? > > I'd second this. Yes .src makes no difference for the GUI IDE, but > src with no dot would also work just as well. The only point of the > dot is it hides the directory from standard UNIX tools such as ls and > grep. Maybe I'm just a command-line diehard, but I *like* using those > tools and so I agree with Karl. Also it is more "standard" as all > other languages have their src directory without a dot. > > Ian > The reason why it is named ".src" is the following: all non-hidden files in the root directory of the project are included in the executable. So, to rename ".src" to something not-hidden, I have to change the way data files are organized, and I can't do that before Gambas 4! Regards, -- Beno?t Minisini From dag.jarle.johansen at ...626... Wed Sep 7 02:19:11 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 6 Sep 2011 21:19:11 -0300 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E663C46.7030704@...221...> References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> Message-ID: Hi Rolf-Werner, sorry, I thought just that. I Benoit have no better solution, I could write you a little parser; takes just one second, and the form(s) is/are up to date, and you can define in a INI which events to monitor. This is a quick and dirty solution, but surely works, and you have no effort at all. Regards, Dag-Jarle 2011/9/6 Rolf-Werner Eilert > Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I > would like to avoid? > > I guess the whole thing depends on the question of how QT or GTK handle > the events of the controls within a window/application. I cannot imagine > that the controls are accessed by the GUI (X) directly. That would imply > an event loop for each control. Instead, I would expect one event loop > for the application within which you have one event request for each > window within which you have one event request for each control of that > window. > > If there is a slot for the overall mouse activities of one window or > application in QT (on the C++ side), it should be easy for Benoit to > connect this to a Gambas event. If not, things are different :-) > > Regards > > Rolf > > > Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: > > Something happened.... > > > > public sub WriteLogg() > > print GetMe.name (and or other options) > > end > > > > And the heavy stuff is here: > > > > for every Object you want to control, you will have to: > > > > private sub xxx_control_click() > > GetMet=xxx_control > > m.WriteLogg > > > > Alternate WriteLogg as function > > > > public WriteLogg(xctrl as control) > > print xctrl.name.... > > > > I am sure one of the guys here have more sophisticated solutions for > you., > > f.eks the event-handler on every form, but I am not so good at that yet. > > > > Regards, > > Dag-Jarle > > > > 2011/9/6 Dag-Jarle Johansen > > > >> Hi, > >> > >> I had to write something like that in VB for QM. Even though the effort > >> might be overwhelming, I would do some thing like this: > >> > >> make a global object in some module, > >> f.eks. > >> m.module > >> public GetMe as object > >> > >> in the same module you save or do anything f.eks > >> > >> puclic sub WriteLogg() > >> > >> > >> > >> 2011/9/6 Fabien Bodard > >> > >>> good question rolf :/ > >>> > >>> 2011/9/6 Fabien Bodard: > >>>> first answer for steve > >>>> > >>>> Public Sub Slider1_MouseUp() > >>>> > >>>> Print "Mouse is released" > >>>> > >>>> End > >>>> > >>> > >>> > >>> > >>> -- > >>> Fabien Bodard > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Special Offer -- Download ArcSight Logger for FREE! > >>> Finally, a world-class log management solution at an even better > >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you > >>> download Logger. Secure your free ArcSight Logger TODAY! > >>> http://p.sf.net/sfu/arcsisghtdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > >> > > > ------------------------------------------------------------------------------ > > Special Offer -- Download ArcSight Logger for FREE! > > Finally, a world-class log management solution at an even better > > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > > download Logger. Secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsisghtdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Sep 7 02:24:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Sep 2011 02:24:37 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E662248.9080403@...221...> References: <4E662248.9080403@...221...> Message-ID: <201109070224.37222.gambas@...1...> > I sent this yesterday, but nobody seems to know - or is the question too > stupid to be answered? :-) > > As the mailing list doesn't accept a repost, I put it under a new Re. > Hope you aren't annoyed, guys... > > Hi folks, > > Is there a general function that counts or registers mouse and keyboard > events on an application-wide level? Already in Gambas 2 ? > > What I need is something that simply watches if the user has clicked or > typed ANYWHERE into the program within a given period without having to > count the clicks and types of each GUI element separately. > > My idea is to hide personal data parts of the GUI after some time of no > action and require a password before releasing the surface again. > > Thanks for all ideas and hints! > > Rolf > I may have a solution, but after the Gambas 3 release. Sorry! -- Beno?t Minisini From sbungay at ...981... Wed Sep 7 02:24:48 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 06 Sep 2011 20:24:48 -0400 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> Message-ID: <4E66B9D0.3070805@...981...> On 09/06/2011 10:20 AM, Fabien Bodard wrote: > first answer for steve > > Public Sub Slider1_MouseUp() > > Print "Mouse is released" > > End > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi Fabien Been there, done that. MouseUp is not firing, which is why I posted the initial email in the first place. Must be something interfering with it. I do have gambas 3 and 2 installed on the same machine... Might they be interfering with each other? Otherwise everything is working well... just can't tell when the user depresses or releases the mouse on the slider (there may be other events not firing.. I have not tested them all). Regards Steve From gambas at ...1... Wed Sep 7 02:29:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Sep 2011 02:29:14 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E66B9D0.3070805@...981...> References: <4E662248.9080403@...221...> <4E66B9D0.3070805@...981...> Message-ID: <201109070229.14717.gambas@...1...> > On 09/06/2011 10:20 AM, Fabien Bodard wrote: > > first answer for steve > > > > Public Sub Slider1_MouseUp() > > > > Print "Mouse is released" > > > > End > > > > ------------------------------------------------------------------------- > > ----- Special Offer -- Download ArcSight Logger for FREE! > > Finally, a world-class log management solution at an even better > > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > > download Logger. Secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsisghtdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi Fabien > > Been there, done that. MouseUp is not firing, which is why I posted > the initial email in the first place. Must be something interfering with > it. I do have gambas 3 and 2 installed on the same machine... Might they > be interfering with each other? Otherwise everything is working well... > just can't tell when the user depresses or releases the mouse on the > slider (there may be other events not firing.. I have not tested them all). > > Regards > Steve > with Qt or GTK+? -- Beno?t Minisini From sbungay at ...981... Wed Sep 7 02:33:45 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 06 Sep 2011 20:33:45 -0400 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <201109070229.14717.gambas@...1...> References: <4E662248.9080403@...221...> <4E66B9D0.3070805@...981...> <201109070229.14717.gambas@...1...> Message-ID: <4E66BBE9.504@...981...> On 09/06/2011 08:29 PM, Beno?t Minisini wrote: >> On 09/06/2011 10:20 AM, Fabien Bodard wrote: >>> first answer for steve >>> >>> Public Sub Slider1_MouseUp() >>> >>> Print "Mouse is released" >>> >>> End >>> >>> ------------------------------------------------------------------------- >>> ----- Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> Hi Fabien >> >> Been there, done that. MouseUp is not firing, which is why I posted >> the initial email in the first place. Must be something interfering with >> it. I do have gambas 3 and 2 installed on the same machine... Might they >> be interfering with each other? Otherwise everything is working well... >> just can't tell when the user depresses or releases the mouse on the >> slider (there may be other events not firing.. I have not tested them all). >> >> Regards >> Steve >> > with Qt or GTK+? > GTK+ From sbungay at ...981... Wed Sep 7 02:47:19 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 06 Sep 2011 20:47:19 -0400 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <201109070229.14717.gambas@...1...> References: <4E662248.9080403@...221...> <4E66B9D0.3070805@...981...> <201109070229.14717.gambas@...1...> Message-ID: <4E66BF17.5060708@...981...> On 09/06/2011 08:29 PM, Beno?t Minisini wrote: >> On 09/06/2011 10:20 AM, Fabien Bodard wrote: >>> first answer for steve >>> >>> Public Sub Slider1_MouseUp() >>> >>> Print "Mouse is released" >>> >>> End >>> >>> ------------------------------------------------------------------------- >>> ----- Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> Hi Fabien >> >> Been there, done that. MouseUp is not firing, which is why I posted >> the initial email in the first place. Must be something interfering with >> it. I do have gambas 3 and 2 installed on the same machine... Might they >> be interfering with each other? Otherwise everything is working well... >> just can't tell when the user depresses or releases the mouse on the >> slider (there may be other events not firing.. I have not tested them all). >> >> Regards >> Steve >> > with Qt or GTK+? > Further to the earlier reply... I have tested the following events for Slider under GTK+ DblClick: Does not fire Enter: Does not fire GotFocus: Fires as expected Leave: Does not fire LostFocus: Fires as expected MouseDown: Does not fire MouseUp: Does not fire MouseWheel: Moves the slider but the actual MouseWheel event doesn't fire. Steve From gambas at ...1... Wed Sep 7 03:04:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Sep 2011 03:04:03 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E66BF17.5060708@...981...> References: <4E662248.9080403@...221...> <201109070229.14717.gambas@...1...> <4E66BF17.5060708@...981...> Message-ID: <201109070304.03723.gambas@...1...> > > Further to the earlier reply... I have tested the following events for > Slider under GTK+ > > DblClick: Does not fire > Enter: Does not fire > GotFocus: Fires as expected > Leave: Does not fire > LostFocus: Fires as expected > MouseDown: Does not fire > MouseUp: Does not fire > MouseWheel: Moves the slider but the actual MouseWheel event doesn't fire. > > > Steve > It works with Gambas 3, so it has been fixed in Gambas 3 at least. :-) -- Beno?t Minisini From gambas at ...1... Wed Sep 7 03:59:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Sep 2011 03:59:23 +0200 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: <1315348279.6456.25.camel@...40...> References: <1315341466.6456.10.camel@...40...> <201109070814.30232.rterry@...1946...> <1315348279.6456.25.camel@...40...> Message-ID: <201109070359.23153.gambas@...1...> > Am Mittwoch, den 07.09.2011, 08:14 +1000 schrieb richard terry: > > On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: > > > Salut, > > > > > > now I work more and more with gambas3, and I found out, in daily work > > > the hidden .src is really .."now it's time for the sh.. or f... word". > > > > > > I don't remember if there was/is a reason to hide the source code, but > > > now I know it sucks, that it is hidden. > > > > > > What does the community think about that? > > > > No issues, what's the problem?, if you really need to access the code > > tree outside of the gambas IDE just type in the dir as you usually would > > > > Richard > > Salut Richard, > > it is not the problem outside the code tree, it's the access with the > gambas3-IDE which makes the problem. May be only on Mandriva 2010.2. > But that sucks. Did you try to add a source code from an other project ? > Try it more then one time, .. not nice, for not saying hoorible! I fixed some bugs in revision #4103, so that, now, when inserting a module, class, form... from another project, hidden files are always shown so that the ".src" directory is always visible. I hope it will help! Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Wed Sep 7 08:20:55 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 07 Sep 2011 08:20:55 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <201109070224.37222.gambas@...1...> References: <4E662248.9080403@...221...> <201109070224.37222.gambas@...1...> Message-ID: <4E670D47.4090201@...221...> Am 07.09.2011 02:24, schrieb Beno?t Minisini: >> I sent this yesterday, but nobody seems to know - or is the question too >> stupid to be answered? :-) >> >> As the mailing list doesn't accept a repost, I put it under a new Re. >> Hope you aren't annoyed, guys... >> >> Hi folks, >> >> Is there a general function that counts or registers mouse and keyboard >> events on an application-wide level? Already in Gambas 2 ? >> >> What I need is something that simply watches if the user has clicked or >> typed ANYWHERE into the program within a given period without having to >> count the clicks and types of each GUI element separately. >> >> My idea is to hide personal data parts of the GUI after some time of no >> action and require a password before releasing the surface again. >> >> Thanks for all ideas and hints! >> >> Rolf >> > > I may have a solution, but after the Gambas 3 release. Sorry! > It's not urgent! If you are able to include that later, no problem, I don't need it right now. It's one of these things I've had in mind for quite some while... :-) All I wanted to know is whether it's there already and I might have overseen it. So, thanks in advance! Regards Rolf From eilert-sprachen at ...221... Wed Sep 7 08:33:57 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 07 Sep 2011 08:33:57 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> Message-ID: <4E671055.9060700@...221...> Thank you Jorge, at a first glance this looks promising. I'll try to understand it when I've got some more time, maybe this afternoon or so... Regards Rolf Am 06.09.2011 20:35, schrieb Jorge Carri?n: > Here there is a class that do exactly what you want (I hope). > > http://www.gambas-es.org/download.php?id=82 > I included a little proyect with example. > > Hope it'll be usefull. > > Regards. > > > 2011/9/6 Rolf-Werner Eilert > >> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >> would like to avoid? >> >> I guess the whole thing depends on the question of how QT or GTK handle >> the events of the controls within a window/application. I cannot imagine >> that the controls are accessed by the GUI (X) directly. That would imply >> an event loop for each control. Instead, I would expect one event loop >> for the application within which you have one event request for each >> window within which you have one event request for each control of that >> window. >> >> If there is a slot for the overall mouse activities of one window or >> application in QT (on the C++ side), it should be easy for Benoit to >> connect this to a Gambas event. If not, things are different :-) >> >> Regards >> >> Rolf >> >> >> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>> Something happened.... >>> >>> public sub WriteLogg() >>> print GetMe.name (and or other options) >>> end >>> >>> And the heavy stuff is here: >>> >>> for every Object you want to control, you will have to: >>> >>> private sub xxx_control_click() >>> GetMet=xxx_control >>> m.WriteLogg >>> >>> Alternate WriteLogg as function >>> >>> public WriteLogg(xctrl as control) >>> print xctrl.name.... >>> >>> I am sure one of the guys here have more sophisticated solutions for >> you., >>> f.eks the event-handler on every form, but I am not so good at that yet. >>> >>> Regards, >>> Dag-Jarle >>> >>> 2011/9/6 Dag-Jarle Johansen >>> >>>> Hi, >>>> >>>> I had to write something like that in VB for QM. Even though the effort >>>> might be overwhelming, I would do some thing like this: >>>> >>>> make a global object in some module, >>>> f.eks. >>>> m.module >>>> public GetMe as object >>>> >>>> in the same module you save or do anything f.eks >>>> >>>> puclic sub WriteLogg() >>>> >>>> >>>> >>>> 2011/9/6 Fabien Bodard >>>> >>>>> good question rolf :/ >>>>> >>>>> 2011/9/6 Fabien Bodard: >>>>>> first answer for steve >>>>>> >>>>>> Public Sub Slider1_MouseUp() >>>>>> >>>>>> Print "Mouse is released" >>>>>> >>>>>> End >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Fabien Bodard >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------------ >>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>> Finally, a world-class log management solution at an even better >>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>> >> ------------------------------------------------------------------------------ >>> Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eficara at ...626... Wed Sep 7 10:33:19 2011 From: eficara at ...626... (robotop) Date: Wed, 7 Sep 2011 01:33:19 -0700 (PDT) Subject: [Gambas-user] problems running component gb.net.smtp In-Reply-To: <32410387.post@...1379...> References: <32388134.post@...1379...> <201109052202.11906.gambas@...1...> <32403858.post@...1379...> <201109052253.44466.gambas@...1...> <32403979.post@...1379...> <32409066.post@...1379...> <201109061818.01515.gambas@...1...> <32410054.post@...1379...> <32410387.post@...1379...> Message-ID: <32414294.post@...1379...> Well, after hex-editor inspection, the 'dot' isn't converted; the converted char seems to be a "soft line break" automatically introduced after 32 characters (I don't know why, but the specs says a line must be at max 76 chars long). The other part of the problem is that MY OWN smtp server (minimal implementation) is so minimal that doesn't handle the quoted-printable format ! So, I apologize to you for this waste of time... -- View this message in context: http://old.nabble.com/problems-running-component-gb.net.smtp-tp32388134p32414294.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Sep 7 10:35:25 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 07 Sep 2011 10:35:25 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> Message-ID: <4E672CCD.1050309@...221...> Hi Andreas, Thanks! Looks nice... I tried to integrate it into the program. It DOES function, but only if I click on the panel below the menu. All other controls in the program seem to be ignored. Same with MouseUp. KeyPress doesn't react at all. Here is it: PUBLIC SUB Form_Open() DIM OBJ AS Object DIM OBSwatchall AS Observer 'Start an Observer for Each Control on this Form FOR EACH OBJ IN ME.Children OBSwatchall = NEW Observer(OBJ) AS "WatchAll" NEXT ini.DateiLesen ME.Width = ini.FensterBreite() ME.Height = ini.FensterHoehe() IF ini.FensterZentrieren() THEN ME.Center ELSE ME.X = ini.FensterX() ME.Y = ini.FensterY() END IF ME.Title = "Kartei 7.3" ME.Font.Size = ini.FontGroesse() 'ldsv.DateisperrenAufraeumen EinrichtenBaum Log.Check END PUBLIC SUB WatchAll_MouseDown() Suche.text = LAST.Name & "_MouseDown()" END Any idea what is wrong? Rolf Am 07.09.2011 10:11, schrieb Andreas Fr?hlke: > Hello, > > here's my idea. In Form_Open use the following Code: > > DIM OBJ as Object > DIM OBSwatchall AS Observer > > 'Start an Observer for Each Control on this Form > FOR EACH OBJ IN ME.Children > OBSwatchall = NEW Observer(OBJ) AS "WatchAll" > NEXT > > > Then you only need one Function Like: > > Public SUB WatchAll_MouseDown() > PRINT LAST.Name& "_MouseDown()" > END > > You also can use other Events which must be available for each control like: > > MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... > > > Regards A.Fr?hlke > > -----Urspr?ngliche Nachricht----- > Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] > Gesendet: Mittwoch, 7. September 2011 08:34 > An: gambas-user at lists.sourceforge.net > Betreff: Re: [Gambas-user] Does really nobody have an idea? > > Thank you Jorge, at a first glance this looks promising. I'll try to > understand it when I've got some more time, maybe this afternoon or so... > > Regards > > Rolf > > > Am 06.09.2011 20:35, schrieb Jorge Carri?n: >> Here there is a class that do exactly what you want (I hope). >> >> http://www.gambas-es.org/download.php?id=82 >> I included a little proyect with example. >> >> Hope it'll be usefull. >> >> Regards. >> >> >> 2011/9/6 Rolf-Werner Eilert >> >>> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >>> would like to avoid? >>> >>> I guess the whole thing depends on the question of how QT or GTK handle >>> the events of the controls within a window/application. I cannot imagine >>> that the controls are accessed by the GUI (X) directly. That would imply >>> an event loop for each control. Instead, I would expect one event loop >>> for the application within which you have one event request for each >>> window within which you have one event request for each control of that >>> window. >>> >>> If there is a slot for the overall mouse activities of one window or >>> application in QT (on the C++ side), it should be easy for Benoit to >>> connect this to a Gambas event. If not, things are different :-) >>> >>> Regards >>> >>> Rolf >>> >>> >>> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>>> Something happened.... >>>> >>>> public sub WriteLogg() >>>> print GetMe.name (and or other options) >>>> end >>>> >>>> And the heavy stuff is here: >>>> >>>> for every Object you want to control, you will have to: >>>> >>>> private sub xxx_control_click() >>>> GetMet=xxx_control >>>> m.WriteLogg >>>> >>>> Alternate WriteLogg as function >>>> >>>> public WriteLogg(xctrl as control) >>>> print xctrl.name.... >>>> >>>> I am sure one of the guys here have more sophisticated solutions for >>> you., >>>> f.eks the event-handler on every form, but I am not so good at that yet. >>>> >>>> Regards, >>>> Dag-Jarle >>>> >>>> 2011/9/6 Dag-Jarle Johansen >>>> >>>>> Hi, >>>>> >>>>> I had to write something like that in VB for QM. Even though the effort >>>>> might be overwhelming, I would do some thing like this: >>>>> >>>>> make a global object in some module, >>>>> f.eks. >>>>> m.module >>>>> public GetMe as object >>>>> >>>>> in the same module you save or do anything f.eks >>>>> >>>>> puclic sub WriteLogg() >>>>> >>>>> >>>>> >>>>> 2011/9/6 Fabien Bodard >>>>> >>>>>> good question rolf :/ >>>>>> >>>>>> 2011/9/6 Fabien Bodard: >>>>>>> first answer for steve >>>>>>> >>>>>>> Public Sub Slider1_MouseUp() >>>>>>> >>>>>>> Print "Mouse is released" >>>>>>> >>>>>>> End >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Fabien Bodard >>>>>> >>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>> Finally, a world-class log management solution at an even better >>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>>> >>>> >>> ------------------------------------------------------------------------------ >>>> Special Offer -- Download ArcSight Logger for FREE! >>>> Finally, a world-class log management solution at an even better >>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>> download Logger. Secure your free ArcSight Logger TODAY! >>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Malware Security Report: Protecting Your Business, Customers, and the >> Bottom Line. Protect your business and customers by understanding the >> threat from malware and how it can impact your online business. >> http://www.accelacomm.com/jaw/sfnl/114/51427462/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From afroehlke at ...784... Wed Sep 7 10:11:32 2011 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 7 Sep 2011 10:11:32 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E671055.9060700@...221...> References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> Message-ID: <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> Hello, here's my idea. In Form_Open use the following Code: DIM OBJ as Object DIM OBSwatchall AS Observer 'Start an Observer for Each Control on this Form FOR EACH OBJ IN ME.Children OBSwatchall = NEW Observer(OBJ) AS "WatchAll" NEXT Then you only need one Function Like: Public SUB WatchAll_MouseDown() PRINT LAST.Name & "_MouseDown()" END You also can use other Events which must be available for each control like: MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... Regards A.Fr?hlke -----Urspr?ngliche Nachricht----- Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] Gesendet: Mittwoch, 7. September 2011 08:34 An: gambas-user at lists.sourceforge.net Betreff: Re: [Gambas-user] Does really nobody have an idea? Thank you Jorge, at a first glance this looks promising. I'll try to understand it when I've got some more time, maybe this afternoon or so... Regards Rolf Am 06.09.2011 20:35, schrieb Jorge Carri?n: > Here there is a class that do exactly what you want (I hope). > > http://www.gambas-es.org/download.php?id=82 > I included a little proyect with example. > > Hope it'll be usefull. > > Regards. > > > 2011/9/6 Rolf-Werner Eilert > >> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >> would like to avoid? >> >> I guess the whole thing depends on the question of how QT or GTK handle >> the events of the controls within a window/application. I cannot imagine >> that the controls are accessed by the GUI (X) directly. That would imply >> an event loop for each control. Instead, I would expect one event loop >> for the application within which you have one event request for each >> window within which you have one event request for each control of that >> window. >> >> If there is a slot for the overall mouse activities of one window or >> application in QT (on the C++ side), it should be easy for Benoit to >> connect this to a Gambas event. If not, things are different :-) >> >> Regards >> >> Rolf >> >> >> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>> Something happened.... >>> >>> public sub WriteLogg() >>> print GetMe.name (and or other options) >>> end >>> >>> And the heavy stuff is here: >>> >>> for every Object you want to control, you will have to: >>> >>> private sub xxx_control_click() >>> GetMet=xxx_control >>> m.WriteLogg >>> >>> Alternate WriteLogg as function >>> >>> public WriteLogg(xctrl as control) >>> print xctrl.name.... >>> >>> I am sure one of the guys here have more sophisticated solutions for >> you., >>> f.eks the event-handler on every form, but I am not so good at that yet. >>> >>> Regards, >>> Dag-Jarle >>> >>> 2011/9/6 Dag-Jarle Johansen >>> >>>> Hi, >>>> >>>> I had to write something like that in VB for QM. Even though the effort >>>> might be overwhelming, I would do some thing like this: >>>> >>>> make a global object in some module, >>>> f.eks. >>>> m.module >>>> public GetMe as object >>>> >>>> in the same module you save or do anything f.eks >>>> >>>> puclic sub WriteLogg() >>>> >>>> >>>> >>>> 2011/9/6 Fabien Bodard >>>> >>>>> good question rolf :/ >>>>> >>>>> 2011/9/6 Fabien Bodard: >>>>>> first answer for steve >>>>>> >>>>>> Public Sub Slider1_MouseUp() >>>>>> >>>>>> Print "Mouse is released" >>>>>> >>>>>> End >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Fabien Bodard >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------------ >>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>> Finally, a world-class log management solution at an even better >>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>> >> ------------------------------------------------------------------------------ >>> Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Sep 7 19:05:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Sep 2011 19:05:17 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E672CCD.1050309@...221...> References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> <4E672CCD.1050309@...221...> Message-ID: normal ... the function must be iterative... to take all the child of containers into account 2011/9/7 Rolf-Werner Eilert : > Hi Andreas, > > Thanks! Looks nice... I tried to integrate it into the program. It DOES > function, but only if I click on the panel below the menu. All other > controls in the program seem to be ignored. Same with MouseUp. KeyPress > doesn't react at all. Here is it: > > PUBLIC SUB Form_Open() > DIM OBJ AS Object > DIM OBSwatchall AS Observer > > 'Start an Observer for Each Control on this Form > FOR EACH OBJ IN ME.Children > ? OBSwatchall = NEW Observer(OBJ) AS "WatchAll" > NEXT > > > ? ini.DateiLesen > > ? ME.Width = ini.FensterBreite() > ? ME.Height = ini.FensterHoehe() > > ? IF ini.FensterZentrieren() THEN > ? ? ME.Center > ? ELSE > ? ? ME.X = ini.FensterX() > ? ? ME.Y = ini.FensterY() > ? END IF > > ? ME.Title = "Kartei 7.3" > ? ME.Font.Size = ini.FontGroesse() > > ? 'ldsv.DateisperrenAufraeumen > > ? EinrichtenBaum > > ? Log.Check > > END > > PUBLIC SUB WatchAll_MouseDown() > ? Suche.text = LAST.Name & "_MouseDown()" > END > > Any idea what is wrong? > > Rolf > > > Am 07.09.2011 10:11, schrieb Andreas Fr?hlke: >> Hello, >> >> here's my idea. In Form_Open use the following Code: >> >> DIM OBJ as Object >> DIM OBSwatchall AS Observer >> >> 'Start an Observer for Each Control on this Form >> FOR EACH OBJ IN ME.Children >> ? ?OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >> NEXT >> >> >> Then you only need one Function Like: >> >> Public SUB WatchAll_MouseDown() >> ? ?PRINT LAST.Name& ?"_MouseDown()" >> END >> >> You also can use other Events which must be available for each control like: >> >> MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... >> >> >> Regards A.Fr?hlke >> >> -----Urspr?ngliche Nachricht----- >> Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] >> Gesendet: Mittwoch, 7. September 2011 08:34 >> An: gambas-user at lists.sourceforge.net >> Betreff: Re: [Gambas-user] Does really nobody have an idea? >> >> Thank you Jorge, at a first glance this looks promising. I'll try to >> understand it when I've got some more time, maybe this afternoon or so... >> >> Regards >> >> Rolf >> >> >> Am 06.09.2011 20:35, schrieb Jorge Carri?n: >>> Here there is a class that do exactly what you want (I hope). >>> >>> http://www.gambas-es.org/download.php?id=82 >>> I included a little proyect with example. >>> >>> Hope it'll be usefull. >>> >>> Regards. >>> >>> >>> 2011/9/6 Rolf-Werner Eilert >>> >>>> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >>>> would like to avoid? >>>> >>>> I guess the whole thing depends on the question of how QT or GTK handle >>>> the events of the controls within a window/application. I cannot imagine >>>> that the controls are accessed by the GUI (X) directly. That would imply >>>> an event loop for each control. Instead, I would expect one event loop >>>> for the application within which you have one event request for each >>>> window within which you have one event request for each control of that >>>> window. >>>> >>>> If there is a slot for the overall mouse activities of one window or >>>> application in QT (on the C++ side), it should be easy for Benoit to >>>> connect this to a Gambas event. If not, things are different :-) >>>> >>>> Regards >>>> >>>> Rolf >>>> >>>> >>>> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>>>> Something happened.... >>>>> >>>>> public sub WriteLogg() >>>>> ? ? ? print GetMe.name (and or other options) >>>>> end >>>>> >>>>> And the heavy stuff is here: >>>>> >>>>> for every Object you want to control, you will have to: >>>>> >>>>> private sub xxx_control_click() >>>>> ? ? ?GetMet=xxx_control >>>>> ? ? ?m.WriteLogg >>>>> >>>>> Alternate WriteLogg as function >>>>> >>>>> public WriteLogg(xctrl as control) >>>>> print xctrl.name.... >>>>> >>>>> I am sure one of the guys here have more sophisticated solutions for >>>> you., >>>>> f.eks the event-handler on every form, but I am not so good at that yet. >>>>> >>>>> Regards, >>>>> Dag-Jarle >>>>> >>>>> 2011/9/6 Dag-Jarle Johansen >>>>> >>>>>> Hi, >>>>>> >>>>>> I had to write something like that in VB for QM. Even though the effort >>>>>> might be overwhelming, I would do some thing like this: >>>>>> >>>>>> make a global object in some module, >>>>>> f.eks. >>>>>> m.module >>>>>> public GetMe as object >>>>>> >>>>>> in the same module you save or do anything f.eks >>>>>> >>>>>> puclic sub WriteLogg() >>>>>> >>>>>> >>>>>> >>>>>> 2011/9/6 Fabien Bodard >>>>>> >>>>>>> good question rolf :/ >>>>>>> >>>>>>> 2011/9/6 Fabien Bodard: >>>>>>>> first answer for steve >>>>>>>> >>>>>>>> Public Sub Slider1_MouseUp() >>>>>>>> >>>>>>>> ? ? Print "Mouse is released" >>>>>>>> >>>>>>>> End >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Fabien Bodard >>>>>>> >>>>>>> >>>>>>> >>>> ------------------------------------------------------------------------------ >>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>> Finally, a world-class log management solution at an even better >>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>> >>>>>> >>>>> >>>> ------------------------------------------------------------------------------ >>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>> Finally, a world-class log management solution at an even better >>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Special Offer -- Download ArcSight Logger for FREE! >>>> Finally, a world-class log management solution at an even better >>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>> download Logger. Secure your free ArcSight Logger TODAY! >>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------------ >>> Malware Security Report: Protecting Your Business, Customers, and the >>> Bottom Line. Protect your business and customers by understanding the >>> threat from malware and how it can impact your online business. >>> http://www.accelacomm.com/jaw/sfnl/114/51427462/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> Using storage to extend the benefits of virtualization and iSCSI >> Virtualization increases hardware utilization and delivers a new level of >> agility. Learn what those decisions are and how to modernize your storage >> and backup environments for virtualization. >> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Wed Sep 7 19:09:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Sep 2011 19:09:37 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1315176064.10529.YahooMailClassic@...2666...> References: <1315176064.10529.YahooMailClassic@...2666...> Message-ID: <201109071909.37232.gambas@...1...> > > And where will these file descriptors come from? > > ...from ALSA. > > If I have a Gambas3-program, able to *receive* data Midi from ALSA > (external Midi-Keyboard-->ALSA-sistem--->My-Gambas-Program), I could use > "snd_seq_poll_descriptors_count()" and "snd_seq_poll_descriptors()" ALSA > functions to get one or more file descriptors and event masks for the > sequencer device; these file descriptors can be used to wait for events. > > When I receive an event, I 'ld check if the device is actually ready for > reading or writing by calling snd_seq_poll_descriptors_revents(). > > These ALSA functions are designed to be used with poll() ! > > I'ld need some mechanism to watch a file that is identified by its > already opened file descriptor. > > Bye > Paolo > Did you try to use "OPEN ... FOR READ / WRITE" on "/proc/self/fd/xxx" where xxx is the file descriptor you want to watch? -- Beno?t Minisini From gambas.fr at ...626... Wed Sep 7 19:12:24 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Sep 2011 19:12:24 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> <4E672CCD.1050309@...221...> Message-ID: Private Sub SetAllObservers(hCont as Container) dim hObj as Object Dim hObs as Observer For each hObj in hCont.Children hObs = new Observer(hObj) As "WatchAll" if hObj Is Container then SetAllObservers(hObj) Next End in Form_Open or in _New : Public Sub _New() SetAllObservers(Me) End Public sub WatchAll_MouseUp() Print Object.Type(Last) End 2011/9/7 Fabien Bodard : > normal ... the function must be iterative... to take all the child of > containers into account > > 2011/9/7 Rolf-Werner Eilert : >> Hi Andreas, >> >> Thanks! Looks nice... I tried to integrate it into the program. It DOES >> function, but only if I click on the panel below the menu. All other >> controls in the program seem to be ignored. Same with MouseUp. KeyPress >> doesn't react at all. Here is it: >> >> PUBLIC SUB Form_Open() >> DIM OBJ AS Object >> DIM OBSwatchall AS Observer >> >> 'Start an Observer for Each Control on this Form >> FOR EACH OBJ IN ME.Children >> ? OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >> NEXT >> >> >> ? ini.DateiLesen >> >> ? ME.Width = ini.FensterBreite() >> ? ME.Height = ini.FensterHoehe() >> >> ? IF ini.FensterZentrieren() THEN >> ? ? ME.Center >> ? ELSE >> ? ? ME.X = ini.FensterX() >> ? ? ME.Y = ini.FensterY() >> ? END IF >> >> ? ME.Title = "Kartei 7.3" >> ? ME.Font.Size = ini.FontGroesse() >> >> ? 'ldsv.DateisperrenAufraeumen >> >> ? EinrichtenBaum >> >> ? Log.Check >> >> END >> >> PUBLIC SUB WatchAll_MouseDown() >> ? Suche.text = LAST.Name & "_MouseDown()" >> END >> >> Any idea what is wrong? >> >> Rolf >> >> >> Am 07.09.2011 10:11, schrieb Andreas Fr?hlke: >>> Hello, >>> >>> here's my idea. In Form_Open use the following Code: >>> >>> DIM OBJ as Object >>> DIM OBSwatchall AS Observer >>> >>> 'Start an Observer for Each Control on this Form >>> FOR EACH OBJ IN ME.Children >>> ? ?OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >>> NEXT >>> >>> >>> Then you only need one Function Like: >>> >>> Public SUB WatchAll_MouseDown() >>> ? ?PRINT LAST.Name& ?"_MouseDown()" >>> END >>> >>> You also can use other Events which must be available for each control like: >>> >>> MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... >>> >>> >>> Regards A.Fr?hlke >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] >>> Gesendet: Mittwoch, 7. September 2011 08:34 >>> An: gambas-user at lists.sourceforge.net >>> Betreff: Re: [Gambas-user] Does really nobody have an idea? >>> >>> Thank you Jorge, at a first glance this looks promising. I'll try to >>> understand it when I've got some more time, maybe this afternoon or so... >>> >>> Regards >>> >>> Rolf >>> >>> >>> Am 06.09.2011 20:35, schrieb Jorge Carri?n: >>>> Here there is a class that do exactly what you want (I hope). >>>> >>>> http://www.gambas-es.org/download.php?id=82 >>>> I included a little proyect with example. >>>> >>>> Hope it'll be usefull. >>>> >>>> Regards. >>>> >>>> >>>> 2011/9/6 Rolf-Werner Eilert >>>> >>>>> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >>>>> would like to avoid? >>>>> >>>>> I guess the whole thing depends on the question of how QT or GTK handle >>>>> the events of the controls within a window/application. I cannot imagine >>>>> that the controls are accessed by the GUI (X) directly. That would imply >>>>> an event loop for each control. Instead, I would expect one event loop >>>>> for the application within which you have one event request for each >>>>> window within which you have one event request for each control of that >>>>> window. >>>>> >>>>> If there is a slot for the overall mouse activities of one window or >>>>> application in QT (on the C++ side), it should be easy for Benoit to >>>>> connect this to a Gambas event. If not, things are different :-) >>>>> >>>>> Regards >>>>> >>>>> Rolf >>>>> >>>>> >>>>> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>>>>> Something happened.... >>>>>> >>>>>> public sub WriteLogg() >>>>>> ? ? ? print GetMe.name (and or other options) >>>>>> end >>>>>> >>>>>> And the heavy stuff is here: >>>>>> >>>>>> for every Object you want to control, you will have to: >>>>>> >>>>>> private sub xxx_control_click() >>>>>> ? ? ?GetMet=xxx_control >>>>>> ? ? ?m.WriteLogg >>>>>> >>>>>> Alternate WriteLogg as function >>>>>> >>>>>> public WriteLogg(xctrl as control) >>>>>> print xctrl.name.... >>>>>> >>>>>> I am sure one of the guys here have more sophisticated solutions for >>>>> you., >>>>>> f.eks the event-handler on every form, but I am not so good at that yet. >>>>>> >>>>>> Regards, >>>>>> Dag-Jarle >>>>>> >>>>>> 2011/9/6 Dag-Jarle Johansen >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I had to write something like that in VB for QM. Even though the effort >>>>>>> might be overwhelming, I would do some thing like this: >>>>>>> >>>>>>> make a global object in some module, >>>>>>> f.eks. >>>>>>> m.module >>>>>>> public GetMe as object >>>>>>> >>>>>>> in the same module you save or do anything f.eks >>>>>>> >>>>>>> puclic sub WriteLogg() >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2011/9/6 Fabien Bodard >>>>>>> >>>>>>>> good question rolf :/ >>>>>>>> >>>>>>>> 2011/9/6 Fabien Bodard: >>>>>>>>> first answer for steve >>>>>>>>> >>>>>>>>> Public Sub Slider1_MouseUp() >>>>>>>>> >>>>>>>>> ? ? Print "Mouse is released" >>>>>>>>> >>>>>>>>> End >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Fabien Bodard >>>>>>>> >>>>>>>> >>>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>>> Finally, a world-class log management solution at an even better >>>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>> Finally, a world-class log management solution at an even better >>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>> Finally, a world-class log management solution at an even better >>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------------------------ >>>> Malware Security Report: Protecting Your Business, Customers, and the >>>> Bottom Line. Protect your business and customers by understanding the >>>> threat from malware and how it can impact your online business. >>>> http://www.accelacomm.com/jaw/sfnl/114/51427462/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Using storage to extend the benefits of virtualization and iSCSI >>> Virtualization increases hardware utilization and delivers a new level of >>> agility. Learn what those decisions are and how to modernize your storage >>> and backup environments for virtualization. >>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> Using storage to extend the benefits of virtualization and iSCSI >> Virtualization increases hardware utilization and delivers a new level of >> agility. Learn what those decisions are and how to modernize your storage >> and backup environments for virtualization. >> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From afroehlke at ...784... Thu Sep 8 08:47:45 2011 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 8 Sep 2011 08:47:45 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> <4E672CCD.1050309@...221...> Message-ID: <8D42310D957CFB46AA11921A711D4D16057827A798@...1899...> Sure, i forgot that ther may be containers :) -----Urspr?ngliche Nachricht----- Von: Fabien Bodard [mailto:gambas.fr at ...626...] Gesendet: Mittwoch, 7. September 2011 19:12 An: info at ...394...; mailing list for gambas users Betreff: Re: [Gambas-user] Does really nobody have an idea? Private Sub SetAllObservers(hCont as Container) dim hObj as Object Dim hObs as Observer For each hObj in hCont.Children hObs = new Observer(hObj) As "WatchAll" if hObj Is Container then SetAllObservers(hObj) Next End in Form_Open or in _New : Public Sub _New() SetAllObservers(Me) End Public sub WatchAll_MouseUp() Print Object.Type(Last) End 2011/9/7 Fabien Bodard : > normal ... the function must be iterative... to take all the child of > containers into account > > 2011/9/7 Rolf-Werner Eilert : >> Hi Andreas, >> >> Thanks! Looks nice... I tried to integrate it into the program. It DOES >> function, but only if I click on the panel below the menu. All other >> controls in the program seem to be ignored. Same with MouseUp. KeyPress >> doesn't react at all. Here is it: >> >> PUBLIC SUB Form_Open() >> DIM OBJ AS Object >> DIM OBSwatchall AS Observer >> >> 'Start an Observer for Each Control on this Form >> FOR EACH OBJ IN ME.Children >> ? OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >> NEXT >> >> >> ? ini.DateiLesen >> >> ? ME.Width = ini.FensterBreite() >> ? ME.Height = ini.FensterHoehe() >> >> ? IF ini.FensterZentrieren() THEN >> ? ? ME.Center >> ? ELSE >> ? ? ME.X = ini.FensterX() >> ? ? ME.Y = ini.FensterY() >> ? END IF >> >> ? ME.Title = "Kartei 7.3" >> ? ME.Font.Size = ini.FontGroesse() >> >> ? 'ldsv.DateisperrenAufraeumen >> >> ? EinrichtenBaum >> >> ? Log.Check >> >> END >> >> PUBLIC SUB WatchAll_MouseDown() >> ? Suche.text = LAST.Name & "_MouseDown()" >> END >> >> Any idea what is wrong? >> >> Rolf >> >> >> Am 07.09.2011 10:11, schrieb Andreas Fr?hlke: >>> Hello, >>> >>> here's my idea. In Form_Open use the following Code: >>> >>> DIM OBJ as Object >>> DIM OBSwatchall AS Observer >>> >>> 'Start an Observer for Each Control on this Form >>> FOR EACH OBJ IN ME.Children >>> ? ?OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >>> NEXT >>> >>> >>> Then you only need one Function Like: >>> >>> Public SUB WatchAll_MouseDown() >>> ? ?PRINT LAST.Name& ?"_MouseDown()" >>> END >>> >>> You also can use other Events which must be available for each control like: >>> >>> MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... >>> >>> >>> Regards A.Fr?hlke >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] >>> Gesendet: Mittwoch, 7. September 2011 08:34 >>> An: gambas-user at lists.sourceforge.net >>> Betreff: Re: [Gambas-user] Does really nobody have an idea? >>> >>> Thank you Jorge, at a first glance this looks promising. I'll try to >>> understand it when I've got some more time, maybe this afternoon or so... >>> >>> Regards >>> >>> Rolf >>> >>> >>> Am 06.09.2011 20:35, schrieb Jorge Carri?n: >>>> Here there is a class that do exactly what you want (I hope). >>>> >>>> http://www.gambas-es.org/download.php?id=82 >>>> I included a little proyect with example. >>>> >>>> Hope it'll be usefull. >>>> >>>> Regards. >>>> >>>> >>>> 2011/9/6 Rolf-Werner Eilert >>>> >>>>> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >>>>> would like to avoid? >>>>> >>>>> I guess the whole thing depends on the question of how QT or GTK handle >>>>> the events of the controls within a window/application. I cannot imagine >>>>> that the controls are accessed by the GUI (X) directly. That would imply >>>>> an event loop for each control. Instead, I would expect one event loop >>>>> for the application within which you have one event request for each >>>>> window within which you have one event request for each control of that >>>>> window. >>>>> >>>>> If there is a slot for the overall mouse activities of one window or >>>>> application in QT (on the C++ side), it should be easy for Benoit to >>>>> connect this to a Gambas event. If not, things are different :-) >>>>> >>>>> Regards >>>>> >>>>> Rolf >>>>> >>>>> >>>>> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>>>>> Something happened.... >>>>>> >>>>>> public sub WriteLogg() >>>>>> ? ? ? print GetMe.name (and or other options) >>>>>> end >>>>>> >>>>>> And the heavy stuff is here: >>>>>> >>>>>> for every Object you want to control, you will have to: >>>>>> >>>>>> private sub xxx_control_click() >>>>>> ? ? ?GetMet=xxx_control >>>>>> ? ? ?m.WriteLogg >>>>>> >>>>>> Alternate WriteLogg as function >>>>>> >>>>>> public WriteLogg(xctrl as control) >>>>>> print xctrl.name.... >>>>>> >>>>>> I am sure one of the guys here have more sophisticated solutions for >>>>> you., >>>>>> f.eks the event-handler on every form, but I am not so good at that yet. >>>>>> >>>>>> Regards, >>>>>> Dag-Jarle >>>>>> >>>>>> 2011/9/6 Dag-Jarle Johansen >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I had to write something like that in VB for QM. Even though the effort >>>>>>> might be overwhelming, I would do some thing like this: >>>>>>> >>>>>>> make a global object in some module, >>>>>>> f.eks. >>>>>>> m.module >>>>>>> public GetMe as object >>>>>>> >>>>>>> in the same module you save or do anything f.eks >>>>>>> >>>>>>> puclic sub WriteLogg() >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2011/9/6 Fabien Bodard >>>>>>> >>>>>>>> good question rolf :/ >>>>>>>> >>>>>>>> 2011/9/6 Fabien Bodard: >>>>>>>>> first answer for steve >>>>>>>>> >>>>>>>>> Public Sub Slider1_MouseUp() >>>>>>>>> >>>>>>>>> ? ? Print "Mouse is released" >>>>>>>>> >>>>>>>>> End >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Fabien Bodard >>>>>>>> >>>>>>>> >>>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>>> Finally, a world-class log management solution at an even better >>>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>> Finally, a world-class log management solution at an even better >>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>> Finally, a world-class log management solution at an even better >>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------------------------ >>>> Malware Security Report: Protecting Your Business, Customers, and the >>>> Bottom Line. Protect your business and customers by understanding the >>>> threat from malware and how it can impact your online business. >>>> http://www.accelacomm.com/jaw/sfnl/114/51427462/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Using storage to extend the benefits of virtualization and iSCSI >>> Virtualization increases hardware utilization and delivers a new level of >>> agility. Learn what those decisions are and how to modernize your storage >>> and backup environments for virtualization. >>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> Using storage to extend the benefits of virtualization and iSCSI >> Virtualization increases hardware utilization and delivers a new level of >> agility. Learn what those decisions are and how to modernize your storage >> and backup environments for virtualization. >> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Thu Sep 8 08:56:13 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Sep 2011 08:56:13 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> <4E672CCD.1050309@...221...> Message-ID: <4E68670D.7000606@...221...> Aah sure - because of the containers... I tried it, and it runs well, but I cannot catch action on the scroll bars of the treeview - and nothing comes from the menu and from the program window as well. But it wouldn't disturb so much, so I think, this is a pretty good solution, thank you! What do you think of Jorge's way? It simply catches all mouse movements over the window you want to monitor. Rolf Am 07.09.2011 19:12, schrieb Fabien Bodard: > Private Sub SetAllObservers(hCont as Container) > > dim hObj as Object > Dim hObs as Observer > For each hObj in hCont.Children > hObs = new Observer(hObj) As "WatchAll" > if hObj Is Container then SetAllObservers(hObj) > Next > > End > > > in Form_Open or in _New : > > Public Sub _New() > > SetAllObservers(Me) > > End > > > Public sub WatchAll_MouseUp() > > Print Object.Type(Last) > > End > > 2011/9/7 Fabien Bodard: >> normal ... the function must be iterative... to take all the child of >> containers into account >> >> 2011/9/7 Rolf-Werner Eilert: >>> Hi Andreas, >>> >>> Thanks! Looks nice... I tried to integrate it into the program. It DOES >>> function, but only if I click on the panel below the menu. All other >>> controls in the program seem to be ignored. Same with MouseUp. KeyPress >>> doesn't react at all. Here is it: >>> >>> PUBLIC SUB Form_Open() >>> DIM OBJ AS Object >>> DIM OBSwatchall AS Observer >>> >>> 'Start an Observer for Each Control on this Form >>> FOR EACH OBJ IN ME.Children >>> OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >>> NEXT >>> >>> >>> ini.DateiLesen >>> >>> ME.Width = ini.FensterBreite() >>> ME.Height = ini.FensterHoehe() >>> >>> IF ini.FensterZentrieren() THEN >>> ME.Center >>> ELSE >>> ME.X = ini.FensterX() >>> ME.Y = ini.FensterY() >>> END IF >>> >>> ME.Title = "Kartei 7.3" >>> ME.Font.Size = ini.FontGroesse() >>> >>> 'ldsv.DateisperrenAufraeumen >>> >>> EinrichtenBaum >>> >>> Log.Check >>> >>> END >>> >>> PUBLIC SUB WatchAll_MouseDown() >>> Suche.text = LAST.Name& "_MouseDown()" >>> END >>> >>> Any idea what is wrong? >>> >>> Rolf >>> >>> >>> Am 07.09.2011 10:11, schrieb Andreas Fr?hlke: >>>> Hello, >>>> >>>> here's my idea. In Form_Open use the following Code: >>>> >>>> DIM OBJ as Object >>>> DIM OBSwatchall AS Observer >>>> >>>> 'Start an Observer for Each Control on this Form >>>> FOR EACH OBJ IN ME.Children >>>> OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >>>> NEXT >>>> >>>> >>>> Then you only need one Function Like: >>>> >>>> Public SUB WatchAll_MouseDown() >>>> PRINT LAST.Name& "_MouseDown()" >>>> END >>>> >>>> You also can use other Events which must be available for each control like: >>>> >>>> MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... >>>> >>>> >>>> Regards A.Fr?hlke >>>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] >>>> Gesendet: Mittwoch, 7. September 2011 08:34 >>>> An: gambas-user at lists.sourceforge.net >>>> Betreff: Re: [Gambas-user] Does really nobody have an idea? >>>> >>>> Thank you Jorge, at a first glance this looks promising. I'll try to >>>> understand it when I've got some more time, maybe this afternoon or so... >>>> >>>> Regards >>>> >>>> Rolf >>>> >>>> >>>> Am 06.09.2011 20:35, schrieb Jorge Carri?n: >>>>> Here there is a class that do exactly what you want (I hope). >>>>> >>>>> http://www.gambas-es.org/download.php?id=82 >>>>> I included a little proyect with example. >>>>> >>>>> Hope it'll be usefull. >>>>> >>>>> Regards. >>>>> >>>>> >>>>> 2011/9/6 Rolf-Werner Eilert >>>>> >>>>>> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >>>>>> would like to avoid? >>>>>> >>>>>> I guess the whole thing depends on the question of how QT or GTK handle >>>>>> the events of the controls within a window/application. I cannot imagine >>>>>> that the controls are accessed by the GUI (X) directly. That would imply >>>>>> an event loop for each control. Instead, I would expect one event loop >>>>>> for the application within which you have one event request for each >>>>>> window within which you have one event request for each control of that >>>>>> window. >>>>>> >>>>>> If there is a slot for the overall mouse activities of one window or >>>>>> application in QT (on the C++ side), it should be easy for Benoit to >>>>>> connect this to a Gambas event. If not, things are different :-) >>>>>> >>>>>> Regards >>>>>> >>>>>> Rolf >>>>>> >>>>>> >>>>>> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>>>>>> Something happened.... >>>>>>> >>>>>>> public sub WriteLogg() >>>>>>> print GetMe.name (and or other options) >>>>>>> end >>>>>>> >>>>>>> And the heavy stuff is here: >>>>>>> >>>>>>> for every Object you want to control, you will have to: >>>>>>> >>>>>>> private sub xxx_control_click() >>>>>>> GetMet=xxx_control >>>>>>> m.WriteLogg >>>>>>> >>>>>>> Alternate WriteLogg as function >>>>>>> >>>>>>> public WriteLogg(xctrl as control) >>>>>>> print xctrl.name.... >>>>>>> >>>>>>> I am sure one of the guys here have more sophisticated solutions for >>>>>> you., >>>>>>> f.eks the event-handler on every form, but I am not so good at that yet. >>>>>>> >>>>>>> Regards, >>>>>>> Dag-Jarle >>>>>>> >>>>>>> 2011/9/6 Dag-Jarle Johansen >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I had to write something like that in VB for QM. Even though the effort >>>>>>>> might be overwhelming, I would do some thing like this: >>>>>>>> >>>>>>>> make a global object in some module, >>>>>>>> f.eks. >>>>>>>> m.module >>>>>>>> public GetMe as object >>>>>>>> >>>>>>>> in the same module you save or do anything f.eks >>>>>>>> >>>>>>>> puclic sub WriteLogg() >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2011/9/6 Fabien Bodard >>>>>>>> >>>>>>>>> good question rolf :/ >>>>>>>>> >>>>>>>>> 2011/9/6 Fabien Bodard: >>>>>>>>>> first answer for steve >>>>>>>>>> >>>>>>>>>> Public Sub Slider1_MouseUp() >>>>>>>>>> >>>>>>>>>> Print "Mouse is released" >>>>>>>>>> >>>>>>>>>> End >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Fabien Bodard >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>>>> Finally, a world-class log management solution at an even better >>>>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>>>> _______________________________________________ >>>>>>>>> Gambas-user mailing list >>>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>> Finally, a world-class log management solution at an even better >>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>> Finally, a world-class log management solution at an even better >>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Malware Security Report: Protecting Your Business, Customers, and the >>>>> Bottom Line. Protect your business and customers by understanding the >>>>> threat from malware and how it can impact your online business. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51427462/ >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Using storage to extend the benefits of virtualization and iSCSI >>>> Virtualization increases hardware utilization and delivers a new level of >>>> agility. Learn what those decisions are and how to modernize your storage >>>> and backup environments for virtualization. >>>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Using storage to extend the benefits of virtualization and iSCSI >>> Virtualization increases hardware utilization and delivers a new level of >>> agility. Learn what those decisions are and how to modernize your storage >>> and backup environments for virtualization. >>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> > > > From joem at ...2671... Thu Sep 8 09:13:18 2011 From: joem at ...2671... (Joe Michael) Date: Thu, 08 Sep 2011 08:13:18 +0100 Subject: [Gambas-user] ARM debugging - where to start? In-Reply-To: <201109061312.53335.gambas@...1...> References: <1315294431.1775.17.camel@...2672...> <201109061312.53335.gambas@...1...> Message-ID: <1315465998.1796.6.camel@...2672...> On Tue, 2011-09-06 at 13:12 +0200, Beno?t Minisini wrote: > > Hi, > > > > I have an ARM based Genesi Smarttop unit which runs Ubuntu 10.10 and it > > has Gambas version 2. When Gambas starts up gbx2 runs, consumes all > > resources > > in a big loop. If I start with it in command line, I get no output - > > zip. No clues what > > could be going on. I left a message in their forum > > http://www.powerdeveloper.org/forums/viewtopic.php?t=2042 > > but no response for some weeks now. > > > > So it looks like I have an excuse to go from being a big fan of Gambas > > to an even > > bigger fan and help debug :-) > > > > Bearing in mind this is ARM platform, and I don't know first thing about > > gamabas > > development, what is the first things I should do? > > Please be explicit with syntax for use of commands and parameters to be > > sent > > to get some debug messages and results, as I won't be able to > > second guess what is being suggested. > > > > I am familiar with C (skill rating 9/10), C++ (4/10), using gambas > > (8/10). > > > > > > Thanks. > > > > JM > > > > Gambas 2 already runs some project on ARM, but two ARM computers are well- > known to be very different! > > Go to the directory of the Gambas 2 project you want to run, and use the > debugger. Hit CTRL+C to stop it when it loops, and send me the backtrace. > > $ cd /path/to/my/gambas/project > $ gdb gbx2 > ... > (gdb) run > ... > ^C > (gdb) bt > ... > > Please try to compile the latest version of gambas, and with debugging > information enabled. Try to compile with and without optimization too, to see > if something changes. > > Regards, > Results of running gdb: ----------------------- ~/code/gambas/app1$ gdb gbx2 GNU gdb (GDB) 7.2-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabi". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx2...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/gbx2 [Thread debugging using libthread_db enabled] ^C Program received signal SIGINT, Interrupt. 0x0001850a in ?? () (gdb) bt #0 0x0001850a in ?? () #1 0x0001ee68 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) [Will also try compiling gb3 as suggested over next few days to see if it adds any new information, and post results. Thnx.] ______________________________________________________________________________ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. From Karl.Reinl at ...2345... Thu Sep 8 12:12:42 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 08 Sep 2011 12:12:42 +0200 Subject: [Gambas-user] gambas3 and the hidden .src In-Reply-To: <201109070359.23153.gambas@...1...> References: <1315341466.6456.10.camel@...40...> <201109070814.30232.rterry@...1946...> <1315348279.6456.25.camel@...40...> <201109070359.23153.gambas@...1...> Message-ID: <1315476762.6437.7.camel@...40...> Am Mittwoch, den 07.09.2011, 03:59 +0200 schrieb Beno?t Minisini: > > Am Mittwoch, den 07.09.2011, 08:14 +1000 schrieb richard terry: > > > On Wednesday 07 September 2011 06:37:46 Karl Reinl wrote: > > > > Salut, > > > > > > > > now I work more and more with gambas3, and I found out, in daily work > > > > the hidden .src is really .."now it's time for the sh.. or f... word". > > > > > > > > I don't remember if there was/is a reason to hide the source code, but > > > > now I know it sucks, that it is hidden. > > > > > > > > What does the community think about that? > > > > > > No issues, what's the problem?, if you really need to access the code > > > tree outside of the gambas IDE just type in the dir as you usually would > > > > > > Richard > > > > Salut Richard, > > > > it is not the problem outside the code tree, it's the access with the > > gambas3-IDE which makes the problem. May be only on Mandriva 2010.2. > > But that sucks. Did you try to add a source code from an other project ? > > Try it more then one time, .. not nice, for not saying hoorible! > > I fixed some bugs in revision #4103, so that, now, when inserting a module, > class, form... from another project, hidden files are always shown so that the > ".src" directory is always visible. > > I hope it will help! > > Regards, > Salut Beno?t, Thanks, on an first view, now I can work with. More: After a test, I switched off 'show hidden files' in a project directory it still works Thanks again. -- Amicalement Charlie From gambas at ...1... Thu Sep 8 17:33:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Sep 2011 17:33:06 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E68670D.7000606@...221...> References: <4E662248.9080403@...221...> <4E68670D.7000606@...221...> Message-ID: <201109081733.06212.gambas@...1...> > Aah sure - because of the containers... > > I tried it, and it runs well, but I cannot catch action on the scroll > bars of the treeview - and nothing comes from the menu and from the > program window as well. > > But it wouldn't disturb so much, so I think, this is a pretty good > solution, thank you! > > What do you think of Jorge's way? It simply catches all mouse movements > over the window you want to monitor. > > Rolf > I had another idea : you can create a timer that checks the mouse absolute coordinates every 10 seconds (for example). If the mouse does not move during six timer ticks (so one minute), you can assume that the user is not doing anything. Of course he may use the keyboard only. But then you can use the global keypress event handler "Application_KeyPress" to reset the previous timer. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Thu Sep 8 17:44:32 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Sep 2011 17:44:32 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: References: <4E662248.9080403@...221...> <4E6624C4.9010400@...981...> <4E663C46.7030704@...221...> <4E671055.9060700@...221...> <8D42310D957CFB46AA11921A711D4D16057827A78A@...1899...> <4E672CCD.1050309@...221...> Message-ID: <4E68E2E0.2090202@...221...> I just saw that I cannot make full use of this because in my program, there is a tabstrip, and on one of the tab's pages I have some kind of input mask consisting of a varying number of "sub" tabs and a varying number of textboxes, comboboxes etc. which is generated dynamically after each click on the treeview. So in practice, the program would have to run SetAllObservers all over again - or at least a new observer would have to be started along with each dynamic control created on the input masks. And I guess it would mean having some kind of garbage collection such as I created it for the dynamic controls (I mean, deleting them after use / before another mask is built). Hm... couldn't be too difficult if deleting the Observers is not too difficult... or are they automagically deleted when I delete the dynamic controls...? Any idea? Rolf Am 07.09.2011 19:12, schrieb Fabien Bodard: > Private Sub SetAllObservers(hCont as Container) > > dim hObj as Object > Dim hObs as Observer > For each hObj in hCont.Children > hObs = new Observer(hObj) As "WatchAll" > if hObj Is Container then SetAllObservers(hObj) > Next > > End > > > in Form_Open or in _New : > > Public Sub _New() > > SetAllObservers(Me) > > End > > > Public sub WatchAll_MouseUp() > > Print Object.Type(Last) > > End > > 2011/9/7 Fabien Bodard: >> normal ... the function must be iterative... to take all the child of >> containers into account >> >> 2011/9/7 Rolf-Werner Eilert: >>> Hi Andreas, >>> >>> Thanks! Looks nice... I tried to integrate it into the program. It DOES >>> function, but only if I click on the panel below the menu. All other >>> controls in the program seem to be ignored. Same with MouseUp. KeyPress >>> doesn't react at all. Here is it: >>> >>> PUBLIC SUB Form_Open() >>> DIM OBJ AS Object >>> DIM OBSwatchall AS Observer >>> >>> 'Start an Observer for Each Control on this Form >>> FOR EACH OBJ IN ME.Children >>> OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >>> NEXT >>> >>> >>> ini.DateiLesen >>> >>> ME.Width = ini.FensterBreite() >>> ME.Height = ini.FensterHoehe() >>> >>> IF ini.FensterZentrieren() THEN >>> ME.Center >>> ELSE >>> ME.X = ini.FensterX() >>> ME.Y = ini.FensterY() >>> END IF >>> >>> ME.Title = "Kartei 7.3" >>> ME.Font.Size = ini.FontGroesse() >>> >>> 'ldsv.DateisperrenAufraeumen >>> >>> EinrichtenBaum >>> >>> Log.Check >>> >>> END >>> >>> PUBLIC SUB WatchAll_MouseDown() >>> Suche.text = LAST.Name& "_MouseDown()" >>> END >>> >>> Any idea what is wrong? >>> >>> Rolf >>> >>> >>> Am 07.09.2011 10:11, schrieb Andreas Fr?hlke: >>>> Hello, >>>> >>>> here's my idea. In Form_Open use the following Code: >>>> >>>> DIM OBJ as Object >>>> DIM OBSwatchall AS Observer >>>> >>>> 'Start an Observer for Each Control on this Form >>>> FOR EACH OBJ IN ME.Children >>>> OBSwatchall = NEW Observer(OBJ) AS "WatchAll" >>>> NEXT >>>> >>>> >>>> Then you only need one Function Like: >>>> >>>> Public SUB WatchAll_MouseDown() >>>> PRINT LAST.Name& "_MouseDown()" >>>> END >>>> >>>> You also can use other Events which must be available for each control like: >>>> >>>> MouseUp, MouseDown, KeyPress, KeyRelease, GotFocus, LostFocus, ... >>>> >>>> >>>> Regards A.Fr?hlke >>>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: Rolf-Werner Eilert [mailto:eilert-sprachen at ...221...] >>>> Gesendet: Mittwoch, 7. September 2011 08:34 >>>> An: gambas-user at lists.sourceforge.net >>>> Betreff: Re: [Gambas-user] Does really nobody have an idea? >>>> >>>> Thank you Jorge, at a first glance this looks promising. I'll try to >>>> understand it when I've got some more time, maybe this afternoon or so... >>>> >>>> Regards >>>> >>>> Rolf >>>> >>>> >>>> Am 06.09.2011 20:35, schrieb Jorge Carri?n: >>>>> Here there is a class that do exactly what you want (I hope). >>>>> >>>>> http://www.gambas-es.org/download.php?id=82 >>>>> I included a little proyect with example. >>>>> >>>>> Hope it'll be usefull. >>>>> >>>>> Regards. >>>>> >>>>> >>>>> 2011/9/6 Rolf-Werner Eilert >>>>> >>>>>> Thanks for your idea, Dag-Jarle, but isn't this effort exactly what I >>>>>> would like to avoid? >>>>>> >>>>>> I guess the whole thing depends on the question of how QT or GTK handle >>>>>> the events of the controls within a window/application. I cannot imagine >>>>>> that the controls are accessed by the GUI (X) directly. That would imply >>>>>> an event loop for each control. Instead, I would expect one event loop >>>>>> for the application within which you have one event request for each >>>>>> window within which you have one event request for each control of that >>>>>> window. >>>>>> >>>>>> If there is a slot for the overall mouse activities of one window or >>>>>> application in QT (on the C++ side), it should be easy for Benoit to >>>>>> connect this to a Gambas event. If not, things are different :-) >>>>>> >>>>>> Regards >>>>>> >>>>>> Rolf >>>>>> >>>>>> >>>>>> Am 06.09.2011 17:04, schrieb Dag-Jarle Johansen: >>>>>>> Something happened.... >>>>>>> >>>>>>> public sub WriteLogg() >>>>>>> print GetMe.name (and or other options) >>>>>>> end >>>>>>> >>>>>>> And the heavy stuff is here: >>>>>>> >>>>>>> for every Object you want to control, you will have to: >>>>>>> >>>>>>> private sub xxx_control_click() >>>>>>> GetMet=xxx_control >>>>>>> m.WriteLogg >>>>>>> >>>>>>> Alternate WriteLogg as function >>>>>>> >>>>>>> public WriteLogg(xctrl as control) >>>>>>> print xctrl.name.... >>>>>>> >>>>>>> I am sure one of the guys here have more sophisticated solutions for >>>>>> you., >>>>>>> f.eks the event-handler on every form, but I am not so good at that yet. >>>>>>> >>>>>>> Regards, >>>>>>> Dag-Jarle >>>>>>> >>>>>>> 2011/9/6 Dag-Jarle Johansen >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I had to write something like that in VB for QM. Even though the effort >>>>>>>> might be overwhelming, I would do some thing like this: >>>>>>>> >>>>>>>> make a global object in some module, >>>>>>>> f.eks. >>>>>>>> m.module >>>>>>>> public GetMe as object >>>>>>>> >>>>>>>> in the same module you save or do anything f.eks >>>>>>>> >>>>>>>> puclic sub WriteLogg() >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2011/9/6 Fabien Bodard >>>>>>>> >>>>>>>>> good question rolf :/ >>>>>>>>> >>>>>>>>> 2011/9/6 Fabien Bodard: >>>>>>>>>> first answer for steve >>>>>>>>>> >>>>>>>>>> Public Sub Slider1_MouseUp() >>>>>>>>>> >>>>>>>>>> Print "Mouse is released" >>>>>>>>>> >>>>>>>>>> End >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Fabien Bodard >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>>>> Finally, a world-class log management solution at an even better >>>>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>>>> _______________________________________________ >>>>>>>>> Gambas-user mailing list >>>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>>> Finally, a world-class log management solution at an even better >>>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Special Offer -- Download ArcSight Logger for FREE! >>>>>> Finally, a world-class log management solution at an even better >>>>>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>>>>> download Logger. Secure your free ArcSight Logger TODAY! >>>>>> http://p.sf.net/sfu/arcsisghtdev2dev >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Malware Security Report: Protecting Your Business, Customers, and the >>>>> Bottom Line. Protect your business and customers by understanding the >>>>> threat from malware and how it can impact your online business. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51427462/ >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Using storage to extend the benefits of virtualization and iSCSI >>>> Virtualization increases hardware utilization and delivers a new level of >>>> agility. Learn what those decisions are and how to modernize your storage >>>> and backup environments for virtualization. >>>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Using storage to extend the benefits of virtualization and iSCSI >>> Virtualization increases hardware utilization and delivers a new level of >>> agility. Learn what those decisions are and how to modernize your storage >>> and backup environments for virtualization. >>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> > > > From eilert-sprachen at ...221... Thu Sep 8 17:46:46 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Sep 2011 17:46:46 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <201109081733.06212.gambas@...1...> References: <4E662248.9080403@...221...> <4E68670D.7000606@...221...> <201109081733.06212.gambas@...1...> Message-ID: <4E68E366.7080202@...221...> Am 08.09.2011 17:33, schrieb Beno?t Minisini: >> Aah sure - because of the containers... >> >> I tried it, and it runs well, but I cannot catch action on the scroll >> bars of the treeview - and nothing comes from the menu and from the >> program window as well. >> >> But it wouldn't disturb so much, so I think, this is a pretty good >> solution, thank you! >> >> What do you think of Jorge's way? It simply catches all mouse movements >> over the window you want to monitor. >> >> Rolf >> > > I had another idea : you can create a timer that checks the mouse absolute > coordinates every 10 seconds (for example). If the mouse does not move during > six timer ticks (so one minute), you can assume that the user is not doing > anything. > > Of course he may use the keyboard only. But then you can use the global > keypress event handler "Application_KeyPress" to reset the previous timer. > > Regards, > Wow - so simple :-) that idea has charm! I'll give it a try... Thanks! Rolf From eilert-sprachen at ...221... Thu Sep 8 17:52:58 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Sep 2011 17:52:58 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <201109081733.06212.gambas@...1...> References: <4E662248.9080403@...221...> <4E68670D.7000606@...221...> <201109081733.06212.gambas@...1...> Message-ID: <4E68E4DA.70801@...221...> Am 08.09.2011 17:33, schrieb Beno?t Minisini: >> Aah sure - because of the containers... >> >> I tried it, and it runs well, but I cannot catch action on the scroll >> bars of the treeview - and nothing comes from the menu and from the >> program window as well. >> >> But it wouldn't disturb so much, so I think, this is a pretty good >> solution, thank you! >> >> What do you think of Jorge's way? It simply catches all mouse movements >> over the window you want to monitor. >> >> Rolf >> > > I had another idea : you can create a timer that checks the mouse absolute > coordinates every 10 seconds (for example). If the mouse does not move during > six timer ticks (so one minute), you can assume that the user is not doing > anything. > > Of course he may use the keyboard only. But then you can use the global > keypress event handler "Application_KeyPress" to reset the previous timer. > > Regards, > Argh - where do I have to place Application_KeyPress in code to let it react anywhere in the program? Is there an application-global SUB? Rolf From gambas at ...1... Thu Sep 8 17:54:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Sep 2011 17:54:26 +0200 Subject: [Gambas-user] Does really nobody have an idea? In-Reply-To: <4E68E4DA.70801@...221...> References: <4E662248.9080403@...221...> <201109081733.06212.gambas@...1...> <4E68E4DA.70801@...221...> Message-ID: <201109081754.26364.gambas@...1...> > > > > I had another idea : you can create a timer that checks the mouse > > absolute coordinates every 10 seconds (for example). If the mouse does > > not move during six timer ticks (so one minute), you can assume that the > > user is not doing anything. > > > > Of course he may use the keyboard only. But then you can use the global > > keypress event handler "Application_KeyPress" to reset the previous > > timer. > > > > Regards, > > Argh - where do I have to place Application_KeyPress in code to let it > react anywhere in the program? Is there an application-global SUB? > > Rolf > In the startup class, as a public static method (like the Main sub). Regards, -- Beno?t Minisini From cmunoz at ...2634... Thu Sep 8 19:22:08 2011 From: cmunoz at ...2634... (=?iso-8859-1?Q?C=E9sar_Augusto_Mu=F1oz_Palominos?=) Date: Thu, 8 Sep 2011 12:22:08 -0500 Subject: [Gambas-user] why, Import CSV file into Sqlite3 database is too slow, very very slow en Gambas2 :( Message-ID: Hello: I want to import CSV file into Sqlite3 db in gambas2, but it's Working too slow, the process takes 2 - 3 hours or more. I used ".import csv_file.csv prov" sqlite3 command and works very fast, one minute or less. The CSV file has 35,657 records and 4 data per record. The database has five tables. Some fields name are repeated in other tables. This is the structure of "prov" table in sqlite3 db Sqlite3> .schema prov CREATE TABLE prov("idkey" INTEGER PRIMARY KEY AUTOINCREMENT, "idsuc" NUMERIC, "idrta" NUMERIC, "idprod" NUMERIC, "idcases" NUMERIC); *** I don't used INTEGER type because has problems in gambas2, not update data, I don't know why :( I used two ways to import CSV file: First: PUBLIC SUB Button1_Click() DIM hFile as File DIM wsales as Result DIM wline as String DIM wdata as String[] hFile = OPEN "CSV_Filename.csv" FOR READ WHILE NOT Eof(hFile) LINE INPUT #hFile, wline wdata = Split(wline, ",") wsales = Fmain.Conexion.Exec("Insert into prov (idsuc, idrta, idprod, idcases) values (" & wdata[0] & "," & wdata[1] & "," & wdata[2] & "," & wdata[3] & ")" ) WEND hFile.Close END Second: PUBLIC SUB Button1_Click() DIM hFile as File DIM wsales as Result DIM wline as String DIM wdata as String[] hFile = OPEN "CSV_Filename.csv" FOR READ WHILE NOT Eof(hFile) LINE INPUT #hFile, wline wdata = Split(wline, ",") wsales = Fmain.Conexion.Create("prov") wsales["idsuc"] = wdata[0] wsales["idrta"] = wdata[1] wsales["idprod"] = wdata[2] wsales["idcases"] = wdata[3] wsales.Update WEND hFile.Close END Both codes work fine, but very slow 2 hours or more, why?, I used ".import csv_file.csv prov" sqlite3 command and works very fast, one minute or less Somebody help me................. Correo explorado por Tixtla McAfee Groupshield 7.0 From jussi.lahtinen at ...626... Thu Sep 8 20:47:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 8 Sep 2011 21:47:50 +0300 Subject: [Gambas-user] To wish list; optional compiler warning Message-ID: Hi! Quick thought; it would be nice to have compiler warning if "byref" is missing from function/sub call. I know using byref is optional, but so far I have only forgot to add it. Example: Private Sub Test(Byref x As Integer) ... And you can call it; Test(i) Or; Test(Byref i) Jussi From gambas at ...1... Thu Sep 8 21:36:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Sep 2011 21:36:14 +0200 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: Message-ID: <201109082136.14092.gambas@...1...> > Hi! > Quick thought; it would be nice to have compiler warning if "byref" is > missing from function/sub call. > I know using byref is optional, but so far I have only forgot to add it. > > Example: > > Private Sub Test(Byref x As Integer) > ... > > And you can call it; > Test(i) > Or; > Test(Byref i) > > > Jussi By having to specify ByRef in the caller, you can't forget that the function will modify your variable (forgetting that leads to hard-to-fix bugs) and it help readers of your code. I added ByRef to Gambas only to help porting VB projects. In other cases, just don't use it, even if you find it more practical. Regards, -- Beno?t Minisini From gambas at ...1... Thu Sep 8 21:36:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Sep 2011 21:36:40 +0200 Subject: [Gambas-user] why, Import CSV file into Sqlite3 database is too slow, very very slow en Gambas2 :( In-Reply-To: References: Message-ID: <201109082136.40356.gambas@...1...> > Hello: > > I want to import CSV file into Sqlite3 db in gambas2, but it's Working > too slow, the process takes 2 - 3 hours or more. I used ".import > csv_file.csv prov" sqlite3 command and works very fast, one minute or > less. > > The CSV file has 35,657 records and 4 data per record. The database has > five tables. Some fields name are repeated in other tables. > > This is the structure of "prov" table in sqlite3 db > Sqlite3> .schema prov > CREATE TABLE prov("idkey" INTEGER PRIMARY KEY AUTOINCREMENT, "idsuc" > NUMERIC, "idrta" NUMERIC, "idprod" NUMERIC, "idcases" NUMERIC); > > *** I don't used INTEGER type because has problems in gambas2, not update > data, I don't know why :( > > I used two ways to import CSV file: > > First: > PUBLIC SUB Button1_Click() > DIM hFile as File > DIM wsales as Result > DIM wline as String > DIM wdata as String[] > > hFile = OPEN "CSV_Filename.csv" FOR READ > WHILE NOT Eof(hFile) > LINE INPUT #hFile, wline > wdata = Split(wline, ",") > wsales = Fmain.Conexion.Exec("Insert into prov (idsuc, idrta, idprod, > idcases) values (" & wdata[0] & "," & wdata[1] & "," & wdata[2] & "," & > wdata[3] & ")" ) WEND > hFile.Close > END > > Second: > PUBLIC SUB Button1_Click() > DIM hFile as File > DIM wsales as Result > DIM wline as String > DIM wdata as String[] > > hFile = OPEN "CSV_Filename.csv" FOR READ > WHILE NOT Eof(hFile) > LINE INPUT #hFile, wline > wdata = Split(wline, ",") > wsales = Fmain.Conexion.Create("prov") > wsales["idsuc"] = wdata[0] > wsales["idrta"] = wdata[1] > wsales["idprod"] = wdata[2] > wsales["idcases"] = wdata[3] > wsales.Update > WEND > hFile.Close > END > > Both codes work fine, but very slow 2 hours or more, why?, I used ".import > csv_file.csv prov" sqlite3 command and works very fast, one minute or > less > > Somebody help me................. > > It's slow because you don't use transaction. Do the entire import inside a transaction. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Sep 8 22:09:01 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 8 Sep 2011 23:09:01 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: <201109082136.14092.gambas@...1...> References: <201109082136.14092.gambas@...1...> Message-ID: > > By having to specify ByRef in the caller, you can't forget that the > function > will modify your variable (forgetting that leads to hard-to-fix bugs) and > it > help readers of your code. > Sorry, I don't understand what you mean, can you elaborate? I mean I forgot to write Test(Byref i), instead I always write old vb style Test(i). Jussi From fabianfloresvadell at ...626... Thu Sep 8 23:28:33 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Thu, 8 Sep 2011 18:28:33 -0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: 2011/9/8 Jussi Lahtinen > > > > By having to specify ByRef in the caller, you can't forget that the > > function > > will modify your variable (forgetting that leads to hard-to-fix bugs) and > > it > > help readers of your code. > > > > Sorry, I don't understand what you mean, can you elaborate? > I mean I forgot to write Test(Byref i), instead I always write old vb style > Test(i). > > Jussi > Hi Jussi. The keyword Byref allows that a parameter may cause side effects. The double request to specify Byref on both, the real and the actual parameter (in the declaration and in the call) help to the programmer to be award that he or she could cause a side effect. Side effects should be caused by returning a value by specifing "RETURN value" according to the return data type specified in the declaration (i.e. using a function, speaking in conceptual terms). So, if you are porting VB code, maybe you'll probably have to use ByRef, sometimes. Otherwise isn't recommended byref (according to Gambas idiom). PD: sorry for my (probably unnecessary) verbosity and my poor english. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From cmunoz at ...2634... Thu Sep 8 23:29:47 2011 From: cmunoz at ...2634... (=?utf-8?B?Q8Opc2FyIEF1Z3VzdG8gTXXDsW96IFBhbG9taW5vcw==?=) Date: Thu, 8 Sep 2011 16:29:47 -0500 Subject: [Gambas-user] why, Import CSV file into Sqlite3 database is too slow, very very slow en Gambas2 :( Message-ID: Tanks, I'm sorry, I'm newer in gambas, but how I do this, how I do a transaction?? . -----Mensaje original----- De: Beno?t Minisini [mailto:gambas at ...1...] Enviado el: jueves, 08 de septiembre de 2011 02:37 p.m. Para: mailing list for gambas users Asunto: [?? Probable Spam] Re: [Gambas-user] why,Import CSV file into Sqlite3 database is too slow,very very slow en Gambas2 :( > Hello: > > I want to import CSV file into Sqlite3 db in gambas2, but it's > Working too slow, the process takes 2 - 3 hours or more. I used > ".import csv_file.csv prov" sqlite3 command and works very fast, one > minute or less. > > The CSV file has 35,657 records and 4 data per record. The database > has five tables. Some fields name are repeated in other tables. > > This is the structure of "prov" table in sqlite3 db > Sqlite3> .schema prov > CREATE TABLE prov("idkey" INTEGER PRIMARY KEY AUTOINCREMENT, "idsuc" > NUMERIC, "idrta" NUMERIC, "idprod" NUMERIC, "idcases" NUMERIC); > > *** I don't used INTEGER type because has problems in gambas2, not > update data, I don't know why :( > > I used two ways to import CSV file: > > First: > PUBLIC SUB Button1_Click() > DIM hFile as File > DIM wsales as Result > DIM wline as String > DIM wdata as String[] > > hFile = OPEN "CSV_Filename.csv" FOR READ > WHILE NOT Eof(hFile) > LINE INPUT #hFile, wline > wdata = Split(wline, ",") > wsales = Fmain.Conexion.Exec("Insert into prov (idsuc, idrta, > idprod, > idcases) values (" & wdata[0] & "," & wdata[1] & "," & wdata[2] & > "," & wdata[3] & ")" ) WEND > hFile.Close > END > > Second: > PUBLIC SUB Button1_Click() > DIM hFile as File > DIM wsales as Result > DIM wline as String > DIM wdata as String[] > > hFile = OPEN "CSV_Filename.csv" FOR READ > WHILE NOT Eof(hFile) > LINE INPUT #hFile, wline > wdata = Split(wline, ",") > wsales = Fmain.Conexion.Create("prov") > wsales["idsuc"] = wdata[0] > wsales["idrta"] = wdata[1] > wsales["idprod"] = wdata[2] > wsales["idcases"] = wdata[3] > wsales.Update > WEND > hFile.Close > END > > Both codes work fine, but very slow 2 hours or more, why?, I used > ".import csv_file.csv prov" sqlite3 command and works very fast, one > minute or less > > Somebody help me................. > > It's slow because you don't use transaction. Do the entire import inside a transaction. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Correo explorado por Tixtla McAfee Groupshield 7.0 From gambas at ...1... Thu Sep 8 23:39:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Sep 2011 23:39:53 +0200 Subject: [Gambas-user] why, Import CSV file into Sqlite3 database is too slow, very very slow en Gambas2 :( In-Reply-To: References: Message-ID: <201109082339.54005.gambas@...1...> > Tanks, I'm sorry, I'm newer in gambas, but how I do this, how I do a > transaction?? > > . It's not a Gambas thing, it is a basic database management system thing. Please look at "database transaction" in Wikipedia. To begin a transaction : Connection.Begin() method. To commit a transaction : Connection.Commit() method. To rollback a transaction : Connection.Rollback() method. Regards, -- Beno?t Minisini From gambas at ...1... Thu Sep 8 23:41:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Sep 2011 23:41:32 +0200 Subject: [Gambas-user] why, Import CSV file into Sqlite3 database is too slow, very very slow en Gambas2 :( In-Reply-To: <201109082339.54005.gambas@...1...> References: <201109082339.54005.gambas@...1...> Message-ID: <201109082341.32209.gambas@...1...> > > It's not a Gambas thing, it is a basic database management system thing. > Please look at "database transaction" in Wikipedia. > See especially the "autocommit" link on that page, and you will understand what happens in your code. Regards, -- Beno?t Minisini From lknetpl at ...626... Thu Sep 8 23:54:45 2011 From: lknetpl at ...626... (l k) Date: Thu, 8 Sep 2011 23:54:45 +0200 Subject: [Gambas-user] [Gambas 2.21] Read data from usb port. Message-ID: Hi, I'm writing a program to support GPSa logger. The program correctly handles reading data from the GPS device via bluetooth. But when I try to read data through USB is unfortunately the program does not receive anything. And here I am in the place because I do not know if it's my fault configuration (maybe more-capable port control settings) or the fault lies with the Lubuntu (and maybe my laptop?). By the console command: cat / dev/ttyUSB0 I get the whole sequence of NMEA data from GPS devices. My program connects to the USB port but it does not get any data. I removed the code limits the size of data downloaded. It did not help. Reading from / dev/rfcomm0 (bluetooth) works perfectly. Maybe someone has an idea where I could deal with it. Below the code to connect with the port and receive data: PUBLIC SUB button_polacz_Click() WITH SerialPort1 .PortName = Trim(tbPortName.Text) .Speed = vb_baudrate.Value END WITH IF SerialPort1.Status = 0 THEN SerialPort1.Open Timer1.Delay = vb_timerdelay.Value Timer1.Start status_portu() Timer2.Start button_polacz.Enabled = FALSE Button1.Enabled = TRUE ENDIF CATCH message.Error((Error.Code) & (Error.text) & (Error.Where)) END PUBLIC SUB odbierz_dane() SLEEP 0.025 dane_port = "" READ #SerialPort1, dane_port, Lof(SerialPort1) PRINT dane_port IF dane_port <> "" AND Len(dane_port) > 300 AND Left$(dane_port, 1) = "$" THEN rozdziel_dane() ENDIF CATCH PRINT (Error.Code) & (Error.text) & (Error.Where) END From and.bertini at ...626... Fri Sep 9 07:08:56 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Fri, 09 Sep 2011 07:08:56 +0200 Subject: [Gambas-user] Auto Backup Application @ command QUIT Message-ID: <1315544936.3033.1.camel@...2658...> Is it possible? Can i use component gb.compress? Please explain me how to. thx Andrea B From Karl.Reinl at ...2345... Fri Sep 9 12:53:40 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 09 Sep 2011 12:53:40 +0200 Subject: [Gambas-user] TextEdit, and missing Link event In-Reply-To: <201108211407.10170.gambas@...1...> References: <1312116216.7907.19.camel@...40...> <1312322620.6447.3.camel@...40...> <1313921267.6938.9.camel@...40...> <201108211407.10170.gambas@...1...> Message-ID: <1315565620.6497.15.camel@...40...> Am Sonntag, den 21.08.2011, 14:07 +0200 schrieb Beno?t Minisini: > > Am Mittwoch, den 03.08.2011, 00:03 +0200 schrieb Charlie Reinl: > > > Am Dienstag, den 02.08.2011, 23:34 +0200 schrieb Beno?t Minisini: > > > > > Salut, > > > > > > > > > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks > > > > > here, I move my project from gb2 to gb3. > > > > > I used a TextEdit with very simple HTML and a href in, and the Link > > > > > event to open it in the browser. > > > > > Now gb3 TextEdit don't show my very simple HTML any more (test only) > > > > > und has no Link event (the Link event was never in the > > > > > documentation, even in gb2) > > > > > > > > > > The TextLabel shows the simple HTML like it should be, but I don't > > > > > find no Link event. > > > > > > > > > > gambas3 rev 3956 > > > > > Mandriva 2010.2 > > > > > qt4 only (gtk not tested) > > > > > > > > TextEdit does not have a Link event anymore in Gambas 3. > > > > > > Salut, > > > > > > so what is the replacement. > > > What's happened for TextLabel ? > > > > Salut Beno?t, > > > > I didn't find any answer till now, and also whats about the Link event > > in TextLabel. > > TextEdit and TextLabel do not have Link event, and there will be no > replacement. > > Regards, > Salut, coming back once again with that. If you use hyperlink in TextLabel.Text say: "gambas" If you run, it is marked up as a link, the mouse cursor change if you are passing over it and on right click a menu pops up with "Copy Link Location" and you find after the link in the clipboard. If you use hyperlink in TextEdit.RichText say: "gambas" If you run, it is just marked up as a link. ?? -- Amicalement Charlie From gambas at ...1... Fri Sep 9 13:00:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 9 Sep 2011 13:00:31 +0200 Subject: [Gambas-user] TextEdit, and missing Link event In-Reply-To: <1315565620.6497.15.camel@...40...> References: <1312116216.7907.19.camel@...40...> <201108211407.10170.gambas@...1...> <1315565620.6497.15.camel@...40...> Message-ID: <201109091300.31412.gambas@...1...> > > Salut, > > coming back once again with that. > If you use hyperlink in TextLabel.Text say: > "gambas" > If you run, it is marked up as a link, the mouse cursor change if you > are passing over it and on right click a menu pops up with "Copy Link > Location" and you find after the link in the clipboard. > > If you use hyperlink in TextEdit.RichText say: > "gambas" > If you run, it is just marked up as a link. > > ?? I don't have any control on what Qt decides to do with what you put in the Text or RichText property. The only thing I can say: do not use links in TextEdit controls at the moment! Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Sep 9 19:11:03 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 9 Sep 2011 20:11:03 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: <201109082136.14092.gambas@...1...> References: <201109082136.14092.gambas@...1...> Message-ID: After I read what Fabien wrote, I realised what you meant and I think you misunderstood my problem. My problem is *not *that I have to write byref to function declaration and to function call. My problem is that if I forget to write byref to function call, I will get silent bugs. I think either byfer should be mandatory to write to function call, or there should be warning from missing byref keyword. Jussi 2011/9/8 Beno?t Minisini > > Hi! > > Quick thought; it would be nice to have compiler warning if "byref" is > > missing from function/sub call. > > I know using byref is optional, but so far I have only forgot to add it. > > > > Example: > > > > Private Sub Test(Byref x As Integer) > > ... > > > > And you can call it; > > Test(i) > > Or; > > Test(Byref i) > > > > > > Jussi > > By having to specify ByRef in the caller, you can't forget that the > function > will modify your variable (forgetting that leads to hard-to-fix bugs) and > it > help readers of your code. > > I added ByRef to Gambas only to help porting VB projects. In other cases, > just > don't use it, even if you find it more practical. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Sep 9 21:51:16 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 9 Sep 2011 21:51:16 +0200 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: yes like : Private Function ModifyThat(byRef i as integer) as boolean i+=6*4 catch return true end to use it if not Modifythat(ByRef iMyVal) Then Print iMyVal sometime it can be usefull to catch the error in the calling function 2011/9/9 Jussi Lahtinen : > After I read what Fabien wrote, I realised what you meant and I think you > misunderstood my problem. > > My problem is *not *that I have to write byref to function declaration and > to function call. > My problem is that if I forget to write byref to function call, I will get > silent bugs. > > I think either byfer should be mandatory to write to function call, or there > should be warning from missing byref keyword. > > Jussi > > > > 2011/9/8 Beno?t Minisini > >> > Hi! >> > Quick thought; it would be nice to have compiler warning if "byref" is >> > missing from function/sub call. >> > I know using byref is optional, but so far I have only forgot to add it. >> > >> > Example: >> > >> > Private Sub Test(Byref x As Integer) >> > ... >> > >> > And you can call it; >> > Test(i) >> > Or; >> > Test(Byref i) >> > >> > >> > Jussi >> >> By having to specify ByRef in the caller, you can't forget that the >> function >> will modify your variable (forgetting that leads to hard-to-fix bugs) and >> it >> help readers of your code. >> >> I added ByRef to Gambas only to help porting VB projects. In other cases, >> just >> don't use it, even if you find it more practical. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Doing More with Less: The Next Generation Virtual Desktop >> What are the key obstacles that have prevented many mid-market businesses >> from deploying virtual desktops? ? How do next-generation virtual desktops >> provide companies an easier-to-deploy, easier-to-manage and more affordable >> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Why Cloud-Based Security and Archiving Make Sense > Osterman Research conducted this study that outlines how and why cloud > computing security and archiving is rapidly being adopted across the IT > space for its ease of implementation, lower cost, and increased > reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Fri Sep 9 23:13:06 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 10 Sep 2011 00:13:06 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: What's that supposed to do? Catch doesn't do catch anything since missing byref doesn't rise error! Jussi On Fri, Sep 9, 2011 at 22:51, Fabien Bodard wrote: > yes like : > > Private Function ModifyThat(byRef i as integer) as boolean > > i+=6*4 > > catch > return true > > end > > > > to use it > > if not Modifythat(ByRef iMyVal) Then Print iMyVal > > > sometime it can be usefull to catch the error in the calling function > > > > > > 2011/9/9 Jussi Lahtinen : > > After I read what Fabien wrote, I realised what you meant and I think you > > misunderstood my problem. > > > > My problem is *not *that I have to write byref to function declaration > and > > to function call. > > My problem is that if I forget to write byref to function call, I will > get > > silent bugs. > > > > I think either byfer should be mandatory to write to function call, or > there > > should be warning from missing byref keyword. > > > > Jussi > > > > > > > > 2011/9/8 Beno?t Minisini > > > >> > Hi! > >> > Quick thought; it would be nice to have compiler warning if "byref" is > >> > missing from function/sub call. > >> > I know using byref is optional, but so far I have only forgot to add > it. > >> > > >> > Example: > >> > > >> > Private Sub Test(Byref x As Integer) > >> > ... > >> > > >> > And you can call it; > >> > Test(i) > >> > Or; > >> > Test(Byref i) > >> > > >> > > >> > Jussi > >> > >> By having to specify ByRef in the caller, you can't forget that the > >> function > >> will modify your variable (forgetting that leads to hard-to-fix bugs) > and > >> it > >> help readers of your code. > >> > >> I added ByRef to Gambas only to help porting VB projects. In other > cases, > >> just > >> don't use it, even if you find it more practical. > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > >> > >> > >> > ------------------------------------------------------------------------------ > >> Doing More with Less: The Next Generation Virtual Desktop > >> What are the key obstacles that have prevented many mid-market > businesses > >> from deploying virtual desktops? How do next-generation virtual > desktops > >> provide companies an easier-to-deploy, easier-to-manage and more > affordable > >> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Why Cloud-Based Security and Archiving Make Sense > > Osterman Research conducted this study that outlines how and why cloud > > computing security and archiving is rapidly being adopted across the IT > > space for its ease of implementation, lower cost, and increased > > reliability. Learn more. > http://www.accelacomm.com/jaw/sfnl/114/51425301/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Why Cloud-Based Security and Archiving Make Sense > Osterman Research conducted this study that outlines how and why cloud > computing security and archiving is rapidly being adopted across the IT > space for its ease of implementation, lower cost, and increased > reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lonnie.headley at ...626... Sat Sep 10 05:19:16 2011 From: lonnie.headley at ...626... (Lonnie Headley) Date: Fri, 9 Sep 2011 23:19:16 -0400 Subject: [Gambas-user] issues updated records in Sqlite3 database using edit() In-Reply-To: References: Message-ID: I just started using the database component and I can't wrap my head around how updating entries from my database using db.edit(). I'm using Gambas 3 RC 3 on Ubuntu 11.04 x86. Here is some code, not an exact excerpt but assume that I have assigned valid values to each of the values of InputItem and that the entry already exists in the database. I'm just trying to modify some of the values. Res = dbconn.edit("items", "itemnumber=&1", InputItem.ItemNumber) ' inputitem.itemnumber = 4000 Inventory.Begin() 'sqlite3 database Res!itemnumber = InputItem.ItemNumber ' = integer, 4000 Res!active = InputItem.Active ' = 1 Res!price = InputItem.Price ' = 1000 Res!quantity = InputItem.Quantity ' = 100 Res!description = InputItem.Description ' = "New Entry" Res.Update() Inventory.Commit() So with DB.Debug turned on, this is the output: sqlite3: 0xa2cd6c8: UPDATE 'items' SET 'description' = 'New Entry' WHERE itemnumber = 4000 I set a breakpoint and can see that all of the values are good there and not null. It may be a coincidence but the strings are being updated while the integers are not with the exception of the itemnumber, which is the primary key. Any ideas? From lonnie.headley at ...626... Sat Sep 10 06:30:40 2011 From: lonnie.headley at ...626... (Lonnie Headley) Date: Sat, 10 Sep 2011 00:30:40 -0400 Subject: [Gambas-user] issues updated records in Sqlite3 database using edit() In-Reply-To: References: Message-ID: Just figured out my mistake, it was that in my database the column types were INTEGER and not INT4. Once I changed it to INT4 everything started working great. Sorry to bother! On Fri, Sep 9, 2011 at 10:45 PM, Lonnie Headley wrote: > I just started using the database component and I can't wrap my head around > how updating entries from my database using db.edit(). I'm using Gambas 3 RC > 3 on Ubuntu 11.04 x86. > > Here is some code, not an exact excerpt but assume that I have assigned > valid values to each of the values of InputItem and that the entry already > exists in the database. I'm just trying to modify some of the values. > > > Res = dbconn.edit("items", "itemnumber=&1", InputItem.ItemNumber) ' > inputitem.itemnumber = 4000 > > Inventory.Begin() 'sqlite3 database > > Res!itemnumber = InputItem.ItemNumber ' = integer, 4000 > Res!active = InputItem.Active ' = 1 > Res!price = InputItem.Price ' = 1000 > Res!quantity = InputItem.Quantity ' = 100 > Res!description = InputItem.Description ' = "New Entry" > > Res.Update() > > Inventory.Commit() > > > > So with DB.Debug turned on, this is the output: > sqlite3: 0xa2cd6c8: UPDATE 'items' SET 'description' = 'New Entry' WHERE > itemnumber = 4000 > > I set a breakpoint and can see that all of the values are good there and > not null. It may be a coincidence but the strings are being updated while > the integers are not with the exception of the itemnumber, which is the > primary key. Any ideas? > From gambas.fr at ...626... Sat Sep 10 21:35:21 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 10 Sep 2011 21:35:21 +0200 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: 2011/9/9 Jussi Lahtinen : > What's that supposed to do? > Catch doesn't do catch anything since missing byref doesn't rise error! > > Jussi > it not for missing data but for the routine that modify the byref data ... if this algoritm fail ... it return true so i know if the byref value have been modified From jussi.lahtinen at ...626... Sat Sep 10 21:52:09 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 10 Sep 2011 22:52:09 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: I have no clue what this has to do with issue I'm talking about. Jussi On Sat, Sep 10, 2011 at 22:35, Fabien Bodard wrote: > 2011/9/9 Jussi Lahtinen : > > What's that supposed to do? > > Catch doesn't do catch anything since missing byref doesn't rise error! > > > > Jussi > > > it not for missing data but for the routine that modify the byref data > ... if this algoritm fail ... it return true so i know if the byref > value have been modified > > > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Sep 10 22:12:38 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 10 Sep 2011 23:12:38 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: <201109082136.14092.gambas@...1...> References: <201109082136.14092.gambas@...1...> Message-ID: > I added ByRef to Gambas only to help porting VB projects. In other cases, > just > don't use it, even if you find it more practical. > What is the alternative then? Pass variables as pointers? Making almost needless class for couple variables doesn't seem good option... Jussi From mohareve at ...626... Sat Sep 10 22:37:57 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 10 Sep 2011 22:37:57 +0200 Subject: [Gambas-user] Creating database in Gambas3 Message-ID: Hi! I want to port my G2 application to G3. I would like to know what are the news for database handling in G3. 1. How to check whether a sqlite database exist? 2. How to create a database? 3. Can I use DB.Exec() for table creation or is there another preferred way to do it? Thanks! Csaba From gambas at ...2524... Sun Sep 11 00:04:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 10 Sep 2011 22:04:31 +0000 Subject: [Gambas-user] Issue 104 in gambas: Byte[].FromString does not work Message-ID: <0-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 104 by emil.len... at ...626...: Byte[].FromString does not work http://code.google.com/p/gambas/issues/detail?id=104 1) Describe the problem. The static function Byte[].FromString does not work. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4113 Operating system: Linux Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Anything that cals it, like Byte[].FromString("hello!") 5) Explain clearly how to reproduce the bug or the crash. Run the code, and watch it crash. It seems to be fixed by changing "memcpy(THIS->data, string, length);" to "memcpy(array->data, string, length);" on line 1235 in gbx_c_array.c. From kevinfishburne at ...1887... Sun Sep 11 06:40:27 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 11 Sep 2011 00:40:27 -0400 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer Message-ID: <4E6C3BBB.9090604@...1887...> My code looks like this: ' For writing outgoing UDP data to memory. Public data As String Public mem As Stream ' Create data string for outgoing transaction queue. data = Space(8) mem = Memory VarPtr(data) For Write mem.Begin Write #mem, (Server.DateCurrent + Server.DateUTC) As Float mem.Send Print data It throws signal 11 on the Print statement. I have two questions. First is this the correct way to write one or more variables to a string in memory, and second what's up with the signal 11? I'm using revision 4094 and will update to the newest revision in a moment. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ihaywood at ...1979... Sun Sep 11 08:52:00 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 11 Sep 2011 16:52:00 +1000 Subject: [Gambas-user] Release of Gambas 3 RC3 In-Reply-To: <1863718.HWM8unf8vf@...2592...> References: <201109031916.30768.gambas@...1...> <201109031918.48857.gambas@...1...> <1863718.HWM8unf8vf@...2592...> Message-ID: <4E6C5A90.6080908@...1979...> On 04/09/11 20:18, Laurent Carlier wrote: > Le Samedi 3 Septembre 2011 19:18:48, Beno?t Minisini a ?crit : >>> Hi, >>> >>> So, please report!!! >>> >>> Best regards, >> >> Here is the wiki page to edit for information about Gambas binary packages. >> >> http://gambasdoc.org/help/doc/package > > Archlinux packages pushed to the repos Ubuntu packages at https://launchpad.net/~ihaywood3/+archive/gambas3 Ian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at ...626... Sun Sep 11 14:13:02 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 11 Sep 2011 15:13:02 +0300 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <4E6C3BBB.9090604@...1887...> References: <4E6C3BBB.9090604@...1887...> Message-ID: Not sure what happen there, but try this: Public pData As Pointer Public mem As Stream pData = Alloc(SizeOf(gb.Float)) mem = Memory pData For Write mem.Begin Write #mem, (Server.DateCurrent + Server.DateUTC) As Float mem.Send Print Float@(pData) Jussi On Sun, Sep 11, 2011 at 07:40, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > My code looks like this: > > ' For writing outgoing UDP data to memory. > Public data As String > Public mem As Stream > > ' Create data string for outgoing transaction queue. > data = Space(8) > mem = Memory VarPtr(data) For Write > mem.Begin > Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > mem.Send > Print data > > It throws signal 11 on the Print statement. > > I have two questions. First is this the correct way to write one or more > variables to a string in memory, and second what's up with the signal > 11? I'm using revision 4094 and will update to the newest revision in a > moment. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Sun Sep 11 14:19:19 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 11 Sep 2011 14:19:19 +0200 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <4E6C3BBB.9090604@...1887...> References: <4E6C3BBB.9090604@...1887...> Message-ID: <4E6CA747.70800@...20...> On 11.09.2011 06:40, Kevin Fishburne wrote: > My code looks like this: > > ' For writing outgoing UDP data to memory. > Public data As String > Public mem As Stream > > ' Create data string for outgoing transaction queue. > data = Space(8) > mem = Memory VarPtr(data) For Write > mem.Begin > Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > mem.Send > Print data > > It throws signal 11 on the Print statement. > > I have two questions. First is this the correct way to write one or more > variables to a string in memory, and second what's up with the signal > 11? I'm using revision 4094 and will update to the newest revision in a > moment. > you know about sig 11? it means you attempted to access memory which you are not peritted to access the way you wanted. you may want to have a look at the notes about VarPtr(string) here: http://gambasdoc.org/help/lang/varptr?v3 of course, it's much better to use Alloc() and work with a pointer as Jussi said. From fabianfloresvadell at ...626... Sun Sep 11 14:56:00 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sun, 11 Sep 2011 09:56:00 -0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: 2011/9/9 Fabien Bodard > yes like : > > Private Function ModifyThat(byRef i as integer) as boolean > > i+=6*4 > > catch > return true > > end > > > > to use it > > if not Modifythat(ByRef iMyVal) Then Print iMyVal > > > sometime it can be usefull to catch the error in the calling function > I tests that code, but not works. In fact, I think that never could do the work because inside the routine the real parameter is like a local variable, so the test should be done after of the routine call. But doing this, the point is missing. From fabianfloresvadell at ...626... Sun Sep 11 15:05:15 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sun, 11 Sep 2011 10:05:15 -0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: 2011/9/10 Jussi Lahtinen > > What is the alternative then? Pass variables as pointers? > Making almost needless class for couple variables doesn't seem good > option... > > Jussi > Pass variables as pointer, will work (I think). But, ?is necessary? Could you just use functions to return values? Private Sub Test(x As Integer) As Integer . . . Return x End iMyVal = Test(iMyVal) From jussi.lahtinen at ...626... Sun Sep 11 17:07:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 11 Sep 2011 18:07:16 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109082136.14092.gambas@...1...> Message-ID: Problem is that my functions are like; ConnectThese(iWithTerm, ByRef iVariable1, Byref iVariable2). Jussi 2011/9/11 Fabi?n Flores Vadell > 2011/9/10 Jussi Lahtinen > > > > > What is the alternative then? Pass variables as pointers? > > Making almost needless class for couple variables doesn't seem good > > option... > > > > Jussi > > > > Pass variables as pointer, will work (I think). But, ?is necessary? > > Could you just use functions to return values? > > > Private Sub Test(x As Integer) As Integer > > . . . > > Return x > > End > > > iMyVal = Test(iMyVal) > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Sep 11 17:34:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 11 Sep 2011 17:34:00 +0200 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <4E6C3BBB.9090604@...1887...> References: <4E6C3BBB.9090604@...1887...> Message-ID: <201109111734.00946.gambas@...1...> > My code looks like this: > > ' For writing outgoing UDP data to memory. > Public data As String > Public mem As Stream > > ' Create data string for outgoing transaction queue. > data = Space(8) > mem = Memory VarPtr(data) For Write > mem.Begin > Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > mem.Send > Print data > > It throws signal 11 on the Print statement. > > I have two questions. First is this the correct way to write one or more > variables to a string in memory, and second what's up with the signal > 11? I'm using revision 4094 and will update to the newest revision in a > moment. Signal 11 means that you try to write at a forbidden memory address. At first sight, you should be able to write to VarPtr(data)... *BUT* you must not. Because all Gambas strings are READ-ONLY, because they can be shared. So you must use Alloc() and Free() (like in C) to allocate the memory you want to write to. Regards, -- Beno?t Minisini From gambas at ...1... Sun Sep 11 17:37:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 11 Sep 2011 17:37:51 +0200 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: Message-ID: <201109111737.51544.gambas@...1...> > Problem is that my functions are like; ConnectThese(iWithTerm, ByRef > iVariable1, Byref iVariable2). > > Jussi > You are right with the fact that the compiler should issue a warning. But it cannot know everytime that the called function needs a ByRef, as soon as the function is in another class. Maybe I should have allowed ByRef in private functions only... Now about using ByRef to return more than one value: I usually return an array. But I admit it is less practical. You can return a structure too, or a class used like a structure (with public variables only). Regards, -- Beno?t Minisini From gambas at ...1... Sun Sep 11 17:44:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 11 Sep 2011 17:44:24 +0200 Subject: [Gambas-user] issues updated records in Sqlite3 database using edit() In-Reply-To: References: Message-ID: <201109111744.24603.gambas@...1...> > Just figured out my mistake, it was that in my database the column types > were INTEGER and not INT4. Once I changed it to INT4 everything started > working great. Sorry to bother! > No problem. You must be aware that sqlite does not use datatypes, so I have to simulate them by using the datatype keyword you specified when creating the table. But there as so many different datatype keywords in that f...... SQL pseudo-standard that I had to choose! Normally "INTEGER" should have been correctly interpreted as a Gambas Integer datatype. But if there is no primary key in your table, I suppose that the first field of INTEGER datatype is the primary key. Because I use INTEGER only when creating an AUTOINCREMENT field (db.Serial in Gambas). In other words, if you want peace, just create your sqlite database directly from Gambas. Regards, -- Beno?t Minisini From gambas at ...2524... Sun Sep 11 18:31:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 11 Sep 2011 16:31:43 +0000 Subject: [Gambas-user] Issue 104 in gambas: Byte[].FromString does not work In-Reply-To: <0-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 104 by benoit.m... at ...626...: Byte[].FromString does not work http://code.google.com/p/gambas/issues/detail?id=104 (No comment was entered for this change.) From gambas at ...2524... Sun Sep 11 18:35:44 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 11 Sep 2011 16:35:44 +0000 Subject: [Gambas-user] Issue 104 in gambas: Byte[].FromString does not work In-Reply-To: <1-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> <0-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7354620365748629156-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 104 by benoit.m... at ...626...: Byte[].FromString does not work http://code.google.com/p/gambas/issues/detail?id=104 Thanks! Fixed in revision #4114. From jussi.lahtinen at ...626... Sun Sep 11 19:30:59 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 11 Sep 2011 20:30:59 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: <201109111737.51544.gambas@...1...> References: <201109111737.51544.gambas@...1...> Message-ID: > You are right with the fact that the compiler should issue a warning. But > it > cannot know everytime that the called function needs a ByRef, as soon as > the > function is in another class. Maybe I should have allowed ByRef in private > functions only... > OK, I understand. Maybe there should be something like splint for Gambas. In case of someone doesn't know what splint is: http://en.wikipedia.org/wiki/Splint_%28programming_tool%29 Good job for community... > Now about using ByRef to return more than one value: I usually return an > array. But I admit it is less practical. You can return a structure too, or > a > class used like a structure (with public variables only). > I think I go with the array solution, though I was hoping for something more elegant. Thanks, Jussi From gambas at ...1... Sun Sep 11 19:35:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 11 Sep 2011 19:35:35 +0200 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: References: <201109111737.51544.gambas@...1...> Message-ID: <201109111935.35363.gambas@...1...> > > I think I go with the array solution, though I was hoping for something > more elegant. > > Thanks, > Jussi I know, but I usually sacrify elegance for performance. -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Sep 11 20:14:12 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 11 Sep 2011 21:14:12 +0300 Subject: [Gambas-user] To wish list; optional compiler warning In-Reply-To: <201109111935.35363.gambas@...1...> References: <201109111737.51544.gambas@...1...> <201109111935.35363.gambas@...1...> Message-ID: Good choice. Jussi 2011/9/11 Beno?t Minisini > > > > I think I go with the array solution, though I was hoping for something > > more elegant. > > > > Thanks, > > Jussi > > I know, but I usually sacrify elegance for performance. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Mon Sep 12 14:31:57 2011 From: rterry at ...1946... (richard terry) Date: Mon, 12 Sep 2011 22:31:57 +1000 Subject: [Gambas-user] DateChooser/Timerchooser Message-ID: <201109122231.58010.rterry@...1946...> Benoit, Not used the time chooser setting before but I notice that changing the font changes the display font but not the popup list which is extremely small and hard to see Regards Richard From gambas at ...1... Mon Sep 12 14:55:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Sep 2011 14:55:55 +0200 Subject: [Gambas-user] DateChooser/Timerchooser In-Reply-To: <201109122231.58010.rterry@...1946...> References: <201109122231.58010.rterry@...1946...> Message-ID: <201109121455.55734.gambas@...1...> > Benoit, > > Not used the time chooser setting before but I notice that changing the > font changes the display font but not the popup list which is extremely > small and hard to see > > Regards > > Richard > Which popup list ? -- Beno?t Minisini From rterry at ...1946... Mon Sep 12 15:05:40 2011 From: rterry at ...1946... (richard terry) Date: Mon, 12 Sep 2011 23:05:40 +1000 Subject: [Gambas-user] Getting access to popup children of datebox Message-ID: <201109122305.40548.rterry@...1946...> I notice that the events on the database apply to the main control - clicking on the popup calander or time list dosn't have any obvious events. Anway to gain access to these??? Regards richard From ihaywood at ...1979... Mon Sep 12 15:15:57 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 12 Sep 2011 23:15:57 +1000 Subject: [Gambas-user] Getting access to popup children of datebox In-Reply-To: <201109122305.40548.rterry@...1946...> References: <201109122305.40548.rterry@...1946...> Message-ID: On Mon, Sep 12, 2011 at 11:05 PM, richard terry wrote: > I notice that the events on the database apply to the main control - clicking > on the popup calander or time list dosn't have any obvious events. > > Anway to gain access to these??? richard, you and I work on the same project and *I* can't work out what you mean! do you mean in selector widgets you can't trap events on the pooped up calendars or time selectors? There probably isn't a way do this directly, but I would have thought you could get an event when the value of the event changes, which should be enough. or maybe it only fires when the user closes the calendar/time control: that's a problem for our project and probably means we can't use a popup calendar after all. Ian From rterry at ...1946... Mon Sep 12 15:35:45 2011 From: rterry at ...1946... (richard terry) Date: Mon, 12 Sep 2011 23:35:45 +1000 Subject: [Gambas-user] cutn pasting a menu form to form Message-ID: <201109122335.46007.rterry@...1946...> Hi benoit, Just noticed if I cut and paste a menu from one form to another the order of the menu items isn't correct - think from memory they are pasted last to first Richard From rterry at ...1946... Mon Sep 12 16:05:54 2011 From: rterry at ...1946... (richard terry) Date: Tue, 13 Sep 2011 00:05:54 +1000 Subject: [Gambas-user] Getting access to popup children of datebox In-Reply-To: References: <201109122305.40548.rterry@...1946...> Message-ID: <201109130005.54946.rterry@...1946...> On Monday 12 September 2011 23:15:57 Ian Haywood wrote: > On Mon, Sep 12, 2011 at 11:05 PM, richard terry wrote: > > I notice that the events on the database apply to the main control - > > clicking on the popup calander or time list dosn't have any obvious > > events. > > > > Anway to gain access to these??? > > richard, you and I work on the same project and *I* can't work out > what you mean! > do you mean in selector widgets you can't trap events on the pooped up > calendars or time selectors? > There probably isn't a way do this directly, but I would have thought you > could get an event when the value of the event changes, which should be > enough. > > or maybe it only fires when the user closes the calendar/time control: > that's a problem for > our project and probably means we can't use a popup calendar after all. Pretty tired, off to bed - the calender control is fine - clicking on a date works I use it all over the project - it seems the event on the datebox applies to the textbox area, and not to the popup list of times or dates which drop down. Regards Richard > Ian > > --------------------------------------------------------------------------- > --- Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Sep 12 17:07:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Sep 2011 17:07:57 +0200 Subject: [Gambas-user] Getting access to popup children of datebox In-Reply-To: <201109130005.54946.rterry@...1946...> References: <201109122305.40548.rterry@...1946...> <201109130005.54946.rterry@...1946...> Message-ID: <201109121707.57622.gambas@...1...> > On Monday 12 September 2011 23:15:57 Ian Haywood wrote: > > On Mon, Sep 12, 2011 at 11:05 PM, richard terry > > wrote: > > > I notice that the events on the database apply to the main control - > > > clicking on the popup calander or time list dosn't have any obvious > > > events. > > > > > > Anway to gain access to these??? > > > > richard, you and I work on the same project and *I* can't work out > > what you mean! > > do you mean in selector widgets you can't trap events on the pooped up > > calendars or time selectors? > > There probably isn't a way do this directly, but I would have thought you > > > > could get an event when the value of the event changes, which should be > > enough. > > > > or maybe it only fires when the user closes the calendar/time control: > > that's a problem for > > our project and probably means we can't use a popup calendar after all. > > Pretty tired, off to bed - the calender control is fine - clicking on a > date works I use it all over the project - it seems the event on the > datebox applies to the textbox area, and not to the popup list of times or > dates which drop down. > > Regards > > Richard > I think I get it but I'm not sure. In revision #4120, I added a Click and a Change event to the DateBox control. the Click event is raised when a date is chosen with the popup. Is it what you need? -- Beno?t Minisini From dag.jarle.johansen at ...626... Mon Sep 12 22:20:12 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 12 Sep 2011 17:20:12 -0300 Subject: [Gambas-user] Arrays again Message-ID: Hi, I am feeling a little stupid, but I just can't make this running: Public xxx As Control (or Public xxx As Object) public sub ChangeControls() DIM I as integer For I = 0 To mTrans.LoginCount - 1 For Each xxx In Me.Children Debug xxx.Name If xxx.Name = mTrans.TNLoginName[I] Then xxx.Text=mTrans.TNLogin[I] Endif Next Next TNLoginName[] and TNLogin[] are predefined arrays, and seem to work. In the Debug xxx.Name nothing happens, and the control XXX can not have a text, though Tooltip is possible, If I define xxx as Object I can have a Text, but not a Tooltip. At the moment nothing really works, and as I am a extrem database-fan, I would like to manipulate every given object as far as possible. I am pretty sure I have misunderstood something here, so please help me. Thanks in advance, regards Dag-Jarle From tobiasboe1 at ...20... Mon Sep 12 23:09:52 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 12 Sep 2011 23:09:52 +0200 Subject: [Gambas-user] Arrays again In-Reply-To: References: Message-ID: <4E6E7520.5080901@...20...> On 12.09.2011 22:20, Dag-Jarle Johansen wrote: > Hi, > > I am feeling a little stupid, but I just can't make this running: > > Public xxx As Control (or Public xxx As Object) > > public sub ChangeControls() > DIM I as integer > For I = 0 To mTrans.LoginCount - 1 > For Each xxx In Me.Children > Debug xxx.Name > If xxx.Name = mTrans.TNLoginName[I] Then > xxx.Text=mTrans.TNLogin[I] > Endif > Next > Next > > TNLoginName[] and TNLogin[] are predefined arrays, and seem to work. > In the Debug xxx.Name nothing happens, and the control XXX can not have a > text, though Tooltip is possible, > If I define xxx as Object I can have a Text, but not a Tooltip. > > At the moment nothing really works, and as I am a extrem database-fan, I > would like to manipulate every given object as far as possible. > I am pretty sure I have misunderstood something here, so please help me. > > Thanks in advance, regards > Dag-Jarle the debug instruction only works if compiled with debugging information (as the documentation states), i hope, this is the case? why don't use Print or if it has to be stderr, Error? however, things like this (iterating through container children and changing attributes) normally work for me, if the strings in the array match the names of the controls? i quite can't imagine why there is a difference between using xxx As Control and As Object but i never tried using As Control... From rterry at ...1946... Mon Sep 12 23:52:21 2011 From: rterry at ...1946... (richard terry) Date: Tue, 13 Sep 2011 07:52:21 +1000 Subject: [Gambas-user] DateChooser/Timerchooser In-Reply-To: <201109121455.55734.gambas@...1...> References: <201109122231.58010.rterry@...1946...> <201109121455.55734.gambas@...1...> Message-ID: <201109130752.21507.rterry@...1946...> On Monday 12 September 2011 22:55:55 Beno?t Minisini wrote: > > Benoit, > > > > Not used the time chooser setting before but I notice that changing the > > font changes the display font but not the popup list which is extremely > > small and hard to see > > > > Regards > > > > Richard > > Which popup list ? > see the picture. When you click on the little clock a list of times pops up underneath - if you click on a time - it is put in the textbox part of this control. Notice the times list is very tiny. There seems no way to adjust its font. If you adjust the font of the control then the textbox component font enlarges, not the times on the list. The event I wanted to capture was the user clicking on the list of these times. richard -------------- next part -------------- A non-text attachment was scrubbed... Name: benoit_the_popup.png Type: image/png Size: 15715 bytes Desc: not available URL: From dag.jarle.johansen at ...626... Tue Sep 13 00:12:02 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 12 Sep 2011 19:12:02 -0300 Subject: [Gambas-user] Arrays again In-Reply-To: <4E6E7520.5080901@...20...> References: <4E6E7520.5080901@...20...> Message-ID: danke, the info about the DEBUG was new to me, but should not have any influence on the problem as is. I will play a little around with it, and if it does not work, come back to you experts :-) regards Dag-Jarle 2011/9/12 tobias > On 12.09.2011 22:20, Dag-Jarle Johansen wrote: > > Hi, > > > > I am feeling a little stupid, but I just can't make this running: > > > > Public xxx As Control (or Public xxx As Object) > > > > public sub ChangeControls() > > DIM I as integer > > For I = 0 To mTrans.LoginCount - 1 > > For Each xxx In Me.Children > > Debug xxx.Name > > If xxx.Name = mTrans.TNLoginName[I] Then > > xxx.Text=mTrans.TNLogin[I] > > Endif > > Next > > Next > > > > TNLoginName[] and TNLogin[] are predefined arrays, and seem to work. > > In the Debug xxx.Name nothing happens, and the control XXX can not have a > > text, though Tooltip is possible, > > If I define xxx as Object I can have a Text, but not a Tooltip. > > > > At the moment nothing really works, and as I am a extrem database-fan, I > > would like to manipulate every given object as far as possible. > > I am pretty sure I have misunderstood something here, so please help me. > > > > Thanks in advance, regards > > Dag-Jarle > the debug instruction only works if compiled with debugging information > (as the documentation states), i hope, this is the case? > why don't use Print or if it has to be stderr, Error? > however, things like this (iterating through container children and > changing attributes) normally work for me, if the strings in the array > match the names of the controls? i quite can't imagine why there is a > difference between using xxx As Control and As Object but i never tried > using As Control... > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Sep 13 00:26:26 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 00:26:26 +0200 Subject: [Gambas-user] cutn pasting a menu form to form In-Reply-To: <201109122335.46007.rterry@...1946...> References: <201109122335.46007.rterry@...1946...> Message-ID: <201109130026.26657.gambas@...1...> > Hi benoit, > > Just noticed if I cut and paste a menu from one form to another the order > of the menu items isn't correct - think from memory they are pasted last > to first > > Richard > It should be fixed in revision #4121. Regards, -- Beno?t Minisini From dag.jarle.johansen at ...626... Tue Sep 13 01:56:12 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 12 Sep 2011 20:56:12 -0300 Subject: [Gambas-user] Error after error Message-ID: Hi, I am trying to create a pretty complex software here, but things that worked a year ago are now completely different. I can understand that, as Gambas is heavely developed. For me sometimes a little frustrating - with help and hints from the board here I get one step further and get a lot of new things to think about. I changed Public PROCEDURE ConnectUser() to Public Function ConnectUser() As String and get a lot of errors, f.eks "NULL OBJECT in ...." and "gbx3: warning: .Eval.?.0: Object.LastEventName is deprecated." in procedures that worked a minute ago. I can go back and use a Global to get rhe status of the connection, but I wonder how something what is there can be deprecated, and how it is possible to see the content of a NULL OBJECT. I will be grateful for every help, sometimes there is just a little kick needed. :-) regards, Dag-Jarle From gambas at ...1... Tue Sep 13 02:08:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 02:08:30 +0200 Subject: [Gambas-user] Error after error In-Reply-To: References: Message-ID: <201109130208.30397.gambas@...1...> > Hi, > > I am trying to create a pretty complex software here, but things that > worked a year ago are now completely different. I can understand that, as > Gambas is heavely developed. For me sometimes a little frustrating - with > help and hints from the board here I get one step further and get a lot of > new things to think about. I changed > > Public PROCEDURE ConnectUser() > > to > > Public Function ConnectUser() As String > > and get a lot of errors, f.eks "NULL OBJECT in ...." and "gbx3: warning: > .Eval.?.0: Object.LastEventName is deprecated." > in procedures that worked a minute ago. > > I can go back and use a Global to get rhe status of the connection, but I > wonder how something what is there can be deprecated, and how it is > possible to see the content of a NULL OBJECT. > > I will be grateful for every help, sometimes there is just a little kick > needed. :-) > > regards, > Dag-Jarle If you don't give enough details, nobody can help you. Please send a source code project and a way to reproduce the problem. There is no "NULL OBJECT in...." message in Gambas, so I don't know what you are talking about. I have removed the deprecated Object.LastEventName property in the last revision, so now you will get an error and maybe a backtrace that will tell you where is the problem exactly. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Tue Sep 13 03:16:53 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 12 Sep 2011 21:16:53 -0400 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: References: <4E6C3BBB.9090604@...1887...> Message-ID: <4E6EAF05.9040904@...1887...> > On Sun, Sep 11, 2011 at 07:40, Kevin Fishburne< > kevinfishburne at ...1887...> wrote: > >> My code looks like this: >> >> ' For writing outgoing UDP data to memory. >> Public data As String >> Public mem As Stream >> >> ' Create data string for outgoing transaction queue. >> data = Space(8) >> mem = Memory VarPtr(data) For Write >> mem.Begin >> Write #mem, (Server.DateCurrent + Server.DateUTC) As Float >> mem.Send >> Print data >> >> It throws signal 11 on the Print statement. >> >> I have two questions. First is this the correct way to write one or more >> variables to a string in memory, and second what's up with the signal >> 11? I'm using revision 4094 and will update to the newest revision in a >> moment. > On 09/11/2011 08:13 AM, Jussi Lahtinen wrote: > Not sure what happen there, but try this: > > Public pData As Pointer > Public mem As Stream > > pData = Alloc(SizeOf(gb.Float)) > mem = Memory pData For Write > mem.Begin > Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > mem.Send > > Print Float@(pData) Thanks everyone for your replies. I'm now using this code ('Data' is a string): ' Create data string. DataPointer = Alloc(8) Mem = Memory DataPointer For Read Write Mem.Begin Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float Mem.Send 'Data = Read #Mem As Float Data = Read #Mem, 8 ' Send transaction. udp.Begin Write #udp, id As Byte Write #udp, 56 As Byte 'Write #udp, (Server.DateCurrent + Server.DateUTC) As Float Write #udp, Data, Len(Data) udp.Send The recipient gets the wrong value for 'Data' when it is converted back from a string to a float. It gets the correct value if I use the commented "Write #udp, (Server.DateCurrent + Server.DateUTC) As Float". Any ideas why I can't write the data stored at DataPointer to the string Data? In case anyone forgot, I need the data to be saved as a string so it can be stored in an outgoing network transaction queue, which is an array of transaction structures. The Data property of the structure stores arbitrary groups of variables so grouping them as a string is the most convenient method since there will be up to 255 different transaction types. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Sep 13 03:19:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 03:19:48 +0200 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <4E6EAF05.9040904@...1887...> References: <4E6C3BBB.9090604@...1887...> <4E6EAF05.9040904@...1887...> Message-ID: <201109130319.48927.gambas@...1...> > > On Sun, Sep 11, 2011 at 07:40, Kevin Fishburne< > > > > kevinfishburne at ...1887...> wrote: > >> My code looks like this: > >> > >> ' For writing outgoing UDP data to memory. > >> Public data As String > >> Public mem As Stream > >> > >> ' Create data string for outgoing transaction queue. > >> data = Space(8) > >> mem = Memory VarPtr(data) For Write > >> mem.Begin > >> > >> Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > >> > >> mem.Send > >> Print data > >> > >> It throws signal 11 on the Print statement. > >> > >> I have two questions. First is this the correct way to write one or more > >> variables to a string in memory, and second what's up with the signal > >> 11? I'm using revision 4094 and will update to the newest revision in a > >> moment. > > On 09/11/2011 08:13 AM, Jussi Lahtinen wrote: > > Not sure what happen there, but try this: > > > > Public pData As Pointer > > Public mem As Stream > > > > pData = Alloc(SizeOf(gb.Float)) > > mem = Memory pData For Write > > mem.Begin > > > > Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > > > > mem.Send > > > > Print Float@(pData) > > Thanks everyone for your replies. I'm now using this code ('Data' is a > string): > > ' Create data string. > DataPointer = Alloc(8) > Mem = Memory DataPointer For Read Write > Mem.Begin > Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float > Mem.Send > 'Data = Read #Mem As Float > Data = Read #Mem, 8 > > ' Send transaction. > udp.Begin > Write #udp, id As Byte > Write #udp, 56 As Byte > 'Write #udp, (Server.DateCurrent + Server.DateUTC) As Float > Write #udp, Data, Len(Data) > udp.Send > > The recipient gets the wrong value for 'Data' when it is converted back > from a string to a float. It gets the correct value if I use the > commented "Write #udp, (Server.DateCurrent + Server.DateUTC) As Float". > Any ideas why I can't write the data stored at DataPointer to the string > Data? > > In case anyone forgot, I need the data to be saved as a string so it can > be stored in an outgoing network transaction queue, which is an array of > transaction structures. The Data property of the structure stores > arbitrary groups of variables so grouping them as a string is the most > convenient method since there will be up to 255 different transaction > types. 1) Using Begin/Send is useless if you have only one WRITE instruction. 2) Every stream has a byte order. Did you check that the byte order of your memory stream is the same as the byte order of your Udp socket stream? -- Beno?t Minisini From dag.jarle.johansen at ...626... Tue Sep 13 04:01:39 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 12 Sep 2011 23:01:39 -0300 Subject: [Gambas-user] Error after error In-Reply-To: <201109130208.30397.gambas@...1...> References: <201109130208.30397.gambas@...1...> Message-ID: Thanks Benoit, I will download the last revision. But believe me, in some situations I get the message NULL OBJECT in line... My fault in the definition. Please do not misunderstand me, I am NOT complaining about Gambas, this is rather a cry for help. In this case I was able to solve the prroblems, still I get errors in this case: *Works:* Public $ConU As New Connection Public ConBack As String Public Procedure ConnectUser() $ConU.Close() ' Close the connection $ConU.Type = "MySQL" ' Type of connection $ConU.Host = "127.0.0.1" ' Name of the server $ConU.Login = "root" ' User's name for the connection $ConU.Port = "3306" ' Port to use in the connection, usually 3306 $ConU.Name = "benutzer" ' Name of the data base we want to use $ConU.Password = "" ' User's password Try $ConU.Open() ' Open the connection If Error Then ConBack = "N" Else ConBack = "J" Endif End *Does not Work:* Public Function ConnectUser() as string $ConU.Close() ' Close the connection $ConU.Type = "MySQL" ' Type of connection $ConU.Host = "127.0.0.1" ' Name of the server $ConU.Login = "root" ' User's name for the connection $ConU.Port = "3306" ' Port to use in the connection, usually 3306 $ConU.Name = "benutzer" ' Name of the data base we want to use $ConU.Password = "" ' User's password Try $ConU.Open() ' Open the connection If Error Then Return "N" Else Return = "J" Endif End Errors in completly different procedures afterwards, not in this one. But do not bother too much with this, I am just wondering what happens here. I am happy with the working part. Thanks and regards, Dag-Jarle 2011/9/12 Beno?t Minisini > > Hi, > > > > I am trying to create a pretty complex software here, but things that > > worked a year ago are now completely different. I can understand that, as > > Gambas is heavely developed. For me sometimes a little frustrating - with > > help and hints from the board here I get one step further and get a lot > of > > new things to think about. I changed > > > > Public PROCEDURE ConnectUser() > > > > to > > > > Public Function ConnectUser() As String > > > > and get a lot of errors, f.eks "NULL OBJECT in ...." and "gbx3: > warning: > > .Eval.?.0: Object.LastEventName is deprecated." > > in procedures that worked a minute ago. > > > > I can go back and use a Global to get rhe status of the connection, but I > > wonder how something what is there can be deprecated, and how it is > > possible to see the content of a NULL OBJECT. > > > > I will be grateful for every help, sometimes there is just a little kick > > needed. :-) > > > > regards, > > Dag-Jarle > > If you don't give enough details, nobody can help you. > > Please send a source code project and a way to reproduce the problem. There > is > no "NULL OBJECT in...." message in Gambas, so I don't know what you are > talking about. > > I have removed the deprecated Object.LastEventName property in the last > revision, so now you will get an error and maybe a backtrace that will tell > you where is the problem exactly. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Tue Sep 13 04:17:38 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 12 Sep 2011 22:17:38 -0400 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <201109130319.48927.gambas@...1...> References: <4E6C3BBB.9090604@...1887...> <4E6EAF05.9040904@...1887...> <201109130319.48927.gambas@...1...> Message-ID: <4E6EBD42.1040403@...1887...> On 09/12/2011 09:19 PM, Beno?t Minisini wrote: >>> On Sun, Sep 11, 2011 at 07:40, Kevin Fishburne< >>> >>> kevinfishburne at ...1887...> wrote: >>>> My code looks like this: >>>> >>>> ' For writing outgoing UDP data to memory. >>>> Public data As String >>>> Public mem As Stream >>>> >>>> ' Create data string for outgoing transaction queue. >>>> data = Space(8) >>>> mem = Memory VarPtr(data) For Write >>>> mem.Begin >>>> >>>> Write #mem, (Server.DateCurrent + Server.DateUTC) As Float >>>> >>>> mem.Send >>>> Print data >>>> >>>> It throws signal 11 on the Print statement. >>>> >>>> I have two questions. First is this the correct way to write one or more >>>> variables to a string in memory, and second what's up with the signal >>>> 11? I'm using revision 4094 and will update to the newest revision in a >>>> moment. >> >> On 09/11/2011 08:13 AM, Jussi Lahtinen wrote: >>> Not sure what happen there, but try this: >>> >>> Public pData As Pointer >>> Public mem As Stream >>> >>> pData = Alloc(SizeOf(gb.Float)) >>> mem = Memory pData For Write >>> mem.Begin >>> >>> Write #mem, (Server.DateCurrent + Server.DateUTC) As Float >>> >>> mem.Send >>> >>> Print Float@(pData) >> >> Thanks everyone for your replies. I'm now using this code ('Data' is a >> string): >> >> ' Create data string. >> DataPointer = Alloc(8) >> Mem = Memory DataPointer For Read Write >> Mem.Begin >> Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float >> Mem.Send >> 'Data = Read #Mem As Float >> Data = Read #Mem, 8 >> >> ' Send transaction. >> udp.Begin >> Write #udp, id As Byte >> Write #udp, 56 As Byte >> 'Write #udp, (Server.DateCurrent + Server.DateUTC) As Float >> Write #udp, Data, Len(Data) >> udp.Send >> >> The recipient gets the wrong value for 'Data' when it is converted back >> from a string to a float. It gets the correct value if I use the >> commented "Write #udp, (Server.DateCurrent + Server.DateUTC) As Float". >> Any ideas why I can't write the data stored at DataPointer to the string >> Data? >> >> In case anyone forgot, I need the data to be saved as a string so it can >> be stored in an outgoing network transaction queue, which is an array of >> transaction structures. The Data property of the structure stores >> arbitrary groups of variables so grouping them as a string is the most >> convenient method since there will be up to 255 different transaction >> types. > > 1) Using Begin/Send is useless if you have only one WRITE instruction. > > 2) Every stream has a byte order. Did you check that the byte order of your > memory stream is the same as the byte order of your Udp socket stream? I corrected the Begin/Send issue, thanks. I'd tried setting the byte order both ways before reading the stream and still had incorrect results. The client receiving the transaction reverses the byte order, which produces the correct results when sending the float directly. I tried altering the client code so that it did not reverse the byte order and still received incorrect results. I changed the code to look like this: ' Create data string. DataPointer = Alloc(8) Mem = Memory DataPointer For Read Write Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float Data = Read #Mem As Float Print "Original: " & (Server.DateCurrent + Server.DateUTC) Print "From Mem: " & Float@(Data) Print "Reversed: " & Float@(Convert.Reverse(Data)) and got these results: Original: 197339.760373332 From Mem: 1.48440633070182E-76 Reversed: 1.4276114952676E-71 Convert.Reverse returns the string sent to it in reversed order ('abc' becomes 'cba'). All of that is independent of UDP or the client. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Sep 13 04:22:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 04:22:03 +0200 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <4E6EBD42.1040403@...1887...> References: <4E6C3BBB.9090604@...1887...> <201109130319.48927.gambas@...1...> <4E6EBD42.1040403@...1887...> Message-ID: <201109130422.03042.gambas@...1...> > On 09/12/2011 09:19 PM, Beno?t Minisini wrote: > >>> On Sun, Sep 11, 2011 at 07:40, Kevin Fishburne< > >>> > >>> kevinfishburne at ...1887...> wrote: > >>>> My code looks like this: > >>>> > >>>> ' For writing outgoing UDP data to memory. > >>>> Public data As String > >>>> Public mem As Stream > >>>> > >>>> ' Create data string for outgoing transaction queue. > >>>> data = Space(8) > >>>> mem = Memory VarPtr(data) For Write > >>>> mem.Begin > >>>> > >>>> Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > >>>> > >>>> mem.Send > >>>> Print data > >>>> > >>>> It throws signal 11 on the Print statement. > >>>> > >>>> I have two questions. First is this the correct way to write one or > >>>> more variables to a string in memory, and second what's up with the > >>>> signal 11? I'm using revision 4094 and will update to the newest > >>>> revision in a moment. > >> > >> On 09/11/2011 08:13 AM, Jussi Lahtinen wrote: > >>> Not sure what happen there, but try this: > >>> > >>> Public pData As Pointer > >>> Public mem As Stream > >>> > >>> pData = Alloc(SizeOf(gb.Float)) > >>> mem = Memory pData For Write > >>> mem.Begin > >>> > >>> Write #mem, (Server.DateCurrent + Server.DateUTC) As Float > >>> > >>> mem.Send > >>> > >>> Print Float@(pData) > >> > >> Thanks everyone for your replies. I'm now using this code ('Data' is a > >> string): > >> > >> ' Create data string. > >> DataPointer = Alloc(8) > >> Mem = Memory DataPointer For Read Write > >> Mem.Begin > >> > >> Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float > >> > >> Mem.Send > >> 'Data = Read #Mem As Float > >> Data = Read #Mem, 8 > >> > >> ' Send transaction. > >> udp.Begin > >> > >> Write #udp, id As Byte > >> Write #udp, 56 As Byte > >> 'Write #udp, (Server.DateCurrent + Server.DateUTC) As Float > >> Write #udp, Data, Len(Data) > >> > >> udp.Send > >> > >> The recipient gets the wrong value for 'Data' when it is converted back > >> from a string to a float. It gets the correct value if I use the > >> commented "Write #udp, (Server.DateCurrent + Server.DateUTC) As Float". > >> Any ideas why I can't write the data stored at DataPointer to the string > >> Data? > >> > >> In case anyone forgot, I need the data to be saved as a string so it can > >> be stored in an outgoing network transaction queue, which is an array of > >> transaction structures. The Data property of the structure stores > >> arbitrary groups of variables so grouping them as a string is the most > >> convenient method since there will be up to 255 different transaction > >> types. > > > > 1) Using Begin/Send is useless if you have only one WRITE instruction. > > > > 2) Every stream has a byte order. Did you check that the byte order of > > your memory stream is the same as the byte order of your Udp socket > > stream? > > I corrected the Begin/Send issue, thanks. > > I'd tried setting the byte order both ways before reading the stream and > still had incorrect results. The client receiving the transaction > reverses the byte order, which produces the correct results when sending > the float directly. I tried altering the client code so that it did not > reverse the byte order and still received incorrect results. I changed > the code to look like this: > > ' Create data string. > DataPointer = Alloc(8) > Mem = Memory DataPointer For Read Write > Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float > Data = Read #Mem As Float > Print "Original: " & (Server.DateCurrent + Server.DateUTC) > Print "From Mem: " & Float@(Data) > Print "Reversed: " & Float@(Convert.Reverse(Data)) > Your code cannot work : Data receives a Float ( Read #Mem As Float ), and later is used as a Pointer ( Float@(Data) ). -- Beno?t Minisini From gambas at ...1... Tue Sep 13 04:24:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 04:24:30 +0200 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <201109130422.03042.gambas@...1...> References: <4E6C3BBB.9090604@...1887...> <4E6EBD42.1040403@...1887...> <201109130422.03042.gambas@...1...> Message-ID: <201109130424.30548.gambas@...1...> > > > > ' Create data string. > > DataPointer = Alloc(8) > > Mem = Memory DataPointer For Read Write > > Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float > > Data = Read #Mem As Float > > Print "Original: " & (Server.DateCurrent + Server.DateUTC) > > Print "From Mem: " & Float@(Data) > > Print "Reversed: " & Float@(Convert.Reverse(Data)) > > Your code cannot work : Data receives a Float ( Read #Mem As Float ), and > later is used as a Pointer ( Float@(Data) ). Please provide some real code that I can compile! -- Beno?t Minisini From kevinfishburne at ...1887... Tue Sep 13 05:00:30 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 12 Sep 2011 23:00:30 -0400 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <201109130424.30548.gambas@...1...> References: <4E6C3BBB.9090604@...1887...> <4E6EBD42.1040403@...1887...> <201109130422.03042.gambas@...1...> <201109130424.30548.gambas@...1...> Message-ID: <4E6EC74E.1070304@...1887...> On 09/12/2011 10:24 PM, Beno?t Minisini wrote: >>> ' Create data string. >>> DataPointer = Alloc(8) >>> Mem = Memory DataPointer For Read Write >>> Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float >>> Data = Read #Mem As Float >>> Print "Original: "& (Server.DateCurrent + Server.DateUTC) >>> Print "From Mem: "& Float@(Data) >>> Print "Reversed: "& Float@(Convert.Reverse(Data)) >> Your code cannot work : Data receives a Float ( Read #Mem As Float ), and >> later is used as a Pointer ( Float@(Data) ). > Please provide some real code that I can compile! I put together a small project using the same variables, declarations, assignments, etc., as the actual program. Interestingly, sometimes the "From Mem" and "Reversed" results are the same, other times they are different. They also seem to cycle between the same values instead of changing based on the current time. Something really weird's going on. Hopefully I'm just being an idiot and there's a simple solution. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_test.tar.gz Type: application/x-gzip Size: 6457 bytes Desc: not available URL: From and.bertini at ...626... Tue Sep 13 07:52:46 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Tue, 13 Sep 2011 07:52:46 +0200 Subject: [Gambas-user] How to compress witg GB3? Message-ID: <1315893166.5987.6.camel@...2658...> How to compress a directory/subdirectory inside GB3 with component gbcompress? thx andy From gambas at ...2524... Tue Sep 13 08:11:05 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 06:11:05 +0000 Subject: [Gambas-user] Issue 105 in gambas: Migration crash Message-ID: <0-6813199134517018827-8598101251036506949-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 105 by adamn... at ...626...: Migration crash http://code.google.com/p/gambas/issues/detail?id=105 1) When I try to import a project with the attached class in it the IDE crashes without showing any error. I believe the problem is in the Editor control which cannot properly fold the class code. I have tracked the crash down as far as the Reload method in the FEditor class. It fails at line 2359: If Settings["/Editor/Fold"] Then edtEditor.CollapseAll The obvious work-around is to add a blank line between ' Gambas Class File and 'Export in the original source. So I have raised this one only because the IDE crashes without any information. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4124 [System] OperatingSystem=Linux KernelRelease=2.6.38.8-pclos1.bfs Architecture=i686 Memory=1553368 kB DistributionVendor=Paddys-Hill DistributionRelease="Paddys-Hill dot Net (r0.1)" Desktop=LXDE [Gambas 3] Version=2.99.4 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.3 GTK+=libgtk-x11-2.0.so.0.2400.4 3) Provide a little project that reproduces the bug or the crash. Attached class file 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Stick the attached file into a gambas2 project then try to convert it to gambas3 Attachments: temp.txt 183 bytes From Gambas at ...1950... Tue Sep 13 09:55:05 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 13 Sep 2011 09:55:05 +0200 Subject: [Gambas-user] Error after error In-Reply-To: <201109130208.30397.gambas@...1...> References: <201109130208.30397.gambas@...1...> Message-ID: <1315900505.3326.3.camel@...2150...> Benoit, Try this: Dim myObject As Clipboard myObject.Clear The program will stop at the myObject.Clear line with a little 'hover message': "NULL Object in FMain:14" (for example). I think that's the message Dag-Jarle is talking about. In my opinion this points to some kind of application/logic error, but perhaps as a consequence of things that have changed in the process of moving to GB3. Regards, Caveat On Tue, 2011-09-13 at 02:08 +0200, Beno?t Minisini wrote: > > Hi, > > > > I am trying to create a pretty complex software here, but things that > > worked a year ago are now completely different. I can understand that, as > > Gambas is heavely developed. For me sometimes a little frustrating - with > > help and hints from the board here I get one step further and get a lot of > > new things to think about. I changed > > > > Public PROCEDURE ConnectUser() > > > > to > > > > Public Function ConnectUser() As String > > > > and get a lot of errors, f.eks "NULL OBJECT in ...." and "gbx3: warning: > > .Eval.?.0: Object.LastEventName is deprecated." > > in procedures that worked a minute ago. > > > > I can go back and use a Global to get rhe status of the connection, but I > > wonder how something what is there can be deprecated, and how it is > > possible to see the content of a NULL OBJECT. > > > > I will be grateful for every help, sometimes there is just a little kick > > needed. :-) > > > > regards, > > Dag-Jarle > > If you don't give enough details, nobody can help you. > > Please send a source code project and a way to reproduce the problem. There is > no "NULL OBJECT in...." message in Gambas, so I don't know what you are > talking about. > > I have removed the deprecated Object.LastEventName property in the last > revision, so now you will get an error and maybe a backtrace that will tell > you where is the problem exactly. > > Regards, > From gambas at ...1... Tue Sep 13 10:59:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 10:59:47 +0200 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <4E6EC74E.1070304@...1887...> References: <4E6C3BBB.9090604@...1887...> <201109130424.30548.gambas@...1...> <4E6EC74E.1070304@...1887...> Message-ID: <201109131059.48061.gambas@...1...> > On 09/12/2011 10:24 PM, Beno?t Minisini wrote: > >>> ' Create data string. > >>> DataPointer = Alloc(8) > >>> Mem = Memory DataPointer For Read Write > >>> Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float > >>> Data = Read #Mem As Float > >>> Print "Original: "& (Server.DateCurrent + Server.DateUTC) > >>> Print "From Mem: "& Float@(Data) > >>> Print "Reversed: "& Float@(Convert.Reverse(Data)) > >> > >> Your code cannot work : Data receives a Float ( Read #Mem As Float ), > >> and later is used as a Pointer ( Float@(Data) ). > > > > Please provide some real code that I can compile! > > I put together a small project using the same variables, declarations, > assignments, etc., as the actual program. Interestingly, sometimes the > "From Mem" and "Reversed" results are the same, other times they are > different. They also seem to cycle between the same values instead of > changing based on the current time. Something really weird's going on. > Hopefully I'm just being an idiot and there's a simple solution. Note that if you write to #Mem, the #Mem file pointer (which is the memory address) increases, so the next Read is done eight bytes after! -- Beno?t Minisini From vuott at ...325... Tue Sep 13 11:02:23 2011 From: vuott at ...325... (Ru Vuott) Date: Tue, 13 Sep 2011 10:02:23 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109071909.37232.gambas@...1...> Message-ID: <1315904543.94671.YahooMailClassic@...2676...> Hello Beno?t, I tried your suggestion (see below), by using a external midi-keyboard, connected to PC, I tried about 50 (from num. 0) of fd and more, but it seems it doesn't work. :-( Thanks Bye Paolo > > Did you try to use "OPEN ... FOR READ / WRITE" on > "/proc/self/fd/xxx" where > xxx is the file descriptor you want to watch? > > -- > Beno?t Minisini > From gambas at ...1... Tue Sep 13 11:31:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 11:31:38 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1315904543.94671.YahooMailClassic@...2676...> References: <1315904543.94671.YahooMailClassic@...2676...> Message-ID: <201109131131.38221.gambas@...1...> > Hello Beno?t, > > I tried your suggestion (see below), by using a external midi-keyboard, > connected to PC, I tried about 50 (from num. 0) of fd and more, but it > seems it doesn't work. :-( > > Thanks > Bye > Paolo > 1) You just have to test the fd you get from alsa. 2) You don't give much details. -- Beno?t Minisini From fvegaf at ...67... Tue Sep 13 17:42:27 2011 From: fvegaf at ...67... (fvegaf) Date: Tue, 13 Sep 2011 08:42:27 -0700 (PDT) Subject: [Gambas-user] Unexpected INPUT in form definition Message-ID: <32456827.post@...1379...> I'm creating a menu in the menu editor: File Exit Input Modify And I'm getting this error wher try to run it:"Unexpected INPUT in form definition" This is the conten of the .form file ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Gambas Form File 2.0 { Form Form MoveScaled(0,0,83,60) Text = ("") { File Menu Text = ("&File") { Exit Menu Exit Name = "Exit" Text = ("&Exit") } } { Input Menu Text = ("Input") { Modify Menu Modify Name = "Modify" Text = ("&Modify") } } } +++++++++++++++++++++++++++++++++++++++++ If I move "Modify" submenu to the same level as "Input" the error dissapears. I tried it in gambas 2.13 and and 2.21 -- View this message in context: http://old.nabble.com/Unexpected-INPUT-in-form-definition-tp32456827p32456827.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Sep 13 17:49:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Sep 2011 17:49:37 +0200 Subject: [Gambas-user] Unexpected INPUT in form definition In-Reply-To: <32456827.post@...1379...> References: <32456827.post@...1379...> Message-ID: <201109131749.37387.gambas@...1...> > I'm creating a menu in the menu editor: > > File > Exit > Input > Modify > > And I'm getting this error wher try to run it:"Unexpected INPUT in form > definition" > > This is the conten of the .form file > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > # Gambas Form File 2.0 > > { Form Form > MoveScaled(0,0,83,60) > Text = ("") > { File Menu > Text = ("&File") > { Exit Menu Exit > Name = "Exit" > Text = ("&Exit") > } > } > { Input Menu > Text = ("Input") > { Modify Menu Modify > Name = "Modify" > Text = ("&Modify") > } > } > } > +++++++++++++++++++++++++++++++++++++++++ > If I move "Modify" submenu to the same level as "Input" the error > dissapears. > > I tried it in gambas 2.13 and and 2.21 This is a bug. But try to not use reserved words as menu names, it will help! -- Beno?t Minisini From dag.jarle.johansen at ...626... Tue Sep 13 18:44:51 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 13 Sep 2011 13:44:51 -0300 Subject: [Gambas-user] Error after error In-Reply-To: <1315900505.3326.3.camel@...2150...> References: <201109130208.30397.gambas@...1...> <1315900505.3326.3.camel@...2150...> Message-ID: Hi, that is in fact what happened -my fault off course, but I got confused at that point, because I wanted to use the object much later in a procedure. regards, Dag-Jarle 2011/9/13 Caveat > Benoit, > > Try this: > > Dim myObject As Clipboard > myObject.Clear > > The program will stop at the myObject.Clear line with a little 'hover > message': "NULL Object in FMain:14" (for example). I think that's the > message Dag-Jarle is talking about. > > In my opinion this points to some kind of application/logic error, but > perhaps as a consequence of things that have changed in the process of > moving to GB3. > > Regards, > Caveat > > > > On Tue, 2011-09-13 at 02:08 +0200, Beno?t Minisini wrote: > > > Hi, > > > > > > I am trying to create a pretty complex software here, but things that > > > worked a year ago are now completely different. I can understand that, > as > > > Gambas is heavely developed. For me sometimes a little frustrating - > with > > > help and hints from the board here I get one step further and get a lot > of > > > new things to think about. I changed > > > > > > Public PROCEDURE ConnectUser() > > > > > > to > > > > > > Public Function ConnectUser() As String > > > > > > and get a lot of errors, f.eks "NULL OBJECT in ...." and "gbx3: > warning: > > > .Eval.?.0: Object.LastEventName is deprecated." > > > in procedures that worked a minute ago. > > > > > > I can go back and use a Global to get rhe status of the connection, but > I > > > wonder how something what is there can be deprecated, and how it is > > > possible to see the content of a NULL OBJECT. > > > > > > I will be grateful for every help, sometimes there is just a little > kick > > > needed. :-) > > > > > > regards, > > > Dag-Jarle > > > > If you don't give enough details, nobody can help you. > > > > Please send a source code project and a way to reproduce the problem. > There is > > no "NULL OBJECT in...." message in Gambas, so I don't know what you are > > talking about. > > > > I have removed the deprecated Object.LastEventName property in the last > > revision, so now you will get an error and maybe a backtrace that will > tell > > you where is the problem exactly. > > > > Regards, > > > > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Tue Sep 13 20:07:41 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 13 Sep 2011 14:07:41 -0400 Subject: [Gambas-user] gb3: writing variables to a string using a memory stream and pointer In-Reply-To: <201109131059.48061.gambas@...1...> References: <4E6C3BBB.9090604@...1887...> <201109130424.30548.gambas@...1...> <4E6EC74E.1070304@...1887...> <201109131059.48061.gambas@...1...> Message-ID: <4E6F9BED.605@...1887...> On 09/13/2011 04:59 AM, Beno?t Minisini wrote: >> On 09/12/2011 10:24 PM, Beno?t Minisini wrote: >>>>> ' Create data string. >>>>> DataPointer = Alloc(8) >>>>> Mem = Memory DataPointer For Read Write >>>>> Write #Mem, (Server.DateCurrent + Server.DateUTC) As Float >>>>> Data = Read #Mem As Float >>>>> Print "Original: "& (Server.DateCurrent + Server.DateUTC) >>>>> Print "From Mem: "& Float@(Data) >>>>> Print "Reversed: "& Float@(Convert.Reverse(Data)) >>>> >>>> Your code cannot work : Data receives a Float ( Read #Mem As Float ), >>>> and later is used as a Pointer ( Float@(Data) ). >>> >>> Please provide some real code that I can compile! >> >> I put together a small project using the same variables, declarations, >> assignments, etc., as the actual program. Interestingly, sometimes the >> "From Mem" and "Reversed" results are the same, other times they are >> different. They also seem to cycle between the same values instead of >> changing based on the current time. Something really weird's going on. >> Hopefully I'm just being an idiot and there's a simple solution. > > Note that if you write to #Mem, the #Mem file pointer (which is the memory > address) increases, so the next Read is done eight bytes after! Ahhh, it was something stupid. I should have known better. I added "Seek #Mem, 0" and it now works properly. Interestingly I no longer need to reverse the string on the recipient's end as I was doing previously. Thanks for the help. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Wed Sep 14 01:39:29 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 23:39:29 +0000 Subject: [Gambas-user] Issue 105 in gambas: Folding a block of code crashes (was: Migration crash) In-Reply-To: <0-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> Updates: Summary: Folding a block of code crashes (was: Migration crash) Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 105 by benoit.m... at ...626...: Folding a block of code crashes (was: Migration crash) http://code.google.com/p/gambas/issues/detail?id=105 This is not related to the project converter. This is just a bug in the editor folding routine. From gambas at ...2524... Wed Sep 14 01:43:34 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 23:43:34 +0000 Subject: [Gambas-user] Issue 105 in gambas: Folding a block of code crashes (was: Migration crash) In-Reply-To: <1-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> <0-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 105 by benoit.m... at ...626...: Folding a block of code crashes (was: Migration crash) http://code.google.com/p/gambas/issues/detail?id=105 Fixed in revision #4125. From gambas at ...1... Wed Sep 14 01:43:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Sep 2011 01:43:53 +0200 Subject: [Gambas-user] How to compress witg GB3? In-Reply-To: <1315893166.5987.6.camel@...2658...> References: <1315893166.5987.6.camel@...2658...> Message-ID: <201109140143.54019.gambas@...1...> > How to compress a directory/subdirectory inside GB3 with component > gbcompress? > > thx > > andy > Why don't you just run "tar" or "zip" with EXEC or SHELL? -- Beno?t Minisini From gambas at ...2524... Wed Sep 14 01:47:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 23:47:38 +0000 Subject: [Gambas-user] Issue 103 in gambas: Treeview KeyRelease behaves differently with gtk and qt4 In-Reply-To: <1-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> <0-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4136136202187000509-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 103 by benoit.m... at ...626...: Treeview KeyRelease behaves differently with gtk and qt4 http://code.google.com/p/gambas/issues/detail?id=103 (No comment was entered for this change.) From gambas at ...2524... Wed Sep 14 01:51:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 23:51:41 +0000 Subject: [Gambas-user] Issue 101 in gambas: Add support for adding extra files in the "AutoTools" packager In-Reply-To: <2-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> <0-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-11752363811029048210-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #3 on issue 101 by benoit.m... at ...626...: Add support for adding extra files in the "AutoTools" packager http://code.google.com/p/gambas/issues/detail?id=101 (No comment was entered for this change.) From gambas at ...2524... Wed Sep 14 01:55:46 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 23:55:46 +0000 Subject: [Gambas-user] Issue 60 in gambas: combobox shows blank lines before first item (GTK+) In-Reply-To: <1-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> <0-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-474982564160783116-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #2 on issue 60 by benoit.m... at ...626...: combobox shows blank lines before first item (GTK+) http://code.google.com/p/gambas/issues/detail?id=60 (No comment was entered for this change.) From gambas at ...2524... Wed Sep 14 01:59:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Sep 2011 23:59:50 +0000 Subject: [Gambas-user] Issue 105 in gambas: Folding a block of code crashes (was: Migration crash) In-Reply-To: <2-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> <0-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7846123583024290534-gambas=googlecode.com@...2524...> Updates: Labels: -Type-Bug Type-Crash Comment #3 on issue 105 by benoit.m... at ...626...: Folding a block of code crashes (was: Migration crash) http://code.google.com/p/gambas/issues/detail?id=105 (No comment was entered for this change.) From adamnt42 at ...626... Wed Sep 14 04:22:21 2011 From: adamnt42 at ...626... (Adam Ant) Date: Wed, 14 Sep 2011 11:52:21 +0930 Subject: [Gambas-user] Open IDE not maximized Message-ID: I am sure there was a way to make the IDE not open maximized. I have searched the mail archives and found nothing. Is it possible? Bruce From adamnt42 at ...626... Wed Sep 14 04:24:41 2011 From: adamnt42 at ...626... (Adam Ant) Date: Wed, 14 Sep 2011 11:54:41 +0930 Subject: [Gambas-user] LXDE (again) sugggestion Message-ID: Adds the lxde terminal to the choices in the IDE Options. (very low priority) Bruce Index: FOption.class =================================================================== --- FOption.class (revision 4126) +++ FOption.class (working copy) @@ -59,7 +59,7 @@ cmbTheme.Add(("Select a theme"), 0) cmbIconTheme.List = [("Desktop"), "Gnome", "KDE"] cmbBrowser.List = [("(Default)"), "Konqueror", "Firefox", "Epiphany", "SeaMonkey", "Opera"] - cmbTerminal.List = [("(Default)"), "Konsole", "Gnome Terminal", "XFCE Terminal", "XTerm"] + cmbTerminal.List = [("(Default)"), "Konsole", "Gnome Terminal", "XFCE Terminal", "lxterminal", "XTerm"] cmbImageEditor.List = [("(Default)"), "GIMP", "Kolour Paint", "Krita"] $cLast = MTheme.ReadSettings(Settings, "/Highlight", True) From adamnt42 at ...626... Wed Sep 14 04:36:03 2011 From: adamnt42 at ...626... (Adam Ant) Date: Wed, 14 Sep 2011 12:06:03 +0930 Subject: [Gambas-user] Small suggestion re help browser Message-ID: This mod has two effects: 1) prevents the inadvertent transition of the help page when the user clicks somewhere in the help tree *other than on a specific item*. 2) if the click is on recognizable row in the treeview, it is acted on (this saves the frustration when the cursor is only a few pixels off an item) Rationale : This arose because I have a nervous tick in my right hand that manifests itself in right button clicks when I don't mean them. In order to cope I move the cursor down to the bottom of the treeview to a blank spot, so with this mod the help browser no longer jumps to the last visible item in the treeview list. (This nervous tick drives me mad everywhere by the way - at least in this case I can make a difference! ) regards Bruce Index: FHelpBrowser.class =================================================================== --- FHelpBrowser.class (revision 4126) +++ FHelpBrowser.class (working copy) @@ -233,7 +233,13 @@ Dim ars As String[] Dim iType As Integer Dim sKey As String - + + If Not tvwClasses.FindAt(0, Mouse.Y) + tvwClasses.Item.Selected = True + Else + Return ' just ignore any clicks below the visible items + Endif + sKey = tvwClasses.Current.Key If sKey = "$" Then Return From adamnt42 at ...626... Wed Sep 14 04:42:17 2011 From: adamnt42 at ...626... (Adam Ant) Date: Wed, 14 Sep 2011 12:12:17 +0930 Subject: [Gambas-user] Small suggestion re Help Browser "same URL" click Message-ID: Benoit, This mod needs confirmation as I am unsure as to why the original line was commented out. It just doesn't update hWebView.Url if the calculated target Url is the same as what's already being displayed. I have had it running here for ~10 days or so and have not seen any side effect. regards Bruce Index: MHelp.module =================================================================== --- MHelp.module (revision 4126) +++ MHelp.module (working copy) @@ -415,10 +415,13 @@ If sMore Then sUrl &= "&" & sMore sMore &= "&" & GetLanguage() ' ?? - 'If hWebView.Url = sUrl Then Return - - hWebView.Url = sUrl + ' bb: tries to avoid reloading the same page by + ' not inciting the hWebView_Load(?) event + If hWebView.Url <> sUrl Then + hWebView.Url = sUrl + Endif + Else hWebView.HTML = "

" & ("No help found.") & "

" Endif From and.bertini at ...626... Wed Sep 14 13:02:32 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Wed, 14 Sep 2011 13:02:32 +0200 Subject: [Gambas-user] How to compress witg GB3? (Beno?t Minisini) Message-ID: thx Benoit i revolve with: Public Sub GoBackup() Dim mybackup As Process If hset["host/backup_on"] = -1 Then mybackup = Shell ("tar czf " & hset["host/backup"] & "myZone4-" & Application.Version & ".tar.gz " & Application.Path & "/") Message("Backup effettuato con successo.") Endif End Andrea BERTINI Rome-Italy 2011/9/14 > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > Today's Topics: > > 1. Re: Issue 105 in gambas: Folding a block of code crashes > (was: Migration crash) (gambas at ...2524...) > 2. Re: How to compress witg GB3? (Beno?t Minisini) > 3. Re: Issue 103 in gambas: Treeview KeyRelease behaves > differently with gtk and qt4 (gambas at ...2524...) > 4. Re: Issue 101 in gambas: Add support for adding extra files > in the "AutoTools" packager (gambas at ...2524...) > 5. Re: Issue 60 in gambas: combobox shows blank lines before > first item (GTK+) (gambas at ...2524...) > 6. Re: Issue 105 in gambas: Folding a block of code crashes > (was: Migration crash) (gambas at ...2524...) > 7. Open IDE not maximized (Adam Ant) > 8. LXDE (again) sugggestion (Adam Ant) > 9. Small suggestion re help browser (Adam Ant) > > > ---------- Messaggio inoltrato ---------- > From: gambas at ...2524... > To: gambas-user at lists.sourceforge.net > Date: Tue, 13 Sep 2011 23:43:34 +0000 > Subject: Re: [Gambas-user] Issue 105 in gambas: Folding a block of code > crashes (was: Migration crash) > Updates: > Status: Fixed > > Comment #2 on issue 105 by benoit.m... at ...626...: Folding a block of code > crashes (was: Migration crash) > http://code.google.com/p/**gambas/issues/detail?id=105 > > Fixed in revision #4125. > > > > > > ---------- Messaggio inoltrato ---------- > From: "Beno?t Minisini" > To: mailing list for gambas users > Date: Wed, 14 Sep 2011 01:43:53 +0200 > Subject: Re: [Gambas-user] How to compress witg GB3? > > How to compress a directory/subdirectory inside GB3 with component > > gbcompress? > > > > thx > > > > andy > > > > Why don't you just run "tar" or "zip" with EXEC or SHELL? > > -- > Beno?t Minisini > > > > > ---------- Messaggio inoltrato ---------- > From: gambas at ...2524... > To: gambas-user at lists.sourceforge.net > Date: Tue, 13 Sep 2011 23:47:38 +0000 > Subject: Re: [Gambas-user] Issue 103 in gambas: Treeview KeyRelease behaves > differently with gtk and qt4 > Updates: > Labels: -Priority-Medium Priority-Low > > Comment #2 on issue 103 by benoit.m... at ...626...: Treeview KeyRelease > behaves differently with gtk and qt4 > http://code.google.com/p/**gambas/issues/detail?id=103 > > (No comment was entered for this change.) > > > > > > ---------- Messaggio inoltrato ---------- > From: gambas at ...2524... > To: gambas-user at lists.sourceforge.net > Date: Tue, 13 Sep 2011 23:51:41 +0000 > Subject: Re: [Gambas-user] Issue 101 in gambas: Add support for adding > extra files in the "AutoTools" packager > Updates: > Labels: -Priority-Medium Priority-Low > > Comment #3 on issue 101 by benoit.m... at ...626...: Add support for adding > extra files in the "AutoTools" packager > http://code.google.com/p/**gambas/issues/detail?id=101 > > (No comment was entered for this change.) > > > > > > ---------- Messaggio inoltrato ---------- > From: gambas at ...2524... > To: gambas-user at lists.sourceforge.net > Date: Tue, 13 Sep 2011 23:55:46 +0000 > Subject: Re: [Gambas-user] Issue 60 in gambas: combobox shows blank lines > before first item (GTK+) > Updates: > Labels: -Priority-Medium Priority-Low > > Comment #2 on issue 60 by benoit.m... at ...626...: combobox shows blank > lines before first item (GTK+) > http://code.google.com/p/**gambas/issues/detail?id=60 > > (No comment was entered for this change.) > > > > > > ---------- Messaggio inoltrato ---------- > From: gambas at ...2524... > To: gambas-user at lists.sourceforge.net > Date: Tue, 13 Sep 2011 23:59:50 +0000 > Subject: Re: [Gambas-user] Issue 105 in gambas: Folding a block of code > crashes (was: Migration crash) > Updates: > Labels: -Type-Bug Type-Crash > > Comment #3 on issue 105 by benoit.m... at ...626...: Folding a block of code > crashes (was: Migration crash) > http://code.google.com/p/**gambas/issues/detail?id=105 > > (No comment was entered for this change.) > > > > > > ---------- Messaggio inoltrato ---------- > From: Adam Ant > To: Gambas Mailing List > Date: Wed, 14 Sep 2011 11:52:21 +0930 > Subject: [Gambas-user] Open IDE not maximized > I am sure there was a way to make the IDE not open maximized. I have > searched the mail archives and found nothing. > Is it possible? > > Bruce > > > > ---------- Messaggio inoltrato ---------- > From: Adam Ant > To: Gambas Mailing List > Date: Wed, 14 Sep 2011 11:54:41 +0930 > Subject: [Gambas-user] LXDE (again) sugggestion > Adds the lxde terminal to the choices in the IDE Options. > > (very low priority) > > Bruce > > > Index: FOption.class > =================================================================== > --- FOption.class (revision 4126) > +++ FOption.class (working copy) > @@ -59,7 +59,7 @@ > cmbTheme.Add(("Select a theme"), 0) > cmbIconTheme.List = [("Desktop"), "Gnome", "KDE"] > cmbBrowser.List = [("(Default)"), "Konqueror", "Firefox", "Epiphany", > "SeaMonkey", "Opera"] > - cmbTerminal.List = [("(Default)"), "Konsole", "Gnome Terminal", "XFCE > Terminal", "XTerm"] > + cmbTerminal.List = [("(Default)"), "Konsole", "Gnome Terminal", "XFCE > Terminal", "lxterminal", "XTerm"] > cmbImageEditor.List = [("(Default)"), "GIMP", "Kolour Paint", "Krita"] > > $cLast = MTheme.ReadSettings(Settings, "/Highlight", True) > > > > ---------- Messaggio inoltrato ---------- > From: Adam Ant > To: Gambas Mailing List > Date: Wed, 14 Sep 2011 12:06:03 +0930 > Subject: [Gambas-user] Small suggestion re help browser > This mod has two effects: > 1) prevents the inadvertent transition of the help page when the user > clicks > somewhere in the help tree *other than on a specific item*. > 2) if the click is on recognizable row in the treeview, it is acted on > (this > saves the frustration when the cursor is only a few pixels off an item) > > Rationale : This arose because I have a nervous tick in my right hand that > manifests itself in right button clicks when I don't mean them. In order > to > cope I move the cursor down to the bottom of the treeview to a blank spot, > so with this mod the help browser no longer jumps to the last visible item > in the treeview list. (This nervous tick drives me mad everywhere by the > way - at least in this case I can make a difference! ) > > regards > Bruce > > Index: FHelpBrowser.class > =================================================================== > --- FHelpBrowser.class (revision 4126) > +++ FHelpBrowser.class (working copy) > @@ -233,7 +233,13 @@ > Dim ars As String[] > Dim iType As Integer > Dim sKey As String > - > + > + If Not tvwClasses.FindAt(0, Mouse.Y) > + tvwClasses.Item.Selected = True > + Else > + Return ' just ignore any clicks below the visible items > + Endif > + > sKey = tvwClasses.Current.Key > If sKey = "$" Then Return > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed Sep 14 13:08:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Sep 2011 13:08:12 +0200 Subject: [Gambas-user] How to compress witg GB3? (Beno?t Minisini) In-Reply-To: References: Message-ID: <201109141308.12420.gambas@...1...> > thx Benoit i revolve with: > > Public Sub GoBackup() > > Dim mybackup As Process > > If hset["host/backup_on"] = -1 Then > mybackup = Shell ("tar czf " & hset["host/backup"] & "myZone4-" & > Application.Version & ".tar.gz " & Application.Path & "/") > Message("Backup effettuato con successo.") > Endif > > End > > > Andrea BERTINI > Rome-Italy > Please don't put all the mailing-list in your mails. And don't forget to add the WAIT keyword to SHELL. Regards, -- Beno?t Minisini From lonnie.headley at ...626... Thu Sep 15 08:03:04 2011 From: lonnie.headley at ...626... (Lonnie Headley) Date: Thu, 15 Sep 2011 02:03:04 -0400 Subject: [Gambas-user] Form menu dawn behind controls sometimes when using Gtk Message-ID: Gambas version 2.99.4, rev 4128 on Ubuntu 11.04 x86 When I switch to use Gtk, sometimes the menu is partially drawn behind controls on the form when it is first shown. It doesn't happen every time and I can't pinpoint what is causing it. If I resize the form, it is corrected and everything looks normal. I can get this if I create a new project, add a menu and some controls as well. Here is a pic of what I am seeing: http://imgur.com/wp8nr Just to clarify, this happens when programs are executed and isn't related to the IDE. From gambas at ...1... Thu Sep 15 11:12:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 15 Sep 2011 11:12:39 +0200 Subject: [Gambas-user] Form menu dawn behind controls sometimes when using Gtk In-Reply-To: References: Message-ID: <201109151112.39649.gambas@...1...> > Gambas version 2.99.4, rev 4128 on Ubuntu 11.04 x86 > When I switch to use Gtk, sometimes the menu is partially drawn behind > controls on the form when it is first shown. It doesn't happen every time > and I can't pinpoint what is causing it. If I resize the form, it is > corrected and everything looks normal. I can get this if I create a new > project, add a menu and some controls as well. Here is a pic of what I am > seeing: http://imgur.com/wp8nr > Just to clarify, this happens when programs are executed and isn't related > to the IDE. Please send your project, or a part of it enough to reproduce the problem. Or at least the form file! Regards, -- Beno?t Minisini From gambas at ...1... Thu Sep 15 12:12:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 15 Sep 2011 12:12:05 +0200 Subject: [Gambas-user] Open IDE not maximized In-Reply-To: References: Message-ID: <201109151212.05689.gambas@...1...> > I am sure there was a way to make the IDE not open maximized. I have > searched the mail archives and found nothing. > Is it possible? > > Bruce I removed the automatic maximization in revision #4129. -- Beno?t Minisini From gambas at ...1... Thu Sep 15 12:12:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 15 Sep 2011 12:12:17 +0200 Subject: [Gambas-user] LXDE (again) sugggestion In-Reply-To: References: Message-ID: <201109151212.17154.gambas@...1...> > Adds the lxde terminal to the choices in the IDE Options. > > (very low priority) > > Bruce > > > Index: FOption.class > =================================================================== > --- FOption.class (revision 4126) > +++ FOption.class (working copy) > @@ -59,7 +59,7 @@ > cmbTheme.Add(("Select a theme"), 0) > cmbIconTheme.List = [("Desktop"), "Gnome", "KDE"] > cmbBrowser.List = [("(Default)"), "Konqueror", "Firefox", "Epiphany", > "SeaMonkey", "Opera"] > - cmbTerminal.List = [("(Default)"), "Konsole", "Gnome Terminal", "XFCE > Terminal", "XTerm"] > + cmbTerminal.List = [("(Default)"), "Konsole", "Gnome Terminal", "XFCE > Terminal", "lxterminal", "XTerm"] > cmbImageEditor.List = [("(Default)"), "GIMP", "Kolour Paint", "Krita"] > > $cLast = MTheme.ReadSettings(Settings, "/Highlight", True) > --------------------------------------------------------------------------- > --- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Fixed in revision #4129. -- Beno?t Minisini From gambas at ...1... Thu Sep 15 12:13:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 15 Sep 2011 12:13:20 +0200 Subject: [Gambas-user] Small suggestion re help browser In-Reply-To: References: Message-ID: <201109151213.20365.gambas@...1...> > This mod has two effects: > 1) prevents the inadvertent transition of the help page when the user > clicks somewhere in the help tree *other than on a specific item*. > 2) if the click is on recognizable row in the treeview, it is acted on > (this saves the frustration when the cursor is only a few pixels off an > item) > > Rationale : This arose because I have a nervous tick in my right hand that > manifests itself in right button clicks when I don't mean them. In order > to cope I move the cursor down to the bottom of the treeview to a blank > spot, so with this mod the help browser no longer jumps to the last > visible item in the treeview list. (This nervous tick drives me mad > everywhere by the way - at least in this case I can make a difference! ) > > regards > Bruce > > Index: FHelpBrowser.class > =================================================================== > --- FHelpBrowser.class (revision 4126) > +++ FHelpBrowser.class (working copy) > @@ -233,7 +233,13 @@ > Dim ars As String[] > Dim iType As Integer > Dim sKey As String > - > + > + If Not tvwClasses.FindAt(0, Mouse.Y) > + tvwClasses.Item.Selected = True > + Else > + Return ' just ignore any clicks below the visible items > + Endif > + > sKey = tvwClasses.Current.Key > If sKey = "$" Then Return I don't understand the problem. If you click outside the treeview, the current page is just refreshed. It is not moved to the last item. -- Beno?t Minisini From gambas at ...1... Thu Sep 15 12:15:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 15 Sep 2011 12:15:17 +0200 Subject: [Gambas-user] Small suggestion re Help Browser "same URL" click In-Reply-To: References: Message-ID: <201109151215.17765.gambas@...1...> > Benoit, > > This mod needs confirmation as I am unsure as to why the original line was > commented out. > > It just doesn't update hWebView.Url if the calculated target Url is the > same as what's already being displayed. > I have had it running here for ~10 days or so and have not seen any side > effect. > > regards > Bruce > > > Index: MHelp.module > =================================================================== > --- MHelp.module (revision 4126) > +++ MHelp.module (working copy) > @@ -415,10 +415,13 @@ > > If sMore Then sUrl &= "&" & sMore > sMore &= "&" & GetLanguage() ' ?? > - 'If hWebView.Url = sUrl Then Return > - > - hWebView.Url = sUrl > > + ' bb: tries to avoid reloading the same page by > + ' not inciting the hWebView_Load(?) event > + If hWebView.Url <> sUrl Then > + hWebView.Url = sUrl > + Endif > + > Else > hWebView.HTML = "

" & ("No help found.") & > "

" > Endif Mmm... Yes, I don't know why I commented that line. There is a reason for sure, but I don't remember it! :-) I will uncomment it to see what happens. -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Sep 15 22:00:57 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 15 Sep 2011 23:00:57 +0300 Subject: [Gambas-user] Error in example: WebCam 1.0.4 In-Reply-To: References: <201108301133.28355.gambas@...1...> <201108302150.32765.gambas@...1...> Message-ID: Some changes in situation... now last messages are: gb.v4l: v4l2: Device is V4L2!: Success gb.v4l: v4l2: Capture ON: Invalid argument Revision 4129 Jussi On Wed, Aug 31, 2011 at 21:54, Jussi Lahtinen wrote: > Last time I was bit too hurry to test this through and give enough details, > sorry! > > My camera could be found from /dev/video0. > For some reason IDE can't pause execution, so I'm not sure what happens. > It just seem to freeze to search for device. > > However, last messages are: > " > gambas v4l2: Device is V4L2! [0] > gambas v4l2: Capture ON [22] > " > > So, I think the error happens in VideoDevice class, and that would also > explain why I cannot pause. > > Stop button stops execution normally, no error messages. > > Gambas 3 rev 4067 @ Ubuntu 11.04 64bit > > Jussi > > > > 2011/8/30 Beno?t Minisini > >> > MyWebCam example says (and works); "Device is V4L2!" and WebCam example >> > doesn't find it at all..? >> > Still something wrong... >> > >> > Jussi >> > >> >> Look in the code: apparently WebCam scans for /dev/videoX with X between 0 >> and >> 20. Maybe your device name does not look like that... >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From vuott at ...325... Thu Sep 15 23:59:37 2011 From: vuott at ...325... (Ru Vuott) Date: Thu, 15 Sep 2011 22:59:37 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109131131.38221.gambas@...1...> Message-ID: <1316123977.72758.YahooMailClassic@...2678...> Hello Beno?t, well, I need to put "arbitrary" file descriptors in the Message Loop, ...like GTK and QT toolkit that already allow to do it. These file descriptors (get from ALSA functions) can be used to wait for events from ALSA. bye Paolo --- Mar 13/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... > A: "mailing list for gambas users" > Data: Marted? 13 settembre 2011, 11:31 > > Hello Beno?t, > > > > I tried your suggestion (see below), by using a > external midi-keyboard, > > connected to PC, I tried about 50 (from num. 0) of fd > and more, but it > > seems it doesn't work. :-( > > > > Thanks > > Bye > > Paolo > > > > 1) You just have to test the fd you get from alsa. > > 2) You don't give much details. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs > & more. > See new tools and technologies. Register for > BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Sep 16 00:05:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 16 Sep 2011 00:05:22 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1316123977.72758.YahooMailClassic@...2678...> References: <1316123977.72758.YahooMailClassic@...2678...> Message-ID: <201109160005.23029.gambas@...1...> > Hello Beno?t, > > well, I need to put "arbitrary" file descriptors in the Message Loop, > ...like GTK and QT toolkit that already allow to do it. > > These file descriptors (get from ALSA functions) can be used to wait for > events from ALSA. > > > bye > Paolo > With details I mean some source code. Theoritically, if alsa returns to you the file descriptor X, you should be able to watch it by reopening "/dev/self/fd/X". But it may not work if the file descriptor is already opened, I don't know. I have never used alsa, and I have no code to test... -- Beno?t Minisini From aasanchez at ...626... Fri Sep 16 00:25:03 2011 From: aasanchez at ...626... (Alexis Sanchez) Date: Thu, 15 Sep 2011 17:55:03 -0430 Subject: [Gambas-user] how embebed openstreetmap into gambas3 Message-ID: i need add into a gambas3 form a openstreetmap with a dinamic poi's that will be loaded from a database -- Alexis Sanchez 0416-2584008 Linux Counter User: 484046 http://alexissanchez.net Ubuntu 10.10 & Kernel: 2.6.35-25 Twitter: @aasanchez facebook: facebook.com/aasanchez From eilert-sprachen at ...221... Fri Sep 16 08:11:30 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 Sep 2011 08:11:30 +0200 Subject: [Gambas-user] how embebed openstreetmap into gambas3 In-Reply-To: References: Message-ID: <4E72E892.7060704@...221...> Am 16.09.2011 00:25, schrieb Alexis Sanchez: > i need add into a gambas3 form a openstreetmap with a dinamic poi's > that will be loaded from a database > Did you look for the web-browser component? Just an idea, I have not made any experience with it yet... Regards Rolf From ron at ...1740... Fri Sep 16 09:29:17 2011 From: ron at ...1740... (Ron) Date: Fri, 16 Sep 2011 09:29:17 +0200 Subject: [Gambas-user] MySQL socket path Message-ID: <4E72FACD.2000405@...1740...> I cannot seem to find a way to set the mysql socket path. Nor in gambas3 gb.mysql nor in gambas2 gb.db component. How can I do that? See here for more related info when using localhost as host. http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html As far as i can see this should be a client option. Regards, Ron_2nd. From eilert-sprachen at ...221... Fri Sep 16 10:39:58 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 Sep 2011 10:39:58 +0200 Subject: [Gambas-user] Programmatically clicking the TreeView (Gambas 2) Message-ID: <4E730B5E.4060605@...221...> When I set TreeView.MoveParent TreeView.Item.Selected = TRUE the newly selected Item doesn't effect a click event. Is there a way to let that happen, or will I have to find an internal way to call the TreeView_Click function? Regards Rolf From gambas.fr at ...626... Fri Sep 16 12:58:53 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Sep 2011 12:58:53 +0200 Subject: [Gambas-user] Programmatically clicking the TreeView (Gambas 2) In-Reply-To: <4E730B5E.4060605@...221...> References: <4E730B5E.4060605@...221...> Message-ID: TreeView1.MoveParent TreeView1.Item.Selected = TRUE TreeView1_Click() :-) 2011/9/16 Rolf-Werner Eilert : > When I set > > TreeView.MoveParent > TreeView.Item.Selected = TRUE > > the newly selected Item doesn't effect a click event. Is there a way to > let that happen, or will I have to find an internal way to call the > TreeView_Click function? > > Regards > Rolf > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > 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... Fri Sep 16 12:59:36 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Sep 2011 12:59:36 +0200 Subject: [Gambas-user] Programmatically clicking the TreeView (Gambas 2) In-Reply-To: References: <4E730B5E.4060605@...221...> Message-ID: 2011/9/16 Fabien Bodard : > TreeView1.MoveParent > TreeView1.Item.Selected = TRUE > TreeView1_Click() > > :-) the only thing is you can't use the Last keyword ! > > 2011/9/16 Rolf-Werner Eilert : >> When I set >> >> TreeView.MoveParent >> TreeView.Item.Selected = TRUE >> >> the newly selected Item doesn't effect a click event. Is there a way to >> let that happen, or will I have to find an internal way to call the >> TreeView_Click function? >> >> Regards >> Rolf >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> http://p.sf.net/sfu/rim-devcon-copy2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From eilert-sprachen at ...221... Fri Sep 16 13:21:52 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 Sep 2011 13:21:52 +0200 Subject: [Gambas-user] Programmatically clicking the TreeView (Gambas 2) In-Reply-To: References: <4E730B5E.4060605@...221...> Message-ID: <4E733150.2030002@...221...> Argggh - so simple! Thank you! :-) Rolf Am 16.09.2011 12:59, schrieb Fabien Bodard: > 2011/9/16 Fabien Bodard: >> TreeView1.MoveParent >> TreeView1.Item.Selected = TRUE >> TreeView1_Click() >> >> :-) > the only thing is you can't use the Last keyword ! >> >> 2011/9/16 Rolf-Werner Eilert: >>> When I set >>> >>> TreeView.MoveParent >>> TreeView.Item.Selected = TRUE >>> >>> the newly selected Item doesn't effect a click event. Is there a way to >>> let that happen, or will I have to find an internal way to call the >>> TreeView_Click function? >>> >>> Regards >>> Rolf >>> >>> ------------------------------------------------------------------------------ >>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>> http://p.sf.net/sfu/rim-devcon-copy2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> > > > From gambas at ...1... Fri Sep 16 15:16:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 16 Sep 2011 15:16:27 +0200 Subject: [Gambas-user] MySQL socket path In-Reply-To: <4E72FACD.2000405@...1740...> References: <4E72FACD.2000405@...1740...> Message-ID: <201109161516.27540.gambas@...1...> > I cannot seem to find a way to set the mysql socket path. > Nor in gambas3 gb.mysql nor in gambas2 gb.db component. > > How can I do that? > > See here for more related info when using localhost as host. > http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html > As far as i can see this should be a client option. > > Regards, > Ron_2nd. > I added the following syntax for mysql in revision #4130: If the host starts with a '/', then I assume a localhost connection, and the host contents is used as the socket path. Can you try it and tell me if it works for you? -- Beno?t Minisini From vuott at ...325... Fri Sep 16 15:51:01 2011 From: vuott at ...325... (Ru Vuott) Date: Fri, 16 Sep 2011 14:51:01 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109160005.23029.gambas@...1...> Message-ID: <1316181061.3474.YahooMailClassic@...2668...> Hello Beno?t, well, I cannot send you a source code, because, what I need and... wish, it doesen't exist in Gambas. I 'ld like to specify that ALSA provides only the "file descriptors". Stop ! The reopening of the same file should be checked and confirmed (you know it), because the opening could provide a "different" file descriptor from fd of ALSA; if instead it provides the same fd, then the program'ld enter into competition with ALSA. Both GTK and QT, and probably all other toolkits provide the "important" possibility to put-in a "poll" on a arbitrary fd in the message loop. Regards Paolo --- Ven 16/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... > A: "mailing list for gambas users" > Data: Venerd? 16 settembre 2011, 00:05 > > Hello Beno?t, > > > > well, I need to put "arbitrary" file descriptors in > the Message Loop, > > ...like GTK and QT toolkit that already allow to do > it. > > > > These file descriptors (get from ALSA functions) can > be used to wait for > > events from ALSA. > > > > > > bye > > Paolo > > > > With details I mean some source code. > > Theoritically, if alsa returns to you the file descriptor > X, you should be > able to watch it by reopening "/dev/self/fd/X". But it may > not work if the > file descriptor is already opened, I don't know. I have > never used alsa, and I > have no code to test... > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many > mid-market businesses > from deploying virtual desktops????How do > next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and > more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert1juhasz at ...626... Fri Sep 16 18:56:19 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Fri, 16 Sep 2011 18:56:19 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201105160421.15192.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <1305028678.5734.28.camel@...2425...> <201105160255.43560.gambas@...1...> <201105160421.15192.gambas@...1...> Message-ID: <1316192179.11810.10.camel@...2425...> Hello Benoit, Finally I succeeded to install the latest version of gambas2 but I haven't succeeded with the Eval function. 1. I installed a brand new ubuntu 10.04 in virtualbox, performed the updates and installed gambas2 from source. Eval works fine under 10.04 but the .deb package created and installed on an 11.04 machine failed when using Eval. 2. Today I reinstalled my ubuntu 11.04 (no virtualbox, this is the main system on my computer), performed the updates and installed gambas2 from source. The Eval function works for integers but not for floats: Eval(3*2)=6, Eval(3/2)=1.5, Eval(3*2.1) fails, Eval(3/2.1) fails. I don't know how to check the revision but it supposed to be the latest one: downloaded from here: http://gambas.sourceforge.net/en/main.html instructions followed as written in the Compilation & Installation / Ubuntu section (note that the ./reconf-all command is missing in the ubuntu instructions but written in the general instructions and seems to be needed). I also saw links to .deb installation packages of Gambas here bot both links are dead. Can you please tell me how to continue? Thanks, Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Mon, 16 May 2011 04:21:15 +0200 > > Hello, > > > > Can anything be done with this issue? The problem is little annoying in > > the IDE but more annoying for the users who upgraded to 11.04 and the > > existing Gambas programs crash if the eval function was used. > > Thanks to help if you can! > > > > Robi > > Hi, > > I have upgraded to Natty, and I can now confirm the bug. Apparently, it > comes from new optimizations of gcc that behave badly. > > I will investigate... OK, it should be fixed in revision #3846. Regards, From gambas at ...1... Fri Sep 16 19:03:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 16 Sep 2011 19:03:06 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1316192179.11810.10.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201105160421.15192.gambas@...1...> <1316192179.11810.10.camel@...2425...> Message-ID: <201109161903.06690.gambas@...1...> > Hello Benoit, > > Finally I succeeded to install the latest version of gambas2 but I > haven't succeeded with the Eval function. > > 1. I installed a brand new ubuntu 10.04 in virtualbox, performed the > updates and installed gambas2 from source. > Eval works fine under 10.04 but the .deb package created and installed > on an 11.04 machine failed when using Eval. > > 2. Today I reinstalled my ubuntu 11.04 (no virtualbox, this is the main > system on my computer), performed the updates and installed gambas2 from > source. > The Eval function works for integers but not for floats: Eval(3*2)=6, > Eval(3/2)=1.5, Eval(3*2.1) fails, Eval(3/2.1) fails. > > I don't know how to check the revision but it supposed to be the latest > one: > downloaded from here: http://gambas.sourceforge.net/en/main.html > instructions followed as written in the Compilation & Installation / > Ubuntu section (note that the ./reconf-all command is missing in the > ubuntu instructions but written in the general instructions and seems to > be needed). > I also saw links to .deb installation packages of Gambas here bot both > links are dead. > > > Can you please tell me how to continue? > > Thanks, > Robi > It actually has been fixed in Gambas 3, not in Gambas 2. :-/ -- Beno?t Minisini From robert1juhasz at ...626... Fri Sep 16 19:52:45 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Fri, 16 Sep 2011 19:52:45 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201109161903.06690.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <201105160421.15192.gambas@...1...> <1316192179.11810.10.camel@...2425...> <201109161903.06690.gambas@...1...> Message-ID: <1316195565.11810.14.camel@...2425...> ;-( It would be great to fix it in gambas2, too if possible. At the moment I don't want to move to gambas3 my production softwares because it is still RC (and I suppose that I should learn and work a little to get my programs working again). Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Fri, 16 Sep 2011 19:03:06 +0200 > Hello Benoit, > > Finally I succeeded to install the latest version of gambas2 but I > haven't succeeded with the Eval function. > > 1. I installed a brand new ubuntu 10.04 in virtualbox, performed the > updates and installed gambas2 from source. > Eval works fine under 10.04 but the .deb package created and installed > on an 11.04 machine failed when using Eval. > > 2. Today I reinstalled my ubuntu 11.04 (no virtualbox, this is the main > system on my computer), performed the updates and installed gambas2 from > source. > The Eval function works for integers but not for floats: Eval(3*2)=6, > Eval(3/2)=1.5, Eval(3*2.1) fails, Eval(3/2.1) fails. > > I don't know how to check the revision but it supposed to be the latest > one: > downloaded from here: http://gambas.sourceforge.net/en/main.html > instructions followed as written in the Compilation & Installation / > Ubuntu section (note that the ./reconf-all command is missing in the > ubuntu instructions but written in the general instructions and seems to > be needed). > I also saw links to .deb installation packages of Gambas here bot both > links are dead. > > > Can you please tell me how to continue? > > Thanks, > Robi > It actually has been fixed in Gambas 3, not in Gambas 2. :-/ From ron at ...1740... Fri Sep 16 20:00:48 2011 From: ron at ...1740... (Ron) Date: Fri, 16 Sep 2011 20:00:48 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1316195565.11810.14.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201105160421.15192.gambas@...1...> <1316192179.11810.10.camel@...2425...> <201109161903.06690.gambas@...1...> <1316195565.11810.14.camel@...2425...> Message-ID: +1 I'm using Eval() in my gambas2 project too, to check event conditions (domotica lamp on events that is) Like this for example: Eval(Var_Sunset = Format(hour(Now()),"0#") & ":" & Format(minute(DateAdd(now(), gb.Minute, 30)),"0#")) Some people report weird behavior with other code... I'm sure this is due to the same bug.. Regards, Ron_2nd. 2011/9/16 JUHASZ Robert : > ;-( > > It would be great to fix it in gambas2, too if possible. At the moment I > don't want to move to gambas3 my production softwares because it is > still RC (and I suppose that I should learn and work a little to get my > programs working again). > > Robi > > -----Original Message----- > From: Beno?t Minisini > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] Eval error > Date: Fri, 16 Sep 2011 19:03:06 +0200 > > >> Hello Benoit, >> >> Finally I succeeded to install the latest version of gambas2 but I >> haven't succeeded with the Eval function. >> >> 1. I installed a brand new ubuntu 10.04 in virtualbox, performed the >> updates and installed gambas2 from source. >> Eval works fine under 10.04 but the .deb package created and installed >> on an 11.04 machine failed when using Eval. >> >> 2. Today I reinstalled my ubuntu 11.04 (no virtualbox, this is the main >> system on my computer), performed the updates and installed gambas2 from >> source. >> The Eval function works for integers but not for floats: Eval(3*2)=6, >> Eval(3/2)=1.5, Eval(3*2.1) fails, Eval(3/2.1) fails. >> >> I don't know how to check the revision but it supposed to be the latest >> one: >> downloaded from here: http://gambas.sourceforge.net/en/main.html >> instructions followed as written in the Compilation & Installation / >> Ubuntu section (note that the ./reconf-all command is missing in the >> ubuntu instructions but written in the general instructions and seems to >> be needed). >> I also saw links to .deb installation packages of Gambas here bot both >> links are dead. >> >> >> Can you please tell me how to continue? >> >> Thanks, >> Robi >> > > It actually has been fixed in Gambas 3, not in Gambas 2. :-/ > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Sep 16 20:19:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 16 Sep 2011 20:19:32 +0200 Subject: [Gambas-user] Eval error In-Reply-To: References: <1303974903.2162.7.camel@...2425...> <1316195565.11810.14.camel@...2425...> Message-ID: <201109162019.32764.gambas@...1...> > +1 > > I'm using Eval() in my gambas2 project too, to check event conditions > (domotica lamp on events that is) > > Like this for example: > Eval(Var_Sunset = Format(hour(Now()),"0#") & ":" & > Format(minute(DateAdd(now(), gb.Minute, 30)),"0#")) > > Some people report weird behavior with other code... > > I'm sure this is due to the same bug.. > > Regards, > Ron_2nd. > This is a 64-bits related bug. It takes some time to fix it correctly, and moreover it is harder for me to make a Gambas 2 release now there is no KDE3 library anymore in Ubuntu. As soon as I have time I will do it. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Fri Sep 16 21:14:21 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Fri, 16 Sep 2011 21:14:21 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201109162019.32764.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <1316195565.11810.14.camel@...2425...> <201109162019.32764.gambas@...1...> Message-ID: <1316200461.11810.16.camel@...2425...> Merci Benoit! FYI: my system is 32 bit version (ignore if not relevant). Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Fri, 16 Sep 2011 20:19:32 +0200 > +1 > > I'm using Eval() in my gambas2 project too, to check event conditions > (domotica lamp on events that is) > > Like this for example: > Eval(Var_Sunset = Format(hour(Now()),"0#") & ":" & > Format(minute(DateAdd(now(), gb.Minute, 30)),"0#")) > > Some people report weird behavior with other code... > > I'm sure this is due to the same bug.. > > Regards, > Ron_2nd. > This is a 64-bits related bug. It takes some time to fix it correctly, and moreover it is harder for me to make a Gambas 2 release now there is no KDE3 library anymore in Ubuntu. As soon as I have time I will do it. Regards, From gambas at ...1... Sat Sep 17 10:47:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 17 Sep 2011 10:47:58 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1316200461.11810.16.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201109162019.32764.gambas@...1...> <1316200461.11810.16.camel@...2425...> Message-ID: <201109171047.58153.gambas@...1...> > Merci Benoit! > FYI: my system is 32 bit version (ignore if not relevant). > > Robi > The bug should have been fixed in revision #4131. Please confirm, as I thought only 64 bits systems were affected. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Sat Sep 17 11:07:16 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Sat, 17 Sep 2011 11:07:16 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201109171047.58153.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <201109162019.32764.gambas@...1...> <1316200461.11810.16.camel@...2425...> <201109171047.58153.gambas@...1...> Message-ID: <1316250436.11810.17.camel@...2425...> Hello, I don't know how to check the revision but I downloaded the source yesterday afternoon (4PM CET) so it should be the latest one. Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Sat, 17 Sep 2011 10:47:58 +0200 > Merci Benoit! > FYI: my system is 32 bit version (ignore if not relevant). > > Robi > The bug should have been fixed in revision #4131. Please confirm, as I thought only 64 bits systems were affected. Regards, From gambas at ...1... Sat Sep 17 12:22:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 17 Sep 2011 12:22:47 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1316250436.11810.17.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201109171047.58153.gambas@...1...> <1316250436.11810.17.camel@...2425...> Message-ID: <201109171222.48030.gambas@...1...> > Hello, > > I don't know how to check the revision but I downloaded the source > yesterday afternoon (4PM CET) so it should be the latest one. > > Robi > When you issue an "svn update", it prints the last revision. Didn't you see it? -- Beno?t Minisini From ron at ...1740... Sat Sep 17 12:27:16 2011 From: ron at ...1740... (Ron) Date: Sat, 17 Sep 2011 12:27:16 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1316250436.11810.17.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201109162019.32764.gambas@...1...> <1316200461.11810.16.camel@...2425...> <201109171047.58153.gambas@...1...> <1316250436.11810.17.camel@...2425...> Message-ID: Robi, you need to use the version from svn, not the tarball. You can check your svn revision with svn info. These are my results (I didn't have the bugs you have, but I know some of my users are) Ubuntu Natty 64Bits with rev 4129 PUBLIC SUB Main() PRINT Eval("3 * 2") PRINT Eval("3 - 2") PRINT Eval("3 / 2") PRINT Eval("3*2.1") PRINT Eval("3/2.1") END 6 1 1.5 6.3 1.428571428571 Ubuntu Natty 64Bits with rev 4131: 6 1 1.5 6.3 1.428571428571 These are also still working ok PRINT Eval("Var_Sunset = Format(hour(Now()),"0#") & ":" & Format(minute(DateAdd(now(), gb.Minute, 30)),"0#")") =FALSE Print Eval("Format(hour(Now()),"0#")") =12 Regards, Ron. 2011/9/17 JUHASZ Robert : > Hello, > > I don't know how to check the revision but I downloaded the source > yesterday afternoon (4PM CET) so it should be the latest one. > > Robi > > -----Original Message----- > From: Beno?t Minisini > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] Eval error > Date: Sat, 17 Sep 2011 10:47:58 +0200 > > >> Merci Benoit! >> FYI: my system is 32 bit version (ignore if not relevant). >> >> Robi >> > > The bug should have been fixed in revision #4131. > > Please confirm, as I thought only 64 bits systems were affected. > > Regards, > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Sep 17 19:34:31 2011 From: vuott at ...325... (Ru Vuott) Date: Sat, 17 Sep 2011 18:34:31 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... Message-ID: <1316280871.65976.YahooMailClassic@...2666...> > Hello Beno?t, > > well, I cannot send you a source code, because, what I need > and... wish, it doesen't exist in Gambas. > > I 'ld like to specify that ALSA provides only the "file > descriptors". > Stop ! > The reopening of the same file should be checked and > confirmed (you know it), because the opening could provide a > "different" file descriptor from fd of ALSA; if instead it > provides the same fd, then the program'ld enter into > competition with ALSA. > Both GTK and QT, and probably all other toolkits provide > the "important" possibility to put-in a "poll" on a > arbitrary fd in the message loop. > > Regards > Paolo > From gambas at ...2524... Sun Sep 18 02:32:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 18 Sep 2011 00:32:11 +0000 Subject: [Gambas-user] Issue 106 in gambas: IDE crash on menu Tools/Shortcuts Message-ID: <0-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 106 by adamn... at ...626...: IDE crash on menu Tools/Shortcuts http://code.google.com/p/gambas/issues/detail?id=106 1) Describe the problem. This application has raised an unexpected error and must abort. [11] Unknown symbol 'ReadWindow' in class 'Settings'. FShortcut.Form_Open.18 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4129 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component:QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A - any project 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Just click on the Tools/Shortcuts menu item From ihaywood at ...1979... Sun Sep 18 03:16:50 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 18 Sep 2011 11:16:50 +1000 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1316280871.65976.YahooMailClassic@...2666...> References: <1316280871.65976.YahooMailClassic@...2666...> Message-ID: On Sun, Sep 18, 2011 at 3:34 AM, Ru Vuott wrote: >> The reopening of the same file should be checked and >> confirmed (you know it), because the opening could provide a >> "different" file descriptor from fd of ALSA; if instead it >> provides the same fd, then the program'ld enter into >> competition with ALSA. not sure that this matters: if you open the file under /proc it will link to the same underlying structure in kernelspace and ALSA won't know the difference. Maybe give it a try and if it doesn't work then post code to the list. Ian From oliver at ...2681... Sun Sep 18 07:40:30 2011 From: oliver at ...2681... (Oliver Etchebarne Bejarano) Date: Sun, 18 Sep 2011 00:40:30 -0500 Subject: [Gambas-user] Read a binary file Message-ID: <4E75844E.3000702@...2681...> Hi everyone I'm doing a little webserver in Gambas. Everything is ok so far, but I'm having a hard time dealing with binary files (like images). Is there a way to read a file in a raw fashion? I've tried to do an OPEN file FOR READ, and using a "byte" variable as buffer. But the bytes are read in this orden: 1, 0, 3, 2, 5, 4, 7, 6, etc... I think it's something about the endiannes. Again, there is a way to read a file without any format constraints? Thank you!!!! -- /Oliver Etchebarne Bejarano/ Gerente General *Paperclip X10 SRL* ================================================ Web :http://x10.pe Feed RSS :http://x10.pe/feed Facebook :http://x10.pe/facebook Twitter :http://x10.pe/twitter YouTube :http://x10.pe/youtube ================================================ From aasanchez at ...626... Sun Sep 18 07:45:54 2011 From: aasanchez at ...626... (Alexis Sanchez) Date: Sun, 18 Sep 2011 01:15:54 -0430 Subject: [Gambas-user] how get a project version? In-Reply-To: References: Message-ID: In projects properties i can stablish the version of the project, how i can show this value in a label???? -- Alexis Sanchez 0416-2584008 Linux Counter User: 484046 http://alexissanchez.net Ubuntu 10.10 & Kernel: 2.6.35-25 Twitter: @aasanchez facebook: facebook.com/aasanchez From oliver at ...2681... Sun Sep 18 07:54:12 2011 From: oliver at ...2681... (Oliver Etchebarne Bejarano) Date: Sun, 18 Sep 2011 00:54:12 -0500 Subject: [Gambas-user] how get a project version? In-Reply-To: References: Message-ID: <4E758784.1030009@...2681...> Use the Application.version to get that property in your program, something like mylabel.text = "MyApp version" & Application.version /Oliver Etchebarne Bejarano/ Gerente General *Paperclip X10 SRL* ================================================ Web :http://x10.pe Feed RSS :http://x10.pe/feed Facebook :http://x10.pe/facebook Twitter :http://x10.pe/twitter YouTube :http://x10.pe/youtube ================================================ El 18/09/11 00:45, Alexis Sanchez escribi?: > In projects properties i can stablish the version of the project, how > i can show this value in a label???? > > -- > Alexis Sanchez > 0416-2584008 > Linux Counter User: 484046 > http://alexissanchez.net > Ubuntu 10.10& Kernel: 2.6.35-25 > Twitter: @aasanchez > facebook: facebook.com/aasanchez > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Sun Sep 18 11:52:06 2011 From: ron at ...1740... (Ron) Date: Sun, 18 Sep 2011 11:52:06 +0200 Subject: [Gambas-user] Gambas2 error Message-ID: FWIW, I just deleted a gridview from a tabstrip in the ide and got this: Gambas2 latest rev. Ubuntu Natty 64 bit, QT SetProperty: TabStrip.Count: CControl.SetProperty.475: Tab is not empty FForm.GetChildren.490: #29: Invalid object 0: FForm.GetChildren.490 1: CControl.Delete.684 2: FForm.DeleteSelection.1307 3: FForm.Action_Activate.2491 4: Action.Raise.191 Mutex destroy failure: Device or resource busy Regards, Ron_2nd. From ihaywood at ...1979... Sun Sep 18 13:25:22 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 18 Sep 2011 21:25:22 +1000 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <1316343386.2812.YahooMailClassic@...2682...> References: <1316343386.2812.YahooMailClassic@...2682...> Message-ID: On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott wrote: > Hello, > > thank you for your statement. > ? hfile = OPEN "/proc/self/fd/num" for Read Watch > > Where " num " is a number. Well, I tried the little program changing the number "num": > first with zero, then with 1, then with 2, and so on... until approximately 60. why wouldn't you use the fd number returned from the ALSA library: isn't that the whole point? Ian From jussi.lahtinen at ...626... Sun Sep 18 14:13:51 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 18 Sep 2011 15:13:51 +0300 Subject: [Gambas-user] Read a binary file In-Reply-To: <4E75844E.3000702@...2681...> References: <4E75844E.3000702@...2681...> Message-ID: > I'm doing a little webserver in Gambas. Everything is ok so far, but I'm > having a hard time dealing with binary files (like images). Is there a > way to read a file in a raw fashion? > > I've tried to do an OPEN file FOR READ, and using a "byte" variable as > buffer. But the bytes are read in this orden: 1, 0, 3, 2, 5, 4, 7, 6, > etc... I think it's something about the endiannes. > Bytes should be read in logical order 0,1,2,3... but they might be written in the file in order you describe. You can read two bytes and swap them, or read them as type "short"..? Send the piece of your code that does the attempted raw reading. Usually I read binary files which are created by gambas program, so I haven't ran into this problem. Jussi From gambas at ...1... Sun Sep 18 14:47:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Sep 2011 14:47:40 +0200 Subject: [Gambas-user] Read a binary file In-Reply-To: <4E75844E.3000702@...2681...> References: <4E75844E.3000702@...2681...> Message-ID: <201109181447.40710.gambas@...1...> > Hi everyone > > I'm doing a little webserver in Gambas. Everything is ok so far, but I'm > having a hard time dealing with binary files (like images). Is there a > way to read a file in a raw fashion? > > I've tried to do an OPEN file FOR READ, and using a "byte" variable as > buffer. But the bytes are read in this orden: 1, 0, 3, 2, 5, 4, 7, 6, > etc... I think it's something about the endiannes. > > Again, there is a way to read a file without any format constraints? > Thank you!!!! If you want to serve some image files, you don't have to read it byte by byte. You just have to open it and sent it where it is needed. Print #DestinationFileOrSocket, File.Load(PathToBinaryFileOnTheServer); Do not forget the ";", otherwise a newline will be added! -- Beno?t Minisini From ron at ...1740... Sun Sep 18 15:41:55 2011 From: ron at ...1740... (Ron) Date: Sun, 18 Sep 2011 15:41:55 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: References: <1316343386.2812.YahooMailClassic@...2682...> Message-ID: Dont you have some c code to look at from a similar alsa using prog? Or one of its utils? Op 18 sep. 2011 13:25 schreef "Ian Haywood" het volgende: > On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott wrote: >> Hello, >> >> thank you for your statement. > >> hfile = OPEN "/proc/self/fd/num" for Read Watch >> >> Where " num " is a number. Well, I tried the little program changing the number "num": >> first with zero, then with 1, then with 2, and so on... until approximately 60. > why wouldn't you use the fd number returned from the ALSA library: > isn't that the whole point? > > Ian > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Sun Sep 18 16:13:17 2011 From: vuott at ...325... (Ru Vuott) Date: Sun, 18 Sep 2011 15:13:17 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: Message-ID: <1316355197.54924.YahooMailClassic@...2683...> Well, I have 3 way for obtain by Gambas Midi data: (explained in (italian language): http://www.gambas-it.org/wiki/index.php/Gestione_del_MIDI_con_ALSA ) 1) receiving data FROM ALSA by an ALSA function and using a loop with "Timer" function (but I would not to use Timer because its inexorable latency); 2) via: OPEN "/dev/snd/midiC2D0" for Watch ...watching file-device created there, when I connect an external Midi-Keyboard. But this is a "extra ALSA" metod ! Because, so, I intercept Midi-data from virtual port of my external Midi-keyboard, not fron ALSA functions.... instead I will to receive FROM ALSA; 3) receiving FROM ALSA, by using an modified program in C. This program in C receives the data and then it sends them to stdout; with gambas-program I read those data. (look example code at: http://www.gambas-it.org/wiki/index.php/Alsa_e_Gambas:_Ricezione_con_un_programma_esterno_di_supporto ) Bye Paolo --- Dom 18/9/11, Ron ha scritto: > Da: Ron > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... > A: "mailing list for gambas users" > Data: Domenica 18 settembre 2011, 15:41 > Dont you have some c code to look at > from a similar alsa using prog? Or one > of its utils? > Op 18 sep. 2011 13:25 schreef "Ian Haywood" > het > volgende: > > On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott > wrote: > >> Hello, > >> > >> thank you for your statement. > > > >>???hfile = OPEN "/proc/self/fd/num" > for Read Watch > >> > >> Where " num " is a number. Well, I tried the > little program changing the > number "num": > >> first with zero, then with 1, then with 2, and so > on... until > approximately 60. > > why wouldn't you use the fd number returned from the > ALSA library: > > isn't that the whole point? > > > > Ian > > > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > > http://p.sf.net/sfu/rim-devcon-copy2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sun Sep 18 16:23:19 2011 From: vuott at ...325... (Ru Vuott) Date: Sun, 18 Sep 2011 15:23:19 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS In-Reply-To: Message-ID: <1316355799.68554.YahooMailClassic@...2668...> ...I want to add that ALSA gives file descriptors by its functions..., but Gambas doesn't allows me to interact with message loop. I'ld need a "component" or "other" that allows me put in Gambas message loop these file descriptors. Gambas has to give the opportunity, possibility to personalize the message loop !!! So the developers could insert in it - generally - what they want ! GTK and QT, and probably others toolkits provide this possibility: to put in a "poll" on an arbitrary fd in the message loop ! Why ? Becose it's important.... I suppose. ;-) In my opinion this function is important ! ... isn't it ? bye Paolo --- Dom 18/9/11, Ron ha scritto: > Da: Ron > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... > A: "mailing list for gambas users" > Data: Domenica 18 settembre 2011, 15:41 > Dont you have some c code to look at > from a similar alsa using prog? Or one > of its utils? > Op 18 sep. 2011 13:25 schreef "Ian Haywood" > het > volgende: > > On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott > wrote: > >> Hello, > >> > >> thank you for your statement. > > > >>???hfile = OPEN "/proc/self/fd/num" > for Read Watch > >> > >> Where " num " is a number. Well, I tried the > little program changing the > number "num": > >> first with zero, then with 1, then with 2, and so > on... until > approximately 60. > > why wouldn't you use the fd number returned from the > ALSA library: > > isn't that the whole point? > > > > Ian > > > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > > http://p.sf.net/sfu/rim-devcon-copy2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Sep 18 17:43:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Sep 2011 17:43:13 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS In-Reply-To: <1316355799.68554.YahooMailClassic@...2668...> References: <1316355799.68554.YahooMailClassic@...2668...> Message-ID: <201109181743.14046.gambas@...1...> > ...I want to add that ALSA gives file descriptors by its functions..., but > Gambas doesn't allows me to interact with message loop. I'ld need a > "component" or "other" that allows me put in Gambas message loop these > file descriptors. Gambas has to give the opportunity, possibility to > personalize the message loop !!! So the developers could insert in it - > generally - what they want ! GTK and QT, and probably others toolkits > provide this possibility: to put in a "poll" on an arbitrary fd in the > message loop ! Why ? Becose it's important.... I suppose. ;-) > > In my opinion this function is important ! ... isn't it ? > > bye > Paolo > I may have a solution for you. In revision #4134, I added a trick for opening existing file descriptors, so that you can watch them. The trick is the following: use ".XXX" as file name, where XXX is the file descriptor number. This trick only works if: - You use the FOR READ/WRITE syntax. - You don't use FOR CREATE/APPEND. - XXX is a valid file descriptor. - XXX has been opened for reading if you use FOR READ, and for writing if you use FOR WRITE. You can close the file, it will not close the file descriptor. But it will stop the watching operations. For example: hFile = Open ".1" For Write Print #hFile, "hello "; Close #hFile Print "world!" Tell me if it works for you. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Sun Sep 18 21:49:23 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Sun, 18 Sep 2011 21:49:23 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201109171222.48030.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <201109171047.58153.gambas@...1...> <1316250436.11810.17.camel@...2425...> <201109171222.48030.gambas@...1...> Message-ID: <1316375363.11810.21.camel@...2425...> In which folder should I type this? In /usr/src/gambas2-2.23.1/ (where the source file was unpacked) ? Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Sat, 17 Sep 2011 12:22:47 +0200 > Hello, > > I don't know how to check the revision but I downloaded the source > yesterday afternoon (4PM CET) so it should be the latest one. > > Robi > When you issue an "svn update", it prints the last revision. Didn't you see it? From gambas at ...2524... Sun Sep 18 22:23:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 18 Sep 2011 20:23:03 +0000 Subject: [Gambas-user] Issue 106 in gambas: IDE crash on menu Tools/Shortcuts In-Reply-To: <0-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 106 by benoit.m... at ...626...: IDE crash on menu Tools/Shortcuts http://code.google.com/p/gambas/issues/detail?id=106 (No comment was entered for this change.) From gambas at ...2524... Sun Sep 18 22:38:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 18 Sep 2011 20:38:13 +0000 Subject: [Gambas-user] Issue 106 in gambas: IDE crash on menu Tools/Shortcuts In-Reply-To: <1-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> <0-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2974026732173317684-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 106 by benoit.m... at ...626...: IDE crash on menu Tools/Shortcuts http://code.google.com/p/gambas/issues/detail?id=106 Fixed in revision #4139 From vuott at ...325... Sun Sep 18 23:14:09 2011 From: vuott at ...325... (Ru Vuott) Date: Sun, 18 Sep 2011 22:14:09 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS In-Reply-To: <201109181743.14046.gambas@...1...> Message-ID: <1316380449.97104.YahooMailClassic@...2686...> Hello, about your new suggestion: 1) like I said, now I can open the fd in: /proc/self/fd/ e.g.: hFile = Open "/proc/self/fd/20" For read watch some fd (like 3,4,5,6, 16 and 20) gives data, others not. So, I don't understand what's the use of the trick. 2) how have I to use it ? maybe: hFile = Open "/proc/self/fd/.1" For read watch 3) I use Gambas 3, where can I download the revision #4134 ? Thanks Paolo P.S.: Beno?t ! Is not it better if you add that possibility to personalize the message loop ??? > I may have a solution for you. > > In revision #4134, I added a trick for opening existing > file descriptors, so > that you can watch them. > > The trick is the following: use ".XXX" as file name, where > XXX is the file > descriptor number. > > This trick only works if: > - You use the FOR READ/WRITE syntax. > - You don't use FOR CREATE/APPEND. > - XXX is a valid file descriptor. > - XXX has been opened for reading if you use FOR READ, and > for writing if you > use FOR WRITE. > > You can close the file, it will not close the file > descriptor. But it will > stop the watching operations. > > For example: > > ??? hFile = Open ".1" For Write > ??? Print #hFile, "hello "; > ??? Close #hFile > ??? Print "world!" > > Tell me if it works for you. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Sun Sep 18 23:23:53 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 18 Sep 2011 23:23:53 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1316375363.11810.21.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201109171047.58153.gambas@...1...> <1316250436.11810.17.camel@...2425...> <201109171222.48030.gambas@...1...> <1316375363.11810.21.camel@...2425...> Message-ID: <1316381033.7272.17.camel@...40...> Am Sonntag, den 18.09.2011, 21:49 +0200 schrieb JUHASZ Robert: > In which folder should I type this? In /usr/src/gambas2-2.23.1/ (where > the source file was unpacked) ? > > Robi > > -----Original Message----- > From: Beno?t Minisini > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] Eval error > Date: Sat, 17 Sep 2011 12:22:47 +0200 > > > > Hello, > > > > I don't know how to check the revision but I downloaded the source > > yesterday afternoon (4PM CET) so it should be the latest one. > > > > Robi > > > > When you issue an "svn update", it prints the last revision. Didn't you see > it? Salut Robi, how do you update your gambas, till now ? Not with svn I suppose! With svn you can get 1 sec. after Beno?t have released a new revision this new code. If you subscribing at https://lists.sourceforge.net/lists/listinfo/gambas-devel-svn you get a mail every time something has changed in the svn repository. If you want use svn, first you have to install svn for your distro. Then you make one time a :svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ and later with a "svn update" you get all the chages. At : http://gambas.sourceforge.net/en/main.html under "Compilation & Installation" you find all you need. If you start the IDE from it's source directory the revision is show in the startup screen (see attachment [it's not the last rev. for gambas2]) -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto-Welcome to Gambas II.png Type: image/png Size: 67530 bytes Desc: not available URL: From gambas at ...1... Sun Sep 18 23:24:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Sep 2011 23:24:43 +0200 Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS In-Reply-To: <1316380449.97104.YahooMailClassic@...2686...> References: <1316380449.97104.YahooMailClassic@...2686...> Message-ID: <201109182324.44019.gambas@...1...> > Hello, > > about your new suggestion: > > 1) like I said, now I can open the fd in: /proc/self/fd/ > > e.g.: hFile = Open "/proc/self/fd/20" For read watch > > some fd (like 3,4,5,6, 16 and 20) gives data, others not. > > So, I don't understand what's the use of the trick. > > 2) how have I to use it ? maybe: > > hFile = Open "/proc/self/fd/.1" For read watch > > 3) I use Gambas 3, where can I download the revision #4134 ? > > Thanks > Paolo > > > P.S.: Beno?t ! Is not it better if you add that possibility to personalize > the message loop ??? > Forget the "/proc/self/fd" thing. The new solution is the best I found without breaking compatibility. Maybe there will be another solution after Gambas 3. I suggest you read the "subversion howto" on gambasdoc.org to learn how to use subversion to get the latest development release. You ask how to use it. Did you read my mail? there is an example in it. For watching the file, just add the WATCH keyword. So: Dim iAlsaFileDescriptor As Integer Dim hFile As File hFile = Open "." & CStr(iAlsaFileDescriptor) For Read Watch ... Sub File_Read() ' Get the data received through hFile End To stop the watching, just close "hFile". The original ALSA file descriptor will not be closed. Regards, -- Beno?t Minisini From dag.jarle.johansen at ...626... Mon Sep 19 06:24:29 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 19 Sep 2011 01:24:29 -0300 Subject: [Gambas-user] Control Properties - Align Message-ID: Hi, I have searched like crazy, but was not able to find the values for Alignment.Rather simple in fact, just the Alignment- values for f.exs. a Label or a Textbox. Any List or something helpful to this? Will be grateful for any help. Thanks in advance and regards, Dag-Jarle From Gambas at ...1950... Mon Sep 19 09:14:26 2011 From: Gambas at ...1950... (Caveat) Date: Mon, 19 Sep 2011 09:14:26 +0200 Subject: [Gambas-user] Control Properties - Align In-Reply-To: References: Message-ID: <1316416466.2837.19.camel@...2150...> Try typing Align. in the IDE, it'll pop up with the list of values... For a TextBox, it's Normal (1), Left (1), Center (2), and Right (3). I guess the value of Normal may depend on your locale... Kind regards, Caveat On Mon, 2011-09-19 at 01:24 -0300, Dag-Jarle Johansen wrote: > Hi, > > I have searched like crazy, but was not able to find the values for > Alignment.Rather simple in fact, just the Alignment- values for f.exs. a > Label or a Textbox. Any List or something helpful to this? > > Will be grateful for any help. > > Thanks in advance and regards, > Dag-Jarle > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Mon Sep 19 13:24:15 2011 From: ron at ...1740... (Ron) Date: Mon, 19 Sep 2011 13:24:15 +0200 Subject: [Gambas-user] perl unpack Message-ID: <4E77265F.8050408@...1740...> I'm trying to decode this with gambas, no luck, anyone has an idea? #!/usr/bin/perl print pack('u', "send:"); % References: <1316416466.2837.19.camel@...2150...> Message-ID: Hi, thanks a lot Regards, Dag-Jarle 2011/9/19 Caveat > Try typing Align. in the IDE, it'll pop up with the list of values... > > For a TextBox, it's Normal (1), Left (1), Center (2), and Right (3). I > guess the value of Normal may depend on your locale... > > Kind regards, > Caveat > > On Mon, 2011-09-19 at 01:24 -0300, Dag-Jarle Johansen wrote: > > Hi, > > > > I have searched like crazy, but was not able to find the values for > > Alignment.Rather simple in fact, just the Alignment- values for f.exs. a > > Label or a Textbox. Any List or something helpful to this? > > > > Will be grateful for any help. > > > > Thanks in advance and regards, > > Dag-Jarle > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > Learn about the latest advances in developing for the > > BlackBerry® mobile platform with sessions, labs & more. > > See new tools and technologies. Register for BlackBerry® DevCon > today! > > http://p.sf.net/sfu/rim-devcon-copy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Mon Sep 19 14:59:45 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 19 Sep 2011 09:59:45 -0300 Subject: [Gambas-user] A question to a control Message-ID: Hi, I have defined PRIVATE YYY as Control and want to set some data from a Database, like this For I=0 to RS.Count -1 For Each yyy In panTB.Children If yyy.Name = RS!CtrlName Then Select Case RS!typ Case "PictureBox", "Button" yyy.Tooltip = RS!Tooltip yyy.Picture = Picture[RS!graphik] Case "TextBox" yyy.Tooltip = RS!Tooltip Case Else yyy.Text = RS!CtrlInhalt yyy.Tooltip = RS!Tooltip End Select Endif Next Next RS is Result, and the content is ok, just one record. I get NO PICTURE on the Button, but as everybody knows, Buttons can have Pictures. Where is my stupid error this time? I am grateful for any help. Thanks in advance and regards, Dag-Jarle From jussi.lahtinen at ...626... Mon Sep 19 17:14:05 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 19 Sep 2011 18:14:05 +0300 Subject: [Gambas-user] perl unpack In-Reply-To: <4E77265F.8050408@...1740...> References: <4E77265F.8050408@...1740...> Message-ID: Do you handle "`" (grave accent) correctly? http://en.wikipedia.org/wiki/Uuencoding#Uuencode_table How are you trying to do this in Gambas? Any code to show? Jussi On Mon, Sep 19, 2011 at 14:24, Ron wrote: > I'm trying to decode this with gambas, no luck, anyone has an idea? > > #!/usr/bin/perl > print pack('u', "send:"); > > % > So decoding % > The pack 'u' function does uuencoding but all vb alike code doesn't > reproduce the correct result, or struggles with the `... > > > Thanks in advance!! > > Regards, > Ron_2nd. > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Sep 19 17:31:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 19 Sep 2011 18:31:37 +0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Cannot see error in this part of the code. What happens if you add "Debug yyy.Name;;RS!typ" under 'Case "PictureBox", "Button"'? Does it get executed? Send the project with sample database if possible. Jussi On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen < dag.jarle.johansen at ...626...> wrote: > Hi, > > I have defined > > PRIVATE YYY as Control > > and want to set some data from a Database, like this > For I=0 to RS.Count -1 > For Each yyy In panTB.Children > If yyy.Name = RS!CtrlName Then > Select Case RS!typ > Case "PictureBox", "Button" > yyy.Tooltip = RS!Tooltip > yyy.Picture = Picture[RS!graphik] > > Case "TextBox" > yyy.Tooltip = RS!Tooltip > Case Else > yyy.Text = RS!CtrlInhalt > yyy.Tooltip = RS!Tooltip > End Select > > Endif > Next > Next > RS is Result, and the content is ok, just one record. I get NO PICTURE on > the Button, but as everybody knows, Buttons can have Pictures. > Where is my stupid error this time? > > I am grateful for any help. > > Thanks in advance and regards, > Dag-Jarle > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Mon Sep 19 19:14:35 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 19 Sep 2011 19:14:35 +0200 Subject: [Gambas-user] sig #6 with picture Message-ID: <4E77787B.9000303@...20...> hi beno?t, i got a sig #6 every time my program exited (claims about double free). i reduced the circumstances to this one (because once commented out, it works well): Private hPic As Picture Public Sub Form_Open() hPic = Object.New("Image", [256, 256, Color.White, Image.Standard]).Picture End this is on a second form which has everything else commented out. i thought, this would be an elegant way of creating a picture filled with white. what is the trouble about? (gb3 rev #4067 (currently reconfiguring for latest revision because of a make error...?)) regards, tobi From oliver at ...2681... Mon Sep 19 20:48:54 2011 From: oliver at ...2681... (Oliver Etchebarne Bejarano) Date: Mon, 19 Sep 2011 13:48:54 -0500 Subject: [Gambas-user] Read a binary file In-Reply-To: <201109181447.40710.gambas@...1...> References: <4E75844E.3000702@...2681...> <201109181447.40710.gambas@...1...> Message-ID: <4E778E96.3000503@...2681...> Hah! That's the function I was looking for :-D Thank you Beno?t!!!!!! /Oliver Etchebarne Bejarano/ Gerente General *Paperclip X10 SRL* ================================================ Web :http://x10.pe Feed RSS :http://x10.pe/feed Facebook :http://x10.pe/facebook Twitter :http://x10.pe/twitter YouTube :http://x10.pe/youtube ================================================ El 18/09/11 07:47, Beno?t Minisini escribi?: >> Hi everyone >> >> I'm doing a little webserver in Gambas. Everything is ok so far, but I'm >> having a hard time dealing with binary files (like images). Is there a >> way to read a file in a raw fashion? >> >> I've tried to do an OPEN file FOR READ, and using a "byte" variable as >> buffer. But the bytes are read in this orden: 1, 0, 3, 2, 5, 4, 7, 6, >> etc... I think it's something about the endiannes. >> >> Again, there is a way to read a file without any format constraints? >> Thank you!!!! > If you want to serve some image files, you don't have to read it byte by byte. > You just have to open it and sent it where it is needed. > > Print #DestinationFileOrSocket, File.Load(PathToBinaryFileOnTheServer); > > Do not forget the ";", otherwise a newline will be added! > From vuott at ...325... Mon Sep 19 22:54:31 2011 From: vuott at ...325... (Ru Vuott) Date: Mon, 19 Sep 2011 21:54:31 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109182324.44019.gambas@...1...> Message-ID: <1316465671.68979.YahooMailClassic@...2676...> Hello Beno?t, thank you very much for your interest. I appreciated. Now, I am trying update my Gambas with: svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ but I have some problem, ...maybe because I run Linux-Mint from a pen-drive as Live CD. I'll inform you about your "trick" working, as soon as I update my gambas. Thanks Paolo --- Dom 18/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS > A: "mailing list for gambas users" > Data: Domenica 18 settembre 2011, 23:24 > > Hello, > > > > about your new suggestion: > > > > 1) like I said, now I can open the fd in: > /proc/self/fd/ > > > > e.g.: hFile = Open "/proc/self/fd/20" For read watch > > > > some fd (like 3,4,5,6, 16 and 20) gives data, others > not. > > > > So, I don't understand what's the use of the trick. > > > > 2) how have I to use it ?? maybe: > > > > hFile = Open "/proc/self/fd/.1" For read watch > > > > 3) I use Gambas 3, where can I download the revision > #4134 ? > > > > Thanks > > Paolo > > > > > > P.S.: Beno?t ! Is not it better if you add that > possibility to personalize > > the message loop ??? > > > > Forget the "/proc/self/fd" thing. The new solution is the > best I found without > breaking compatibility. Maybe there will be another > solution after Gambas 3. > > I suggest you read the "subversion howto" on gambasdoc.org > to learn how to use > subversion to get the latest development release. > > You ask how to use it. Did you read my mail? there is an > example in it. For > watching the file, just add the WATCH keyword. So: > > ??? Dim iAlsaFileDescriptor As Integer > ??? Dim hFile As File > > ??? hFile = Open "." & > CStr(iAlsaFileDescriptor) For Read Watch > > ???... > > ??? Sub File_Read() > ??? ??? ' Get the data > received through hFile > ??? End > > To stop the watching, just close "hFile". The original ALSA > file descriptor > will not be closed. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Tue Sep 20 00:18:31 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 20 Sep 2011 07:48:31 +0930 Subject: [Gambas-user] Small error in help text for Event declaration Message-ID: <1316470711.5577.2.camel@...2688...> Hi, The Gambas 3 help for Event declaration has an error in the example code: Events declaration EVENT Name ( [ Parameter #1 [ , Parameter #2 ... ] ) This declares a class event. This event is raised by using the RAISE keyword. The RAISE keyword may return a boolean value to indicate if the event handler wants to cancel the event. Example EVENT BeforeSend(Data AS String) AS Boolean ... regards Bruce From Gambas at ...1950... Tue Sep 20 00:45:24 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 20 Sep 2011 00:45:24 +0200 Subject: [Gambas-user] perl unpack In-Reply-To: <4E77265F.8050408@...1740...> References: <4E77265F.8050408@...1740...> Message-ID: <1316472324.2837.86.camel@...2150...> Don't stress too much over the `, it's just a kind of non-standard padding character. The % at the beginning of the string says we only have 5 characters to decode so we shouldn't worry...we SHOULD always have an exact multiple of 4 characters after the first length byte... but some of them may not matter... This should do it: ====================================================================== Private Function decodeUU(codedStr As String) As Byte[] Dim idx, idy, ptr As Integer Dim result As Byte[] Dim lengthUU, ascAChar, ascMin32 As Integer Dim binFour As String = "" ' First character's ascii code - 32 is the length ascAChar = Asc(Left$(codedStr, 1)) ascMin32 = ascAChar - 32 lengthUU = ascMin32 Print "Expecting a length of: " & lengthUU ' Set the size of the result array result = New Byte[lengthUU] ' Initialise pointer into the result array ptr = 0 ' Step through the uuencoded string character by character starting at the 2nd character (1st is the length) For idx = 2 To Len(codedStr) ascAChar = Asc(Mid$(codedStr, idx, 1)) ' Only include what is not whitespace If ascAChar > 31 And ascAChar < 97 Then ' Subtract 32 from the ascii code of the character ascMin32 = ascAChar - 32 ' Assemble a block of four 6-bit values binFour = binFour & Right$("000000" & intToBase(ascMin32, BASE_BINARY), 6) ' Once we have 4 binary 6-bit 'characters' in our string If Len(binFour) = 24 Then ' Treat the 4 6-bit characters as 3 8-bit characters For idy = 1 To 3 ' Make sure we don't go trying to convert more than the length says we have to If ptr < result.Length Print "Bin to convert: " & Mid$(binFour, 1 + ((idy - 1) * 8), 8) ' Converts each block of 8 bits to its decimal value and assigns to the output byte array result[ptr] = toInt(Mid$(binFour, 1 + ((idy - 1) * 8), 8), BASE_BINARY) Inc ptr End If Next ' Be sure to clear out binFour for the next unit of UUencoding binFour = "" End If End If Next Return result End ====================================================================== You probably need the routines to convert between bases too: ====================================================================== Private Function convertBase(numberIn As String, fromBase As Integer, toBase As Integer) As String Dim value As Integer value = toInt(numberIn, fromBase) Return intToBase(value, toBase) End Private Function intToBase(numberIn As Integer, base As Integer) As String Dim remain, numToDivide As Integer Dim result As String = "" numToDivide = numberIn Do While numToDivide / base > 0 remain = numToDivide Mod base numToDivide = (Int)(numToDivide / base) result = DIGITS[remain] & result Loop Return result End Private Function toInt(inputStr As String, base As Integer) As Integer Dim idx, mult, result, value As Integer mult = 1 For idx = Len(inputStr) To 1 Step -1 ' If we're in a base with digits bigger than 9 ' we need the Find to return 10 for A, 11 for B, 12 for C etc. value = DIGITS.Find(UCase(Mid$(inputStr, idx, 1))) * mult result = result + value mult = mult * base Next Return result End ====================================================================== And don't forget a few Consts for convenience: ====================================================================== Private Const TEST_STR As String = "% I'm trying to decode this with gambas, no luck, anyone has an idea? > > #!/usr/bin/perl > print pack('u', "send:"); > > % > So decoding % > The pack 'u' function does uuencoding but all vb alike code doesn't > reproduce the correct result, or struggles with the `... > > > Thanks in advance!! > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Tue Sep 20 02:26:13 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 20 Sep 2011 09:56:13 +0930 Subject: [Gambas-user] Inheritance and Signature checking in gambas 3 Message-ID: <1316478373.5577.76.camel@...2688...> HI, I thought I may have trouble with this area :-( I am migrating quite a lot of gambas2 components that work well and most of the pain has arisen in this signature checking in the runtime, as in the "incorrectly overridden" message. First, because this is only evident in the runtime, I have a fear that testing the converted components may miss the error when the override is in a rarely executed area of code. Secondly, I can no longer override a method declared in a base class as Identifier(...) with a method in the child class with a real and restricted parameter set. To explain, I have a set of base classes in component X that provide the very fundamental features of an inheritance hierarchy. As well, they prescribe a set of methods that must be implemented in the child classes. In short, they are "stubs" for required methods. All they do is raise an error if the method is not overridden in the child class. Because of this, these stubs have no idea nor do they care what the parameters of the child class method are. As an example, I have a persistence model that involves three levels of code: the [application] ----uses---> [a business_object library] ---inherits---> [base_persistence] The persistence of the data is entirely handled by the two lower level libraries, the application only has to call the Create, Read, Update or Delete methods on the business_object object and all it's persistence needs are handled. The business_object library contains all the relevant business rules for its classes, e.g. whether objects can be deleted from the persistence or whether a cascaded delete is necessary etc etc. However, the business_object layer has no idea exactly how the persistence is achieved, it just validates the action applies the relevant transformations between the object data model and the persistence data model and then passes the object data off to the low level persistence methods in it's parent class. This is the high level design. The implementation employs the following code model: at the business_object library level, each business object has (at least) two classes, the main object class, e.g. "Account" and one or more mapping classes, say "_sqlaccount" and "_xmlaccount". The main class is visible to the application, the mapping classes are hidden. The mapping classes provide the two way transformation between the object data and the persistence data, in short they have a "Marshall" method and an "Unmarshall" method. These two methods are very importantly "visible" to the base_persistence library. The last comment requires explanation. In the base_persistence library there is a similar split between the "object" model and the "persistence" model. There is a base "BusinessObject" class, from which all the classes in the business_object library inherit, and a base "persistor" from which all the mapping classes in the business_object library inherit. (There is a tricky bit here that is important to the design but irrelevant to this message - there is a base persistor for each persistance type, e.g. postgresql, mysql, xml, flatfile etc. Each of these is in separate libraries and is loaded explicitly at runtime by the BusinessObject class depending on the settings file for the business_object library. Suffice to say that it is the actual base persistor that provides the actual input/output methods to "add", "load", "save" and "remove" the data. Note the change from the CRUD method names!) When the application instantiates a business object, say an Account object called "MyAccount", the constructor in the base_persistence library BusinessObject class i.e. BusinessObject._new() checks the persistence method in use and instantiates the relevant mapping class in the business_object library, i.e. it creates an actual persistor which is either a "_sqlaccount" or an "_xmlaccount". How I do this is irrelevant, the important thing is that the BusinessObject has access to, via the gambas virtual dispatching feature, one of these things which as far as it is concerned is a "persistor". The CRUD methods are actually public in the BusinessObject class, i.e. they are inherited by the classes in the business object library. So when the application does a "MyAccount.Update, it is actually calling the BusinessObject.Update method. This in turn calls its' persistor.save method. In fact, what it does is call its' persistor.Marshall method and then its' persistor.save method. Note the subtle inference here, the Marshall method is the the one in the active mapping class and the save method is the one in the base persistor class (there is no save method in the mapping class). However, in order to compile the base_persistence libraries there must be a "stub" method called "Marshall" at this level and this is the one that MUST be overridden at the higher level. Further, at this level (in the base persistor libraries) I have no idea as to how the business_object library level "Marshall" method works, nor what parameters it needs to achieve that work - that is a matter for the specialised classes and the BusinessObject class. All I know is that the method must be declared and it must be overridden, so it is: Public Sub Marshall(...) Error.Raise("Implementation fault - this method must be overridden in the business_object library") End I hope you have managed to follow all this and can offer some advice. The persistence architecture model is not my own invention, it comes from work by Fowler and others. It has worked for me for the last two years in gambas2 and (the code) is the result of significant!!! effort on my part. I just can't see a solution now with this signature checking in the gambas3 runtime. Finally, I still can't see the value in this signature checking. This is only one area where I have successfully used method overrides in gambas2 which now have to be not only rewritten but redesigned for gambas3. Why was it introduced? If it is really necessary for something else then I'd like to ask for a way to turn it off, preferably at the gbx3 compile, not only for signature checking but also for result type checking. regards Bruce From gambas at ...1... Tue Sep 20 02:47:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 20 Sep 2011 02:47:54 +0200 Subject: [Gambas-user] Small error in help text for Event declaration In-Reply-To: <1316470711.5577.2.camel@...2688...> References: <1316470711.5577.2.camel@...2688...> Message-ID: <201109200247.54399.gambas@...1...> > Hi, > > The Gambas 3 help for Event declaration has an error in the example > code: > > > Events declaration > EVENT Name ( [ Parameter #1 [ , Parameter #2 ... ] ) > > > This declares a class event. This event is raised by using > the RAISE keyword. > > The RAISE keyword may return a boolean value to indicate if > the event handler wants to cancel the event. > > > Example > > EVENT BeforeSend(Data AS String) AS Boolean > > ... > > regards > Bruce Fixed. -- Beno?t Minisini From gambas at ...1... Tue Sep 20 03:06:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 20 Sep 2011 03:06:50 +0200 Subject: [Gambas-user] Inheritance and Signature checking in gambas 3 In-Reply-To: <1316478373.5577.76.camel@...2688...> References: <1316478373.5577.76.camel@...2688...> Message-ID: <201109200306.50724.gambas@...1...> > HI, > > I thought I may have trouble with this area :-( > > I am migrating quite a lot of gambas2 components that work well and most > of the pain has arisen in this signature checking in the runtime, as in > the "incorrectly overridden" message. > > First, because this is only evident in the runtime, I have a fear that > testing the converted components may miss the error when the override is > in a rarely executed area of code. > > Secondly, I can no longer override a method declared in a base class as > Identifier(...) with a method in the child class with a real and > restricted parameter set. To explain, I have a set of base classes in > component X that provide the very fundamental features of an inheritance > hierarchy. As well, they prescribe a set of methods that must be > implemented in the child classes. In short, they are "stubs" for > required methods. All they do is raise an error if the method is not > overridden in the child class. Because of this, these stubs have no > idea nor do they care what the parameters of the child class method are. > > As an example, I have a persistence model that involves three levels of > code: > the [application] ----uses---> [a business_object library] > ---inherits---> [base_persistence] > The persistence of the data is entirely handled by the two lower level > libraries, the application only has to call the Create, Read, Update or > Delete methods on the business_object object and all it's persistence > needs are handled. The business_object library contains all the > relevant business rules for its classes, e.g. whether objects can be > deleted from the persistence or whether a cascaded delete is necessary > etc etc. However, the business_object layer has no idea exactly how the > persistence is achieved, it just validates the action applies the > relevant transformations between the object data model and the > persistence data model and then passes the object data off to the low > level persistence methods in it's parent class. This is the high level > design. > > The implementation employs the following code model: at the > business_object library level, each business object has (at least) two > classes, the main object class, e.g. "Account" and one or more mapping > classes, say "_sqlaccount" and "_xmlaccount". The main class is > visible to the application, the mapping classes are hidden. The mapping > classes provide the two way transformation between the object data and > the persistence data, in short they have a "Marshall" method and an > "Unmarshall" method. These two methods are very importantly "visible" > to the base_persistence library. > > The last comment requires explanation. In the base_persistence library > there is a similar split between the "object" model and the > "persistence" model. There is a base "BusinessObject" class, from which > all the classes in the business_object library inherit, and a base > "persistor" from which all the mapping classes in the business_object > library inherit. (There is a tricky bit here that is important to the > design but irrelevant to this message - there is a base persistor for > each persistance type, e.g. postgresql, mysql, xml, flatfile etc. Each > of these is in separate libraries and is loaded explicitly at runtime by > the BusinessObject class depending on the settings file for the > business_object library. Suffice to say that it is the actual base > persistor that provides the actual input/output methods to "add", > "load", "save" and "remove" the data. Note the change from the CRUD > method names!) > > When the application instantiates a business object, say an Account > object called "MyAccount", the constructor in the base_persistence > library BusinessObject class i.e. BusinessObject._new() checks the > persistence method in use and instantiates the relevant mapping class in > the business_object library, i.e. it creates an actual persistor which > is either a "_sqlaccount" or an "_xmlaccount". How I do this is > irrelevant, the important thing is that the BusinessObject has access > to, via the gambas virtual dispatching feature, one of these things > which as far as it is concerned is a "persistor". > > The CRUD methods are actually public in the BusinessObject class, i.e. > they are inherited by the classes in the business object library. So > when the application does a "MyAccount.Update, it is actually calling > the BusinessObject.Update method. This in turn calls its' > persistor.save method. In fact, what it does is call its' > persistor.Marshall method and then its' persistor.save method. Note the > subtle inference here, the Marshall method is the the one in the active > mapping class and the save method is the one in the base persistor class > (there is no save method in the mapping class). However, in order to > compile the base_persistence libraries there must be a "stub" method > called "Marshall" at this level and this is the one that MUST be > overridden at the higher level. Further, at this level (in the base > persistor libraries) I have no idea as to how the business_object > library level "Marshall" method works, nor what parameters it needs to > achieve that work - that is a matter for the specialised classes and the > BusinessObject class. All I know is that the method must be declared > and it must be overridden, so it is: > > Public Sub Marshall(...) > Error.Raise("Implementation fault - this method must be overridden > in the business_object library") > End > > I hope you have managed to follow all this and can offer some advice. > The persistence architecture model is not my own invention, it comes > from work by Fowler and others. It has worked for me for the last two > years in gambas2 and (the code) is the result of significant!!! effort > on my part. I just can't see a solution now with this signature > checking in the gambas3 runtime. > > Finally, I still can't see the value in this signature checking. This > is only one area where I have successfully used method overrides in > gambas2 which now have to be not only rewritten but redesigned for > gambas3. Why was it introduced? If it is really necessary for > something else then I'd like to ask for a way to turn it off, preferably > at the gbx3 compile, not only for signature checking but also for result > type checking. > > regards > Bruce > Mmm. You should provide your code, or some schema, so that I am sure to really understand your design. Now I will try to give you solution, but I'm not sure it is good as I'm not sure that I understood your description completely. So... 1) Not ensuring that the signatures of a child method is exactly the same as the parent method was a Gambas 2 bug that can lead to interpreter crashes. 2) In other words, as soon as a parent class A has a Marshall() method, a children class B that overrides Marshall() must use the same signature. The contrary is, for me, completely illogical. 3) If you want the children class to all have different Marshall() signatures, then Marshal() cannot be a member of the parent class. 4) So I suggest that you rename all Marshal() child methods into something like "_Marshal()". And that you keep a Marshal(...) in the parent class that will call the _Marshal() method *dynamically* by using the Object.Call() method. Something like that: Public Sub Marshal(...) Dim aParam As New Variant[Param.Count] Dim I As Integer ' I realise that a Param.All property would be a good idea! For I = 0 To Param.Max aParam[I] = Param[I] Next Object.Call(Me, "_Marshal", aParam) End Regards, -- Beno?t Minisini From bbruen at ...2308... Tue Sep 20 04:18:37 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 20 Sep 2011 11:48:37 +0930 Subject: [Gambas-user] Inheritance and Signature checking in gambas 3 In-Reply-To: <201109200306.50724.gambas@...1...> References: <1316478373.5577.76.camel@...2688...> <201109200306.50724.gambas@...1...> Message-ID: <1316485117.5577.89.camel@...2688...> On Tue, 2011-09-20 at 03:06 +0200, Beno?t Minisini wrote: > Mmm. You should provide your code, or some schema, so that I am sure to really > understand your design. > > Now I will try to give you solution, but I'm not sure it is good as I'm not > sure that I understood your description completely. > > So... > > 1) Not ensuring that the signatures of a child method is exactly the same as > the parent method was a Gambas 2 bug that can lead to interpreter crashes. > > 2) In other words, as soon as a parent class A has a Marshall() method, a > children class B that overrides Marshall() must use the same signature. The > contrary is, for me, completely illogical. > > 3) If you want the children class to all have different Marshall() signatures, > then Marshal() cannot be a member of the parent class. > > 4) So I suggest that you rename all Marshal() child methods into something > like "_Marshal()". And that you keep a Marshal(...) in the parent class that > will call the _Marshal() method *dynamically* by using the Object.Call() > method. Something like that: > > Public Sub Marshal(...) > > Dim aParam As New Variant[Param.Count] > Dim I As Integer > > ' I realise that a Param.All property would be a good idea! > For I = 0 To Param.Max > aParam[I] = Param[I] > Next > > Object.Call(Me, "_Marshal", aParam) > > End > > Regards, > > -- > Beno?t Minisini > Thanks, for looking at this (again) Beno?t. I will build a simplified set of the structures and post it (it is just too big at 18 or so components to post as one chunk) over the next few days. I'll also have a look at your note 4 and see if that provides a way around the problem. But regarding note 1) "Not ensuring that the signatures of a child method is exactly the same as the parent method was a Gambas 2 bug that can lead to interpreter crashes." This is the bit I don't understand. In the hundreds if not thousands of lines of code in my gambas2 projects, I have never seen it crash in this way. As I said these projects have been running for several years. And as to note 2) "The contrary is, for me, completely illogical." I must disagree, method overriding is a well known object oriented design aspect. (And I know you know :-) as you have said yourself in a comment in issue 78 "And the check is not done too for a native class inheriting another native class. C/C++ programmer are supposed to know what they are doing. :-)" ). regards Bruce From bbruen at ...2308... Tue Sep 20 04:30:58 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 20 Sep 2011 12:00:58 +0930 Subject: [Gambas-user] Gambas3 control components _Arrangement "incorrectly overridden" Message-ID: <1316485858.5577.100.camel@...2688...> Another migration problem. I'm not having a good day. :-( I don't know if this is a bug or whether I'm just not looking at the code and/or the help correctly. I am migrating a bunch of specialised controls from gambas2 to gambas3. Much of it is working wonderfully but this one has got me beat. The attached project has two specialised controls, a trivial example called CBlueTextbox which works fine and one called ItemToolBar which doesn't. Testing the controls fails with the dreaded "incorrectly overridden" message, specifically "UserControl._Arrangement is incorrectly overridden in class ItemToolBar". CBlueTextBox inherits directly from TextBox, whereas ItemToolbar inherits from UserControl. I realise that the _Arrangement constant for the textbox is meaningless. It's just there as an example. However I think it is needed in the ItemToolbar. (To make the attached project "work", delete the ItemToolBar class.) regards and thanks in advance Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: g3control-0.0.12.tar.gz Type: application/x-compressed-tar Size: 23725 bytes Desc: not available URL: From dag.jarle.johansen at ...626... Tue Sep 20 06:10:41 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 20 Sep 2011 01:10:41 -0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Hi Jussi, I get panTB (? RS!parent) TB1_Refresh (yyy.name) Button (RS!typ) What should be the correct Elements to me. I send you the project and a sql-dump (PHP-Admin) of the DB. Thanks in advance, Dag-Jarle 2011/9/19 Jussi Lahtinen > Cannot see error in this part of the code. > What happens if you add "Debug yyy.Name;;RS!typ" under 'Case "PictureBox", > "Button"'? > Does it get executed? > > Send the project with sample database if possible. > > Jussi > > > > On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen < > dag.jarle.johansen at ...626...> wrote: > > > Hi, > > > > I have defined > > > > PRIVATE YYY as Control > > > > and want to set some data from a Database, like this > > For I=0 to RS.Count -1 > > For Each yyy In panTB.Children > > If yyy.Name = RS!CtrlName Then > > Select Case RS!typ > > Case "PictureBox", "Button" > > yyy.Tooltip = RS!Tooltip > > yyy.Picture = Picture[RS!graphik] > > > > Case "TextBox" > > yyy.Tooltip = RS!Tooltip > > Case Else > > yyy.Text = RS!CtrlInhalt > > yyy.Tooltip = RS!Tooltip > > End Select > > > > Endif > > Next > > Next > > RS is Result, and the content is ok, just one record. I get NO PICTURE on > > the Button, but as everybody knows, Buttons can have Pictures. > > Where is my stupid error this time? > > > > I am grateful for any help. > > > > Thanks in advance and regards, > > Dag-Jarle > > > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > Learn about the latest advances in developing for the > > BlackBerry® mobile platform with sessions, labs & more. > > See new tools and technologies. Register for BlackBerry® DevCon > today! > > http://p.sf.net/sfu/rim-devcon-copy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > 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: Budget.src.7z Type: application/x-7z-compressed Size: 9423 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Budget-2011-09-19.sql.7z Type: application/x-7z-compressed Size: 3164 bytes Desc: not available URL: From ron at ...1740... Tue Sep 20 07:42:45 2011 From: ron at ...1740... (Ron) Date: Tue, 20 Sep 2011 07:42:45 +0200 Subject: [Gambas-user] perl unpack In-Reply-To: <1316472324.2837.86.camel@...2150...> References: <4E77265F.8050408@...1740...> <1316472324.2837.86.camel@...2150...> Message-ID: Great work! I had a few vb code to start from, but the all where slightly different, so where the results. This shows it's sometimes better to just start from the basic info and work from there line by line... Thanks alot! Going to put this in my project... Regards, Ron_2nd. 2011/9/20 Caveat : > Don't stress too much over the `, it's just a kind of non-standard > padding character. ?The % at the beginning of the string says we only > have 5 characters to decode so we shouldn't worry...we SHOULD always > have an exact multiple of 4 characters after the first length byte... > but some of them may not matter... > > This should do it: > > ====================================================================== > Private Function decodeUU(codedStr As String) As Byte[] > > ?Dim idx, idy, ptr As Integer > ?Dim result As Byte[] > ?Dim lengthUU, ascAChar, ascMin32 As Integer > ?Dim binFour As String = "" > ?' First character's ascii code - 32 is the length > ?ascAChar = Asc(Left$(codedStr, 1)) > ?ascMin32 = ascAChar - 32 > ?lengthUU = ascMin32 > ?Print "Expecting a length of: " & lengthUU > ?' Set the size of the result array > ?result = New Byte[lengthUU] > ?' Initialise pointer into the result array > ?ptr = 0 > ?' Step through the uuencoded string character by character starting at > the 2nd character (1st is the length) > ?For idx = 2 To Len(codedStr) > ? ?ascAChar = Asc(Mid$(codedStr, idx, 1)) > ? ?' Only include what is not whitespace > ? ?If ascAChar > 31 And ascAChar < 97 Then > ? ? ?' Subtract 32 from the ascii code of the character > ? ? ?ascMin32 = ascAChar - 32 > ? ? ?' Assemble a block of four 6-bit values > ? ? ?binFour = binFour & Right$("000000" & intToBase(ascMin32, > BASE_BINARY), 6) > ? ? ?' Once we have 4 binary 6-bit 'characters' in our string > ? ? ?If Len(binFour) = 24 Then > ? ? ? ?' Treat the 4 6-bit characters as 3 8-bit characters > ? ? ? ?For idy = 1 To 3 > ? ? ? ? ?' Make sure we don't go trying to convert more than the length > says we have to > ? ? ? ? ?If ptr < result.Length > ? ? ? ? ? ?Print "Bin to convert: " & Mid$(binFour, 1 + ((idy - 1) * > 8), 8) > ? ? ? ? ? ?' Converts each block of 8 bits to its decimal value and > assigns to the output byte array > ? ? ? ? ? ?result[ptr] = toInt(Mid$(binFour, 1 + ((idy - 1) * 8), 8), > BASE_BINARY) > ? ? ? ? ? ?Inc ptr > ? ? ? ? ?End If > ? ? ? ?Next > ? ? ? ?' Be sure to clear out binFour for the next unit of UUencoding > ? ? ? ?binFour = "" > ? ? ?End If > ? ?End If > ?Next > ?Return result > > End > ====================================================================== > > You probably need the routines to convert between bases too: > > ====================================================================== > Private Function convertBase(numberIn As String, fromBase As Integer, > toBase As Integer) As String > > ?Dim value As Integer > ?value = toInt(numberIn, fromBase) > ?Return intToBase(value, toBase) > > End > > Private Function intToBase(numberIn As Integer, base As Integer) As > String > > ?Dim remain, numToDivide As Integer > ?Dim result As String = "" > > ?numToDivide = numberIn > ?Do While numToDivide / base > 0 > ? ?remain = numToDivide Mod base > ? ?numToDivide = (Int)(numToDivide / base) > ? ?result = DIGITS[remain] & result > ?Loop > > ?Return result > > End > > Private Function toInt(inputStr As String, base As Integer) As Integer > > ?Dim idx, mult, result, value As Integer > ?mult = 1 > ?For idx = Len(inputStr) To 1 Step -1 > ? ?' If we're in a base with digits bigger than 9 > ? ?' we need the Find to return 10 for A, 11 for B, 12 for C etc. > ? ?value = DIGITS.Find(UCase(Mid$(inputStr, idx, 1))) * mult > ? ?result = result + value > ? ?mult = mult * base > ?Next > ?Return result > > End > ====================================================================== > > And don't forget a few Consts for convenience: > > ====================================================================== > Private Const TEST_STR As String = "% Private Const BASE_BINARY As Integer = 2 > Private Const BASE_OCTAL As Integer = 8 > Private Const BASE_DENARY As Integer = 10 > Private Const BASE_HEX As Integer = 16 > Private DIGITS As String[] = ["0", "1", "2", "3", "4", "5", "6", "7", > "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", > "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] > ====================================================================== > > Oh and just for fun, here's an encode function too... you will notice > that I encode "send:" CORRECTLY... LOL! > > ====================================================================== > Private Function encodeUU(source As Byte[]) As String > > ?Dim idx, idy, idxThree As Integer > ?Dim result As String > ?Dim aByte As Byte > ?Dim aBinChar, binCharGroup As String > ?Dim threeChars As Byte[] > ?binCharGroup = "" > ?result = result & Chr$(source.Count + 32) > ?For idx = 0 To source.Max > ? ?aByte = source[idx] > ? ?' Convert the byte to exactly 8 digits of binary > ? ?' so for e.g. pad 1 to become 00000001 > ? ?aBinChar = Right$("00000000" & intToBase(aByte, BASE_BINARY), 8) > ? ?Print "aByte: " & aByte & " abinChar: " & aBinChar > ? ?' Add bytes together to make blocks of 3 8-bit characters > ? ?binCharGroup = binCharGroup & aBinChar > ? ?' Pad if we're at the end of the string and don't have a full 3-char > block > ? ?If idx = source.Max Then > ? ? ?binCharGroup = Left$(binCharGroup & "000000000000000000000000", > 24) > ? ?Endif > ? ?If Len(binCharGroup) = 24 Then > ? ? ?Print binCharGroup > ? ? ?' Now treat the 3 blocks of 8 bits like 4 blocks of 6 bits.... > ? ? ?For idy = 1 To 4 > ? ? ? ?Print "char: " & idy & " has value: " & (toInt(Mid > $(binCharGroup, 1 + ((idy - 1) * 6), 6), BASE_BINARY) + 32) > ? ? ? ?' Append the Chr$ of the value of the 6-bit byte + 32 to our > result > ? ? ? ?result = result & Chr$(toInt(Mid$(binCharGroup, 1 + ((idy - 1) * > 6), 6), BASE_BINARY) + 32) > ? ? ?Next > ? ? ?binCharGroup = "" > ? ?Endif > ?Next > ?Return result > > End > ====================================================================== > > Kind regards, > Caveat > > On Mon, 2011-09-19 at 13:24 +0200, Ron wrote: >> I'm trying to decode this with gambas, no luck, anyone has an idea? >> >> #!/usr/bin/perl >> print pack('u', "send:"); >> >> %> >> So decoding %> >> The pack 'u' function does uuencoding ?but all vb alike code doesn't >> reproduce the correct result, or struggles with the `... >> >> >> Thanks in advance!! >> >> Regards, >> Ron_2nd. >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> Learn about the latest advances in developing for the >> BlackBerry® mobile platform with sessions, labs & more. >> See new tools and technologies. Register for BlackBerry® DevCon today! >> http://p.sf.net/sfu/rim-devcon-copy1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Tue Sep 20 09:44:09 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 20 Sep 2011 09:44:09 +0200 Subject: [Gambas-user] perl unpack In-Reply-To: References: <4E77265F.8050408@...1740...> <1316472324.2837.86.camel@...2150...> Message-ID: <1316504649.2837.181.camel@...2150...> Hi Ron_2nd Thanks for the compliment but I'm not sure it's project ready... the idea was just to show the principles. I doubt this is either fast, efficient, or bug free! I've assumed that everybody is perfect and that I'll never get any invalid uuencoded data (bytes out of range, wrong size information, missing padding). You may want to add some kind of error checking here and there. Encoding will need a check on the size of the byte[] you're trying to encode and will need to break the data up into smaller chunks for serious amounts of data. Conventionally, uuencoded data lines are 'M' long (32+45 = ascii 77 or 'M'), until the last line which may of course be shorter. If you don't need to encode anything, then you're fine here. You can remove the declarations of the Integer threeIdx and the Byte[] threeChars from encodeUU (they're hangovers from when the routine did base64 encoding). Do you need base64 routines too? :-) The decoding could well be incorporated into a framework that works on a line by line basis, so you can decode a whole file if needed. Then you can receive binary files over an ascii connection. You might need some extra code to deal with the file header information (and something similar for encoding but then writing the header, if you're going to do whole files). The approach of turning everything into strings of binary digits (that's the intToBase(number, BASE_BINARY) call) and bolting it all together as strings is fine from the perspective of seeing how it all works but for speed you might want to switch to a more mathematical approach using multiplication or bitwise operators. The basic principle would be something like (for decoding)... % 37 -32 = 5) Take (60-32)x64x64x64 = 7340032 Take (86-32)x64x64 = 221184 Take (53-32)x64 = 1344 Take (78-32)x1 = 46 Total = 7562606 This is the number that sequence of four six bit 'bytes' represents. (Note: Use 64 as your multiplier/divider for a 6-bit byte, 128 for a 7-bit byte and the familiar(?) 256 for an 8-bit byte). Now we need to break the 4 6-bit bytes into 3 8-bit bytes... so we kind of do the reverse, dividing first by 65536 (256x256), then 256, then 1... 7562606 / 65536 = 115 rem 25966 (s) 25966 / 256 = 101 rem 110 (e) 110 / 1 = 110 (n) So reading downwards, you see 115, 101, 110... which is, of course, s... e... n... You'll have another 4 bytes (9#H`) of 6-bit to decode, but you only need to get 2 8-bit bytes out of it...(you know that from the length byte, it's 5 and you already decoded 3 characters). 25x64x64x64 = 6553600 3x64x64 = 12288 40x64 = 2560 64x1 = 64 So 6568512 / 65536 = 100 rem 14912 (d) 14912 / 256 = 58 rem 64 (:) But then we stop after "d:" as we have all 5 characters... so the last 6-bit byte has no impact on the final decoded string (we do nothing with the last rem 64, so it could be rem 56 or rem 35 or rem anything), it's just padding and can be ` like perl uses or space (most people use space)... but it can be any character. Try it with the decode % Great work! > > I had a few vb code to start from, but the all where slightly > different, so where the results. > This shows it's sometimes better to just start from the basic info and > work from there line by line... > > Thanks alot! > Going to put this in my project... > > Regards, > Ron_2nd. > > > 2011/9/20 Caveat : > > Don't stress too much over the `, it's just a kind of non-standard > > padding character. The % at the beginning of the string says we only > > have 5 characters to decode so we shouldn't worry...we SHOULD always > > have an exact multiple of 4 characters after the first length byte... > > but some of them may not matter... > > > > This should do it: > > > > ====================================================================== > > Private Function decodeUU(codedStr As String) As Byte[] > > > > Dim idx, idy, ptr As Integer > > Dim result As Byte[] > > Dim lengthUU, ascAChar, ascMin32 As Integer > > Dim binFour As String = "" > > ' First character's ascii code - 32 is the length > > ascAChar = Asc(Left$(codedStr, 1)) > > ascMin32 = ascAChar - 32 > > lengthUU = ascMin32 > > Print "Expecting a length of: " & lengthUU > > ' Set the size of the result array > > result = New Byte[lengthUU] > > ' Initialise pointer into the result array > > ptr = 0 > > ' Step through the uuencoded string character by character starting at > > the 2nd character (1st is the length) > > For idx = 2 To Len(codedStr) > > ascAChar = Asc(Mid$(codedStr, idx, 1)) > > ' Only include what is not whitespace > > If ascAChar > 31 And ascAChar < 97 Then > > ' Subtract 32 from the ascii code of the character > > ascMin32 = ascAChar - 32 > > ' Assemble a block of four 6-bit values > > binFour = binFour & Right$("000000" & intToBase(ascMin32, > > BASE_BINARY), 6) > > ' Once we have 4 binary 6-bit 'characters' in our string > > If Len(binFour) = 24 Then > > ' Treat the 4 6-bit characters as 3 8-bit characters > > For idy = 1 To 3 > > ' Make sure we don't go trying to convert more than the length > > says we have to > > If ptr < result.Length > > Print "Bin to convert: " & Mid$(binFour, 1 + ((idy - 1) * > > 8), 8) > > ' Converts each block of 8 bits to its decimal value and > > assigns to the output byte array > > result[ptr] = toInt(Mid$(binFour, 1 + ((idy - 1) * 8), 8), > > BASE_BINARY) > > Inc ptr > > End If > > Next > > ' Be sure to clear out binFour for the next unit of UUencoding > > binFour = "" > > End If > > End If > > Next > > Return result > > > > End > > ====================================================================== > > > > You probably need the routines to convert between bases too: > > > > ====================================================================== > > Private Function convertBase(numberIn As String, fromBase As Integer, > > toBase As Integer) As String > > > > Dim value As Integer > > value = toInt(numberIn, fromBase) > > Return intToBase(value, toBase) > > > > End > > > > Private Function intToBase(numberIn As Integer, base As Integer) As > > String > > > > Dim remain, numToDivide As Integer > > Dim result As String = "" > > > > numToDivide = numberIn > > Do While numToDivide / base > 0 > > remain = numToDivide Mod base > > numToDivide = (Int)(numToDivide / base) > > result = DIGITS[remain] & result > > Loop > > > > Return result > > > > End > > > > Private Function toInt(inputStr As String, base As Integer) As Integer > > > > Dim idx, mult, result, value As Integer > > mult = 1 > > For idx = Len(inputStr) To 1 Step -1 > > ' If we're in a base with digits bigger than 9 > > ' we need the Find to return 10 for A, 11 for B, 12 for C etc. > > value = DIGITS.Find(UCase(Mid$(inputStr, idx, 1))) * mult > > result = result + value > > mult = mult * base > > Next > > Return result > > > > End > > ====================================================================== > > > > And don't forget a few Consts for convenience: > > > > ====================================================================== > > Private Const TEST_STR As String = "% > Private Const BASE_BINARY As Integer = 2 > > Private Const BASE_OCTAL As Integer = 8 > > Private Const BASE_DENARY As Integer = 10 > > Private Const BASE_HEX As Integer = 16 > > Private DIGITS As String[] = ["0", "1", "2", "3", "4", "5", "6", "7", > > "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", > > "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] > > ====================================================================== > > > > Oh and just for fun, here's an encode function too... you will notice > > that I encode "send:" CORRECTLY... LOL! > > > > ====================================================================== > > Private Function encodeUU(source As Byte[]) As String > > > > Dim idx, idy, idxThree As Integer > > Dim result As String > > Dim aByte As Byte > > Dim aBinChar, binCharGroup As String > > Dim threeChars As Byte[] > > binCharGroup = "" > > result = result & Chr$(source.Count + 32) > > For idx = 0 To source.Max > > aByte = source[idx] > > ' Convert the byte to exactly 8 digits of binary > > ' so for e.g. pad 1 to become 00000001 > > aBinChar = Right$("00000000" & intToBase(aByte, BASE_BINARY), 8) > > Print "aByte: " & aByte & " abinChar: " & aBinChar > > ' Add bytes together to make blocks of 3 8-bit characters > > binCharGroup = binCharGroup & aBinChar > > ' Pad if we're at the end of the string and don't have a full 3-char > > block > > If idx = source.Max Then > > binCharGroup = Left$(binCharGroup & "000000000000000000000000", > > 24) > > Endif > > If Len(binCharGroup) = 24 Then > > Print binCharGroup > > ' Now treat the 3 blocks of 8 bits like 4 blocks of 6 bits.... > > For idy = 1 To 4 > > Print "char: " & idy & " has value: " & (toInt(Mid > > $(binCharGroup, 1 + ((idy - 1) * 6), 6), BASE_BINARY) + 32) > > ' Append the Chr$ of the value of the 6-bit byte + 32 to our > > result > > result = result & Chr$(toInt(Mid$(binCharGroup, 1 + ((idy - 1) * > > 6), 6), BASE_BINARY) + 32) > > Next > > binCharGroup = "" > > Endif > > Next > > Return result > > > > End > > ====================================================================== > > > > Kind regards, > > Caveat > > > > On Mon, 2011-09-19 at 13:24 +0200, Ron wrote: > >> I'm trying to decode this with gambas, no luck, anyone has an idea? > >> > >> #!/usr/bin/perl > >> print pack('u', "send:"); > >> > >> % >> > >> So decoding % >> > >> The pack 'u' function does uuencoding but all vb alike code doesn't > >> reproduce the correct result, or struggles with the `... > >> > >> > >> Thanks in advance!! > >> > >> Regards, > >> Ron_2nd. > >> > >> ------------------------------------------------------------------------------ > >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > >> Learn about the latest advances in developing for the > >> BlackBerry® mobile platform with sessions, labs & more. > >> See new tools and technologies. Register for BlackBerry® DevCon today! > >> http://p.sf.net/sfu/rim-devcon-copy1 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From ron at ...1740... Tue Sep 20 10:22:54 2011 From: ron at ...1740... (Ron) Date: Tue, 20 Sep 2011 10:22:54 +0200 Subject: [Gambas-user] perl unpack In-Reply-To: <1316504649.2837.181.camel@...2150...> References: <4E77265F.8050408@...1740...> <1316472324.2837.86.camel@...2150...> <1316504649.2837.181.camel@...2150...> Message-ID: Hi Caveat, I'm using the routine only to decode a small string sent in a telnet socket app. I have changed it a bit so it doesn't return byte[] but a string instead. FOR iIdy = 1 TO 3 IF iPtr < iLengthUU ' converts each block of 8 bits to its decimal value and assigns to the output byte array sResult &= Chr(ToInt(Mid$(sBinFour, 1 + ((iIdy - 1) * 8), 8), 2)) INC iPtr ENDIF NEXT And seems to work ok for my purpose! Some info: I use a perl script to report web visits (it parses apache logs) it sends results over a telnet socket to my main project, this script comes from the misterhouse project, so I wanted to create a telnet socket interface for it, so other script can be used later. I will see if I can build in some more checks you suggested. Regards, Ron. 2011/9/20 Caveat : > Hi Ron_2nd > > Thanks for the compliment but I'm not sure it's project ready... the > idea was just to show the principles. > > I doubt this is either fast, efficient, or bug free! > > I've assumed that everybody is perfect and that I'll never get any > invalid uuencoded data (bytes out of range, wrong size information, > missing padding). ?You may want to add some kind of error checking here > and there. > > Encoding will need a check on the size of the byte[] you're trying to > encode and will need to break the data up into smaller chunks for > serious amounts of data. ?Conventionally, uuencoded data lines are 'M' > long (32+45 = ascii 77 or 'M'), until the last line which may of course > be shorter. ?If you don't need to encode anything, then you're fine > here. > > You can remove the declarations of the Integer threeIdx and the Byte[] > threeChars from encodeUU (they're hangovers from when the routine did > base64 encoding). ?Do you need base64 routines too? :-) > > The decoding could well be incorporated into a framework that works on a > line by line basis, so you can decode a whole file if needed. ?Then you > can receive binary files over an ascii connection. ?You might need some > extra code to deal with the file header information (and something > similar for encoding but then writing the header, if you're going to do > whole files). > > The approach of turning everything into strings of binary digits (that's > the intToBase(number, BASE_BINARY) call) and bolting it all together as > strings is fine from the perspective of seeing how it all works but for > speed you might want to switch to a more mathematical approach using > multiplication or bitwise operators. > > The basic principle would be something like (for decoding)... > > % > You have 60 (<), 86 (V), 53 (5), 78 (N) in the first 4 bytes of encoded > data (after the length byte, here it's % = Chr$(37) --> 37 -32 = 5) > > Take (60-32)x64x64x64 = 7340032 > Take (86-32)x64x64 ? ?= ?221184 > Take (53-32)x64 ? ? ? = ? ?1344 > Take (78-32)x1 ? ? ? ?= ? ? ?46 > > Total ? ? ? ? ? ? ? ? = 7562606 > > This is the number that sequence of four six bit 'bytes' represents. > (Note: Use 64 as your multiplier/divider for a 6-bit byte, 128 for a > 7-bit byte and the familiar(?) 256 for an 8-bit byte). > > Now we need to break the 4 6-bit bytes into 3 8-bit bytes... so we kind > of do the reverse, dividing first by 65536 (256x256), then 256, then > 1... > > 7562606 / 65536 ? = 115 rem 25966 ? (s) > 25966 / 256 ? ? ? = 101 rem 110 ? ? (e) > 110 / 1 ? ? ? ? ? = 110 ? ? ? ? ? ? (n) > > So reading downwards, you see 115, 101, 110... which is, of course, s... > e... n... > > You'll have another 4 bytes (9#H`) of 6-bit to decode, but you only need > to get 2 8-bit bytes out of it...(you know that from the length byte, > it's 5 and you already decoded 3 characters). > > 25x64x64x64 = 6553600 > 3x64x64 ? ? = ? 12288 > 40x64 ? ? ? = ? ?2560 > 64x1 ? ? ? ?= ? ? ?64 > > So 6568512 / 65536 = 100 rem 14912 ? ?(d) > 14912 / 256 ? ? ? ?= 58 rem 64 ? ? ? ?(:) > > But then we stop after "d:" as we have all 5 characters... so the last > 6-bit byte has no impact on the final decoded string (we do nothing with > the last rem 64, so it could be rem 56 or rem 35 or rem anything), it's > just padding and can be ` like perl uses or space (most people use > space)... but it can be any character. ?Try it with the decode % == % > As mentioned above, you could even do some clever bit manipulations with > AND, OR, XOR etc. but it's too early in the morning for me to work that > one out, perhaps I can leave that as an exercise for the reader...;-) > > Kind regards, > Caveat > > On Tue, 2011-09-20 at 07:42 +0200, Ron wrote: >> Great work! >> >> I had a few vb code to start from, but the all where slightly >> different, so where the results. >> This shows it's sometimes better to just start from the basic info and >> work from there line by line... >> >> Thanks alot! >> Going to put this in my project... >> >> Regards, >> Ron_2nd. >> >> >> 2011/9/20 Caveat : >> > Don't stress too much over the `, it's just a kind of non-standard >> > padding character. ?The % at the beginning of the string says we only >> > have 5 characters to decode so we shouldn't worry...we SHOULD always >> > have an exact multiple of 4 characters after the first length byte... >> > but some of them may not matter... >> > >> > This should do it: >> > >> > ====================================================================== >> > Private Function decodeUU(codedStr As String) As Byte[] >> > >> > ?Dim idx, idy, ptr As Integer >> > ?Dim result As Byte[] >> > ?Dim lengthUU, ascAChar, ascMin32 As Integer >> > ?Dim binFour As String = "" >> > ?' First character's ascii code - 32 is the length >> > ?ascAChar = Asc(Left$(codedStr, 1)) >> > ?ascMin32 = ascAChar - 32 >> > ?lengthUU = ascMin32 >> > ?Print "Expecting a length of: " & lengthUU >> > ?' Set the size of the result array >> > ?result = New Byte[lengthUU] >> > ?' Initialise pointer into the result array >> > ?ptr = 0 >> > ?' Step through the uuencoded string character by character starting at >> > the 2nd character (1st is the length) >> > ?For idx = 2 To Len(codedStr) >> > ? ?ascAChar = Asc(Mid$(codedStr, idx, 1)) >> > ? ?' Only include what is not whitespace >> > ? ?If ascAChar > 31 And ascAChar < 97 Then >> > ? ? ?' Subtract 32 from the ascii code of the character >> > ? ? ?ascMin32 = ascAChar - 32 >> > ? ? ?' Assemble a block of four 6-bit values >> > ? ? ?binFour = binFour & Right$("000000" & intToBase(ascMin32, >> > BASE_BINARY), 6) >> > ? ? ?' Once we have 4 binary 6-bit 'characters' in our string >> > ? ? ?If Len(binFour) = 24 Then >> > ? ? ? ?' Treat the 4 6-bit characters as 3 8-bit characters >> > ? ? ? ?For idy = 1 To 3 >> > ? ? ? ? ?' Make sure we don't go trying to convert more than the length >> > says we have to >> > ? ? ? ? ?If ptr < result.Length >> > ? ? ? ? ? ?Print "Bin to convert: " & Mid$(binFour, 1 + ((idy - 1) * >> > 8), 8) >> > ? ? ? ? ? ?' Converts each block of 8 bits to its decimal value and >> > assigns to the output byte array >> > ? ? ? ? ? ?result[ptr] = toInt(Mid$(binFour, 1 + ((idy - 1) * 8), 8), >> > BASE_BINARY) >> > ? ? ? ? ? ?Inc ptr >> > ? ? ? ? ?End If >> > ? ? ? ?Next >> > ? ? ? ?' Be sure to clear out binFour for the next unit of UUencoding >> > ? ? ? ?binFour = "" >> > ? ? ?End If >> > ? ?End If >> > ?Next >> > ?Return result >> > >> > End >> > ====================================================================== >> > >> > You probably need the routines to convert between bases too: >> > >> > ====================================================================== >> > Private Function convertBase(numberIn As String, fromBase As Integer, >> > toBase As Integer) As String >> > >> > ?Dim value As Integer >> > ?value = toInt(numberIn, fromBase) >> > ?Return intToBase(value, toBase) >> > >> > End >> > >> > Private Function intToBase(numberIn As Integer, base As Integer) As >> > String >> > >> > ?Dim remain, numToDivide As Integer >> > ?Dim result As String = "" >> > >> > ?numToDivide = numberIn >> > ?Do While numToDivide / base > 0 >> > ? ?remain = numToDivide Mod base >> > ? ?numToDivide = (Int)(numToDivide / base) >> > ? ?result = DIGITS[remain] & result >> > ?Loop >> > >> > ?Return result >> > >> > End >> > >> > Private Function toInt(inputStr As String, base As Integer) As Integer >> > >> > ?Dim idx, mult, result, value As Integer >> > ?mult = 1 >> > ?For idx = Len(inputStr) To 1 Step -1 >> > ? ?' If we're in a base with digits bigger than 9 >> > ? ?' we need the Find to return 10 for A, 11 for B, 12 for C etc. >> > ? ?value = DIGITS.Find(UCase(Mid$(inputStr, idx, 1))) * mult >> > ? ?result = result + value >> > ? ?mult = mult * base >> > ?Next >> > ?Return result >> > >> > End >> > ====================================================================== >> > >> > And don't forget a few Consts for convenience: >> > >> > ====================================================================== >> > Private Const TEST_STR As String = "%> > Private Const BASE_BINARY As Integer = 2 >> > Private Const BASE_OCTAL As Integer = 8 >> > Private Const BASE_DENARY As Integer = 10 >> > Private Const BASE_HEX As Integer = 16 >> > Private DIGITS As String[] = ["0", "1", "2", "3", "4", "5", "6", "7", >> > "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", >> > "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] >> > ====================================================================== >> > >> > Oh and just for fun, here's an encode function too... you will notice >> > that I encode "send:" CORRECTLY... LOL! >> > >> > ====================================================================== >> > Private Function encodeUU(source As Byte[]) As String >> > >> > ?Dim idx, idy, idxThree As Integer >> > ?Dim result As String >> > ?Dim aByte As Byte >> > ?Dim aBinChar, binCharGroup As String >> > ?Dim threeChars As Byte[] >> > ?binCharGroup = "" >> > ?result = result & Chr$(source.Count + 32) >> > ?For idx = 0 To source.Max >> > ? ?aByte = source[idx] >> > ? ?' Convert the byte to exactly 8 digits of binary >> > ? ?' so for e.g. pad 1 to become 00000001 >> > ? ?aBinChar = Right$("00000000" & intToBase(aByte, BASE_BINARY), 8) >> > ? ?Print "aByte: " & aByte & " abinChar: " & aBinChar >> > ? ?' Add bytes together to make blocks of 3 8-bit characters >> > ? ?binCharGroup = binCharGroup & aBinChar >> > ? ?' Pad if we're at the end of the string and don't have a full 3-char >> > block >> > ? ?If idx = source.Max Then >> > ? ? ?binCharGroup = Left$(binCharGroup & "000000000000000000000000", >> > 24) >> > ? ?Endif >> > ? ?If Len(binCharGroup) = 24 Then >> > ? ? ?Print binCharGroup >> > ? ? ?' Now treat the 3 blocks of 8 bits like 4 blocks of 6 bits.... >> > ? ? ?For idy = 1 To 4 >> > ? ? ? ?Print "char: " & idy & " has value: " & (toInt(Mid >> > $(binCharGroup, 1 + ((idy - 1) * 6), 6), BASE_BINARY) + 32) >> > ? ? ? ?' Append the Chr$ of the value of the 6-bit byte + 32 to our >> > result >> > ? ? ? ?result = result & Chr$(toInt(Mid$(binCharGroup, 1 + ((idy - 1) * >> > 6), 6), BASE_BINARY) + 32) >> > ? ? ?Next >> > ? ? ?binCharGroup = "" >> > ? ?Endif >> > ?Next >> > ?Return result >> > >> > End >> > ====================================================================== >> > >> > Kind regards, >> > Caveat >> > >> > On Mon, 2011-09-19 at 13:24 +0200, Ron wrote: >> >> I'm trying to decode this with gambas, no luck, anyone has an idea? >> >> >> >> #!/usr/bin/perl >> >> print pack('u', "send:"); >> >> >> >> %> >> >> >> So decoding %> >> >> >> The pack 'u' function does uuencoding ?but all vb alike code doesn't >> >> reproduce the correct result, or struggles with the `... >> >> >> >> >> >> Thanks in advance!! >> >> >> >> Regards, >> >> Ron_2nd. >> >> >> >> ------------------------------------------------------------------------------ >> >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> >> Learn about the latest advances in developing for the >> >> BlackBerry® mobile platform with sessions, labs & more. >> >> See new tools and technologies. Register for BlackBerry® DevCon today! >> >> http://p.sf.net/sfu/rim-devcon-copy1 >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > All the data continuously generated in your IT infrastructure contains a >> > definitive record of customers, application performance, security >> > threats, fraudulent activity and more. Splunk takes this data and makes >> > sense of it. Business sense. IT sense. Common sense. >> > http://p.sf.net/sfu/splunk-d2dcopy1 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Tue Sep 20 12:09:57 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 20 Sep 2011 12:09:57 +0200 Subject: [Gambas-user] perl unpack In-Reply-To: References: <4E77265F.8050408@...1740...> <1316472324.2837.86.camel@...2150...> <1316504649.2837.181.camel@...2150...> Message-ID: <1316513397.2837.246.camel@...2150...> Hi Ron-2nd, Sounds like a fun project! :-) I run a website here and it could be interesting to have it talk to me over a telnet socket... BTW, I figured out how to do it bit-wise... after my third coffee... :-P So just for completeness...(don't forget to trim the last result if needed, according to the length byte otherwise you'll get "send:@" instead of "send:")... ====================================================================== Private Function convert4UUBytes(bytes As Byte[]) As String Dim result As String Dim idx, anInt, valTemp As Integer If bytes.Count <> 4 Then Print "Error, not a valid quartet of encoded bytes" Return Null Endif valTemp = 0 For idx = 0 To bytes.Max anInt = bytes[idx] - 32 If anInt < 0 Or anInt > 64 Then Print "Error, not a valid encoded byte value: " & anInt & " at: " & idx Return Null Endif ' Shift left by 18 bits = multiply by 64*64*64, ' Shift left by 12 bits = multiply by 64*64, ' Shift left by 6 bits = multiply by 64, ' Shift left by 0 bits = multiply by 1 = no multiplying valTemp += Lsl(anInt, ((3 - idx) * 6)) Next Print "valTemp is: " & valTemp For idx = 1 To 3 ' Shift right by 16 bits = divide by 65536 ' Shift right by 8 bits = divide by 256 ' Shift right by 0 = divide by 1 = no dividing, anInt = Lsr(valTemp, ((3 - idx) * 8)) ' Append the value to our result, up to 3 characters result &= Chr$(anInt) ' Find the remainder by subtracting the multiplied-up ' (using Lsl) whole number from valTemp valTemp -= Lsl(anInt, ((3 - idx) * 8)) Next Return result End ====================================================================== Kind regards, Caveat On Tue, 2011-09-20 at 10:22 +0200, Ron wrote: > Hi Caveat, > > I'm using the routine only to decode a small string sent in a telnet socket app. > > I have changed it a bit so it doesn't return byte[] but a string instead. > > FOR iIdy = 1 TO 3 > IF iPtr < iLengthUU > ' converts each block of 8 bits to its decimal value and > assigns to the output byte array > sResult &= Chr(ToInt(Mid$(sBinFour, 1 + ((iIdy - 1) * 8), 8), 2)) > INC iPtr > ENDIF > NEXT > > And seems to work ok for my purpose! > Some info: I use a perl script to report web visits (it parses apache > logs) it sends results over a telnet socket to my main project, this > script comes from the misterhouse project, so I wanted to create a > telnet socket interface for it, so other script can be used later. > > I will see if I can build in some more checks you suggested. > > Regards, > Ron. > > 2011/9/20 Caveat : > > Hi Ron_2nd > > > > Thanks for the compliment but I'm not sure it's project ready... the > > idea was just to show the principles. > > > > I doubt this is either fast, efficient, or bug free! > > > > I've assumed that everybody is perfect and that I'll never get any > > invalid uuencoded data (bytes out of range, wrong size information, > > missing padding). You may want to add some kind of error checking here > > and there. > > > > Encoding will need a check on the size of the byte[] you're trying to > > encode and will need to break the data up into smaller chunks for > > serious amounts of data. Conventionally, uuencoded data lines are 'M' > > long (32+45 = ascii 77 or 'M'), until the last line which may of course > > be shorter. If you don't need to encode anything, then you're fine > > here. > > > > You can remove the declarations of the Integer threeIdx and the Byte[] > > threeChars from encodeUU (they're hangovers from when the routine did > > base64 encoding). Do you need base64 routines too? :-) > > > > The decoding could well be incorporated into a framework that works on a > > line by line basis, so you can decode a whole file if needed. Then you > > can receive binary files over an ascii connection. You might need some > > extra code to deal with the file header information (and something > > similar for encoding but then writing the header, if you're going to do > > whole files). > > > > The approach of turning everything into strings of binary digits (that's > > the intToBase(number, BASE_BINARY) call) and bolting it all together as > > strings is fine from the perspective of seeing how it all works but for > > speed you might want to switch to a more mathematical approach using > > multiplication or bitwise operators. > > > > The basic principle would be something like (for decoding)... > > > > % > > > You have 60 (<), 86 (V), 53 (5), 78 (N) in the first 4 bytes of encoded > > data (after the length byte, here it's % = Chr$(37) --> 37 -32 = 5) > > > > Take (60-32)x64x64x64 = 7340032 > > Take (86-32)x64x64 = 221184 > > Take (53-32)x64 = 1344 > > Take (78-32)x1 = 46 > > > > Total = 7562606 > > > > This is the number that sequence of four six bit 'bytes' represents. > > (Note: Use 64 as your multiplier/divider for a 6-bit byte, 128 for a > > 7-bit byte and the familiar(?) 256 for an 8-bit byte). > > > > Now we need to break the 4 6-bit bytes into 3 8-bit bytes... so we kind > > of do the reverse, dividing first by 65536 (256x256), then 256, then > > 1... > > > > 7562606 / 65536 = 115 rem 25966 (s) > > 25966 / 256 = 101 rem 110 (e) > > 110 / 1 = 110 (n) > > > > So reading downwards, you see 115, 101, 110... which is, of course, s... > > e... n... > > > > You'll have another 4 bytes (9#H`) of 6-bit to decode, but you only need > > to get 2 8-bit bytes out of it...(you know that from the length byte, > > it's 5 and you already decoded 3 characters). > > > > 25x64x64x64 = 6553600 > > 3x64x64 = 12288 > > 40x64 = 2560 > > 64x1 = 64 > > > > So 6568512 / 65536 = 100 rem 14912 (d) > > 14912 / 256 = 58 rem 64 (:) > > > > But then we stop after "d:" as we have all 5 characters... so the last > > 6-bit byte has no impact on the final decoded string (we do nothing with > > the last rem 64, so it could be rem 56 or rem 35 or rem anything), it's > > just padding and can be ` like perl uses or space (most people use > > space)... but it can be any character. Try it with the decode % > == % > > > As mentioned above, you could even do some clever bit manipulations with > > AND, OR, XOR etc. but it's too early in the morning for me to work that > > one out, perhaps I can leave that as an exercise for the reader...;-) > > > > Kind regards, > > Caveat > > > > On Tue, 2011-09-20 at 07:42 +0200, Ron wrote: > >> Great work! > >> > >> I had a few vb code to start from, but the all where slightly > >> different, so where the results. > >> This shows it's sometimes better to just start from the basic info and > >> work from there line by line... > >> > >> Thanks alot! > >> Going to put this in my project... > >> > >> Regards, > >> Ron_2nd. > >> > >> > >> 2011/9/20 Caveat : > >> > Don't stress too much over the `, it's just a kind of non-standard > >> > padding character. The % at the beginning of the string says we only > >> > have 5 characters to decode so we shouldn't worry...we SHOULD always > >> > have an exact multiple of 4 characters after the first length byte... > >> > but some of them may not matter... > >> > > >> > This should do it: > >> > > >> > ====================================================================== > >> > Private Function decodeUU(codedStr As String) As Byte[] > >> > > >> > Dim idx, idy, ptr As Integer > >> > Dim result As Byte[] > >> > Dim lengthUU, ascAChar, ascMin32 As Integer > >> > Dim binFour As String = "" > >> > ' First character's ascii code - 32 is the length > >> > ascAChar = Asc(Left$(codedStr, 1)) > >> > ascMin32 = ascAChar - 32 > >> > lengthUU = ascMin32 > >> > Print "Expecting a length of: " & lengthUU > >> > ' Set the size of the result array > >> > result = New Byte[lengthUU] > >> > ' Initialise pointer into the result array > >> > ptr = 0 > >> > ' Step through the uuencoded string character by character starting at > >> > the 2nd character (1st is the length) > >> > For idx = 2 To Len(codedStr) > >> > ascAChar = Asc(Mid$(codedStr, idx, 1)) > >> > ' Only include what is not whitespace > >> > If ascAChar > 31 And ascAChar < 97 Then > >> > ' Subtract 32 from the ascii code of the character > >> > ascMin32 = ascAChar - 32 > >> > ' Assemble a block of four 6-bit values > >> > binFour = binFour & Right$("000000" & intToBase(ascMin32, > >> > BASE_BINARY), 6) > >> > ' Once we have 4 binary 6-bit 'characters' in our string > >> > If Len(binFour) = 24 Then > >> > ' Treat the 4 6-bit characters as 3 8-bit characters > >> > For idy = 1 To 3 > >> > ' Make sure we don't go trying to convert more than the length > >> > says we have to > >> > If ptr < result.Length > >> > Print "Bin to convert: " & Mid$(binFour, 1 + ((idy - 1) * > >> > 8), 8) > >> > ' Converts each block of 8 bits to its decimal value and > >> > assigns to the output byte array > >> > result[ptr] = toInt(Mid$(binFour, 1 + ((idy - 1) * 8), 8), > >> > BASE_BINARY) > >> > Inc ptr > >> > End If > >> > Next > >> > ' Be sure to clear out binFour for the next unit of UUencoding > >> > binFour = "" > >> > End If > >> > End If > >> > Next > >> > Return result > >> > > >> > End > >> > ====================================================================== > >> > > >> > You probably need the routines to convert between bases too: > >> > > >> > ====================================================================== > >> > Private Function convertBase(numberIn As String, fromBase As Integer, > >> > toBase As Integer) As String > >> > > >> > Dim value As Integer > >> > value = toInt(numberIn, fromBase) > >> > Return intToBase(value, toBase) > >> > > >> > End > >> > > >> > Private Function intToBase(numberIn As Integer, base As Integer) As > >> > String > >> > > >> > Dim remain, numToDivide As Integer > >> > Dim result As String = "" > >> > > >> > numToDivide = numberIn > >> > Do While numToDivide / base > 0 > >> > remain = numToDivide Mod base > >> > numToDivide = (Int)(numToDivide / base) > >> > result = DIGITS[remain] & result > >> > Loop > >> > > >> > Return result > >> > > >> > End > >> > > >> > Private Function toInt(inputStr As String, base As Integer) As Integer > >> > > >> > Dim idx, mult, result, value As Integer > >> > mult = 1 > >> > For idx = Len(inputStr) To 1 Step -1 > >> > ' If we're in a base with digits bigger than 9 > >> > ' we need the Find to return 10 for A, 11 for B, 12 for C etc. > >> > value = DIGITS.Find(UCase(Mid$(inputStr, idx, 1))) * mult > >> > result = result + value > >> > mult = mult * base > >> > Next > >> > Return result > >> > > >> > End > >> > ====================================================================== > >> > > >> > And don't forget a few Consts for convenience: > >> > > >> > ====================================================================== > >> > Private Const TEST_STR As String = "% >> > Private Const BASE_BINARY As Integer = 2 > >> > Private Const BASE_OCTAL As Integer = 8 > >> > Private Const BASE_DENARY As Integer = 10 > >> > Private Const BASE_HEX As Integer = 16 > >> > Private DIGITS As String[] = ["0", "1", "2", "3", "4", "5", "6", "7", > >> > "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", > >> > "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] > >> > ====================================================================== > >> > > >> > Oh and just for fun, here's an encode function too... you will notice > >> > that I encode "send:" CORRECTLY... LOL! > >> > > >> > ====================================================================== > >> > Private Function encodeUU(source As Byte[]) As String > >> > > >> > Dim idx, idy, idxThree As Integer > >> > Dim result As String > >> > Dim aByte As Byte > >> > Dim aBinChar, binCharGroup As String > >> > Dim threeChars As Byte[] > >> > binCharGroup = "" > >> > result = result & Chr$(source.Count + 32) > >> > For idx = 0 To source.Max > >> > aByte = source[idx] > >> > ' Convert the byte to exactly 8 digits of binary > >> > ' so for e.g. pad 1 to become 00000001 > >> > aBinChar = Right$("00000000" & intToBase(aByte, BASE_BINARY), 8) > >> > Print "aByte: " & aByte & " abinChar: " & aBinChar > >> > ' Add bytes together to make blocks of 3 8-bit characters > >> > binCharGroup = binCharGroup & aBinChar > >> > ' Pad if we're at the end of the string and don't have a full 3-char > >> > block > >> > If idx = source.Max Then > >> > binCharGroup = Left$(binCharGroup & "000000000000000000000000", > >> > 24) > >> > Endif > >> > If Len(binCharGroup) = 24 Then > >> > Print binCharGroup > >> > ' Now treat the 3 blocks of 8 bits like 4 blocks of 6 bits.... > >> > For idy = 1 To 4 > >> > Print "char: " & idy & " has value: " & (toInt(Mid > >> > $(binCharGroup, 1 + ((idy - 1) * 6), 6), BASE_BINARY) + 32) > >> > ' Append the Chr$ of the value of the 6-bit byte + 32 to our > >> > result > >> > result = result & Chr$(toInt(Mid$(binCharGroup, 1 + ((idy - 1) * > >> > 6), 6), BASE_BINARY) + 32) > >> > Next > >> > binCharGroup = "" > >> > Endif > >> > Next > >> > Return result > >> > > >> > End > >> > ====================================================================== > >> > > >> > Kind regards, > >> > Caveat > >> > > >> > On Mon, 2011-09-19 at 13:24 +0200, Ron wrote: > >> >> I'm trying to decode this with gambas, no luck, anyone has an idea? > >> >> > >> >> #!/usr/bin/perl > >> >> print pack('u', "send:"); > >> >> > >> >> % >> >> > >> >> So decoding % >> >> > >> >> The pack 'u' function does uuencoding but all vb alike code doesn't > >> >> reproduce the correct result, or struggles with the `... > >> >> > >> >> > >> >> Thanks in advance!! > >> >> > >> >> Regards, > >> >> Ron_2nd. > >> >> > >> >> ------------------------------------------------------------------------------ > >> >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > >> >> Learn about the latest advances in developing for the > >> >> BlackBerry® mobile platform with sessions, labs & more. > >> >> See new tools and technologies. Register for BlackBerry® DevCon today! > >> >> http://p.sf.net/sfu/rim-devcon-copy1 > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > All the data continuously generated in your IT infrastructure contains a > >> > definitive record of customers, application performance, security > >> > threats, fraudulent activity and more. Splunk takes this data and makes > >> > sense of it. Business sense. IT sense. Common sense. > >> > http://p.sf.net/sfu/splunk-d2dcopy1 > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Tue Sep 20 21:13:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 20 Sep 2011 21:13:55 +0200 Subject: [Gambas-user] Gambas3 control components _Arrangement "incorrectly overridden" In-Reply-To: <1316485858.5577.100.camel@...2688...> References: <1316485858.5577.100.camel@...2688...> Message-ID: <201109202113.55983.gambas@...1...> > Another migration problem. I'm not having a good day. :-( > > I don't know if this is a bug or whether I'm just not looking at the > code and/or the help correctly. > > I am migrating a bunch of specialised controls from gambas2 to gambas3. > Much of it is working wonderfully but this one has got me beat. > > The attached project has two specialised controls, a trivial example > called CBlueTextbox which works fine and one called ItemToolBar which > doesn't. Testing the controls fails with the dreaded "incorrectly > overridden" message, specifically "UserControl._Arrangement is > incorrectly overridden in class ItemToolBar". > > CBlueTextBox inherits directly from TextBox, whereas ItemToolbar > inherits from UserControl. > > I realise that the _Arrangement constant for the textbox is meaningless. > It's just there as an example. However I think it is needed in the > ItemToolbar. > > (To make the attached project "work", delete the ItemToolBar class.) > > regards and thanks in advance > Bruce You have to choose another name for "_Arrangement" in the ItemToolbar class. Is it a problem ? -- Beno?t Minisini From gambas at ...1... Tue Sep 20 21:18:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 20 Sep 2011 21:18:30 +0200 Subject: [Gambas-user] Inheritance and Signature checking in gambas 3 In-Reply-To: <1316485117.5577.89.camel@...2688...> References: <1316478373.5577.76.camel@...2688...> <201109200306.50724.gambas@...1...> <1316485117.5577.89.camel@...2688...> Message-ID: <201109202118.30448.gambas@...1...> > > Thanks, for looking at this (again) Beno?t. I will build a simplified > set of the structures and post it (it is just too big at 18 or so > components to post as one chunk) over the next few days. I'll also have > a look at your note 4 and see if that provides a way around the > problem. > > But regarding note 1) "Not ensuring that the signatures of a child > method is exactly the same as the parent method was a Gambas 2 bug that > can lead to interpreter crashes." This is the bit I don't understand. > In the hundreds if not thousands of lines of code in my gambas2 > projects, I have never seen it crash in this way. As I said these > projects have been running for several years. Because you were lucky. :-) The way you used method overriding didn't lead to crashes. > > And as to note 2) "The contrary is, for me, completely illogical." I > must disagree, method overriding is a well known object oriented design > aspect. (And I know you know :-) Yes, but if the child method does not have the same signature than the parent method, you "break the contract". If B inherits A, that means that all B are A, and so B.Method(x, y, z) must be replaceable by A.Method(x, y, z) everywhere. > as you have said yourself in a comment > in issue 78 "And the check is not done too for a native class inheriting > another native class. C/C++ programmer are supposed to know what they > are doing. :-)" ). The check should be done, but it will make the interpreter slower. So I decided not to do it, and let C/C++ programmer be careful. Regards, -- Beno?t Minisini From bbruen at ...2308... Wed Sep 21 01:39:08 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 21 Sep 2011 09:09:08 +0930 Subject: [Gambas-user] Gambas3 control components _Arrangement "incorrectly overridden" In-Reply-To: <201109202113.55983.gambas@...1...> References: <1316485858.5577.100.camel@...2688...> <201109202113.55983.gambas@...1...> Message-ID: <1316561948.2374.2.camel@...2688...> On Tue, 2011-09-20 at 21:13 +0200, Beno?t Minisini wrote: > > Another migration problem. I'm not having a good day. :-( > > > > I don't know if this is a bug or whether I'm just not looking at the > > code and/or the help correctly. > > > > I am migrating a bunch of specialised controls from gambas2 to gambas3. > > Much of it is working wonderfully but this one has got me beat. > > > > The attached project has two specialised controls, a trivial example > > called CBlueTextbox which works fine and one called ItemToolBar which > > doesn't. Testing the controls fails with the dreaded "incorrectly > > overridden" message, specifically "UserControl._Arrangement is > > incorrectly overridden in class ItemToolBar". > > > > CBlueTextBox inherits directly from TextBox, whereas ItemToolbar > > inherits from UserControl. > > > > I realise that the _Arrangement constant for the textbox is meaningless. > > It's just there as an example. However I think it is needed in the > > ItemToolbar. > > > > (To make the attached project "work", delete the ItemToolBar class.) > > > > regards and thanks in advance > > Bruce > > You have to choose another name for "_Arrangement" in the ItemToolbar class. > Is it a problem ? > Ah! I see (I think). If we are inheriting from UserControl then we should not include the _Arrangement constant. This is not a problem. thanks Bruce From demosthenesk at ...626... Wed Sep 21 07:42:38 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 21 Sep 2011 08:42:38 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE Message-ID: <1316583758.11806.4.camel@...2689...> Hi, i try to install gambas3 on a Linux Mint Debian Edition with these packages sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev these are the same with ubuntu Natty except that LMDE needs kdelibs5-dev instead kdelibs4-dev So now i get /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive make[4]: *** [gb.sdl.la] Error 1 make[4]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3' make: *** [all] Error 2 Please help From bbruen at ...2308... Wed Sep 21 08:16:49 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 21 Sep 2011 15:46:49 +0930 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316583758.11806.4.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> Message-ID: <1316585809.16869.3.camel@...2688...> On Wed, 2011-09-21 at 08:42 +0300, Demosthenes Koptsis wrote: > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3' > make: *** [all] Error 2 > > Please help in terminal enter (without quotes): "file /usr/lib/libfreetype.la" and post back the output. Bruce From bbruen at ...2308... Wed Sep 21 08:25:10 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 21 Sep 2011 15:55:10 +0930 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316583758.11806.4.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> Message-ID: <1316586310.16869.6.camel@...2688...> On Wed, 2011-09-21 at 08:42 +0300, Demosthenes Koptsis wrote: > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3' > make: *** [all] Error 2 > Disregard that, I was looking at the wrong line in your make output. Do you have any libfreetype installed? "ls -al /usr/lib/libfreetype*" Bruce From gambas at ...1... Wed Sep 21 09:54:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 21 Sep 2011 09:54:34 +0200 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316583758.11806.4.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> Message-ID: <201109210954.35055.gambas@...1...> > Hi, > > i try to install gambas3 on a Linux Mint Debian Edition with these > packages > > sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 > libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev > libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev > libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev > libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev > libffi-dev kdelibs5-dev firebird2.1-dev libqt4-dev libglew1.5-dev > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgdk-pixbuf2.0-dev linux-libc-dev > > these are the same with ubuntu Natty except that LMDE needs kdelibs5-dev > instead kdelibs4-dev > Gambas 3 does not need kde libraries at all. I think that the contents of the wiki is wrong. -- Beno?t Minisini From demosthenesk at ...626... Wed Sep 21 10:21:15 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 21 Sep 2011 11:21:15 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316586310.16869.6.camel@...2688...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> Message-ID: <1316593275.11806.9.camel@...2689...> i did a locate libfreetype and yes i think i ahve /usr/lib/vlc/plugins/misc/libfreetype_plugin.so /usr/lib/x86_64-linux-gnu/libfreetype.a /usr/lib/x86_64-linux-gnu/libfreetype.la /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 /usr/lib32/libfreetype.so.6 /usr/lib32/libfreetype.so.6.6.0 On Wed, 2011-09-21 at 15:55 +0930, Bruce Bruen wrote: > On Wed, 2011-09-21 at 08:42 +0300, Demosthenes Koptsis wrote: > > > > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > > make[4]: *** [gb.sdl.la] Error 1 > > make[4]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-2.99.3/gb.sdl' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-2.99.3' > > make: *** [all] Error 2 > > > > Disregard that, I was looking at the wrong line in your make output. > > Do you have any libfreetype installed? > > "ls -al /usr/lib/libfreetype*" > > Bruce > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Wed Sep 21 10:39:50 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 21 Sep 2011 18:09:50 +0930 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316593275.11806.9.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> Message-ID: <1316594390.16869.8.camel@...2688...> On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > i did a > locate libfreetype > > and yes i think i ahve > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > /usr/lib/x86_64-linux-gnu/libfreetype.a > /usr/lib/x86_64-linux-gnu/libfreetype.la > /usr/lib/x86_64-linux-gnu/libfreetype.so > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > /usr/lib32/libfreetype.so.6 > /usr/lib32/libfreetype.so.6.6.0 > Yes, but a) when did you last run updatedb and b) ls -al /usr/lib/freetype* will tell me what the files are. Bruce From demosthenesk at ...626... Wed Sep 21 11:19:53 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 21 Sep 2011 12:19:53 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316594390.16869.8.camel@...2688...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> Message-ID: <1316596793.1991.1.camel@...2689...> before i run locate i did an updatedb ok here is the ls ls -al /usr/lib/x86_64-linux-gnu/libfreetype* -rw-r--r-- 1 root root 862114 Jun 23 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.a -rw-r--r-- 1 root root 892 Jun 23 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.la lrwxrwxrwx 1 root root 20 Jun 23 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.6.2 lrwxrwxrwx 1 root root 20 Sep 20 16:45 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 -rw-r--r-- 1 root root 628440 Jun 23 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > i did a > > locate libfreetype > > > > and yes i think i ahve > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > /usr/lib32/libfreetype.so.6 > > /usr/lib32/libfreetype.so.6.6.0 > > > > Yes, but a) when did you last run updatedb and b) ls > -al /usr/lib/freetype* will tell me what the files are. > Bruce > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Wed Sep 21 11:56:24 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 21 Sep 2011 12:56:24 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316594390.16869.8.camel@...2688...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> Message-ID: <1316598984.10851.1.camel@...2689...> the errors i get are /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive make[4]: *** [gb.sdl.la] Error 1 make[4]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' make: *** [all] Error 2 there is no /usr/lib/libfreetype.la in my system ls -al /usr/lib/libfreetype* ls: cannot access /usr/lib/libfreetype*: No such file or directory instead there are /usr/lib/vlc/plugins/misc/libfreetype_plugin.so /usr/lib/x86_64-linux-gnu/libfreetype.a /usr/lib/x86_64-linux-gnu/libfreetype.la /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 /usr/lib32/libfreetype.so.6 /usr/lib32/libfreetype.so.6.6.0 On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > i did a > > locate libfreetype > > > > and yes i think i ahve > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > /usr/lib32/libfreetype.so.6 > > /usr/lib32/libfreetype.so.6.6.0 > > > > Yes, but a) when did you last run updatedb and b) ls > -al /usr/lib/freetype* will tell me what the files are. > Bruce > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Sep 21 12:02:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 21 Sep 2011 12:02:27 +0200 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316598984.10851.1.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316598984.10851.1.camel@...2689...> Message-ID: <201109211202.28024.gambas@...1...> > the errors i get are > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' > make: *** [all] Error 2 > Please post the full output of "make", because the error means that there is a reference on /usr/lib/libfreetype.la inside another file, and we should see its name just before the error message. Regards, -- Beno?t Minisini From bbruen at ...2308... Wed Sep 21 12:07:10 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 21 Sep 2011 19:37:10 +0930 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316596793.1991.1.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> Message-ID: <1316599630.5712.9.camel@...2688...> On Wed, 2011-09-21 at 12:19 +0300, Demosthenes Koptsis wrote: > before i run locate i did an updatedb > > ok here is the ls > > ls -al /usr/lib/x86_64-linux-gnu/libfreetype* > > -rw-r--r-- 1 root root 862114 Jun 23 > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.a > > -rw-r--r-- 1 root root 892 Jun 23 > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.la > > lrwxrwxrwx 1 root root 20 Jun 23 > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.6.2 > > lrwxrwxrwx 1 root root 20 Sep 20 > 16:45 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 > > -rw-r--r-- 1 root root 628440 Jun 23 > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > > > i did a > > > locate libfreetype > > > > > > and yes i think i ahve > > > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > /usr/lib32/libfreetype.so.6 > > > /usr/lib32/libfreetype.so.6.6.0 > > > > > (Takes deep breath) OK, so I presume that there is no libfreetype files or links in /usr/lib itself? But you do appear to have 1) the full set of 64 bit library files and 2) a different version of the library executable in /usr/lib32 (probably /usr/lib32/libfreetype.so.6 is a link to /usr/lib/libfreetype.so.6.0) Is this a 64bit machine? If so you can add links in /usr/lib to the /usr/lib/x86_64-linux-gnu files for libfreetype.so.6 and libfreetype.la but if not then you are going to have to find the correct .la file for the /usr/lib32 version and then link to them. I don't know where in debian to find the lib32 versions. hth Bruce From bbruen at ...2308... Wed Sep 21 12:15:14 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 21 Sep 2011 19:45:14 +0930 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <201109211202.28024.gambas@...1...> References: <1316583758.11806.4.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316598984.10851.1.camel@...2689...> <201109211202.28024.gambas@...1...> Message-ID: <1316600114.5712.10.camel@...2688...> On Wed, 2011-09-21 at 12:02 +0200, Beno?t Minisini wrote: > > the errors i get are > > > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > > make[4]: *** [gb.sdl.la] Error 1 > > make[4]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' > > make: *** [all] Error 2 > > > > Please post the full output of "make", because the error means that there is a > reference on /usr/lib/libfreetype.la inside another file, and we should see > its name just before the error message. > > Regards, > its in the dependency_libs in gb.sdl.la B From demosthenesk at ...626... Wed Sep 21 12:26:15 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 21 Sep 2011 13:26:15 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316599630.5712.9.camel@...2688...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> <1316599630.5712.9.camel@...2688...> Message-ID: <1316600775.10851.5.camel@...2689...> yes it is 64bit machine. ## --------- ## ## Platform. ## ## --------- ## hostname = mint-desktop uname -m = x86_64 uname -r = 2.6.39-2-amd64 uname -s = Linux uname -v = #1 SMP Tue Jul 5 02:51:22 UTC 2011 i dont know how back to go to copy the output. i hope this is ok. /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-Cwindow.lo -MD -MP -MF .deps/gb_sdl_la-Cwindow.Tpo -c -o gb_sdl_la-Cwindow.lo `test -f 'Cwindow.cpp' || echo './'`Cwindow.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-Cwindow.lo -MD -MP -MF .deps/gb_sdl_la-Cwindow.Tpo -c Cwindow.cpp -fPIC -DPIC -o .libs/gb_sdl_la-Cwindow.o mv -f .deps/gb_sdl_la-Cwindow.Tpo .deps/gb_sdl_la-Cwindow.Plo /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-main.lo -MD -MP -MF .deps/gb_sdl_la-main.Tpo -c -o gb_sdl_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-main.lo -MD -MP -MF .deps/gb_sdl_la-main.Tpo -c main.cpp -fPIC -DPIC -o .libs/gb_sdl_la-main.o mv -f .deps/gb_sdl_la-main.Tpo .deps/gb_sdl_la-main.Plo /bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl \" -module -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -o gb.sdl.la -rpath /usr/local/lib/gambas3 gb_sdl_la-SDLapp.lo gb_sdl_la-SDLcore.lo gb_sdl_la-SDLdebug.lo gb_sdl_la-SDLerror.lo gb_sdl_la-SDLfont.lo gb_sdl_la-SDLgfx.lo gb_sdl_la-SDLcursor.lo gb_sdl_la-SDLosrender.lo gb_sdl_la-SDLsurface.lo gb_sdl_la-SDLtexture.lo gb_sdl_la-SDLwindow.lo gb_sdl_la-Cconst.lo gb_sdl_la-Cdesktop.lo gb_sdl_la-Cdraw.lo gb_sdl_la-Cfont.lo gb_sdl_la-Cimage.lo gb_sdl_la-Cjoystick.lo gb_sdl_la-Ckey.lo gb_sdl_la-Cmouse.lo gb_sdl_la-Cwindow.lo gb_sdl_la-main.lo -lSM -lICE -lX11 -lXext -lSDL_ttf -lGLEW -lXcursor libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o .libs/gb_sdl_la-SDLapp.o .libs/gb_sdl_la-SDLcore.o .libs/gb_sdl_la-SDLdebug.o .libs/gb_sdl_la-SDLerror.o .libs/gb_sdl_la-SDLfont.o .libs/gb_sdl_la-SDLgfx.o .libs/gb_sdl_la-SDLcursor.o .libs/gb_sdl_la-SDLosrender.o .libs/gb_sdl_la-SDLsurface.o .libs/gb_sdl_la-SDLtexture.o .libs/gb_sdl_la-SDLwindow.o .libs/gb_sdl_la-Cconst.o .libs/gb_sdl_la-Cdesktop.o .libs/gb_sdl_la-Cdraw.o .libs/gb_sdl_la-Cfont.o .libs/gb_sdl_la-Cimage.o .libs/gb_sdl_la-Cjoystick.o .libs/gb_sdl_la-Ckey.o .libs/gb_sdl_la-Cmouse.o .libs/gb_sdl_la-Cwindow.o .libs/gb_sdl_la-main.o -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -lSM -lICE -lX11 -lXext /usr/lib/libSDL_ttf.so -lGLEW -lXcursor -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crtn.o -Os -Wl,-soname -Wl,gb.sdl.so.0 -o .libs/gb.sdl.so.0.0.0 libtool: link: (cd ".libs" && rm -f "gb.sdl.so.0" && ln -s "gb.sdl.so.0.0.0" "gb.sdl.so.0") libtool: link: (cd ".libs" && rm -f "gb.sdl.so" && ln -s "gb.sdl.so.0.0.0" "gb.sdl.so") /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive make[4]: *** [gb.sdl.la] Error 1 make[4]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' make: *** [all] Error 2 On Wed, 2011-09-21 at 19:37 +0930, Bruce Bruen wrote: > On Wed, 2011-09-21 at 12:19 +0300, Demosthenes Koptsis wrote: > > > before i run locate i did an updatedb > > > > ok here is the ls > > > > ls -al /usr/lib/x86_64-linux-gnu/libfreetype* > > > > -rw-r--r-- 1 root root 862114 Jun 23 > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > -rw-r--r-- 1 root root 892 Jun 23 > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > lrwxrwxrwx 1 root root 20 Jun 23 > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.6.2 > > > > lrwxrwxrwx 1 root root 20 Sep 20 > > 16:45 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 > > > > -rw-r--r-- 1 root root 628440 Jun 23 > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > > > > On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > > > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > > > > > i did a > > > > locate libfreetype > > > > > > > > and yes i think i ahve > > > > > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > /usr/lib32/libfreetype.so.6 > > > > /usr/lib32/libfreetype.so.6.6.0 > > > > > > > > > (Takes deep breath) > > OK, so I presume that there is no libfreetype files or links in /usr/lib > itself? > > But you do appear to have > 1) the full set of 64 bit library files and > 2) a different version of the library executable in /usr/lib32 > (probably /usr/lib32/libfreetype.so.6 is a link > to /usr/lib/libfreetype.so.6.0) > > Is this a 64bit machine? If so you can add links in /usr/lib to > the /usr/lib/x86_64-linux-gnu files for libfreetype.so.6 and > libfreetype.la but if not then you are going to have to find the > correct .la file for the /usr/lib32 version and then link to them. > > I don't know where in debian to find the lib32 versions. > > hth > Bruce > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Gambas at ...1950... Wed Sep 21 12:40:21 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 21 Sep 2011 12:40:21 +0200 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316600775.10851.5.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> <1316599630.5712.9.camel@...2688...> <1316600775.10851.5.camel@...2689...> Message-ID: <1316601622.2837.301.camel@...2150...> make > make_result.txt 2>&1 gzip make_result.txt Send make_result.txt.gz Kind regards, Caveat On Wed, 2011-09-21 at 13:26 +0300, Demosthenes Koptsis wrote: > yes it is 64bit machine. > > ## --------- ## > ## Platform. ## > ## --------- ## > > hostname = mint-desktop > uname -m = x86_64 > uname -r = 2.6.39-2-amd64 > uname -s = Linux > uname -v = #1 SMP Tue Jul 5 02:51:22 UTC 2011 > > > i dont know how back to go to copy the output. > i hope this is ok. > > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" > -MT gb_sdl_la-Cwindow.lo -MD -MP -MF .deps/gb_sdl_la-Cwindow.Tpo -c -o > gb_sdl_la-Cwindow.lo `test -f 'Cwindow.cpp' || echo './'`Cwindow.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= > \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-Cwindow.lo -MD -MP > -MF .deps/gb_sdl_la-Cwindow.Tpo -c Cwindow.cpp -fPIC -DPIC > -o .libs/gb_sdl_la-Cwindow.o > mv -f .deps/gb_sdl_la-Cwindow.Tpo .deps/gb_sdl_la-Cwindow.Plo > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" > -MT gb_sdl_la-main.lo -MD -MP -MF .deps/gb_sdl_la-main.Tpo -c -o > gb_sdl_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= > \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-main.lo -MD -MP > -MF .deps/gb_sdl_la-main.Tpo -c main.cpp -fPIC -DPIC > -o .libs/gb_sdl_la-main.o > mv -f .deps/gb_sdl_la-main.Tpo .deps/gb_sdl_la-main.Plo > /bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl > \" -module -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -o gb.sdl.la > -rpath /usr/local/lib/gambas3 gb_sdl_la-SDLapp.lo gb_sdl_la-SDLcore.lo > gb_sdl_la-SDLdebug.lo gb_sdl_la-SDLerror.lo gb_sdl_la-SDLfont.lo > gb_sdl_la-SDLgfx.lo gb_sdl_la-SDLcursor.lo gb_sdl_la-SDLosrender.lo > gb_sdl_la-SDLsurface.lo gb_sdl_la-SDLtexture.lo gb_sdl_la-SDLwindow.lo > gb_sdl_la-Cconst.lo gb_sdl_la-Cdesktop.lo gb_sdl_la-Cdraw.lo > gb_sdl_la-Cfont.lo gb_sdl_la-Cimage.lo gb_sdl_la-Cjoystick.lo > gb_sdl_la-Ckey.lo gb_sdl_la-Cmouse.lo gb_sdl_la-Cwindow.lo > gb_sdl_la-main.lo -lSM -lICE -lX11 -lXext -lSDL_ttf -lGLEW -lXcursor > libtool: link: g++ -fPIC -DPIC -shared > -nostdlib /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o .libs/gb_sdl_la-SDLapp.o .libs/gb_sdl_la-SDLcore.o .libs/gb_sdl_la-SDLdebug.o .libs/gb_sdl_la-SDLerror.o .libs/gb_sdl_la-SDLfont.o .libs/gb_sdl_la-SDLgfx.o .libs/gb_sdl_la-SDLcursor.o .libs/gb_sdl_la-SDLosrender.o .libs/gb_sdl_la-SDLsurface.o .libs/gb_sdl_la-SDLtexture.o .libs/gb_sdl_la-SDLwindow.o .libs/gb_sdl_la-Cconst.o .libs/gb_sdl_la-Cdesktop.o .libs/gb_sdl_la-Cdraw.o .libs/gb_sdl_la-Cfont.o .libs/gb_sdl_la-Cimage.o .libs/gb_sdl_la-Cjoystick.o .libs/gb_sdl_la-Ckey.o .libs/gb_sdl_la-Cmouse.o .libs/gb_sdl_la-Cwindow.o .libs/gb_sdl_la-main.o -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -lSM -lICE -lX11 -lXext /usr/lib/libSDL_ttf.so -lGLEW -lXcursor -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crtn.o -Os -Wl,-soname -Wl,gb.sdl.so.0 -o .libs/gb.sdl.so.0.0.0 > libtool: link: (cd ".libs" && rm -f "gb.sdl.so.0" && ln -s > "gb.sdl.so.0.0.0" "gb.sdl.so.0") > libtool: link: (cd ".libs" && rm -f "gb.sdl.so" && ln -s > "gb.sdl.so.0.0.0" "gb.sdl.so") > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' > make: *** [all] Error 2 > > > > > > On Wed, 2011-09-21 at 19:37 +0930, Bruce Bruen wrote: > > On Wed, 2011-09-21 at 12:19 +0300, Demosthenes Koptsis wrote: > > > > > before i run locate i did an updatedb > > > > > > ok here is the ls > > > > > > ls -al /usr/lib/x86_64-linux-gnu/libfreetype* > > > > > > -rw-r--r-- 1 root root 862114 Jun 23 > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > > > -rw-r--r-- 1 root root 892 Jun 23 > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > > > lrwxrwxrwx 1 root root 20 Jun 23 > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.6.2 > > > > > > lrwxrwxrwx 1 root root 20 Sep 20 > > > 16:45 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 > > > > > > -rw-r--r-- 1 root root 628440 Jun 23 > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > > > > > > > > On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > > > > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > > > > > > > i did a > > > > > locate libfreetype > > > > > > > > > > and yes i think i ahve > > > > > > > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > /usr/lib32/libfreetype.so.6 > > > > > /usr/lib32/libfreetype.so.6.6.0 > > > > > > > > > > > > > (Takes deep breath) > > > > OK, so I presume that there is no libfreetype files or links in /usr/lib > > itself? > > > > But you do appear to have > > 1) the full set of 64 bit library files and > > 2) a different version of the library executable in /usr/lib32 > > (probably /usr/lib32/libfreetype.so.6 is a link > > to /usr/lib/libfreetype.so.6.0) > > > > Is this a 64bit machine? If so you can add links in /usr/lib to > > the /usr/lib/x86_64-linux-gnu files for libfreetype.so.6 and > > libfreetype.la but if not then you are going to have to find the > > correct .la file for the /usr/lib32 version and then link to them. > > > > I don't know where in debian to find the lib32 versions. > > > > hth > > Bruce > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Wed Sep 21 13:19:47 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 21 Sep 2011 14:19:47 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316601622.2837.301.camel@...2150...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> <1316599630.5712.9.camel@...2688...> <1316600775.10851.5.camel@...2689...> <1316601622.2837.301.camel@...2150...> Message-ID: <1316603987.10851.10.camel@...2689...> ok here is make_result.txt.gz On Wed, 2011-09-21 at 12:40 +0200, Caveat wrote: > make > make_result.txt 2>&1 > gzip make_result.txt > > Send make_result.txt.gz > > Kind regards, > Caveat > > On Wed, 2011-09-21 at 13:26 +0300, Demosthenes Koptsis wrote: > > yes it is 64bit machine. > > > > ## --------- ## > > ## Platform. ## > > ## --------- ## > > > > hostname = mint-desktop > > uname -m = x86_64 > > uname -r = 2.6.39-2-amd64 > > uname -s = Linux > > uname -v = #1 SMP Tue Jul 5 02:51:22 UTC 2011 > > > > > > i dont know how back to go to copy the output. > > i hope this is ok. > > > > > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" > > -MT gb_sdl_la-Cwindow.lo -MD -MP -MF .deps/gb_sdl_la-Cwindow.Tpo -c -o > > gb_sdl_la-Cwindow.lo `test -f 'Cwindow.cpp' || echo './'`Cwindow.cpp > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ > > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= > > \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-Cwindow.lo -MD -MP > > -MF .deps/gb_sdl_la-Cwindow.Tpo -c Cwindow.cpp -fPIC -DPIC > > -o .libs/gb_sdl_la-Cwindow.o > > mv -f .deps/gb_sdl_la-Cwindow.Tpo .deps/gb_sdl_la-Cwindow.Plo > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" > > -MT gb_sdl_la-main.lo -MD -MP -MF .deps/gb_sdl_la-main.Tpo -c -o > > gb_sdl_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ > > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= > > \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-main.lo -MD -MP > > -MF .deps/gb_sdl_la-main.Tpo -c main.cpp -fPIC -DPIC > > -o .libs/gb_sdl_la-main.o > > mv -f .deps/gb_sdl_la-main.Tpo .deps/gb_sdl_la-main.Plo > > /bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -Wall > > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > > -Os -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl > > \" -module -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -o gb.sdl.la > > -rpath /usr/local/lib/gambas3 gb_sdl_la-SDLapp.lo gb_sdl_la-SDLcore.lo > > gb_sdl_la-SDLdebug.lo gb_sdl_la-SDLerror.lo gb_sdl_la-SDLfont.lo > > gb_sdl_la-SDLgfx.lo gb_sdl_la-SDLcursor.lo gb_sdl_la-SDLosrender.lo > > gb_sdl_la-SDLsurface.lo gb_sdl_la-SDLtexture.lo gb_sdl_la-SDLwindow.lo > > gb_sdl_la-Cconst.lo gb_sdl_la-Cdesktop.lo gb_sdl_la-Cdraw.lo > > gb_sdl_la-Cfont.lo gb_sdl_la-Cimage.lo gb_sdl_la-Cjoystick.lo > > gb_sdl_la-Ckey.lo gb_sdl_la-Cmouse.lo gb_sdl_la-Cwindow.lo > > gb_sdl_la-main.lo -lSM -lICE -lX11 -lXext -lSDL_ttf -lGLEW -lXcursor > > libtool: link: g++ -fPIC -DPIC -shared > > -nostdlib /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o .libs/gb_sdl_la-SDLapp.o .libs/gb_sdl_la-SDLcore.o .libs/gb_sdl_la-SDLdebug.o .libs/gb_sdl_la-SDLerror.o .libs/gb_sdl_la-SDLfont.o .libs/gb_sdl_la-SDLgfx.o .libs/gb_sdl_la-SDLcursor.o .libs/gb_sdl_la-SDLosrender.o .libs/gb_sdl_la-SDLsurface.o .libs/gb_sdl_la-SDLtexture.o .libs/gb_sdl_la-SDLwindow.o .libs/gb_sdl_la-Cconst.o .libs/gb_sdl_la-Cdesktop.o .libs/gb_sdl_la-Cdraw.o .libs/gb_sdl_la-Cfont.o .libs/gb_sdl_la-Cimage.o .libs/gb_sdl_la-Cjoystick.o .libs/gb_sdl_la-Ckey.o .libs/gb_sdl_la-Cmouse.o .libs/gb_sdl_la-Cwindow.o .libs/gb_sdl_la-main.o -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -lSM -lICE -lX11 -lXext /usr/lib/libSDL_ttf.so -lGLEW -lXcursor -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crtn.o -Os -Wl,-soname -Wl,gb.sdl.so.0 -o .libs/gb.sdl.so.0.0.0 > > libtool: link: (cd ".libs" && rm -f "gb.sdl.so.0" && ln -s > > "gb.sdl.so.0.0.0" "gb.sdl.so.0") > > libtool: link: (cd ".libs" && rm -f "gb.sdl.so" && ln -s > > "gb.sdl.so.0.0.0" "gb.sdl.so") > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > > make[4]: *** [gb.sdl.la] Error 1 > > make[4]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' > > make: *** [all] Error 2 > > > > > > > > > > > > On Wed, 2011-09-21 at 19:37 +0930, Bruce Bruen wrote: > > > On Wed, 2011-09-21 at 12:19 +0300, Demosthenes Koptsis wrote: > > > > > > > before i run locate i did an updatedb > > > > > > > > ok here is the ls > > > > > > > > ls -al /usr/lib/x86_64-linux-gnu/libfreetype* > > > > > > > > -rw-r--r-- 1 root root 862114 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > > > > > -rw-r--r-- 1 root root 892 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > > > > > lrwxrwxrwx 1 root root 20 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.6.2 > > > > > > > > lrwxrwxrwx 1 root root 20 Sep 20 > > > > 16:45 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 > > > > > > > > -rw-r--r-- 1 root root 628440 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > > > > > > > > > > > > On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > > > > > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > > > > > > > > > i did a > > > > > > locate libfreetype > > > > > > > > > > > > and yes i think i ahve > > > > > > > > > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > > /usr/lib32/libfreetype.so.6 > > > > > > /usr/lib32/libfreetype.so.6.6.0 > > > > > > > > > > > > > > > > > (Takes deep breath) > > > > > > OK, so I presume that there is no libfreetype files or links in /usr/lib > > > itself? > > > > > > But you do appear to have > > > 1) the full set of 64 bit library files and > > > 2) a different version of the library executable in /usr/lib32 > > > (probably /usr/lib32/libfreetype.so.6 is a link > > > to /usr/lib/libfreetype.so.6.0) > > > > > > Is this a 64bit machine? If so you can add links in /usr/lib to > > > the /usr/lib/x86_64-linux-gnu files for libfreetype.so.6 and > > > libfreetype.la but if not then you are going to have to find the > > > correct .la file for the /usr/lib32 version and then link to them. > > > > > > I don't know where in debian to find the lib32 versions. > > > > > > hth > > > Bruce > > > ------------------------------------------------------------------------------ > > > All the data continuously generated in your IT infrastructure contains a > > > definitive record of customers, application performance, security > > > threats, fraudulent activity and more. Splunk takes this data and makes > > > sense of it. Business sense. IT sense. Common sense. > > > http://p.sf.net/sfu/splunk-d2dcopy1 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: make_result.txt.tar.gz Type: application/x-compressed-tar Size: 14605 bytes Desc: not available URL: From jussi.lahtinen at ...626... Wed Sep 21 20:27:07 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 21 Sep 2011 21:27:07 +0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Not sure everything is set up correctly, I can't find pictures from your database. Also I get error from variable yyy which is type control, there is no property named picture! So, I declared it as object for testing. You are using Gambas 3? You didn't get errors? Jussi PS. Next time if possible send whole project folder instead of just .src, otherwise project configuration is missing! On Tue, Sep 20, 2011 at 07:10, Dag-Jarle Johansen < dag.jarle.johansen at ...626...> wrote: > Hi Jussi, > > I get > > panTB (? RS!parent) > TB1_Refresh (yyy.name) > Button (RS!typ) > > What should be the correct Elements to me. > I send you the project and a sql-dump (PHP-Admin) of the DB. > > Thanks in advance, > Dag-Jarle > > > > 2011/9/19 Jussi Lahtinen > > > Cannot see error in this part of the code. > > What happens if you add "Debug yyy.Name;;RS!typ" under 'Case > "PictureBox", > > "Button"'? > > Does it get executed? > > > > Send the project with sample database if possible. > > > > Jussi > > > > > > > > On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen < > > dag.jarle.johansen at ...626...> wrote: > > > > > Hi, > > > > > > I have defined > > > > > > PRIVATE YYY as Control > > > > > > and want to set some data from a Database, like this > > > For I=0 to RS.Count -1 > > > For Each yyy In panTB.Children > > > If yyy.Name = RS!CtrlName Then > > > Select Case RS!typ > > > Case "PictureBox", "Button" > > > yyy.Tooltip = RS!Tooltip > > > yyy.Picture = Picture[RS!graphik] > > > > > > Case "TextBox" > > > yyy.Tooltip = RS!Tooltip > > > Case Else > > > yyy.Text = RS!CtrlInhalt > > > yyy.Tooltip = RS!Tooltip > > > End Select > > > > > > Endif > > > Next > > > Next > > > RS is Result, and the content is ok, just one record. I get NO PICTURE > on > > > the Button, but as everybody knows, Buttons can have Pictures. > > > Where is my stupid error this time? > > > > > > I am grateful for any help. > > > > > > Thanks in advance and regards, > > > Dag-Jarle > > > > > > > > > ------------------------------------------------------------------------------ > > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > > Learn about the latest advances in developing for the > > > BlackBerry® mobile platform with sessions, labs & more. > > > See new tools and technologies. Register for BlackBerry® DevCon > > today! > > > http://p.sf.net/sfu/rim-devcon-copy1 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > Learn about the latest advances in developing for the > > BlackBerry® mobile platform with sessions, labs & more. > > See new tools and technologies. Register for BlackBerry® DevCon > today! > > http://p.sf.net/sfu/rim-devcon-copy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rmorgan62 at ...626... Wed Sep 21 22:44:58 2011 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 21 Sep 2011 13:44:58 -0700 Subject: [Gambas-user] New Subscriber -- Would like to help with documentation in English Message-ID: Hello, I ran across Gamabs 4 or 5 years ago and then I messed with it a bit and decided it wasn't quite up to my needs. So I passed on it then. I ran across Gambas just recently when I upgraded to Unubuntu 10 and found it in the software repository. I installed it and was pleased to find that it has matured nicely. I am an experienced programmer of 25+ years and will be learning Gambas as quickly as possible. When I looked at the documentation I found it lacking and much of it has poor grammar that makes it hard to read. I suspect that it was automatically translated? I would like to offer my hand at improving the Gambas English documentation. Sincerely, Randall Morgan -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From dag.jarle.johansen at ...626... Thu Sep 22 11:17:16 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 06:17:16 -0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Hello Jussi, first thanks for concerning. I tried to send you the complete project, but gambas-user-listing said: too big. Yes I am using Gambas3, Rev.4128, and Ubuntu 10.04.2LTS with Gnome. I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. Thnks again, Dag-Jarle 2011/9/21 Jussi Lahtinen > Not sure everything is set up correctly, I can't find pictures from your > database. > Also I get error from variable yyy which is type control, there is no > property named picture! > So, I declared it as object for testing. > > You are using Gambas 3? > You didn't get errors? > > Jussi > PS. Next time if possible send whole project folder instead of just .src, > otherwise project configuration is missing! > > > > > > On Tue, Sep 20, 2011 at 07:10, Dag-Jarle Johansen < > dag.jarle.johansen at ...626...> wrote: > > > Hi Jussi, > > > > I get > > > > panTB (? RS!parent) > > TB1_Refresh (yyy.name) > > Button (RS!typ) > > > > What should be the correct Elements to me. > > I send you the project and a sql-dump (PHP-Admin) of the DB. > > > > Thanks in advance, > > Dag-Jarle > > > > > > > > 2011/9/19 Jussi Lahtinen > > > > > Cannot see error in this part of the code. > > > What happens if you add "Debug yyy.Name;;RS!typ" under 'Case > > "PictureBox", > > > "Button"'? > > > Does it get executed? > > > > > > Send the project with sample database if possible. > > > > > > Jussi > > > > > > > > > > > > On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen < > > > dag.jarle.johansen at ...626...> wrote: > > > > > > > Hi, > > > > > > > > I have defined > > > > > > > > PRIVATE YYY as Control > > > > > > > > and want to set some data from a Database, like this > > > > For I=0 to RS.Count -1 > > > > For Each yyy In panTB.Children > > > > If yyy.Name = RS!CtrlName Then > > > > Select Case RS!typ > > > > Case "PictureBox", "Button" > > > > yyy.Tooltip = RS!Tooltip > > > > yyy.Picture = Picture[RS!graphik] > > > > > > > > Case "TextBox" > > > > yyy.Tooltip = RS!Tooltip > > > > Case Else > > > > yyy.Text = RS!CtrlInhalt > > > > yyy.Tooltip = RS!Tooltip > > > > End Select > > > > > > > > Endif > > > > Next > > > > Next > > > > RS is Result, and the content is ok, just one record. I get NO > PICTURE > > on > > > > the Button, but as everybody knows, Buttons can have Pictures. > > > > Where is my stupid error this time? > > > > > > > > I am grateful for any help. > > > > > > > > Thanks in advance and regards, > > > > Dag-Jarle > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > > > Learn about the latest advances in developing for the > > > > BlackBerry® mobile platform with sessions, labs & more. > > > > See new tools and technologies. Register for BlackBerry® DevCon > > > today! > > > > http://p.sf.net/sfu/rim-devcon-copy1 > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > > Learn about the latest advances in developing for the > > > BlackBerry® mobile platform with sessions, labs & more. > > > See new tools and technologies. Register for BlackBerry® DevCon > > today! > > > http://p.sf.net/sfu/rim-devcon-copy1 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Sep 22 16:42:36 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Sep 2011 17:42:36 +0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: > I have not stored the pictrue in the DB, only path+name, and then load it > with yyy.Picture[..path..]. Ah, yes of course. I was bit too hurry to concentrate enough. I just saw null picture and stopped. Where is your "Icons" folder? If you place it under "Data" your code should work! Meaning cut&paste the "Icon" folder to root of project folder, if it is not there already. I did that and it works. *Benoit*, why there isn't error message when Button.Picture = Picture[sInvalidPath] fails? That works perfectly with an PictureBox created > in the IDE. I am not sure, if an object has the same properties as a > control, but I will try it out. > No no, object is same to class as type variant is to integer, float, etc. So, it holds all properties what is associated to it. Are you familiar with SkyDrive? I made a folder containing the complete > project, and have sent you an invitation on your gmail-adress. > I haven't use. Glad that you mentioned, it was in spam folder... Jussi From dag.jarle.johansen at ...626... Thu Sep 22 17:48:28 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 12:48:28 -0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Thank you, Jussi, I am very fond of your help. I will try your way. Thanks again, regards Dag-Jarle 2011/9/22 Jussi Lahtinen > > I have not stored the pictrue in the DB, only path+name, and then load it > > with yyy.Picture[..path..]. > > > Ah, yes of course. I was bit too hurry to concentrate enough. I just saw > null picture and stopped. > > Where is your "Icons" folder? If you place it under "Data" your code should > work! > Meaning cut&paste the "Icon" folder to root of project folder, if it is not > there already. > > I did that and it works. > *Benoit*, why there isn't error message when Button.Picture = > Picture[sInvalidPath] fails? > > > > That works perfectly with an PictureBox created > > in the IDE. I am not sure, if an object has the same properties as a > > control, but I will try it out. > > > > No no, object is same to class as type variant is to integer, float, etc. > So, it holds all properties what is associated to it. > > > > Are you familiar with SkyDrive? I made a folder containing the complete > > project, and have sent you an invitation on your gmail-adress. > > > > I haven't use. Glad that you mentioned, it was in spam folder... > > > Jussi > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Thu Sep 22 20:20:31 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 15:20:31 -0300 Subject: [Gambas-user] Signal 11 Message-ID: Hi, I get a signal 11 with this code-sniplet: Public Sub PBX_LC_MouseDown() FLC.Show End where PBX_LC is a picturebox and FLC is a Form. If you need more info, I will send you the project. Regards, Dag-Jarle From jussi.lahtinen at ...626... Thu Sep 22 20:57:25 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Sep 2011 21:57:25 +0300 Subject: [Gambas-user] Signal 11 In-Reply-To: References: Message-ID: Cannot reproduce, send the project. Jussi On Thu, Sep 22, 2011 at 21:20, Dag-Jarle Johansen < dag.jarle.johansen at ...626...> wrote: > Hi, I get a signal 11 with this code-sniplet: > > Public Sub PBX_LC_MouseDown() > FLC.Show > End > > where PBX_LC is a picturebox and FLC is a Form. If you need more info, I > will send you the project. > > Regards, > Dag-Jarle > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Thu Sep 22 21:02:13 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 16:02:13 -0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Hi Jussi, I have now tried out everything, and get "Picture not an object" in every situation. The path was not wrong, something else is running in red. The message poping up is: "Not an object." I have attatched a screenshot of the situation as it happens. The "NotObject" still takes the tooltip, oh wonder - lol By the way, I have sent a message about a signal 11 - the call in question calls a form, in wich I use virtual Pictureboxes too. As I programmed this, it worked fine. Now I havent used that form since several days, and it makes me think - perhaps both errors are related. It seems to me, in case of Pictureboxes, all done in the IDE works fine, all virtual Controls have a problem. BTW, I have updatet the svn and compiled a new today. I will use the IDE to get to my results, meanwhile, but it would be nice to get a solution to this. Thanks and regards, Dag-Jarle 2011/9/22 Dag-Jarle Johansen > Thank you, Jussi, > > I am very fond of your help. I will try your way. > > Thanks again, regards > Dag-Jarle > > > 2011/9/22 Jussi Lahtinen > >> > I have not stored the pictrue in the DB, only path+name, and then load >> it >> > with yyy.Picture[..path..]. >> >> >> Ah, yes of course. I was bit too hurry to concentrate enough. I just saw >> null picture and stopped. >> >> Where is your "Icons" folder? If you place it under "Data" your code >> should >> work! >> Meaning cut&paste the "Icon" folder to root of project folder, if it is >> not >> there already. >> >> I did that and it works. >> *Benoit*, why there isn't error message when Button.Picture = >> Picture[sInvalidPath] fails? >> >> >> >> That works perfectly with an PictureBox created >> > in the IDE. I am not sure, if an object has the same properties as a >> > control, but I will try it out. >> > >> >> No no, object is same to class as type variant is to integer, float, etc. >> So, it holds all properties what is associated to it. >> >> >> >> Are you familiar with SkyDrive? I made a folder containing the complete >> > project, and have sent you an invitation on your gmail-adress. >> > >> >> I haven't use. Glad that you mentioned, it was in spam folder... >> >> >> Jussi >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense. >> http://p.sf.net/sfu/splunk-d2dcopy1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 169445 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Sep 22 21:23:09 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Sep 2011 22:23:09 +0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: I'm sorry, I'm out of time until October. But I tested your code and I didn't get any errors, all worked correctly (pictures appeared into buttons). So, I think something is not correct in your system. Run these...; sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk # or whatever your source path is. sudo make clean ...and re-compile Gambas3: ( ./reconf-all && ./configure -C && make ) > compile.log 2>&1 sudo make install If still no luck, send compile.log to list and maybe someone else can help you. Jussi On Thu, Sep 22, 2011 at 22:02, Dag-Jarle Johansen < dag.jarle.johansen at ...626...> wrote: > Hi Jussi, > > I have now tried out everything, and get "Picture not an object" in every > situation. > The path was not wrong, something else is running in red. The message > poping > up is: "Not an object." I have attatched a screenshot of the situation as > it > happens. > > The "NotObject" still takes the tooltip, oh wonder - lol > > By the way, I have sent a message about a signal 11 - the call in question > calls a form, in wich I use virtual Pictureboxes too. As I programmed this, > it worked fine. Now I havent used that form since several days, and it > makes > me think - perhaps both errors are related. It seems to me, in case of > Pictureboxes, all done in the IDE works fine, all virtual Controls have a > problem. BTW, I have updatet the svn and compiled a new today. I will use > the IDE to get to my results, meanwhile, but it would be nice to get a > solution to this. > > > Thanks and regards, Dag-Jarle > > 2011/9/22 Dag-Jarle Johansen > > > Thank you, Jussi, > > > > I am very fond of your help. I will try your way. > > > > Thanks again, regards > > Dag-Jarle > > > > > > 2011/9/22 Jussi Lahtinen > > > >> > I have not stored the pictrue in the DB, only path+name, and then load > >> it > >> > with yyy.Picture[..path..]. > >> > >> > >> Ah, yes of course. I was bit too hurry to concentrate enough. I just saw > >> null picture and stopped. > >> > >> Where is your "Icons" folder? If you place it under "Data" your code > >> should > >> work! > >> Meaning cut&paste the "Icon" folder to root of project folder, if it is > >> not > >> there already. > >> > >> I did that and it works. > >> *Benoit*, why there isn't error message when Button.Picture = > >> Picture[sInvalidPath] fails? > >> > >> > >> > >> That works perfectly with an PictureBox created > >> > in the IDE. I am not sure, if an object has the same properties as a > >> > control, but I will try it out. > >> > > >> > >> No no, object is same to class as type variant is to integer, float, > etc. > >> So, it holds all properties what is associated to it. > >> > >> > >> > >> Are you familiar with SkyDrive? I made a folder containing the complete > >> > project, and have sent you an invitation on your gmail-adress. > >> > > >> > >> I haven't use. Glad that you mentioned, it was in spam folder... > >> > >> > >> Jussi > >> > >> > ------------------------------------------------------------------------------ > >> All the data continuously generated in your IT infrastructure contains a > >> definitive record of customers, application performance, security > >> threats, fraudulent activity and more. Splunk takes this data and makes > >> sense of it. Business sense. IT sense. Common sense. > >> http://p.sf.net/sfu/splunk-d2dcopy1 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dag.jarle.johansen at ...626... Thu Sep 22 21:37:28 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 16:37:28 -0300 Subject: [Gambas-user] A question to a control In-Reply-To: References: Message-ID: Thanks for your great help, Jussi. I will mail in the group next time. Have a nice time. Regards, Dag-Jarle 2011/9/22 Jussi Lahtinen > I'm sorry, I'm out of time until October. > But I tested your code and I didn't get any errors, all worked correctly > (pictures appeared into buttons). > So, I think something is not correct in your system. > > Run these...; > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > cd ~/trunk # or whatever your source path is. > sudo make clean > > ...and re-compile Gambas3: > ( ./reconf-all && ./configure -C && make ) > compile.log 2>&1 > sudo make install > > If still no luck, send compile.log to list and maybe someone else can help > you. > > > Jussi > > > > > On Thu, Sep 22, 2011 at 22:02, Dag-Jarle Johansen < > dag.jarle.johansen at ...626...> wrote: > > > Hi Jussi, > > > > I have now tried out everything, and get "Picture not an object" in every > > situation. > > The path was not wrong, something else is running in red. The message > > poping > > up is: "Not an object." I have attatched a screenshot of the situation as > > it > > happens. > > > > The "NotObject" still takes the tooltip, oh wonder - lol > > > > By the way, I have sent a message about a signal 11 - the call in > question > > calls a form, in wich I use virtual Pictureboxes too. As I programmed > this, > > it worked fine. Now I havent used that form since several days, and it > > makes > > me think - perhaps both errors are related. It seems to me, in case of > > Pictureboxes, all done in the IDE works fine, all virtual Controls have a > > problem. BTW, I have updatet the svn and compiled a new today. I will use > > the IDE to get to my results, meanwhile, but it would be nice to get a > > solution to this. > > > > > > Thanks and regards, Dag-Jarle > > > > 2011/9/22 Dag-Jarle Johansen > > > > > Thank you, Jussi, > > > > > > I am very fond of your help. I will try your way. > > > > > > Thanks again, regards > > > Dag-Jarle > > > > > > > > > 2011/9/22 Jussi Lahtinen > > > > > >> > I have not stored the pictrue in the DB, only path+name, and then > load > > >> it > > >> > with yyy.Picture[..path..]. > > >> > > >> > > >> Ah, yes of course. I was bit too hurry to concentrate enough. I just > saw > > >> null picture and stopped. > > >> > > >> Where is your "Icons" folder? If you place it under "Data" your code > > >> should > > >> work! > > >> Meaning cut&paste the "Icon" folder to root of project folder, if it > is > > >> not > > >> there already. > > >> > > >> I did that and it works. > > >> *Benoit*, why there isn't error message when Button.Picture = > > >> Picture[sInvalidPath] fails? > > >> > > >> > > >> > > >> That works perfectly with an PictureBox created > > >> > in the IDE. I am not sure, if an object has the same properties as a > > >> > control, but I will try it out. > > >> > > > >> > > >> No no, object is same to class as type variant is to integer, float, > > etc. > > >> So, it holds all properties what is associated to it. > > >> > > >> > > >> > > >> Are you familiar with SkyDrive? I made a folder containing the > complete > > >> > project, and have sent you an invitation on your gmail-adress. > > >> > > > >> > > >> I haven't use. Glad that you mentioned, it was in spam folder... > > >> > > >> > > >> Jussi > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> All the data continuously generated in your IT infrastructure contains > a > > >> definitive record of customers, application performance, security > > >> threats, fraudulent activity and more. Splunk takes this data and > makes > > >> sense of it. Business sense. IT sense. Common sense. > > >> http://p.sf.net/sfu/splunk-d2dcopy1 > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Sep 22 21:45:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 22 Sep 2011 21:45:10 +0200 Subject: [Gambas-user] Signal 11 In-Reply-To: References: Message-ID: <201109222145.10530.gambas@...1...> > Hi, I get a signal 11 with this code-sniplet: > > Public Sub PBX_LC_MouseDown() > FLC.Show > End > > where PBX_LC is a picturebox and FLC is a Form. If you need more info, I > will send you the project. > > Regards, > Dag-Jarle I need a project and I need you to explain me exactly how to reproduce the crash. And I need the Gambas version, and information about your system. Regards, -- Beno?t Minisini From dag.jarle.johansen at ...626... Thu Sep 22 22:54:15 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 17:54:15 -0300 Subject: [Gambas-user] Signal 11 In-Reply-To: <201109222145.10530.gambas@...1...> References: <201109222145.10530.gambas@...1...> Message-ID: If I only could, too big for the mailinglist, it tells me 2011/9/22 Beno?t Minisini > > Hi, I get a signal 11 with this code-sniplet: > > > > Public Sub PBX_LC_MouseDown() > > FLC.Show > > End > > > > where PBX_LC is a picturebox and FLC is a Form. If you need more info, I > > will send you the project. > > > > Regards, > > Dag-Jarle > > I need a project and I need you to explain me exactly how to reproduce the > crash. > > And I need the Gambas version, and information about your system. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Thu Sep 22 23:07:31 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 22 Sep 2011 18:07:31 -0300 Subject: [Gambas-user] Signal 11 In-Reply-To: <201109222145.10530.gambas@...1...> References: <201109222145.10530.gambas@...1...> Message-ID: Gambas 3, rev. 4144 Ubuntu 10.04.2.LTS, Gnome Nothing particular installed: XAMPP is the single 3.party SW, any other SW comes from the APT PC is AMD Athlon, 2 disks 500/250 GB, Win XP on one Partition, 1GB Mem 2011/9/22 Beno?t Minisini > > Hi, I get a signal 11 with this code-sniplet: > > > > Public Sub PBX_LC_MouseDown() > > FLC.Show > > End > > > > where PBX_LC is a picturebox and FLC is a Form. If you need more info, I > > will send you the project. > > > > Regards, > > Dag-Jarle > > I need a project and I need you to explain me exactly how to reproduce the > crash. > > And I need the Gambas version, and information about your system. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Sep 23 00:05:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 23 Sep 2011 00:05:50 +0200 Subject: [Gambas-user] New Subscriber -- Would like to help with documentation in English In-Reply-To: References: Message-ID: <201109230005.50585.gambas@...1...> > Hello, > > I ran across Gamabs 4 or 5 years ago and then I messed with it a bit and > decided it wasn't quite up to my needs. So I passed on it then. I ran > across Gambas just recently when I upgraded to Unubuntu 10 and found it in > the software repository. What you found is Gambas 2. Now we are almost near the release of Gambas 3. > I installed it and was pleased to find that it > has matured nicely. I am an experienced programmer of 25+ years and will > be learning Gambas as quickly as possible. When I looked at the > documentation I found it lacking and much of it has poor grammar that > makes it hard to read. I suspect that it was automatically translated? Kf Kf Kf... What? Hem, no, I wrote all the pages I wrote. For the others, I don't know. > > I would like to offer my hand at improving the Gambas English > documentation. > > > Sincerely, > > Randall Morgan If you want to modifiy the wiki, you need a wiki account. I will grant you one if you tell me in private mail which password you want. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Sep 23 03:53:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 23 Sep 2011 01:53:51 +0000 Subject: [Gambas-user] Issue 107 in gambas: gbx3 cant find library "ERROR: #27" Message-ID: <0-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 107 by adamn... at ...626...: gbx3 cant find library "ERROR: #27" http://code.google.com/p/gambas/issues/detail?id=107 1) Describe the problem. I can't run compiled projects that use gambas components. They work in the IDE. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): TRUNK rev 4144 [System] OperatingSystem=Linux KernelRelease=2.6.38.8-pclos1.bfs Architecture=i686 Memory=1553368 kB DistributionVendor=Paddys-Hill DistributionRelease="Paddys-Hill dot Net (r0.1)" Desktop=LXDE [Gambas 2] Version=2.23.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.4 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.3 GTK+=libgtk-x11-2.0.so.0.2400.4 3) Provide a little project that reproduces the bug or the crash. Two projects attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Compile dummylib as a component. Run dummylib in IDE, should print "Hello world" on console. Compile testdummy as an executable (may need to set the library for dummylib) Run testdummy in IDE, should print "Hello world" on console. In terminal a) /gbx3 Prints "Hello world" b) /gbx3 Fails with "ERROR: #27: Cannot load component 'dummylib.gambas': cannot find library" Attachments: dummylib-0.0.2.tar.gz 5.2 KB testdummy-0.0.3.tar.gz 4.8 KB From gambas at ...2524... Fri Sep 23 04:18:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 23 Sep 2011 02:18:11 +0000 Subject: [Gambas-user] Issue 107 in gambas: gbx3 cant find library "ERROR: #27" In-Reply-To: <0-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-TRUNK Comment #1 on issue 107 by benoit.m... at ...626...: gbx3 cant find library "ERROR: #27" http://code.google.com/p/gambas/issues/detail?id=107 You must understand the difference between "components" and "libraries". A gambas executable can be a component or a library. It will become a component only if it is merged with the Gambas sources. Otherwise you can only use it as a library, which what you done. Here is the mail I wrote last year to explain how it works: ... You have a new tab named "libraries" in the IDE project property dialog. In that tab, you can define a list of gambas executables (*.gambas files) that will be used as libraries. When adding a library to a project, the IDE will extract from it all the information needed for the automatic completion, as for the normal components. These libraries will be loaded at program startup by the interpreter exactly like any component written in Gambas. When your project in run in debugging mode, i.e. from the IDE, the libraries are located by using the absolute path specified in the project property dialog. But when running the project normally, the library is searched in the following directory only: - The same directory as the project. - /usr/bin - /bin So, a Gambas executable that must act as a library for another program must be installed in /bin, /usr/bin, or in the same directory as the program using it. ... So you can see why the library is found inside the IDE, but not when running it directly from a terminal. In other words, you must store your library in the same directory as your main executable. (Or in /bin or /usr/bin if it should be system-wide, a bit like components). I didn't document that on the wiki. Mea culpa! From gambas at ...2524... Fri Sep 23 04:37:48 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 23 Sep 2011 02:37:48 +0000 Subject: [Gambas-user] Issue 107 in gambas: gbx3 cant find library "ERROR: #27" In-Reply-To: <1-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> <0-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4387580097057219456-gambas=googlecode.com@...2524...> Comment #2 on issue 107 by adamn... at ...626...: gbx3 cant find library "ERROR: #27" http://code.google.com/p/gambas/issues/detail?id=107 OK! Cool. I must have missed that mail (only been using GB3 since RC2). May have some questions which I'll put in the mailing list. Bruce From dag.jarle.johansen at ...626... Fri Sep 23 20:15:40 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Fri, 23 Sep 2011 15:15:40 -0300 Subject: [Gambas-user] Arrays of controls In-Reply-To: References: <201108281039.55849.gambas@...1...> Message-ID: Hi Benoit, first, I was not very amused about beeing rejected with my project allthough you had asked for it, But forgotten, Today I have installed Ubuntu 10.04 from the scratch, even so XAMPP and Gambas 3 SVN, ver 4144. I am sorry to say, I still get a signal 11 when trying to accessing a form. As is, it is useless to me, I need a stable software, so I will just take a jump back to Gambas 2. Less possibilities and more handwork, but I am making a demo-project, and it just has to work. Stay cool! Greetings, Dag-Jarle From gambas at ...1... Fri Sep 23 20:22:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 23 Sep 2011 20:22:49 +0200 Subject: [Gambas-user] Arrays of controls In-Reply-To: References: Message-ID: <201109232022.49892.gambas@...1...> > Hi Benoit, > > first, I was not very amused about beeing rejected with my project > allthough you had asked for it, I don't know why it prints "no reason". This is an automatic mailing-list rule that rejects all mails greater than 256K. There is a limit because there is 800 people on the mailing-list, and all will receive the same mail, which makes the traffic heavy for sourceforge. You must send your project to me, not to the mailing-list. -- Beno?t Minisini From dag.jarle.johansen at ...626... Fri Sep 23 21:00:18 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Fri, 23 Sep 2011 16:00:18 -0300 Subject: [Gambas-user] Arrays of controls In-Reply-To: <201109232022.49892.gambas@...1...> References: <201109232022.49892.gambas@...1...> Message-ID: Ok, that makes it understandable and has sense. Sorry for that, loose nerves sometimes. I will send you the packages from yesterday, nothing has changed since then. Regards, Dag-Jarle 2011/9/23 Beno?t Minisini > > Hi Benoit, > > > > first, I was not very amused about beeing rejected with my project > > allthough you had asked for it, > > I don't know why it prints "no reason". This is an automatic mailing-list > rule > that rejects all mails greater than 256K. > > There is a limit because there is 800 people on the mailing-list, and all > will > receive the same mail, which makes the traffic heavy for sourceforge. > > You must send your project to me, not to the mailing-list. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Fri Sep 23 23:06:04 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 00:06:04 +0300 Subject: [Gambas-user] Gambas3 @ Mint LMDE In-Reply-To: <1316601622.2837.301.camel@...2150...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> <1316599630.5712.9.camel@...2688...> <1316600775.10851.5.camel@...2689...> <1316601622.2837.301.camel@...2150...> Message-ID: <1316811964.25137.2.camel@...2689...> ok, i made a symbolic link to /usr/lib with sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.la /usr/lib/libfreetype.la and i compiled successfully the svn. So, what was this? a bug in gb.sdl or a Mint misconfiguration? On Wed, 2011-09-21 at 12:40 +0200, Caveat wrote: > make > make_result.txt 2>&1 > gzip make_result.txt > > Send make_result.txt.gz > > Kind regards, > Caveat > > On Wed, 2011-09-21 at 13:26 +0300, Demosthenes Koptsis wrote: > > yes it is 64bit machine. > > > > ## --------- ## > > ## Platform. ## > > ## --------- ## > > > > hostname = mint-desktop > > uname -m = x86_64 > > uname -r = 2.6.39-2-amd64 > > uname -s = Linux > > uname -v = #1 SMP Tue Jul 5 02:51:22 UTC 2011 > > > > > > i dont know how back to go to copy the output. > > i hope this is ok. > > > > > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" > > -MT gb_sdl_la-Cwindow.lo -MD -MP -MF .deps/gb_sdl_la-Cwindow.Tpo -c -o > > gb_sdl_la-Cwindow.lo `test -f 'Cwindow.cpp' || echo './'`Cwindow.cpp > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ > > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= > > \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-Cwindow.lo -MD -MP > > -MF .deps/gb_sdl_la-Cwindow.Tpo -c Cwindow.cpp -fPIC -DPIC > > -o .libs/gb_sdl_la-Cwindow.o > > mv -f .deps/gb_sdl_la-Cwindow.Tpo .deps/gb_sdl_la-Cwindow.Plo > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > -I.. -I/usr/include/SDL/ -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl\" > > -MT gb_sdl_la-main.lo -MD -MP -MF .deps/gb_sdl_la-main.Tpo -c -o > > gb_sdl_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL/ > > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -DDATA_DIR= > > \"/usr/local/share/gambas3/gb.sdl\" -MT gb_sdl_la-main.lo -MD -MP > > -MF .deps/gb_sdl_la-main.Tpo -c main.cpp -fPIC -DPIC > > -o .libs/gb_sdl_la-main.o > > mv -f .deps/gb_sdl_la-main.Tpo .deps/gb_sdl_la-main.Plo > > /bin/bash ../libtool --tag=CXX --mode=link g++ -pipe -Wall > > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > > -Os -fno-omit-frame-pointer -DDATA_DIR=\"/usr/local/share/gambas3/gb.sdl > > \" -module -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -o gb.sdl.la > > -rpath /usr/local/lib/gambas3 gb_sdl_la-SDLapp.lo gb_sdl_la-SDLcore.lo > > gb_sdl_la-SDLdebug.lo gb_sdl_la-SDLerror.lo gb_sdl_la-SDLfont.lo > > gb_sdl_la-SDLgfx.lo gb_sdl_la-SDLcursor.lo gb_sdl_la-SDLosrender.lo > > gb_sdl_la-SDLsurface.lo gb_sdl_la-SDLtexture.lo gb_sdl_la-SDLwindow.lo > > gb_sdl_la-Cconst.lo gb_sdl_la-Cdesktop.lo gb_sdl_la-Cdraw.lo > > gb_sdl_la-Cfont.lo gb_sdl_la-Cimage.lo gb_sdl_la-Cjoystick.lo > > gb_sdl_la-Ckey.lo gb_sdl_la-Cmouse.lo gb_sdl_la-Cwindow.lo > > gb_sdl_la-main.lo -lSM -lICE -lX11 -lXext -lSDL_ttf -lGLEW -lXcursor > > libtool: link: g++ -fPIC -DPIC -shared > > -nostdlib /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o .libs/gb_sdl_la-SDLapp.o .libs/gb_sdl_la-SDLcore.o .libs/gb_sdl_la-SDLdebug.o .libs/gb_sdl_la-SDLerror.o .libs/gb_sdl_la-SDLfont.o .libs/gb_sdl_la-SDLgfx.o .libs/gb_sdl_la-SDLcursor.o .libs/gb_sdl_la-SDLosrender.o .libs/gb_sdl_la-SDLsurface.o .libs/gb_sdl_la-SDLtexture.o .libs/gb_sdl_la-SDLwindow.o .libs/gb_sdl_la-Cconst.o .libs/gb_sdl_la-Cdesktop.o .libs/gb_sdl_la-Cdraw.o .libs/gb_sdl_la-Cfont.o .libs/gb_sdl_la-Cimage.o .libs/gb_sdl_la-Cjoystick.o .libs/gb_sdl_la-Ckey.o .libs/gb_sdl_la-Cmouse.o .libs/gb_sdl_la-Cwindow.o .libs/gb_sdl_la-main.o -L/usr/lib64/ -L/usr/lib64/x86_64-linux-gnu/ -lSM -lICE -lX11 -lXext /usr/lib/libSDL_ttf.so -lGLEW -lXcursor -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crtn.o -Os -Wl,-soname -Wl,gb.sdl.so.0 -o .libs/gb.sdl.so.0.0.0 > > libtool: link: (cd ".libs" && rm -f "gb.sdl.so.0" && ln -s > > "gb.sdl.so.0.0.0" "gb.sdl.so.0") > > libtool: link: (cd ".libs" && rm -f "gb.sdl.so" && ln -s > > "gb.sdl.so.0.0.0" "gb.sdl.so") > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > > make[4]: *** [gb.sdl.la] Error 1 > > make[4]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory > > `/home/user/Downloads/Gambas/gambas3-svn4143/gb.sdl' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/user/Downloads/Gambas/gambas3-svn4143' > > make: *** [all] Error 2 > > > > > > > > > > > > On Wed, 2011-09-21 at 19:37 +0930, Bruce Bruen wrote: > > > On Wed, 2011-09-21 at 12:19 +0300, Demosthenes Koptsis wrote: > > > > > > > before i run locate i did an updatedb > > > > > > > > ok here is the ls > > > > > > > > ls -al /usr/lib/x86_64-linux-gnu/libfreetype* > > > > > > > > -rw-r--r-- 1 root root 862114 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > > > > > -rw-r--r-- 1 root root 892 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > > > > > lrwxrwxrwx 1 root root 20 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so -> libfreetype.so.6.6.2 > > > > > > > > lrwxrwxrwx 1 root root 20 Sep 20 > > > > 16:45 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 > > > > > > > > -rw-r--r-- 1 root root 628440 Jun 23 > > > > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > > > > > > > > > > > > On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > > > > > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > > > > > > > > > > > i did a > > > > > > locate libfreetype > > > > > > > > > > > > and yes i think i ahve > > > > > > > > > > > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.a > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.la > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6 > > > > > > /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > > > /usr/lib32/libfreetype.so.6 > > > > > > /usr/lib32/libfreetype.so.6.6.0 > > > > > > > > > > > > > > > > > (Takes deep breath) > > > > > > OK, so I presume that there is no libfreetype files or links in /usr/lib > > > itself? > > > > > > But you do appear to have > > > 1) the full set of 64 bit library files and > > > 2) a different version of the library executable in /usr/lib32 > > > (probably /usr/lib32/libfreetype.so.6 is a link > > > to /usr/lib/libfreetype.so.6.0) > > > > > > Is this a 64bit machine? If so you can add links in /usr/lib to > > > the /usr/lib/x86_64-linux-gnu files for libfreetype.so.6 and > > > libfreetype.la but if not then you are going to have to find the > > > correct .la file for the /usr/lib32 version and then link to them. > > > > > > I don't know where in debian to find the lib32 versions. > > > > > > hth > > > Bruce > > > ------------------------------------------------------------------------------ > > > All the data continuously generated in your IT infrastructure contains a > > > definitive record of customers, application performance, security > > > threats, fraudulent activity and more. Splunk takes this data and makes > > > sense of it. Business sense. IT sense. Common sense. > > > http://p.sf.net/sfu/splunk-d2dcopy1 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tobiasboe1 at ...20... Sat Sep 24 00:14:50 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 00:14:50 +0200 Subject: [Gambas-user] Help with RegExp In-Reply-To: <1316811964.25137.2.camel@...2689...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> <1316599630.5712.9.camel@...2688...> <1316600775.10851.5.camel@...2689...> <1316601622.2837.301.camel@...2150...> <1316811964.25137.2.camel@...2689...> Message-ID: <4E7D04DA.2080506@...20...> hi, i have a problem with regular expressions: i'm not very good in using them. i want to determine the comment string in a gambas comment with gb.pcre and been sitting down for 3 hours now, totally frustrated... i thought, i have to search for the first ' apostrophe from the left which isn't between "". i have experimented with the ugliest things but nothing worked properly. i used these lines to test: Print "'" '"'" Print "text" 'comment and the line of RegExp.Compile(???) itself of course, they should give "'" comment (nothing) i got a solution that matched the first two ones correctly but no chance for the regexp itself in line 3 (i always got something after the apostrophe in the regexp)... i didn't get very far without getting wrong results, so i think there's no need to post my tries i would be very glad if someone more experienced could help me. regards, tobi From bbruen at ...2308... Sat Sep 24 01:10:53 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 24 Sep 2011 08:40:53 +0930 Subject: [Gambas-user] Help with RegExp In-Reply-To: <4E7D04DA.2080506@...20...> References: <1316583758.11806.4.camel@...2689...> <1316586310.16869.6.camel@...2688...> <1316593275.11806.9.camel@...2689...> <1316594390.16869.8.camel@...2688...> <1316596793.1991.1.camel@...2689...> <1316599630.5712.9.camel@...2688...> <1316600775.10851.5.camel@...2689...> <1316601622.2837.301.camel@...2150...> <1316811964.25137.2.camel@...2689...> <4E7D04DA.2080506@...20...> Message-ID: <1316819453.20128.3.camel@...2688...> On Sat, 2011-09-24 at 00:14 +0200, tobias wrote: > hi, > > i have a problem with regular expressions: i'm not very good in using them. > i want to determine the comment string in a gambas comment with gb.pcre > and been sitting down for 3 hours now, totally frustrated... > i thought, i have to search for the first ' apostrophe from the left > which isn't between "". i have experimented with the ugliest things but > nothing worked properly. > i used these lines to test: > > Print "'" '"'" > Print "text" 'comment > and the line of RegExp.Compile(???) itself > > of course, they should give > "'" > comment > (nothing) > > i got a solution that matched the first two ones correctly but no chance > for the regexp itself in line 3 (i always got something after the > apostrophe in the regexp)... > > i didn't get very far without getting wrong results, so i think there's > no need to post my tries > i would be very glad if someone more experienced could help me. > > regards, > tobi > I'm not sure whether you are trying to learn regexp patterns or parse a gambas sourcecode line, but if the second then this is how I do it. ' Gambas module file Public Sub Main() Dim sSourceCode As String ' The original source line Dim sCode As String ' The part of the source line that is code Dim sComment As String ' The part of the source line that is comment Dim aComment As New String[] sSourceCode = " While surname<>\"O'Reilly\" or surname<>\"O'Malley\" Or surname <> \"O'Reilly-O'Malley\" '' Loop around looking for the irishman called \"O'Reilly\", \"O'Malley\" or \"O'Reilly-O'Malley\"" Print "Original===========" Print sSourceCode aComment = Split(sSourceCode, "'", "\"", False, True) Print "Parsed===========" Print aComment.Join("\n") sCode = Trim(aComment[0]) aComment.Delete(0) sComment = Trim(aComment.Join("'")) Print "Code part===========" Print sCode Print "Comment part===========" Print sComment End regards Bruce From gambas at ...1... Sat Sep 24 01:16:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 24 Sep 2011 01:16:51 +0200 Subject: [Gambas-user] Help with RegExp In-Reply-To: <1316819453.20128.3.camel@...2688...> References: <1316583758.11806.4.camel@...2689...> <4E7D04DA.2080506@...20...> <1316819453.20128.3.camel@...2688...> Message-ID: <201109240116.51273.gambas@...1...> > On Sat, 2011-09-24 at 00:14 +0200, tobias wrote: > > hi, > > > > i have a problem with regular expressions: i'm not very good in using > > them. i want to determine the comment string in a gambas comment with > > gb.pcre and been sitting down for 3 hours now, totally frustrated... > > i thought, i have to search for the first ' apostrophe from the left > > which isn't between "". i have experimented with the ugliest things but > > nothing worked properly. > > i used these lines to test: > > > > Print "'" '"'" > > Print "text" 'comment > > and the line of RegExp.Compile(???) itself > > > > of course, they should give > > "'" > > comment > > (nothing) > > > > i got a solution that matched the first two ones correctly but no chance > > for the regexp itself in line 3 (i always got something after the > > apostrophe in the regexp)... > > > > i didn't get very far without getting wrong results, so i think there's > > no need to post my tries > > i would be very glad if someone more experienced could help me. > > > > regards, > > tobi > > I'm not sure whether you are trying to learn regexp patterns or parse a > gambas sourcecode line, but if the second then this is how I do it. > > > ' Gambas module file > > Public Sub Main() > Dim sSourceCode As String ' The original source line > Dim sCode As String ' The part of the source line that is code > Dim sComment As String ' The part of the source line that is comment > Dim aComment As New String[] > > sSourceCode = " While surname<>\"O'Reilly\" or surname<>\"O'Malley\" Or > surname <> \"O'Reilly-O'Malley\" '' Loop around looking for the > irishman called \"O'Reilly\", \"O'Malley\" or \"O'Reilly-O'Malley\"" > > Print "Original===========" > Print sSourceCode > > aComment = Split(sSourceCode, "'", "\"", False, True) > > Print "Parsed===========" > Print aComment.Join("\n") > > sCode = Trim(aComment[0]) > aComment.Delete(0) > sComment = Trim(aComment.Join("'")) > > Print "Code part===========" > Print sCode > Print "Comment part===========" > Print sComment > > End > > > regards > Bruce > Otherwise there is a Gambas syntax analyzer in the gb.eval component if you need... -- Beno?t Minisini From bbruen at ...2308... Sat Sep 24 01:53:20 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 24 Sep 2011 09:23:20 +0930 Subject: [Gambas-user] Help with RegExp In-Reply-To: <201109240116.51273.gambas@...1...> References: <1316583758.11806.4.camel@...2689...> <4E7D04DA.2080506@...20...> <1316819453.20128.3.camel@...2688...> <201109240116.51273.gambas@...1...> Message-ID: <1316822000.20128.5.camel@...2688...> On Sat, 2011-09-24 at 01:16 +0200, Beno?t Minisini wrote: > Otherwise there is a Gambas syntax analyzer in the gb.eval component if you > need... > What!!!???!!!! You mean all this code I've written to reverse engineer a class into an XMI file already ..... :-) Oh, wait. The eval stuff only works on a single line, doesn't it? Bruce From herberthguzman at ...626... Sat Sep 24 08:48:40 2011 From: herberthguzman at ...626... (herberth guzman) Date: Sat, 24 Sep 2011 00:48:40 -0600 Subject: [Gambas-user] gb.html Message-ID: Me gustaria probar el componente gb.html para testear ya que tengo que hacer un programa en ambiente web y me gustaria ver como funsiona dicho componente. From demosthenesk at ...626... Sat Sep 24 13:34:44 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 14:34:44 +0300 Subject: [Gambas-user] libstdc++.so.6: undefined symbol Message-ID: <1316864084.26109.5.camel@...2689...> i get this error when i just run and close the FMain, Project139: symbol lookup error: /usr/lib/x86_64-linux-gnu/libstdc ++.so.6: undefined symbol: _ZNSt14error_categoryD2Ev, version GLIBCXX_3.4.15 Linux Mint Debian Edition. Linux mint-desktop 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 GNU/Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: Project139.tar.gz Type: application/x-compressed-tar Size: 5636 bytes Desc: not available URL: From gambas at ...1... Sat Sep 24 14:23:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 24 Sep 2011 14:23:48 +0200 Subject: [Gambas-user] Gambas 3 RC4 Message-ID: <201109241423.48594.gambas@...1...> Hi, Of course, many people found annoying bugs since RC3. But now things became a bit quiet, so I decided to make the fourth release candidate of Gambas 3. If nobody find big bugs again, it will become the final release - but I know you :-) As usual, you can get all the details about this release from the web site. And of course, do report about Gambas 3 packaging on your distribution! Thanks in advance, Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sat Sep 24 14:26:24 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 14:26:24 +0200 Subject: [Gambas-user] Help with RegExp In-Reply-To: <201109240116.51273.gambas@...1...> References: <1316583758.11806.4.camel@...2689...> <4E7D04DA.2080506@...20...> <1316819453.20128.3.camel@...2688...> <201109240116.51273.gambas@...1...> Message-ID: <4E7DCC70.3010202@...20...> On 24.09.2011 01:16, Beno?t Minisini wrote: >> I'm not sure whether you are trying to learn regexp patterns or parse a >> gambas sourcecode line, but if the second then this is how I do it. >> >> >> ' Gambas module file >> >> Public Sub Main() >> Dim sSourceCode As String ' The original source line >> Dim sCode As String ' The part of the source line that is code >> Dim sComment As String ' The part of the source line that is comment >> Dim aComment As New String[] >> >> sSourceCode = " While surname<>\"O'Reilly\" or surname<>\"O'Malley\" Or >> surname<> \"O'Reilly-O'Malley\" '' Loop around looking for the >> irishman called \"O'Reilly\", \"O'Malley\" or \"O'Reilly-O'Malley\"" >> >> Print "Original===========" >> Print sSourceCode >> >> aComment = Split(sSourceCode, "'", "\"", False, True) >> >> Print "Parsed===========" >> Print aComment.Join("\n") >> >> sCode = Trim(aComment[0]) >> aComment.Delete(0) >> sComment = Trim(aComment.Join("'")) >> >> Print "Code part===========" >> Print sCode >> Print "Comment part===========" >> Print sComment >> >> End >> >> >> regards >> Bruce >> > Otherwise there is a Gambas syntax analyzer in the gb.eval component if you > need... > ok, i think i can do something from that idea.. i'm writing a tool to tidy up source code for someone writing a book about gambas. the source code examples have to be standardised, sigh... for the most of the indentation stuff, my regexp knowledge is enough, but finding the beginning of a comment is too much for me. i'll do it with string functions. (comments have to be like that: "[normal indentation][space]['][space][text]" thanks, tobi From jscops at ...11... Sat Sep 24 15:31:55 2011 From: jscops at ...11... (Jack) Date: Sat, 24 Sep 2011 15:31:55 +0200 Subject: [Gambas-user] Gambas 3 RC4 In-Reply-To: <201109241423.48594.gambas@...1...> References: <201109241423.48594.gambas@...1...> Message-ID: <4E7DDBCB.2070709@...11...> Le 24/09/2011 14:23, Beno?t Minisini a ?crit : > Hi, > > Of course, many people found annoying bugs since RC3. But now things became a > bit quiet, so I decided to make the fourth release candidate of Gambas 3. > > If nobody find big bugs again, it will become the final release - but I know > you :-) > > As usual, you can get all the details about this release from the web site. > > And of course, do report about Gambas 3 packaging on your distribution! > > Thanks in advance, > > Regards, > Thank you Benoit, works fine on my Ubuntu 10.10 Jacky -- Cordialement. Jacky Tripoteau From demosthenesk at ...626... Sat Sep 24 17:12:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 18:12:48 +0300 Subject: [Gambas-user] Eval() and gb.eval Message-ID: <1316877168.5420.5.camel@...2689...> i have the next lines to make an gb.eval example -------------------------------- Public Sub btnEval_Click() Dim hExpression As Expression hExpression = New Expression hExpression.Text = txtEval.Text txtResult.Text &= CStr(hExpression.Value) & gb.NewLine Print Eval(txtEval.Text) Catch txtResult.Text &= "Error code:" & Error.Code & ", " & Error.Text & gb.NewLine Error.Clear End -------------------------------- with line Print Eval(txtEval.Text) i get True for "2>1" with line txtResult.Text &= CStr(hExpression.Value) & gb.NewLine i get the first letter "T" for true nothing for False is this the desired output? i expected True / False as EVAL() gambas3-svn4145 From tobiasboe1 at ...20... Sat Sep 24 17:44:16 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 17:44:16 +0200 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <1316877168.5420.5.camel@...2689...> References: <1316877168.5420.5.camel@...2689...> Message-ID: <4E7DFAD0.80705@...20...> On 24.09.2011 17:12, Demosthenes Koptsis wrote: > i have the next lines to make an gb.eval example > > -------------------------------- > Public Sub btnEval_Click() > > Dim hExpression As Expression > hExpression = New Expression > > hExpression.Text = txtEval.Text > txtResult.Text&= CStr(hExpression.Value)& gb.NewLine > > Print Eval(txtEval.Text) > > Catch > txtResult.Text&= "Error code:"& Error.Code& ", "& Error.Text& > gb.NewLine > Error.Clear > > End > -------------------------------- > > > with line > Print Eval(txtEval.Text) > > i get True for "2>1" > > with line > txtResult.Text&= CStr(hExpression.Value)& gb.NewLine > > i get the first letter "T" for true > nothing for False > > is this the desired output? i expected True / False as EVAL() > i don't know, for me, it's the desired output. Print takes an expression and prints it. CStr() converts an expression to a string. and the string representation of True is "T" while False is Null From vuott at ...325... Sat Sep 24 18:05:19 2011 From: vuott at ...325... (Ru Vuott) Date: Sat, 24 Sep 2011 17:05:19 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... In-Reply-To: <201109182324.44019.gambas@...1...> Message-ID: <1316880319.79936.YahooMailClassic@...2691...> Hello Beno?t, well, I tried your "trick" on using file descriptors. It seems it's OK ! But I verify a problem: when the midi-program runs, and midi events aren't sent, the use of one CPU springs up to 100% !!! If I press on a button or other object on the Form, the use of that CPU decreases to lower values. It is not important if these buttons activate some functions or commands: if I want decrease that 100% value of CPU, it enough I press a button for more times. regards Paolo --- Dom 18/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS > A: "mailing list for gambas users" > Data: Domenica 18 settembre 2011, 23:24 > > Hello, > > > > about your new suggestion: > > > > 1) like I said, now I can open the fd in: > /proc/self/fd/ > > > > e.g.: hFile = Open "/proc/self/fd/20" For read watch > > > > some fd (like 3,4,5,6, 16 and 20) gives data, others > not. > > > > So, I don't understand what's the use of the trick. > > > > 2) how have I to use it ?? maybe: > > > > hFile = Open "/proc/self/fd/.1" For read watch > > > > 3) I use Gambas 3, where can I download the revision > #4134 ? > > > > Thanks > > Paolo > > > > > > P.S.: Beno?t ! Is not it better if you add that > possibility to personalize > > the message loop ??? > > > > Forget the "/proc/self/fd" thing. The new solution is the > best I found without > breaking compatibility. Maybe there will be another > solution after Gambas 3. > > I suggest you read the "subversion howto" on gambasdoc.org > to learn how to use > subversion to get the latest development release. > > You ask how to use it. Did you read my mail? there is an > example in it. For > watching the file, just add the WATCH keyword. So: > > ??? Dim iAlsaFileDescriptor As Integer > ??? Dim hFile As File > > ??? hFile = Open "." & > CStr(iAlsaFileDescriptor) For Read Watch > > ???... > > ??? Sub File_Read() > ??? ??? ' Get the data > received through hFile > ??? End > > To stop the watching, just close "hFile". The original ALSA > file descriptor > will not be closed. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sat Sep 24 18:47:38 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 19:47:38 +0300 Subject: [Gambas-user] ShowLineNumbers Editor Message-ID: <1316882858.10320.1.camel@...2689...> which is the property to set ShowLineNumbers to show line numbers for Editor control? From demosthenesk at ...626... Sat Sep 24 18:50:59 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 19:50:59 +0300 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <4E7DFAD0.80705@...20...> References: <1316877168.5420.5.camel@...2689...> <4E7DFAD0.80705@...20...> Message-ID: <1316883059.10320.4.camel@...2689...> so True = T and False = Null for txtResult.Text&= CStr(hExpression.Value)& gb.NewLine that i also get. I just wonder if this is correct. i expected the same functionality with Eval(). On Sat, 2011-09-24 at 17:44 +0200, tobias wrote: > On 24.09.2011 17:12, Demosthenes Koptsis wrote: > > i have the next lines to make an gb.eval example > > > > -------------------------------- > > Public Sub btnEval_Click() > > > > Dim hExpression As Expression > > hExpression = New Expression > > > > hExpression.Text = txtEval.Text > > txtResult.Text&= CStr(hExpression.Value)& gb.NewLine > > > > Print Eval(txtEval.Text) > > > > Catch > > txtResult.Text&= "Error code:"& Error.Code& ", "& Error.Text& > > gb.NewLine > > Error.Clear > > > > End > > -------------------------------- > > > > > > with line > > Print Eval(txtEval.Text) > > > > i get True for "2>1" > > > > with line > > txtResult.Text&= CStr(hExpression.Value)& gb.NewLine > > > > i get the first letter "T" for true > > nothing for False > > > > is this the desired output? i expected True / False as EVAL() > > > i don't know, for me, it's the desired output. > Print takes an expression and prints it. CStr() converts an expression > to a string. and the string representation of True is "T" while False is > Null > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Sat Sep 24 19:14:21 2011 From: vuott at ...325... (Ru Vuott) Date: Sat, 24 Sep 2011 18:14:21 +0100 (BST) Subject: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS Message-ID: <1316884461.4769.YahooMailClassic@...2693...> Hello Beno?t, excuse me, I come back.... I send to you the source, so you can test the CPU problem. bye Paolo --- Sab 24/9/11, Ru Vuott ha scritto: > Da: Ru Vuott > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... > A: "mailing list for gambas users" > Data: Sabato 24 settembre 2011, 18:05 > Hello Beno?t, > > well, I tried your "trick" on using file descriptors. > > It seems it's OK ! > > ???But I verify a problem: when the > midi-program runs, and midi events aren't sent, the use of > one CPU springs up to 100% !!! If I press on a button or > other object on the Form, the use of that CPU decreases to > lower values. It is not important if these buttons activate > some functions or commands: if I want decrease that 100% > value of CPU, it enough I press a button for more times. > > regards > Paolo > > > > > > > --- Dom 18/9/11, Beno?t Minisini > ha scritto: > > > Da: Beno?t Minisini > > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. > But I have a dream.... BIS > > A: "mailing list for gambas users" > > Data: Domenica 18 settembre 2011, 23:24 > > > Hello, > > > > > > about your new suggestion: > > > > > > 1) like I said, now I can open the fd in: > > /proc/self/fd/ > > > > > > e.g.: hFile = Open "/proc/self/fd/20" For read > watch > > > > > > some fd (like 3,4,5,6, 16 and 20) gives data, > others > > not. > > > > > > So, I don't understand what's the use of the > trick. > > > > > > 2) how have I to use it ?? maybe: > > > > > > hFile = Open "/proc/self/fd/.1" For read watch > > > > > > 3) I use Gambas 3, where can I download the > revision > > #4134 ? > > > > > > Thanks > > > Paolo > > > > > > > > > P.S.: Beno?t ! Is not it better if you add that > > possibility to personalize > > > the message loop ??? > > > > > > > Forget the "/proc/self/fd" thing. The new solution is > the > > best I found without > > breaking compatibility. Maybe there will be another > > solution after Gambas 3. > > > > I suggest you read the "subversion howto" on > gambasdoc.org > > to learn how to use > > subversion to get the latest development release. > > > > You ask how to use it. Did you read my mail? there is > an > > example in it. For > > watching the file, just add the WATCH keyword. So: > > > > ??? Dim iAlsaFileDescriptor As Integer > > ??? Dim hFile As File > > > > ??? hFile = Open "." & > > CStr(iAlsaFileDescriptor) For Read Watch > > > > ???... > > > > ??? Sub File_Read() > > ??? ??? ' Get the data > > received through hFile > > ??? End > > > > To stop the watching, just close "hFile". The original > ALSA > > file descriptor > > will not be closed. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > BlackBerry® DevCon Americas, Oct. 18-20, San > > Francisco, CA > > http://p.sf.net/sfu/rim-devcon-copy2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is > seriously valuable. > Why? It contains a definitive record of application > performance, security > threats, fraudulent activity, and more. Splunk takes this > data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > 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: Gambas_Midi_Receiver-0.0.1.tar.gz Type: application/x-gzip Size: 8525 bytes Desc: not available URL: From tobiasboe1 at ...20... Sat Sep 24 19:26:00 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 19:26:00 +0200 Subject: [Gambas-user] ShowLineNumbers Editor In-Reply-To: <1316882858.10320.1.camel@...2689...> References: <1316882858.10320.1.camel@...2689...> Message-ID: <4E7E12A8.1000403@...20...> On 24.09.2011 18:47, Demosthenes Koptsis wrote: > which is the property to set ShowLineNumbers to show line numbers for > Editor control? > it's Editor.Flags[]: http://gambasdoc.org/help/comp/gb.qt4.ext/.editor.flags?v3 From demosthenesk at ...626... Sat Sep 24 19:27:06 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 20:27:06 +0300 Subject: [Gambas-user] ShowLineNumbers Editor In-Reply-To: <1316882858.10320.1.camel@...2689...> References: <1316882858.10320.1.camel@...2689...> Message-ID: <1316885226.12071.1.camel@...2689...> ok i found it. Editor1.Flags[Editor1.ShowLineNumbers] = True it is little tricky, isn't it? On Sat, 2011-09-24 at 19:47 +0300, Demosthenes Koptsis wrote: > which is the property to set ShowLineNumbers to show line numbers for > Editor control? > From tobiasboe1 at ...20... Sat Sep 24 19:29:21 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 19:29:21 +0200 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <1316883059.10320.4.camel@...2689...> References: <1316877168.5420.5.camel@...2689...> <4E7DFAD0.80705@...20...> <1316883059.10320.4.camel@...2689...> Message-ID: <4E7E1371.9000501@...20...> On 24.09.2011 18:50, Demosthenes Koptsis wrote: > so True = T and False = Null for > txtResult.Text&= CStr(hExpression.Value)& gb.NewLine > > that i also get. > > > I just wonder if this is correct. > i expected the same functionality with Eval(). > > > i suppose, it *has* the same functionality ("suppose" because i didn't look in the sources). it's just a matter of your conversion to a string. try Print hExpression.Value it should give you True and txtResult.Text = CStr(Eval()) should give "T" respectively. From demosthenesk at ...626... Sat Sep 24 19:29:38 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 20:29:38 +0300 Subject: [Gambas-user] ShowLineNumbers Editor In-Reply-To: <4E7E12A8.1000403@...20...> References: <1316882858.10320.1.camel@...2689...> <4E7E12A8.1000403@...20...> Message-ID: <1316885378.12419.0.camel@...2689...> Thanks Tobias i saw it. On Sat, 2011-09-24 at 19:26 +0200, tobias wrote: > On 24.09.2011 18:47, Demosthenes Koptsis wrote: > > which is the property to set ShowLineNumbers to show line numbers for > > Editor control? > > > it's Editor.Flags[]: > http://gambasdoc.org/help/comp/gb.qt4.ext/.editor.flags?v3 > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Sat Sep 24 19:48:46 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 24 Sep 2011 19:48:46 +0200 Subject: [Gambas-user] ShowLineNumbers Editor In-Reply-To: <1316885378.12419.0.camel@...2689...> References: <1316882858.10320.1.camel@...2689...> <4E7E12A8.1000403@...20...> <1316885378.12419.0.camel@...2689...> Message-ID: 2011/9/24 Demosthenes Koptsis : > Thanks Tobias i saw it. > > On Sat, 2011-09-24 at 19:26 +0200, tobias wrote: >> On 24.09.2011 18:47, Demosthenes Koptsis wrote: >> > which is the property to set ShowLineNumbers to show line numbers for >> > Editor control? >> > >> it's Editor.Flags[]: >> http://gambasdoc.org/help/comp/gb.qt4.ext/.editor.flags?v3 i don't know why benoit have not use directly property for theses options ? ... why benoit ?... to let it extendable? >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From demosthenesk at ...626... Sat Sep 24 21:44:06 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 22:44:06 +0300 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <4E7E1371.9000501@...20...> References: <1316877168.5420.5.camel@...2689...> <4E7DFAD0.80705@...20...> <1316883059.10320.4.camel@...2689...> <4E7E1371.9000501@...20...> Message-ID: <1316893446.18352.4.camel@...2689...> txtResult.Text &= CStr(hExpression.Value) gives the same result with txtResult.Text &= hExpression.Value which is "T" i think gambas3 make in the background the convertion (i think...) and CStr may be is useless. On Sat, 2011-09-24 at 19:29 +0200, tobias wrote: > On 24.09.2011 18:50, Demosthenes Koptsis wrote: > > so True = T and False = Null for > > txtResult.Text&= CStr(hExpression.Value)& gb.NewLine > > > > that i also get. > > > > > > I just wonder if this is correct. > > i expected the same functionality with Eval(). > > > > > > > i suppose, it *has* the same functionality ("suppose" because i didn't > look in the sources). it's just a matter of your conversion to a string. > try > Print hExpression.Value > it should give you True > and txtResult.Text = CStr(Eval()) should give "T" respectively. > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tobiasboe1 at ...20... Sat Sep 24 21:46:36 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 21:46:36 +0200 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <1316893446.18352.4.camel@...2689...> References: <1316877168.5420.5.camel@...2689...> <4E7DFAD0.80705@...20...> <1316883059.10320.4.camel@...2689...> <4E7E1371.9000501@...20...> <1316893446.18352.4.camel@...2689...> Message-ID: <4E7E339C.9030100@...20...> On 24.09.2011 21:44, Demosthenes Koptsis wrote: > txtResult.Text&= CStr(hExpression.Value) > > gives the same result with > > txtResult.Text&= hExpression.Value > > which is "T" > > i think gambas3 make in the background the convertion (i think...) and > CStr may be is useless. > of course, you assign it to a string, so it is converted automatically. but a Print hExpression.Value should give you the True you wanted. (as i said) From demosthenesk at ...626... Sat Sep 24 22:08:30 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 24 Sep 2011 23:08:30 +0300 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <4E7E339C.9030100@...20...> References: <1316877168.5420.5.camel@...2689...> <4E7DFAD0.80705@...20...> <1316883059.10320.4.camel@...2689...> <4E7E1371.9000501@...20...> <1316893446.18352.4.camel@...2689...> <4E7E339C.9030100@...20...> Message-ID: <1316894910.19921.0.camel@...2689...> yes PRINT gives TRUE. why that? On Sat, 2011-09-24 at 21:46 +0200, tobias wrote: > On 24.09.2011 21:44, Demosthenes Koptsis wrote: > > txtResult.Text&= CStr(hExpression.Value) > > > > gives the same result with > > > > txtResult.Text&= hExpression.Value > > > > which is "T" > > > > i think gambas3 make in the background the convertion (i think...) and > > CStr may be is useless. > > > of course, you assign it to a string, so it is converted automatically. > but a Print hExpression.Value should give you the True you wanted. (as i > said) > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tobiasboe1 at ...20... Sat Sep 24 22:27:40 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 24 Sep 2011 22:27:40 +0200 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <1316894910.19921.0.camel@...2689...> References: <1316877168.5420.5.camel@...2689...> <4E7DFAD0.80705@...20...> <1316883059.10320.4.camel@...2689...> <4E7E1371.9000501@...20...> <1316893446.18352.4.camel@...2689...> <4E7E339C.9030100@...20...> <1316894910.19921.0.camel@...2689...> Message-ID: <4E7E3D3C.7060209@...20...> > yes PRINT gives TRUE. > > why that? i thought, i explained it already ;) obtaining hExpression.Value and calling Eval() do the same, you will get the same result. Print prints an expression, this is not limited to a string, even not limited to a variant, because you can print objects, too, but can't convert objects to strings. if you assign the result of Eval() (or hExpression.Value) which is Variant to a string, gambas automatically converts the variant expression to a string. so, it only matters what you do with the value. you Printed one and you assigned the other two a string. this resulted in the expression being printed (gives "True" in terminal) and one being converted to a string (gives the string "T"). From gambas at ...1... Sun Sep 25 01:30:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Sep 2011 01:30:03 +0200 Subject: [Gambas-user] ShowLineNumbers Editor In-Reply-To: References: <1316882858.10320.1.camel@...2689...> <1316885378.12419.0.camel@...2689...> Message-ID: <201109250130.03512.gambas@...1...> > 2011/9/24 Demosthenes Koptsis : > > Thanks Tobias i saw it. > > > > On Sat, 2011-09-24 at 19:26 +0200, tobias wrote: > >> On 24.09.2011 18:47, Demosthenes Koptsis wrote: > >> > which is the property to set ShowLineNumbers to show line numbers for > >> > Editor control? > >> > >> it's Editor.Flags[]: > >> http://gambasdoc.org/help/comp/gb.qt4.ext/.editor.flags?v3 > > i don't know why benoit have not use directly property for theses > options ? ... why benoit ?... > > to let it extendable? > I don't remember. It's old. Maybe because internally this is an array of flags too. -- Beno?t Minisini From gambas at ...1... Sun Sep 25 01:31:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Sep 2011 01:31:33 +0200 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <1316894910.19921.0.camel@...2689...> References: <1316877168.5420.5.camel@...2689...> <4E7E339C.9030100@...20...> <1316894910.19921.0.camel@...2689...> Message-ID: <201109250131.33292.gambas@...1...> > yes PRINT gives TRUE. > > why that? > Because Print uses Str$() and not CStr() to convert its arguments to something printable. -- Beno?t Minisini From dag.jarle.johansen at ...626... Sun Sep 25 02:00:12 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sat, 24 Sep 2011 21:00:12 -0300 Subject: [Gambas-user] Starnge with DB and IF Message-ID: Well, here I am again, almost ashamed. I shorten the source to the main thing: Public sub ReafDB() Dim RS as result DIM S As string SQL="Select * From APCtrl Where Pseudo='J' AND LC=" & m.LC & "'" RS=msql.$ConU.Exec(SQL) RS.Movefirst (There is exactly on Record present, and with print RS!objname and Print RS!CtrlInhalt I can see the result, even so with S and S2) Now the strange: S=RS!objname IF S="Header" then S2=RS!CtrlInhalt ENDIF Me.Caption=S2 END S="Header", definitly S2="Anmelden", evenso (I used S and S2 to check the content of the data) I get the caption "Budget", which is the name of the project. The programm ignores the IF at all, and I also tried without if, just Me.Caption=S2 - is ignored, simply. I will be grateful for any help here, the work is blocked now. Regards Dag-Jarle From Gambas at ...1950... Sun Sep 25 02:24:55 2011 From: Gambas at ...1950... (Caveat) Date: Sun, 25 Sep 2011 02:24:55 +0200 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: References: Message-ID: <1316910295.2837.323.camel@...2150...> In your SQL statement, it looks like there's a single quote missing between LC= and m.LC (at the end of the line you specifically add a single quote after the content of m.LC). For the rest I don't have much clue what you're going on about. I wish you'd state clearly what it is you're trying to achieve. I'm guessing you're trying to set the title of the Form depending on what you get out of the database? Just a thought, but have you tried a Me.Refresh after setting the Form title? If you're having trouble setting the Form title, then you should forget all the database nonsense for a minute and try something as simple as Me.Caption = "Aanmelden"... does that work? If not, it's nothing to do with your ResultSet, your database, or any IF clause... it has to be something else... Kind regards, Caveat On Sat, 2011-09-24 at 21:00 -0300, Dag-Jarle Johansen wrote: > Well, here I am again, almost ashamed. > > I shorten the source to the main thing: > > Public sub ReafDB() > > Dim RS as result > DIM S As string > > SQL="Select * From APCtrl Where Pseudo='J' AND LC=" & m.LC & "'" > RS=msql.$ConU.Exec(SQL) > RS.Movefirst > (There is exactly on Record present, and with print RS!objname and Print > RS!CtrlInhalt I can see the result, even so with S and S2) > Now the strange: > S=RS!objname > IF S="Header" then > S2=RS!CtrlInhalt > ENDIF > Me.Caption=S2 > END > S="Header", definitly > S2="Anmelden", evenso > > (I used S and S2 to check the content of the data) > > I get the caption "Budget", which is the name of the project. The programm > ignores the IF at all, and I also tried without if, just Me.Caption=S2 - is > ignored, simply. > > I will be grateful for any help here, the work is blocked now. > > Regards > Dag-Jarle > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dag.jarle.johansen at ...626... Sun Sep 25 02:50:11 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sat, 24 Sep 2011 21:50:11 -0300 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: <1316910295.2837.323.camel@...2150...> References: <1316910295.2837.323.camel@...2150...> Message-ID: Hi, off course I have tried directly too, that works, so it seems I get something weird from the DB. I wrote those lines here, so I think my syntax is right in the app. I have written DB-apps since 25 years, so I am pretty clear over how to handle that. What is really strange to me: S=RS!objname (With Print both show data) IF S="Header" then STOP ENDIF is ignored. I will have to check the data and the structure, I think. Thank you and regards Dag-Jarle 2011/9/24 Caveat > In your SQL statement, it looks like there's a single quote missing > between LC= and m.LC (at the end of the line you specifically add a > single quote after the content of m.LC). > > For the rest I don't have much clue what you're going on about. I wish > you'd state clearly what it is you're trying to achieve. I'm guessing > you're trying to set the title of the Form depending on what you get out > of the database? Just a thought, but have you tried a Me.Refresh after > setting the Form title? > > If you're having trouble setting the Form title, then you should forget > all the database nonsense for a minute and try something as simple as > Me.Caption = "Aanmelden"... does that work? If not, it's nothing to do > with your ResultSet, your database, or any IF clause... it has to be > something else... > > Kind regards, > Caveat > > On Sat, 2011-09-24 at 21:00 -0300, Dag-Jarle Johansen wrote: > > Well, here I am again, almost ashamed. > > > > I shorten the source to the main thing: > > > > Public sub ReafDB() > > > > Dim RS as result > > DIM S As string > > > > SQL="Select * From APCtrl Where Pseudo='J' AND LC=" & m.LC & "'" > > RS=msql.$ConU.Exec(SQL) > > RS.Movefirst > > (There is exactly on Record present, and with print RS!objname and Print > > RS!CtrlInhalt I can see the result, even so with S and S2) > > Now the strange: > > S=RS!objname > > IF S="Header" then > > S2=RS!CtrlInhalt > > ENDIF > > Me.Caption=S2 > > END > > S="Header", definitly > > S2="Anmelden", evenso > > > > (I used S and S2 to check the content of the data) > > > > I get the caption "Budget", which is the name of the project. The > programm > > ignores the IF at all, and I also tried without if, just Me.Caption=S2 - > is > > ignored, simply. > > > > I will be grateful for any help here, the work is blocked now. > > > > Regards > > Dag-Jarle > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously > valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2dcopy2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Sep 25 02:54:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 25 Sep 2011 00:54:19 +0000 Subject: [Gambas-user] Issue 108 in gambas: Suggest: IDE should show frame border Message-ID: <0-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 108 by adamn... at ...626...: Suggest: IDE should show frame border http://code.google.com/p/gambas/issues/detail?id=108 1) Describe the problem. The form editor in the IDE does not display the border for a frame control. This has (IMO) two bad results. a) new developers (and a certain dumb old one) could spend a lot of time looking for the border property only to find that it is already set. b) it makes it hard to layout the widths of the frame control and it's children with precision. As I said, this is a suggestion, not a bug. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4147 Operating system: Linux Distribution: mine Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. IDE 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. N/A From gambas at ...1... Sun Sep 25 02:58:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Sep 2011 02:58:14 +0200 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: References: <1316910295.2837.323.camel@...2150...> Message-ID: <201109250258.14635.gambas@...1...> > Hi, > off course I have tried directly too, that works, so it seems I get > something weird from the DB. > > I wrote those lines here, so I think my syntax is right in the app. I have > written DB-apps since 25 years, so I am pretty clear over how to handle > that. What is really strange to me: > > S=RS!objname (With Print both show data) > IF S="Header" then > STOP > ENDIF > > is ignored. I will have to check the data and the structure, I think. > > > Thank you and > regards > Dag-Jarle > > If you want help, I need a way to reproduce the problem! -- Beno?t Minisini From bbruen at ...2308... Sun Sep 25 03:03:32 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 25 Sep 2011 10:33:32 +0930 Subject: [Gambas-user] What replaces Desktop.Scale in gambas3? Message-ID: <1316911398.8186.6.camel@...2688...> I'm trying to set a gridview column width to the maximum length of the strings in the column. I can find the maximum width in terms of the length of the string easily but what do I multiply that by to get the desired cloumn width? I have searched through the wiki but I just cant seem to find what replaces Desktop.Scale? tia Bruce From bbruen at ...2308... Sun Sep 25 05:44:19 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 25 Sep 2011 13:14:19 +0930 Subject: [Gambas-user] Surrogate keys and database insertions Message-ID: <1316922259.8186.21.camel@...2688...> (This drove me bananas in gambas2.) Is there now (in gambas 3) a way to get the key of the row just inserted into the database when the key is a surrogate key e.g. a SQLite "serial"? For example, in the following, the "items" table has a surrogate key called "id" which is a simple serial. Private Sub CreateItem(item As Todoitem) Dim hRslt As Result hRslt = hConn.Create("items") If hRslt.Available Then Marshall(item, hRslt) 'Moves the item data into the result fields hRslt.Update ' So what's the value of the id field??? According to hRslt!id it is still blank. Endif End I've tried several ways to read the table and try to determine which row was just added, but there are too many problems like a) someone else may have inserted another row between the update and the re-read, so I cant just look at the "highest" id b) I or someone else may be inserting copies of an existing row, i.e. all the non-key fields now exist in more than one row. c) In postgresql, it is possible to create a pseudo query function that adds the new row and returns the key of it, but 1) this is postgresql specific 2) it means I have to use hConn.Exec instead of the nice simple gambas routines 3) it is messy code in the database and the function has to be created and maintained for each table Surely someone has come up with an answer to this? Bruce From demosthenesk at ...626... Sun Sep 25 07:55:14 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 25 Sep 2011 08:55:14 +0300 Subject: [Gambas-user] Eval() and gb.eval In-Reply-To: <201109250131.33292.gambas@...1...> References: <1316877168.5420.5.camel@...2689...> <4E7E339C.9030100@...20...> <1316894910.19921.0.camel@...2689...> <201109250131.33292.gambas@...1...> Message-ID: <1316930114.15840.1.camel@...2689...> ok, that is what i want to understand. so i can do txtResult.Text &= Str(hExpression.Value) & gb.NewLine and works fine! Thanks Tobias and Benoit. On Sun, 2011-09-25 at 01:31 +0200, Beno?t Minisini wrote: > > yes PRINT gives TRUE. > > > > why that? > > > > Because Print uses Str$() and not CStr() to convert its arguments to something > printable. > From gambas at ...2524... Sun Sep 25 10:57:27 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 25 Sep 2011 08:57:27 +0000 Subject: [Gambas-user] Issue 109 in gambas: IDE Delete deleted everything with a similar name Message-ID: <0-6813199134517018827-11405351631308715775-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 109 by adamn... at ...626...: IDE Delete deleted everything with a similar name http://code.google.com/p/gambas/issues/detail?id=109 1) Describe the problem. The problem is that I have just lost 6 hours work 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: rlatest Operating system: Linux Distribution: mine Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. a) Create a class (MyCLass) and spent 6 hours working on it. b) Just before making a major change, decide you may want to revert back to the current state, so open the file manager, go to the .src directory and copy the class as "MyClass.classSAVE" c) close the file manager and refresh the project, there is MyClass.classSAVE sitting there, looking safe and happy. d) make the major change, test it and decide it is worthwhile. e) in the IDE delete "MyClass.classSAVE" f) just to make it all very painful, Clean Up the project. g) become very, very dismayed - not only is MyClass.classSAVE gone but SO IS myClass.class 6) By doing that carefully, you have done 50% of the bug fix job! By fixing this atrocious bug, you will make me 5% less unhappy! From Karl.Reinl at ...2345... Sun Sep 25 12:37:05 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 25 Sep 2011 12:37:05 +0200 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: References: <1316910295.2837.323.camel@...2150...> Message-ID: <1316947025.6568.1.camel@...40...> Am Samstag, den 24.09.2011, 21:50 -0300 schrieb Dag-Jarle Johansen: > Hi, > off course I have tried directly too, that works, so it seems I get > something weird from the DB. > > I wrote those lines here, so I think my syntax is right in the app. I have > written DB-apps since 25 years, so I am pretty clear over how to handle > that. What is really strange to me: > > S=RS!objname (With Print both show data) > IF S="Header" then > STOP > ENDIF > > is ignored. I will have to check the data and the structure, I think. > ------------------------------------8<-------------------- Salut Dag-Jarle, no leading or tailing Space or diff charset ? -- Amicalement Charlie From gambas.fr at ...626... Sun Sep 25 17:18:19 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Sep 2011 17:18:19 +0200 Subject: [Gambas-user] gb.html In-Reply-To: References: Message-ID: in english please. gb.html is a component that act like the html tree of js so you can contruct a document with it or load an html page in it and then parse with seach tools. dim hmydoc as new htmldocument dim hLink as new htmlelement("a") hLink.AppentText("This is a link") hLink.SetAttribute("href", "http://mypage") hMyDoc.body.appendchild(hlink) print hMyDoc.content you can do : hMyDoc.Body.AppendFromText("This is a link") print hMydoc.Content 2011/9/24 herberth guzman : > Me gustaria probar el componente gb.html para testear ya que tengo que hacer > un programa en ambiente web y me gustaria ver como funsiona dicho > componente. > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From aasanchez at ...626... Sun Sep 25 17:23:33 2011 From: aasanchez at ...626... (Alexis Sanchez) Date: Sun, 25 Sep 2011 10:53:33 -0430 Subject: [Gambas-user] gb.html In-Reply-To: References: Message-ID: Fabien, with this i could embebed a webpage into a gambas form??? Pls if this could happend could u upload a simple example... enviado desde Motorola Milestone El 25/09/2011 10:49, "Fabien Bodard" escribi?: > in english please. gb.html is a component that act like the html tree of js > > so you can contruct a document with it or load an html page in it and > then parse with seach tools. > > > dim hmydoc as new htmldocument > > dim hLink as new htmlelement("a") > > hLink.AppentText("This is a link") > > hLink.SetAttribute("href", "http://mypage") > > hMyDoc.body.appendchild(hlink) > > print hMyDoc.content > > > > > you can do : > > hMyDoc.Body.AppendFromText("This is a link") > print hMydoc.Content > > > > > 2011/9/24 herberth guzman : >> Me gustaria probar el componente gb.html para testear ya que tengo que hacer >> un programa en ambiente web y me gustaria ver como funsiona dicho >> componente. >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dag.jarle.johansen at ...626... Sun Sep 25 18:19:52 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sun, 25 Sep 2011 13:19:52 -0300 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: <201109250258.14635.gambas@...1...> References: <1316910295.2837.323.camel@...2150...> <201109250258.14635.gambas@...1...> Message-ID: Thank you, Benoit. It is really strange, and I have not seen such a behaviour bevor - I get the whole lenght of the field in the variable, so if the content is "Header", I get "Header..............................................................................". That is the reason why the IF did not work. I can help myself for the moment, just using TRIM, then it works. I have a lot of other things to program right now, but perhaps we should come back to this, I would call it MySQL Issue. Thanks again, and regards Dag-Jarle 2011/9/24 Beno?t Minisini > > Hi, > > off course I have tried directly too, that works, so it seems I get > > something weird from the DB. > > > > I wrote those lines here, so I think my syntax is right in the app. I > have > > written DB-apps since 25 years, so I am pretty clear over how to handle > > that. What is really strange to me: > > > > S=RS!objname (With Print both show data) > > IF S="Header" then > > STOP > > ENDIF > > > > is ignored. I will have to check the data and the structure, I think. > > > > > > Thank you and > > regards > > Dag-Jarle > > > > > > If you want help, I need a way to reproduce the problem! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Sep 25 18:44:36 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Sep 2011 18:44:36 +0200 Subject: [Gambas-user] gb.html In-Reply-To: References: Message-ID: 2011/9/25 Alexis Sanchez : > Fabien, with this i could embebed a webpage into a gambas form??? Pls if > this could happend could u upload a simple example... no ! it's simply for manage and generate textual web page ... for cgi. The tool to embbed web page in a form is qt4.webkit and the tools to draw web page with form editor is in the todo list > enviado desde > Motorola Milestone > El 25/09/2011 10:49, "Fabien Bodard" escribi?: >> in english please. gb.html is a component that act like the html tree of > js >> >> so you can contruct a document with it or load an html page in it and >> then parse with seach tools. >> >> >> dim hmydoc as new htmldocument >> >> dim hLink as new htmlelement("a") >> >> hLink.AppentText("This is a link") >> >> hLink.SetAttribute("href", "http://mypage") >> >> hMyDoc.body.appendchild(hlink) >> >> print hMyDoc.content >> >> >> >> >> you can do : >> >> hMyDoc.Body.AppendFromText("This is a link") >> print hMydoc.Content >> >> >> >> >> 2011/9/24 herberth guzman : >>> Me gustaria probar el componente gb.html para testear ya que tengo que > hacer >>> un programa en ambiente web y me gustaria ver como funsiona dicho >>> componente. >>> > ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously > valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2dcopy2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> >> > ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > 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 Sep 25 18:53:53 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Sep 2011 18:53:53 +0200 Subject: [Gambas-user] What replaces Desktop.Scale in gambas3? In-Reply-To: <1316911398.8186.6.camel@...2688...> References: <1316911398.8186.6.camel@...2688...> Message-ID: 2011/9/25 Bruce Bruen : > I'm trying to set a gridview column width to the maximum length of the > strings in the column. ?I can find the maximum width in terms of the > length of the string easily but what do I multiply that by to get the > desired cloumn width? > I have searched through the wiki but I just cant seem to find what > replaces Desktop.Scale? why don't you use fontsize ? iWidth = GridView1.Font.TextWidth(iMaxLetters) > tia > Bruce > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Sun Sep 25 19:48:48 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 25 Sep 2011 17:48:48 +0000 Subject: [Gambas-user] Issue 110 in gambas: Gambas Doc Addition Message-ID: <0-6813199134517018827-12343202263122841472-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 110 by dr.die... at ...626...: Gambas Doc Addition http://code.google.com/p/gambas/issues/detail?id=110 On the gambas doc website here: http://gambasdoc.org/help/install/fedora?view For the 2.99 Development section please add the package libxml2-devel to the "For Fedora 13 and Fedora 14" section and change the name from "For Fedora 13 and Fedora 14" to "For Fedora 13, 14, 15 and 16" Thanks From gambas at ...1... Sun Sep 25 20:00:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Sep 2011 20:00:19 +0200 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: References: <201109250258.14635.gambas@...1...> Message-ID: <201109252000.19394.gambas@...1...> > Thank you, Benoit. > > It is really strange, and I have not seen such a behaviour bevor - I get > the whole lenght of the field in the variable, so if the content is > "Header", I get > "Header.................................................................... > ..........". That is the reason why the IF did not work. I can help myself > for the moment, just using TRIM, then it works. I have a lot of other > things to program right now, but perhaps we should come back to this, I > would call it MySQL Issue. > > Thanks again, and regards > Dag-Jarle > It may be an issue with the gb.db.mysql driver. As I have often said, if you access a mysql database from Gambas that was not created Gambas, you may get some quirks. Normally everything works, but MySql being a moving target, sometimes a bug arises. By knowing which version of MySql you use, and by reproducing the problem, I will be able to fix it. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Sep 25 23:58:16 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 25 Sep 2011 23:58:16 +0200 Subject: [Gambas-user] code normaliser Message-ID: <4E7FA3F8.6030909@...20...> hi, i just finished a little project (finished means working, not secure. it actually is a bit quick'n'dirty because i'm tired) called "code normaliser" that takes a norms file and a source file/directory and applies these norms to the sources. the norms file consists of lines of this scheme: start-of-block (regexp), end-of-block (regexp), indentation (integer) and describes how to indent parts of the source. (my personal one is included) there are other formatting things directly in the code of the program like eliminating unnecessary spaces, empty lines or adjusting comments and adding empty lines after specific parts of the source. it is *very very* personalised because i wrote it for someone writing a book about gambas, the source samples have to be standardised in a way we together thought, it would look well. so if somebody - like a "formatting nazi" ;) - would like to have a look at it or try it out, i'll attach the source archive. regards, tobi From bbruen at ...2308... Mon Sep 26 00:04:14 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 26 Sep 2011 07:34:14 +0930 Subject: [Gambas-user] What replaces Desktop.Scale in gambas3? In-Reply-To: References: <1316911398.8186.6.camel@...2688...> Message-ID: <1316988254.28011.6.camel@...2688...> Thanks Fabian, That (TextWidth) was what I didn't search for. Got it working, but it is interesting that I have to "bump" the final width value by an empirically determined amount to prevent the last letter from being chopped. The code if anyone is interested is : ________________________________________________________________________ Private Sub ReLoadList() '' Reload the data in the gridview using the existing data set in $cItems Dim wkItem As Todoitem ' working copy of the object to be displayed Dim idr, idc As Integer ' row and column indexes Dim aItemValues As Variant[] ' working array copy of the object values that are displayed Dim aMaxW As Integer[] ' max column width array ' Set up gvwList.Clear gvwList.Rows.Count = $cItems.Count aMaxW = New Integer[gvwList.Columns.Count] ' Initially set the max column width array values to the size of the column titles For idc = 0 To gvwList.Columns.count - 1 aMaxW[idc] = gvwList.Font.TextWidth(gvwList.Columns[idc].Title) Next ' Load the items from the source collection into the rows idr = 0 For Each wkItem In $cItems With wkItem aItemValues = [.ID, .Project, .Affects, .Title, .Type, .Status, .Priority] End With For idc = 0 To gvwList.Columns.Count - 1 gvwList[idr, idc].Text = aItemValues[idc] ' and check to see if the max width value needs changing If (gvwList.Font.TextWidth(gvwList[idr, idc].Text) > aMaxW[idc]) Then aMaxW[idc] = gvwList.Font.TextWidth(gvwList[idr, idc].Text) Next Inc idr Next ' Finally set all the column widths according the the values in the max column widths array For idc = 0 To gvwList.Columns.Count - 1 gvwList.Columns[idc].Width = aMaxW[idc] + 7 Next End ________________________________________________________________________ See the last bit. I had to bump the computed value by 7 (for both gtk and qt4) to stop the last letter being chopped. regards Bruce On Sun, 2011-09-25 at 18:53 +0200, Fabien Bodard wrote: > 2011/9/25 Bruce Bruen : > > I'm trying to set a gridview column width to the maximum length of the > > strings in the column. I can find the maximum width in terms of the > > length of the string easily but what do I multiply that by to get the > > desired cloumn width? > > I have searched through the wiki but I just cant seem to find what > > replaces Desktop.Scale? > why don't you use fontsize ? > > iWidth = GridView1.Font.TextWidth(iMaxLetters) > > > tia > > Bruce > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is seriously valuable. > > Why? It contains a definitive record of application performance, security > > threats, fraudulent activity, and more. Splunk takes this data and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2dcopy2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From bbruen at ...2308... Mon Sep 26 00:09:39 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 26 Sep 2011 07:39:39 +0930 Subject: [Gambas-user] code normaliser In-Reply-To: <4E7FA3F8.6030909@...20...> References: <4E7FA3F8.6030909@...20...> Message-ID: <1316988579.28011.7.camel@...2688...> On Sun, 2011-09-25 at 23:58 +0200, tobias wrote: > hi, > > i just finished a little project (finished means working, not secure. it > actually is a bit quick'n'dirty because i'm tired) called "code > normaliser" that takes a norms file and a source file/directory and > applies these norms to the sources. > the norms file consists of lines of this scheme: > start-of-block (regexp), end-of-block (regexp), indentation (integer) > and describes how to indent parts of the source. (my personal one is > included) > there are other formatting things directly in the code of the program > like eliminating unnecessary spaces, empty lines or adjusting comments > and adding empty lines after specific parts of the source. > it is *very very* personalised because i wrote it for someone writing a > book about gambas, the source samples have to be standardised in a way > we together thought, it would look well. > so if somebody - like a "formatting nazi" ;) - would like to have a look > at it or try it out, i'll attach the source archive. > > regards, > tobi > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Tobias, (Even though I have no political associations) I'd like a look, please fwd archive. Bruce From gambas at ...2524... Mon Sep 26 02:18:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 26 Sep 2011 00:18:52 +0000 Subject: [Gambas-user] Issue 111 in gambas: Renaming a class doesn't update .list & .info properly Message-ID: <0-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 111 by adamn... at ...626...: Renaming a class doesn't update .list & .info properly http://code.google.com/p/gambas/issues/detail?id=111 1) Describe the problem. (Difficult to state - just follow the steps below) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4147 Operating system: Linux Distribution: mine Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Silly demo attached 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. All this takes place in the IDE. a) load the attached project and run it ==> should print "Quack!" b) change the name of the "Cow" class to "Duck" c) change the "Dim hAnimal As New Cow" to "Dim hAnimal As New Duck" d) re-run the project ==> status bar shows it compiling, then it just goes to sleep. e) stop it running (Alt+Pause) f) look at contents of the .list and .info files ==> have entries for both Cow and Duck 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: uncertainty2-0.0.4.tar.gz 4.7 KB From vuott at ...325... Mon Sep 26 12:05:03 2011 From: vuott at ...325... (Ru Vuott) Date: Mon, 26 Sep 2011 11:05:03 +0100 (BST) Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors In-Reply-To: <201109182324.44019.gambas@...1...> Message-ID: <1317031503.5021.YahooMailClassic@...2695...> Hello Beno?t, I would just like to add that trying your trick ( hFile = Open "." & CStr(iAlsaFileDescriptor) For xxx Watch) besides the problem about CPU over-working (at 100%), wich I have already told, there is also a strange thing: as you see in the source (wich I sent you in my previous e-mail), despite the line uses "write": hFile = Open "." & CStr(iAlsaFileDescriptor) For WRITE Watch (So, for fd passed by Alsa that line works.) the called routine "wants" "Read": Public Sub File_Read(). If I use " sub File_Write() ", it doesn't work ! Thanks Paolo Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream.... BIS > A: "mailing list for gambas users" > Data: Domenica 18 settembre 2011, 23:24 > > Hello, > > > > about your new suggestion: > > > > 1) like I said, now I can open the fd in: > /proc/self/fd/ > > > > e.g.: hFile = Open "/proc/self/fd/20" For read watch > > > > some fd (like 3,4,5,6, 16 and 20) gives data, others > not. > > > > So, I don't understand what's the use of the trick. > > > > 2) how have I to use it ?? maybe: > > > > hFile = Open "/proc/self/fd/.1" For read watch > > > > 3) I use Gambas 3, where can I download the revision > #4134 ? > > > > Thanks > > Paolo > > > > > > P.S.: Beno?t ! Is not it better if you add that > possibility to personalize > > the message loop ??? > > > > Forget the "/proc/self/fd" thing. The new solution is the > best I found without > breaking compatibility. Maybe there will be another > solution after Gambas 3. > > I suggest you read the "subversion howto" on gambasdoc.org > to learn how to use > subversion to get the latest development release. > > You ask how to use it. Did you read my mail? there is an > example in it. For > watching the file, just add the WATCH keyword. So: > > ??? Dim iAlsaFileDescriptor As Integer > ??? Dim hFile As File > > ??? hFile = Open "." & > CStr(iAlsaFileDescriptor) For Read Watch > > ???... > > ??? Sub File_Read() > ??? ??? ' Get the data > received through hFile > ??? End > > To stop the watching, just close "hFile". The original ALSA > file descriptor > will not be closed. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San > Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Mon Sep 26 12:21:08 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 26 Sep 2011 12:21:08 +0200 Subject: [Gambas-user] ran in problems with gambas2 and rev 4131 Message-ID: <1317032468.6452.5.camel@...40...> Salut Beno?t, updated my gambas2 by svn yesterday, and ran in that problem. see attachments, back to rev 4130 all is OK. -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.log.tar.gz Type: application/x-compressed-tar Size: 11405 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sys.log Type: text/x-log Size: 364 bytes Desc: not available URL: From gambas at ...1... Mon Sep 26 13:00:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Sep 2011 13:00:57 +0200 Subject: [Gambas-user] ran in problems with gambas2 and rev 4131 In-Reply-To: <1317032468.6452.5.camel@...40...> References: <1317032468.6452.5.camel@...40...> Message-ID: <201109261300.57977.gambas@...1...> > Salut Beno?t, > > updated my gambas2 by svn yesterday, and ran in that problem. > see attachments, back to rev 4130 all is OK. What are the contents of the '/usr/include/glib-2.0/glib/gvariant.h' file? -- Beno?t Minisini From bbruen at ...2308... Mon Sep 26 13:06:20 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 26 Sep 2011 20:36:20 +0930 Subject: [Gambas-user] ran in problems with gambas2 and rev 4131 In-Reply-To: <1317032468.6452.5.camel@...40...> References: <1317032468.6452.5.camel@...40...> Message-ID: <1317035180.28011.19.camel@...2688...> On Mon, 2011-09-26 at 12:21 +0200, Charlie Reinl wrote: > Salut Beno?t, > > updated my gambas2 by svn yesterday, and ran in that problem. > see attachments, back to rev 4130 all is OK. > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ Don't know if this helps but there are a lot of missing header files in the config.log: @line 728 in configure.log ----------------------------- configure: WARNING: Unable to find file: sql.h configure: WARNING: Unable to find file: sqlext.h configure: WARNING: Unable to find file: sqltypes.h checking for ODBC driver libraries... no configure: WARNING: Unable to find file: libodbc.so configure: WARNING: *** ODBC driver is disabled ----------------------------- @ line 1241 in configure.log ----------------------------- checking for firebird driver libraries... no configure: WARNING: Unable to find file: libfbclient.so configure: WARNING: *** firebird driver is disabled ------------------------------ @ line 2405 in configure.log ----------------------------- checking for QT/Embedded component libraries... no configure: WARNING: Unable to find file: libqte-mt.so configure: WARNING: *** QT/Embedded component is disabled ----------------------------- @ line 2453 in configure.log ----------------------------- checking for KDE 3.x component headers... no configure: WARNING: Unable to find file: kapplication.h checking for KDE 3.x component libraries... no configure: WARNING: Unable to find file: libkdecore.so configure: WARNING: *** KDE 3.x component is disabled ----------------------------- @ line 2816 in config.log ----------------------------- checking for SDL sound headers... no configure: WARNING: Unable to find file: SDL_mixer.h checking for SDL sound libraries... no configure: WARNING: Unable to find file: libSDL_mixer.so configure: WARNING: *** SDL sound is disabled ----------------------------- @ line 2816 in configure.log checking for SDL sound headers... no configure: WARNING: Unable to find file: SDL_mixer.h checking for SDL sound libraries... no configure: WARNING: Unable to find file: libSDL_mixer.so configure: WARNING: *** SDL sound is disabled ----------------------------- @ line 3464 in configure.log ----------------------------- checking for CORBA component headers... no configure: WARNING: Unable to find file: CORBA.h checking for CORBA component libraries... no configure: WARNING: Unable to find file: libomniORB4.so configure: WARNING: Unable to find file: libomniDynamic4.so configure: WARNING: *** CORBA component is disabled ------------------------------ cheers Bruce From gambas at ...1... Mon Sep 26 13:19:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Sep 2011 13:19:13 +0200 Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors In-Reply-To: <1317031503.5021.YahooMailClassic@...2695...> References: <1317031503.5021.YahooMailClassic@...2695...> Message-ID: <201109261319.13445.gambas@...1...> > Hello Beno?t, > > I would just like to add that trying your trick ( hFile = Open "." & > CStr(iAlsaFileDescriptor) For xxx Watch) besides the problem about CPU > over-working (at 100%), wich I have already told, there is also a strange > thing: as you see in the source (wich I sent you in my previous e-mail), > despite the line uses "write": hFile = Open "." & > CStr(iAlsaFileDescriptor) For WRITE Watch > > (So, for fd passed by Alsa that line works.) > > the called routine "wants" "Read": Public Sub File_Read(). > If I use " sub File_Write() ", it doesn't work ! > > Thanks > Paolo > By using: snd_seq_poll_descriptors(handle, pfds, npfds, POLLIN) You are asking for ALSA file descriptors used for reading data, not for writing. So all that behaviour is expected! Maybe if you put POLLOUT instead, things will behave better. See the ALSA documentation: http://www.alsa-project.org/alsa-doc/alsa- lib/group___sequencer.html#g5086fbf4e38449108a0807fb5cf5e9c6 Regards, -- Beno?t Minisini From gambas at ...1... Mon Sep 26 14:03:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Sep 2011 14:03:32 +0200 Subject: [Gambas-user] Surrogate keys and database insertions In-Reply-To: <1316922259.8186.21.camel@...2688...> References: <1316922259.8186.21.camel@...2688...> Message-ID: <201109261403.32612.gambas@...1...> > (This drove me bananas in gambas2.) Is there now (in gambas 3) a way to > get the key of the row just inserted into the database when the key is a > surrogate key e.g. a SQLite "serial"? > For example, in the following, the "items" table has a surrogate key > called "id" which is a simple serial. > > Private Sub CreateItem(item As Todoitem) > > Dim hRslt As Result > > hRslt = hConn.Create("items") > If hRslt.Available Then > Marshall(item, hRslt) 'Moves the item data into the result fields > hRslt.Update > > ' So what's the value of the id field??? According to hRslt!id > it is still blank. > > Endif > > End > > I've tried several ways to read the table and try to determine which row > was just added, but there are too many problems like > a) someone else may have inserted another row between the update and the > re-read, so I cant just look at the "highest" id > b) I or someone else may be inserting copies of an existing row, i.e. > all the non-key fields now exist in more than one row. > c) In postgresql, it is possible to create a pseudo query function that > adds the new row and returns the key of it, but > 1) this is postgresql specific > 2) it means I have to use hConn.Exec instead of the nice simple > gambas routines > 3) it is messy code in the database and the function has to be > created and maintained for each table > > Surely someone has come up with an answer to this? > > Bruce This feature is missing, mainly because there is no standard way to do that in SQL, and I don't know if there is a function for that in all SQL DBMS. -- Beno?t Minisini From bbruen at ...2308... Mon Sep 26 14:41:37 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 26 Sep 2011 22:11:37 +0930 Subject: [Gambas-user] Surrogate keys and database insertions In-Reply-To: <201109261403.32612.gambas@...1...> References: <1316922259.8186.21.camel@...2688...> <201109261403.32612.gambas@...1...> Message-ID: <1317040897.30477.7.camel@...2688...> On Mon, 2011-09-26 at 14:03 +0200, Beno?t Minisini wrote: > This feature is missing, mainly because there is no standard way to do that in > SQL, and I don't know if there is a function for that in all SQL DBMS. I was afraid of that. I'll do some research. I know it is possible in postgresql and I think it can be made generic across all inserts. As much as I hate delving in to the twisted entrails of mysql documentation I will endeavour... I don't have much expertise with firebird but there is a learning opportunity, I suppose. With sqlite, a quick look seems there is some probability. I doubt that it is possible with ODBC. I'll get back to you. Bruce From gambas at ...1... Mon Sep 26 14:46:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Sep 2011 14:46:55 +0200 Subject: [Gambas-user] Surrogate keys and database insertions In-Reply-To: <1317040897.30477.7.camel@...2688...> References: <1316922259.8186.21.camel@...2688...> <201109261403.32612.gambas@...1...> <1317040897.30477.7.camel@...2688...> Message-ID: <201109261446.55724.gambas@...1...> > On Mon, 2011-09-26 at 14:03 +0200, Beno?t Minisini wrote: > > This feature is missing, mainly because there is no standard way to do > > that in SQL, and I don't know if there is a function for that in all SQL > > DBMS. > > I was afraid of that. I'll do some research. I know it is possible in > postgresql and I think it can be made generic across all inserts. As much > as I hate delving in to the twisted entrails of mysql documentation I will > endeavour... I don't have much expertise with firebird but there is a > learning opportunity, I suppose. With sqlite, a quick look seems there is > some probability. I doubt that it is possible with ODBC. > > I'll get back to you. > Bruce > Firebird being not GPL, it has been removed from Gambas. So don't worry with it. But I'd like to have the information for the others! -- Beno?t Minisini From dag.jarle.johansen at ...626... Mon Sep 26 15:10:15 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 26 Sep 2011 10:10:15 -0300 Subject: [Gambas-user] Starnge with DB and IF In-Reply-To: <201109252000.19394.gambas@...1...> References: <201109250258.14635.gambas@...1...> <201109252000.19394.gambas@...1...> Message-ID: Thanks Benoit, I am using MySQL 5.5.16, installed with XAMPP, and PHP MyAdmin 3.4.5, which I don't like at all. I will take a look at the possibilities Gambas can give me. I must admit, using XAMPP and PHP MyAdmin or MySQL Admin is a pure habit - not good any more, because the guys have programmed up in the skies. So let me look at your solution before you start to work on something what could be avoided. By the way. most procedures are working pretty good now, so I get on with it. And one more thing, tomorrow I am traveling from Argentina to Norway, to stay there I think, so I will be off for 2-3 days. Regards, Dag-Jarle 2011/9/25 Beno?t Minisini > > Thank you, Benoit. > > > > It is really strange, and I have not seen such a behaviour bevor - I get > > the whole lenght of the field in the variable, so if the content is > > "Header", I get > > > "Header.................................................................... > > ..........". That is the reason why the IF did not work. I can help > myself > > for the moment, just using TRIM, then it works. I have a lot of other > > things to program right now, but perhaps we should come back to this, I > > would call it MySQL Issue. > > > > Thanks again, and regards > > Dag-Jarle > > > > It may be an issue with the gb.db.mysql driver. As I have often said, if > you > access a mysql database from Gambas that was not created Gambas, you may > get > some quirks. Normally everything works, but MySql being a moving target, > sometimes a bug arises. > > By knowing which version of MySql you use, and by reproducing the problem, > I > will be able to fix it. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Mon Sep 26 17:11:01 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 26 Sep 2011 17:11:01 +0200 Subject: [Gambas-user] ran in problems with gambas2 and rev 4131 In-Reply-To: <201109261300.57977.gambas@...1...> References: <1317032468.6452.5.camel@...40...> <201109261300.57977.gambas@...1...> Message-ID: <1317049861.7036.1.camel@...40...> Am Montag, den 26.09.2011, 13:00 +0200 schrieb Beno?t Minisini: > > Salut Beno?t, > > > > updated my gambas2 by svn yesterday, and ran in that problem. > > see attachments, back to rev 4130 all is OK. > > What are the contents of the '/usr/include/glib-2.0/glib/gvariant.h' file? > and here we go. -------------- next part -------------- A non-text attachment was scrubbed... Name: gvariant.h Type: text/x-csrc Size: 16135 bytes Desc: not available URL: From Karl.Reinl at ...2345... Mon Sep 26 17:15:15 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 26 Sep 2011 17:15:15 +0200 Subject: [Gambas-user] ran in problems with gambas2 and rev 4131 In-Reply-To: <1317035180.28011.19.camel@...2688...> References: <1317032468.6452.5.camel@...40...> <1317035180.28011.19.camel@...2688...> Message-ID: <1317050115.7036.5.camel@...40...> Am Montag, den 26.09.2011, 20:36 +0930 schrieb Bruce Bruen: > On Mon, 2011-09-26 at 12:21 +0200, Charlie Reinl wrote: > > > Salut Beno?t, > > > > updated my gambas2 by svn yesterday, and ran in that problem. > > see attachments, back to rev 4130 all is OK. > > > > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2dcopy1 > > _______________________________________________ > > Don't know if this helps but there are a lot of missing header files in > the config.log: > @line 728 in configure.log > ----------------------------- > configure: WARNING: Unable to find file: sql.h > configure: WARNING: Unable to find file: sqlext.h > configure: WARNING: Unable to find file: sqltypes.h > checking for ODBC driver libraries... no > configure: WARNING: Unable to find file: libodbc.so > configure: WARNING: *** ODBC driver is disabled > ----------------------------- > > @ line 1241 in configure.log > ----------------------------- > checking for firebird driver libraries... no > configure: WARNING: Unable to find file: libfbclient.so > configure: WARNING: *** firebird driver is disabled > ------------------------------ > > @ line 2405 in configure.log > ----------------------------- > checking for QT/Embedded component libraries... no > configure: WARNING: Unable to find file: libqte-mt.so > configure: WARNING: *** QT/Embedded component is disabled > ----------------------------- > > @ line 2453 in configure.log > ----------------------------- > checking for KDE 3.x component headers... no > configure: WARNING: Unable to find file: kapplication.h > checking for KDE 3.x component libraries... no > configure: WARNING: Unable to find file: libkdecore.so > configure: WARNING: *** KDE 3.x component is disabled > ----------------------------- > > @ line 2816 in config.log > ----------------------------- > checking for SDL sound headers... no > configure: WARNING: Unable to find file: SDL_mixer.h > checking for SDL sound libraries... no > configure: WARNING: Unable to find file: libSDL_mixer.so > configure: WARNING: *** SDL sound is disabled > ----------------------------- > > @ line 2816 in configure.log > checking for SDL sound headers... no > configure: WARNING: Unable to find file: SDL_mixer.h > checking for SDL sound libraries... no > configure: WARNING: Unable to find file: libSDL_mixer.so > configure: WARNING: *** SDL sound is disabled > ----------------------------- > > @ line 3464 in configure.log > ----------------------------- > checking for CORBA component headers... no > configure: WARNING: Unable to find file: CORBA.h > checking for CORBA component libraries... no > configure: WARNING: Unable to find file: libomniORB4.so > configure: WARNING: Unable to find file: libomniDynamic4.so > configure: WARNING: *** CORBA component is disabled > ------------------------------ > cheers > Bruce Salut Bruce, thanks, but that's alright for me. I don't need those libs. And while gambas handles missing optional libs fine, I'v never took care about. -- Amicalement Charlie From tobiasboe1 at ...20... Mon Sep 26 17:30:37 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 26 Sep 2011 17:30:37 +0200 Subject: [Gambas-user] code normaliser In-Reply-To: <1316988579.28011.7.camel@...2688...> References: <4E7FA3F8.6030909@...20...> <1316988579.28011.7.camel@...2688...> Message-ID: <4E809A9D.9000200@...20...> > Hi Tobias, > (Even though I have no political associations) I'd like a look, please > fwd archive. > Bruce i quickly translated (from the german program) and encountered some flaws in it. additionally i have to say that it's a gb2 project, i had to write it in gb2, because the other one hasn't gb3 set up already. i'll fix the flaws when porting to gb3. you may see design flaws, etc., too. as i said, it works (almost), but ran through some design changes and wasn't tidied up. i'll fix this all in gb3 (maybe i will comment it, too). seems that i was more tired than i thought yesterday... btw, the project itself was normalised by it... please, don't hit me, it's not as clean as i wanted it to be ;) regards, tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: code_normaliser-0.0.1.tar.gz Type: application/gzip Size: 16364 bytes Desc: not available URL: From vuott at ...325... Mon Sep 26 20:05:08 2011 From: vuott at ...325... (Ru Vuott) Date: Mon, 26 Sep 2011 19:05:08 +0100 (BST) Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors In-Reply-To: <201109261319.13445.gambas@...1...> Message-ID: <1317060308.62270.YahooMailClassic@...2698...> Hello Beno?t, I tried to put POLLOUT, but it doesn't change: - a CPU always at 100%; - line OPEN "." & CStr(numfd) wants For WRITE, and the called sub-routine wants File_Read(). - I can put File_Write() also, but so I have to put the "no-blocking" Alsa function: snd_seq_nonblock(handle, 1) in the calling routine. ...in short, no newness... I'ld like remember the problem is the CPU working at 100%. Regards Paolo --- Lun 26/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Gambas + Midi + ALSA + file descriptors > A: "mailing list for gambas users" > Data: Luned? 26 settembre 2011, 13:19 > > Hello Beno?t, > > > > I would just like to add that trying your trick ( > hFile = Open "." & > > CStr(iAlsaFileDescriptor) For xxx Watch) besides the > problem about CPU > > over-working (at 100%), wich I have already told, > there is also a strange > > thing: as you see in the source (wich I sent you in my > previous e-mail), > > despite the line uses "write": hFile = Open "." & > > CStr(iAlsaFileDescriptor) For WRITE Watch > > > >???(So, for fd passed by Alsa that line > works.) > > > > the called routine "wants" "Read": Public Sub > File_Read(). > > If I use " sub File_Write() ", it doesn't work ! > > > > Thanks > > Paolo > > > > By using: > > ??? snd_seq_poll_descriptors(handle, pfds, > npfds, POLLIN) > > You are asking for ALSA file descriptors used for reading > data, not for > writing. So all that behaviour is expected! > > Maybe if you put POLLOUT instead, things will behave > better. > > See the ALSA documentation: > > http://www.alsa-project.org/alsa-doc/alsa- > lib/group___sequencer.html#g5086fbf4e38449108a0807fb5cf5e9c6 > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT > infrastructure contains a > definitive record of customers, application performance, > security > threats, fraudulent activity and more. Splunk takes this > data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Sep 26 20:40:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Sep 2011 20:40:09 +0200 Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors In-Reply-To: <1317060308.62270.YahooMailClassic@...2698...> References: <1317060308.62270.YahooMailClassic@...2698...> Message-ID: <201109262040.09742.gambas@...1...> > Hello Beno?t, > > I tried to put POLLOUT, but it doesn't change: OK, but it couldn't work at all with POLLIN. > > - a CPU always at 100%; > - line OPEN "." & CStr(numfd) wants For WRITE, and the called sub-routine > wants File_Read(). - I can put File_Write() also, but so I have to put the > "no-blocking" Alsa function: snd_seq_nonblock(handle, 1) in the calling > routine. > > ...in short, no newness... > > I'ld like remember the problem is the CPU working at 100%. > > Regards > Paolo > You must understand that the 'Open ".xx"' feature I added relies on the same code than any other file. I may have made a mistake, but it's unlucky. Moreover, by reading your code, I don't understand what you are doing. You want to watch a file descriptor for *writing*, and in the event handler, you are *reading* on it. This not coherent at all, and I can't guess what you really want to achieve. The 100% CPU is a consequence of that mismatch : if you don't read during a File_Read event handler, or if you don't write during a File_Write event handler, the event will be raised again and again, eating all the CPU. So, please explain better what you want to do, and we will find where the confusion is. Is there a way for me to emulate a midi input so that I can actually run your project? And can you send me your project each time you modify it so that I am sure to use the code you are talking about? Regards, -- Beno?t Minisini From gambas.fr at ...626... Mon Sep 26 20:43:26 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 26 Sep 2011 20:43:26 +0200 Subject: [Gambas-user] What replaces Desktop.Scale in gambas3? In-Reply-To: <1316988254.28011.6.camel@...2688...> References: <1316911398.8186.6.camel@...2688...> <1316988254.28011.6.camel@...2688...> Message-ID: 2011/9/26 Bruce Bruen : > Thanks Fabian, > That (TextWidth) was what I didn't search for. > Got it working, but it is interesting that I have to "bump" the final > width value by an empirically determined amount to prevent the last > letter from being chopped. ?The code if anyone is interested is : > > ________________________________________________________________________ > Private Sub ReLoadList() > '' Reload the data in the gridview using the existing data set in > $cItems > > ?Dim wkItem As Todoitem ? ? ? ?' working copy of the object to be > displayed > ?Dim idr, idc As Integer ? ? ? ' row and column indexes > ?Dim aItemValues As Variant[] ?' working array copy of the object > values that are displayed > ?Dim aMaxW As Integer[] ? ? ? ?' max column width array > > ?' Set up > ?gvwList.Clear > ?gvwList.Rows.Count = $cItems.Count > ?aMaxW = New Integer[gvwList.Columns.Count] > > ?' Initially set the max column width array values to the size of the > column titles > ?For idc = 0 To gvwList.Columns.count - 1 > ? ?aMaxW[idc] = gvwList.Font.TextWidth(gvwList.Columns[idc].Title) > ?Next > > ?' Load the items from the source collection into the rows > ?idr = 0 > ?For Each wkItem In $cItems > ? ?With wkItem > ? ? ?aItemValues = > [.ID, .Project, .Affects, .Title, .Type, .Status, .Priority] > ? ?End With > ? ?For idc = 0 To gvwList.Columns.Count - 1 > ? ? ?gvwList[idr, idc].Text = aItemValues[idc] > ? ? ?' and check to see if the max width value needs changing > ? ? ?If (gvwList.Font.TextWidth(gvwList[idr, idc].Text) > aMaxW[idc]) > Then aMaxW[idc] = gvwList.Font.TextWidth(gvwList[idr, idc].Text) > ? ?Next > ? ?Inc idr > ?Next > > ?' Finally set all the column widths according the the values in the > max column widths array > ?For idc = 0 To gvwList.Columns.Count - 1 > ? ?gvwList.Columns[idc].Width = aMaxW[idc] + 7 > ?Next > > End > > ________________________________________________________________________ > See the last bit. I had to bump the computed value by 7 (for both gtk > and qt4) to stop the last letter being chopped. in fact it's the column minimum padding that mask the letter > > regards > Bruce > > On Sun, 2011-09-25 at 18:53 +0200, Fabien Bodard wrote: > >> 2011/9/25 Bruce Bruen : >> > I'm trying to set a gridview column width to the maximum length of the >> > strings in the column. ?I can find the maximum width in terms of the >> > length of the string easily but what do I multiply that by to get the >> > desired cloumn width? >> > I have searched through the wiki but I just cant seem to find what >> > replaces Desktop.Scale? >> why don't you use fontsize ? >> >> iWidth = GridView1.Font.TextWidth(iMaxLetters) >> >> > tia >> > Bruce >> > ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously valuable. >> > Why? It contains a definitive record of application performance, security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2dcopy2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...2524... Tue Sep 27 03:12:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:12:41 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE Message-ID: <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 112 by adamn... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 Benoit, Another LXDE mod, but I'm not sure whether this will work for all LXDE. It does for me because its running under gdm (which provides/requires gnome-keyring). If LXDE is running under a different display manager then gnome-keyring may not be installed. I leave the decision up to you as to whether to follow this approach. Bruce Index: _Desktop_Passwords.class =================================================================== --- _Desktop_Passwords.class (revision 4147) +++ _Desktop_Passwords.class (working copy) @@ -24,7 +24,7 @@ Shell Subst("dcop kded kwalletd open &1 0", Shell(sWallet)) To sResult $sKDEWalletId = Trim(sResult) - Case "GNOME" + Case "GNOME", "LXDE" Component.Load("gb.desktop.gnome") @@ -57,7 +57,7 @@ sResult = Replace(sResult, "\n", "") Return sResult - Case "GNOME" + Case "GNOME", "LXDE" Return _Keyring.GetPassword(Key) @@ -81,7 +81,7 @@ Shell Subst("dcop kded kwalletd writePassword &1 &2 &3 &4", $sKDEWalletId, Shell$(Application.Name), Shell$(Key), Shell$(Value)) Wait - Case "GNOME" + Case "GNOME", "LXDE" _Keyring.SetPassword(Key, Value) From gambas at ...2524... Tue Sep 27 03:20:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:20:47 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE In-Reply-To: <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #1 on issue 112 by benoit.m... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 Are you sure that gnome-keyring is launched by gdm? Why gdm would use gnome-keyring? Can you try with another display manager to be sure about that? From gambas at ...2524... Tue Sep 27 03:24:53 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:24:53 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE In-Reply-To: <1-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #2 on issue 112 by benoit.m... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 (No comment was entered for this change.) From gambas at ...2524... Tue Sep 27 03:28:55 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:28:55 +0000 Subject: [Gambas-user] Issue 108 in gambas: Suggest: IDE should show frame border In-Reply-To: <0-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Priority-Medium Version-TRUNK Priority-Low Comment #1 on issue 108 by benoit.m... at ...626...: Suggest: IDE should show frame border http://code.google.com/p/gambas/issues/detail?id=108 The Frame control is drawn by the Qt4 widget theme, and some of them do not draw any frame for it. I can't do anything against that. I have other solutions for invisible controls in mind, but it will be for a later release. From gambas at ...2524... Tue Sep 27 03:32:58 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:32:58 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE In-Reply-To: <2-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Comment #3 on issue 112 by adamn... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 OK, I'll see what I can do. (I just presumed that it was required by gdm as I had to install it to get session switching to work on my system) Bruce From gambas at ...2524... Tue Sep 27 03:37:00 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:37:00 +0000 Subject: [Gambas-user] Issue 109 in gambas: IDE Delete deleted everything with a similar name In-Reply-To: <0-6813199134517018827-11405351631308715775-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11405351631308715775-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11405351631308715775-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-TRUNK Comment #1 on issue 109 by benoit.m... at ...626...: IDE Delete deleted everything with a similar name http://code.google.com/p/gambas/issues/detail?id=109 Sorry for your lost, but: - Deleting a source file deletes all files having the same basename. They are supposed to be different parts of the same class. - You should have not touch anything inside the ".src" directory. This directory is managed by the IDE, and is not hidden just for fun. - You should have save your file in another place. - The IDE always makes a backup of a file (with the "~" extension) before saving it. From gambas at ...2524... Tue Sep 27 03:41:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:41:03 +0000 Subject: [Gambas-user] Issue 110 in gambas: Gambas Doc Addition In-Reply-To: <0-6813199134517018827-12343202263122841472-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12343202263122841472-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12343202263122841472-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version -Type-Bug Version-Any Type-Documentation Comment #1 on issue 110 by benoit.m... at ...626...: Gambas Doc Addition http://code.google.com/p/gambas/issues/detail?id=110 Fixed. From gambas at ...2524... Tue Sep 27 03:45:07 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:45:07 +0000 Subject: [Gambas-user] Issue 108 in gambas: Suggest: IDE should show frame border In-Reply-To: <1-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> <0-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3276663092057171595-gambas=googlecode.com@...2524...> Updates: Labels: -Type-Bug Type-Enhancement Comment #2 on issue 108 by benoit.m... at ...626...: Suggest: IDE should show frame border http://code.google.com/p/gambas/issues/detail?id=108 (No comment was entered for this change.) From gambas at ...2524... Tue Sep 27 03:49:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 01:49:09 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE In-Reply-To: <3-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Updates: Labels: -Type-Bug -Priority-Medium Type-Enhancement Priority-Low Comment #4 on issue 112 by benoit.m... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 (No comment was entered for this change.) From gambas at ...2524... Tue Sep 27 04:46:48 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 02:46:48 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE In-Reply-To: <4-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Comment #5 on issue 112 by adamn... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 OK, I tried it with xdm and the gnome-keyring daemon is not started. However, with that mod in, when I try and open a connection in the IDE it just asks for the gnome-keyring password and then works fine. Went back to gdm and on login the gnome-keyring deamon is running, so opening a connection just works. I guess somewhere in one of the X startup scripts that gdm runs is where the keyring gets started (rather than gdm uses it itself). Anyway the point is, LXDE can use the gnome approach, if gnome-keyring is installed. Bruce From bbruen at ...2308... Tue Sep 27 05:07:11 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 27 Sep 2011 12:37:11 +0930 Subject: [Gambas-user] Database manager - gambas2 vs gambas3 - questions Message-ID: <1317092831.3182.12.camel@...2688...> 1) In gambas2, I could get the database manager to "Make gambas code" which was very handy, I can't find this feature in gambas3. Is it removed? 2) In the gambas2 database manager I can expand the height of a row in the data view, I can't seem to do this in the gambas3 version. Is this intentional? 3) In the gambas3 version there is a button "Copy field list", this does not appear to do anything (that I can see). What is it's purpose? regards Bruce From bbruen at ...2308... Tue Sep 27 05:16:21 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 27 Sep 2011 12:46:21 +0930 Subject: [Gambas-user] Database manager - gambas2 vs gambas3 - questions In-Reply-To: <1317092831.3182.12.camel@...2688...> References: <1317092831.3182.12.camel@...2688...> Message-ID: <1317093381.3182.14.camel@...2688...> On Tue, 2011-09-27 at 12:37 +0930, Bruce Bruen wrote: > 1) In gambas2, I could get the database manager to "Make gambas code" > which was very handy, I can't find this feature in gambas3. Is it > removed? > 2) In the gambas2 database manager I can expand the height of a row in > the data view, I can't seem to do this in the gambas3 version. Is this > intentional? > 3) In the gambas3 version there is a button "Copy field list", this does > not appear to do anything (that I can see). What is it's purpose? > regards > Bruce p.s. 4) In gambas 3, I can only have one table or a single sql pane open at a time. I gambas2, I could have lots. From gambas at ...2524... Tue Sep 27 05:41:49 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 03:41:49 +0000 Subject: [Gambas-user] Issue 113 in gambas: Database manager toolbar crashes IDE Message-ID: <0-6813199134517018827-15986684888280340002-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 113 by adamn... at ...626...: Database manager toolbar crashes IDE http://code.google.com/p/gambas/issues/detail?id=113 1) Describe the problem. Clicking on some of the toolbar buttons when there is no proper selection in the tableview on the table fields tab crashes the IDE with [21] Out of bounds. FConnectionEditor.tbvField_Click.550 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4147 Operating system: Linux Distribution: mine ... Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. This is a simple way to show the crash, but it happens in other ways as well (see later) a) create a new sqlite connection and a new sqlite database, called e.g. "crash" b) open the connection (i.e. the database manager window) c) click on "New Table" in the main toolbar, call it "test" d) The table fields view is shown and it looks like the "id" field is selected e) click on the Add button at the top of the Fields tab (i.e. try to add another field) ==> IDE "unexpected error" This also happens when I f) restart the IDE, and reopen the database manager for the "crash" database g) click on the test table h) click once on the "id" field (row still looks selected) i) click on the add field button ==> same error Same thing happens even if I click on the id field until the field name is highlighted and then click on the add field button I also got his to happen with the field delete button and on one occassion, one of the move buttons. It seems that the fields tableview is loosing focus after one of these buttons is clicked (but I dont know if that has anything to do with it). 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From gambas at ...2524... Tue Sep 27 05:48:56 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 03:48:56 +0000 Subject: [Gambas-user] Issue 114 in gambas: Database manager - adding a row edits the wrong field Message-ID: <0-6813199134517018827-544204054053435028-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 114 by adamn... at ...626...: Database manager - adding a row edits the wrong field http://code.google.com/p/gambas/issues/detail?id=114 1) Describe the problem. In the database manager, when a new field is added to a table, the field name for the first row in the fields tableview is selected and opened for editing, not the field name for the field just added. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4147 Operating system: Linux Distribution: mine ... Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE ... 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. a) open a database connection in the database manager and pick a table b) select a field somewhere in the middle of the fields tableview c) click on the Add field button. ==> the new field is created under the selected row but the editor is now editing the field Name for the first field in the table, not the one just added. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From gambas at ...2524... Tue Sep 27 05:54:59 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 03:54:59 +0000 Subject: [Gambas-user] Issue 115 in gambas: Database manager - move fields up and down Message-ID: <0-6813199134517018827-17305098727510586331-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 115 by adamn... at ...626...: Database manager - move fields up and down http://code.google.com/p/gambas/issues/detail?id=115 1) Describe the problem. Every time a field is moved using the Up/Down buttons in the database manager Fields tab, the Up/Down arrows are disabled. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4147 Operating system: Linux Distribution: mine ... Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. Use any database. a) open the database connection in the database manager b) select a table with lots of fields c) select a field in the Fields tableview, the Up/Down arrows become enabled d) click on one of the Up/Down buttons ==> the field is moved properly but the buttons are now disabled and you have to re-select the field in order to move it again. (This is really tedious when there a a lot of fields in the table) 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From gambas at ...2524... Tue Sep 27 14:46:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 12:46:20 +0000 Subject: [Gambas-user] Issue 113 in gambas: Database manager toolbar crashes IDE In-Reply-To: <0-6813199134517018827-15986684888280340002-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15986684888280340002-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15986684888280340002-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 113 by benoit.m... at ...626...: Database manager toolbar crashes IDE http://code.google.com/p/gambas/issues/detail?id=113 It should be fixed in revision #4158. From gambas at ...2524... Tue Sep 27 14:50:21 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 12:50:21 +0000 Subject: [Gambas-user] Issue 114 in gambas: Database manager - adding a row edits the wrong field In-Reply-To: <0-6813199134517018827-544204054053435028-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-544204054053435028-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-544204054053435028-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 114 by benoit.m... at ...626...: Database manager - adding a row edits the wrong field http://code.google.com/p/gambas/issues/detail?id=114 It should be fixed in revision #4158. From gambas at ...2524... Tue Sep 27 14:58:26 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 12:58:26 +0000 Subject: [Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE In-Reply-To: <5-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> <0-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-12530818805405300974-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #6 on issue 112 by benoit.m... at ...626...: gb.desktop mod for passwords - LXDE http://code.google.com/p/gambas/issues/detail?id=112 OK. Done in revision #4159. From gambas at ...2524... Tue Sep 27 14:54:23 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 12:54:23 +0000 Subject: [Gambas-user] Issue 115 in gambas: Database manager - move fields up and down In-Reply-To: <0-6813199134517018827-17305098727510586331-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17305098727510586331-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17305098727510586331-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 115 by benoit.m... at ...626...: Database manager - move fields up and down http://code.google.com/p/gambas/issues/detail?id=115 It should be fixed in revision #4158. From vuott at ...325... Tue Sep 27 17:40:18 2011 From: vuott at ...325... (Ru Vuott) Date: Tue, 27 Sep 2011 16:40:18 +0100 (BST) Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors Message-ID: <1317138018.99297.YahooMailClassic@...2682...> Hello Beno?t, I'ld like to recapitulate... AIM: *Receiving* Midi data FROM ALSA (rectius: FROM ALSA functions). STRATEGY: Putting the FD - *passed by ALSA* - under "observation" for Read by using a mechanism like: hfile = OPEN...For....WATCH. Normally the gambas-program sleeps, but when data come to that FD, and so it begins "ready", we'll have not to read data from FD (not from hfile !); the mechanism OPEN...etc... must awake the program and ''raise'' a gambas-event, as File_Read(). So, we'll read the right ad useful Midi data **FROM ALSA** by the special function: snd_seq_event_input(......). > Is there a way for me to emulate a midi input so that I can > actually run your project? Yes, you can use "aplaymidi" program. After run "aplaymidi", remember to allow the connection of my source TO aplaymidi, by writing the Id client number in special ALSA function: err = snd_seq_connect_to(handle, outport, -->HERE<--, dport) that you can find it in CAlsa.class of my source. ....But if you run my program, on its form you can send a midi data by pressing on the button "note". I send you attached "aseqdump" Alsa program, purposely modified for verifing the FD thata it uses. You can compare the FD, used by it, with FD shown by lsof -p PID_of_program command, or strace -p PID command. So, equally, you can compare the fd of my source. This fd is used by my program and passed by ALSA function to OPEN... etc line. Regards Paolo --- Lun 26/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Gambas + Midi + ALSA + file descriptors > A: "mailing list for gambas users" > Data: Luned? 26 settembre 2011, 20:40 > > Hello Beno?t, > > > > I tried to put POLLOUT, but it doesn't change: > > OK, but it couldn't work at all with POLLIN. > > > > >? - a CPU always at 100%; > >? - line OPEN "." & CStr(numfd) wants For > WRITE, and the called sub-routine > > wants File_Read(). - I can put File_Write() also, but > so I have to put the > > "no-blocking" Alsa function:? > snd_seq_nonblock(handle, 1) in the calling > > routine. > > > > ...in short, no newness... > > > > I'ld like remember the problem is the CPU working at > 100%. > > > > Regards > > Paolo > > > > You must understand that the 'Open ".xx"' feature I added > relies on the same > code than any other file. I may have made a mistake, but > it's unlucky. > > Moreover, by reading your code, I don't understand what you > are doing. You > want to watch a file descriptor for *writing*, and in the > event handler, you > are *reading* on it. This not coherent at all, and I can't > guess what you > really want to achieve. > > The 100% CPU is a consequence of that mismatch : if you > don't read during a > File_Read event handler, or if you don't write during a > File_Write event > handler, the event will be raised again and again, eating > all the CPU. > > So, please explain better what you want to do, and we will > find where the > confusion is. > > Is there a way for me to emulate a midi input so that I can > actually run your > project? > > And can you send me your project each time you modify it so > that I am sure to > use the code you are talking about? > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT > infrastructure contains a > definitive record of customers, application performance, > security > threats, fraudulent activity and more. Splunk takes this > data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: aseqdump2 Type: application/octet-stream Size: 14303 bytes Desc: not available URL: From gambas at ...1... Tue Sep 27 17:47:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 27 Sep 2011 17:47:29 +0200 Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors In-Reply-To: <1317138018.99297.YahooMailClassic@...2682...> References: <1317138018.99297.YahooMailClassic@...2682...> Message-ID: <201109271747.29754.gambas@...1...> > Hello Beno?t, > > I'ld like to recapitulate... > > > AIM: > > *Receiving* Midi data FROM ALSA (rectius: FROM ALSA functions). > > > STRATEGY: > > Putting the FD - *passed by ALSA* - under "observation" for Read by using a > mechanism like: hfile = OPEN...For....WATCH. Normally the gambas-program > sleeps, but when data come to that FD, and so it begins "ready", we'll > have not to read data from FD (not from hfile !); the mechanism > OPEN...etc... must awake the program and ''raise'' a gambas-event, as > File_Read(). So, we'll read the right ad useful Midi data **FROM ALSA** by > the special function: snd_seq_event_input(......). > > > Is there a way for me to emulate a midi input so that I can > > actually run your project? > > Yes, you can use "aplaymidi" program. > After run "aplaymidi", remember to allow the connection of my source TO > aplaymidi, by writing the Id client number in special ALSA function: > > err = snd_seq_connect_to(handle, outport, -->HERE<--, dport) > > that you can find it in CAlsa.class of my source. > > > ....But if you run my program, on its form you can send a midi data by > pressing on the button "note". > > > I send you attached "aseqdump" Alsa program, purposely modified for > verifing the FD thata it uses. You can compare the FD, used by it, with FD > shown by lsof -p PID_of_program command, or strace -p PID command. > > So, equally, you can compare the fd of my source. This fd is used by my > program and passed by ALSA function to OPEN... etc line. > > Regards > Paolo > So we agree that you must watch the descriptor for reading (For Read Watch), not for writing (For Write Watch)? I will look at that as soon as I have time. Regards, -- Beno?t Minisini From vuott at ...325... Tue Sep 27 17:55:58 2011 From: vuott at ...325... (Ru Vuott) Date: Tue, 27 Sep 2011 16:55:58 +0100 (BST) Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors In-Reply-To: <201109271747.29754.gambas@...1...> Message-ID: <1317138958.45188.YahooMailClassic@...2698...> > > So we agree that you must watch the descriptor for reading > (For Read Watch), Yes, Benoit: hfile = OPEN "." & Cstr(numfd) For ** READ WATCH ** ----- and Sub-routine raised: Public Sub File_READ() etc... ect... Thanks, Benoit. Paolo From vuott at ...325... Tue Sep 27 18:04:33 2011 From: vuott at ...325... (Ru Vuott) Date: Tue, 27 Sep 2011 17:04:33 +0100 (BST) Subject: [Gambas-user] Gambas + Midi + ALSA + file descriptors TER In-Reply-To: <201109271747.29754.gambas@...1...> Message-ID: <1317139473.66610.YahooMailClassic@...2691...> Excuse, Benoit, I'ld like to remember: I must not read data from fd (because I'll read Midi data from special ALSA function). I need fd to *have* and to **raise** a gambas _Read event (...awake the program, so that I can read Midi data from special ALSA function). ...Ok Excuse, Bye Paolo --- Mar 27/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Gambas + Midi + ALSA + file descriptors > A: "mailing list for gambas users" > Data: Marted? 27 settembre 2011, 17:47 > > Hello Beno?t, > > > > I'ld like to recapitulate... > > > > > > AIM: > > > > *Receiving* Midi data FROM ALSA (rectius: FROM ALSA > functions). > > > > > > STRATEGY: > > > > Putting the FD - *passed by ALSA* - under > "observation" for Read by using a > > mechanism like:? hfile = OPEN...For....WATCH. > Normally the gambas-program > > sleeps, but when data come to that FD, and so it > begins "ready", we'll > > have not to read data from FD (not from hfile !); the > mechanism > > OPEN...etc... must awake the program and ''raise'' a > gambas-event, as > > File_Read(). So, we'll read the right ad useful Midi > data **FROM ALSA** by > > the special function: snd_seq_event_input(......). > > > > > Is there a way for me to emulate a midi input so > that I can > > > actually run your project? > > > > Yes, you can use "aplaymidi" program. > > After run "aplaymidi", remember to allow the > connection of my source TO > > aplaymidi, by writing the Id client number in special > ALSA function: > > > > err = snd_seq_connect_to(handle, outport, > -->HERE<--, dport) > > > > that you can find it in CAlsa.class of my source. > > > > > > ....But if you run my program, on its form you can > send a midi data by > > pressing on the button "note". > > > > > > I send you attached "aseqdump" Alsa program, purposely > modified for > > verifing the FD thata it uses. You can compare the FD, > used by it, with FD > > shown by lsof -p PID_of_program command, or strace -p > PID command. > > > > So, equally, you can compare the fd of my source. This > fd is used by my > > program and passed by ALSA function to OPEN... etc > line. > > > > Regards > > Paolo > > > > So we agree that you must watch the descriptor for reading > (For Read Watch), > not for writing (For Write Watch)? > > I will look at that as soon as I have time. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT > infrastructure contains a > definitive record of customers, application performance, > security > threats, fraudulent activity and more. Splunk takes this > data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Sep 27 23:55:48 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Sep 2011 21:55:48 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <2-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Comment #3 on issue 42 by rmorga... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 Has this been fixed? It seems to still exist in 2.99.4 I am trying to write a Gambas 3 tutorial and have this error. Works fine in Gambas 2. The program hangs on any use of the Input statement. From gambas at ...1... Wed Sep 28 03:02:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 28 Sep 2011 03:02:31 +0200 Subject: [Gambas-user] Using ALSA library from Gambas Message-ID: <201109280302.31950.gambas@...1...> This mail is for Ru Vuott (Paulo): Hi Paulo, I finally succeeded in running your example. There was a bug in the interpreter that prevented the alsa descritor from being watched for reading only. It has been fixed in revision #4160. So, in CAlsa.ini() function, the alsa fd is watched for reading. And the event handler is named "File_Read". When I click on the "Note" button, the MIDI event is catched by the File_Read procedure, and the event is printed on the console. And the CPU stays quiet as expected. So please upgrade to revision #4160, watch the file for reading, and tell me if it is ok for you. Regards, -- Beno?t Minisini From gambas at ...2524... Wed Sep 28 03:33:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 01:33:28 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <3-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #4 on issue 42 by benoit.m... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 The IDE has just to run its child processes inside a virtual terminal. But the IDE output console is not a true terminal, and there is an echo. Maybe I will have to add some property or method to disable it on demand. From gambas at ...2524... Wed Sep 28 03:37:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 01:37:36 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <4-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Comment #5 on issue 42 by rmorga... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 For simple command line programs this is a major issue. The following code hangs at the INPUT statement. If you run the code and enter "Y" or anything else, then press enter, the program simply hangs. Using Ubuntu 10.04LTS w/latest updates, Gnome Desktop, Gambas 2.99.4 Public Sub Main() DIM answer As String = "N" PRINT "Is your name John (Y/N)?" INPUT answer If answer = "Y" THEN PRINT "Welcome John." ELSE PRINT "Sorry, I do not know you." END END From gambas at ...2524... Wed Sep 28 03:49:08 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 01:49:08 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <5-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Comment #6 on issue 42 by benoit.m... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 This is just a problem inside the IDE. The program runs normally from any terminal. From gambas at ...2524... Wed Sep 28 04:30:18 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 02:30:18 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <6-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Comment #7 on issue 42 by adamn... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 (Sorry to butt in) Benoit, If the Print doesn't terminate in a linefeed then it does not seem to work from a "real" terminal. Note the ; in the first print statement below: Public Sub Main() Dim answer As String = "N" Print "Is your name John (Y/N)?"; Input answer If answer = "Y" Then Print "Welcome John." Else Print "Sorry, I do not know you." Endif End Bruce From gambas at ...2524... Wed Sep 28 04:42:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 02:42:45 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <7-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Comment #8 on issue 42 by benoit.m... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 Of course, you have to use FLUSH to flush your standard output to terminal. Please use the mailing-list for things that are not bugs! Or open a new issue! From vuott at ...325... Wed Sep 28 11:01:53 2011 From: vuott at ...325... (Ru Vuott) Date: Wed, 28 Sep 2011 10:01:53 +0100 (BST) Subject: [Gambas-user] R: Using ALSA library from Gambas In-Reply-To: <201109280302.31950.gambas@...1...> Message-ID: <1317200513.61817.YahooMailClassic@...2683...> Hello Beno?t ! Thank you very much ! Today in the evening I'll can try the new revision. Well, you again tonight. Thanks bye Paolo --- Mer 28/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: [Gambas-user] Using ALSA library from Gambas > A: gambas-user at lists.sourceforge.net > Data: Mercoled? 28 settembre 2011, 03:02 > This mail is for Ru Vuott (Paulo): > > Hi Paulo, > > I finally succeeded in running your example. > > There was a bug in the interpreter that prevented the alsa > descritor from > being watched for reading only. It has been fixed in > revision #4160. > > So, in CAlsa.ini() function, the alsa fd is watched for > reading. And the event > handler is named "File_Read". > > When I click on the "Note" button, the MIDI event is > catched by the File_Read > procedure, and the event is printed on the console. And the > CPU stays quiet as > expected. > > So please upgrade to revision #4160, watch the file for > reading, and tell me > if it is ok for you. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT > infrastructure contains a > definitive record of customers, application performance, > security > threats, fraudulent activity and more. Splunk takes this > data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Sep 28 21:25:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 19:25:43 +0000 Subject: [Gambas-user] Issue 111 in gambas: Renaming a class doesn't update .list & .info properly In-Reply-To: <0-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 111 by benoit.m... at ...626...: Renaming a class doesn't update .list & .info properly http://code.google.com/p/gambas/issues/detail?id=111 Yep. Renaming the source file does not invalidate the contents of .info and .list files. And the compiler, that fills these files, cannot know if a source file has been renamed at the moment. From gambas at ...2524... Wed Sep 28 23:12:07 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Sep 2011 21:12:07 +0000 Subject: [Gambas-user] Issue 111 in gambas: Renaming a class doesn't update .list & .info properly In-Reply-To: <1-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> <0-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14203380294467799826-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 111 by benoit.m... at ...626...: Renaming a class doesn't update .list & .info properly http://code.google.com/p/gambas/issues/detail?id=111 Fixed in revision #4162. From gambas at ...2524... Thu Sep 29 09:41:01 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 29 Sep 2011 07:41:01 +0000 Subject: [Gambas-user] Issue 116 in gambas: sigfault with gb.db component Message-ID: <0-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 116 by sot... at ...626...: sigfault with gb.db component http://code.google.com/p/gambas/issues/detail?id=116 1) Describe the problem. Opening a connection to postgresql server cause a signal #11 error 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4163 Operating system: Linux / FreeBSD Distribution: Ubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome [System] OperatingSystem=Linux KernelRelease=2.6.32-33-generic Architecture=x86_64 Memory=4059336 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.3 LTS" Desktop=Gnome [Gambas 2] Version=2.23.0 Path=/usr/local/bin/gbx2 [Gambas 3] Version=2.99.4 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.2 GTK+=libgtk-x11-2.0.so.0.2000.1 3) Provide a little project that reproduces the bug or the crash. sigfault tar attached with gdb and valgrind output inside 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. simply try open a connection 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: sigfault.tar.gz 6.5 KB From gambas at ...2524... Fri Sep 30 06:30:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Sep 2011 04:30:35 +0000 Subject: [Gambas-user] Issue 117 in gambas: Clean Up deletes library files Message-ID: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 117 by adamn... at ...626...: Clean Up deletes library files http://code.google.com/p/gambas/issues/detail?id=117 1) Describe the problem. Project Clean Up deletes libraries copied into the project directory. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4163 Operating system: Linux Distribution: mine Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. na 4) If your project needs a database, try to provide it, or part of it. na 5) Explain clearly how to reproduce the bug or the crash. Copy a library executable into the project directory (as directed recently) Run Project Clean Up ==> library files are deleted 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From girardhenri at ...67... Fri Sep 30 09:58:25 2011 From: girardhenri at ...67... (Girard Henri) Date: Fri, 30 Sep 2011 09:58:25 +0200 Subject: [Gambas-user] glu.sphere In-Reply-To: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> Message-ID: Salut, Je suis en train de me prendre la tete en essayant de faire une sphere en opengl, si quelqu'un pouvait m'envoyer un example simple de glu.sphere /glu.New quadric. Je n'ai pas trouver d'exemple. Merci d'avance Henri From gambas at ...1... Fri Sep 30 10:16:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 30 Sep 2011 10:16:40 +0200 Subject: [Gambas-user] glu.sphere In-Reply-To: References: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> Message-ID: <201109301016.40259.gambas@...1...> > Salut, > > Je suis en train de me prendre la tete en essayant de faire une sphere > en opengl, si quelqu'un pouvait m'envoyer un example simple de > glu.sphere /glu.New quadric. > Je n'ai pas trouver d'exemple. > Merci d'avance > Henri > This is an english mailing-list : please go the french mailing-list to speak french! Regards, -- Beno?t Minisini From tommyline at ...2340... Fri Sep 30 10:22:21 2011 From: tommyline at ...2340... (tommyline at ...2340...) Date: Fri, 30 Sep 2011 09:22:21 +0100 (IST) Subject: [Gambas-user] glu.sphere In-Reply-To: Message-ID: <5478230.1574.1317370941826.JavaMail.root@...2632...> Hi Henri. You can use just any Opengl example and add: Private quad As GluQuadric - in declaration quad = glu.NewQuadric() - in initializaction or screen_resize glu.Sphere(quad, 0.5, 16, 16) - in screen_draw. glu.sphere(quad,radius,slices,stacks) That's it. Reagards, Tomek. ----- Original Message ----- From: "Girard Henri" To: gambas-user at lists.sourceforge.net Sent: Friday, 30 September, 2011 8:58:25 AM Subject: [Gambas-user] glu.sphere Salut, Je suis en train de me prendre la tete en essayant de faire une sphere en opengl, si quelqu'un pouvait m'envoyer un example simple de glu.sphere /glu.New quadric. Je n'ai pas trouver d'exemple. Merci d'avance Henri ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From girardhenri at ...402... Fri Sep 30 10:22:43 2011 From: girardhenri at ...402... (Girard Henri) Date: Fri, 30 Sep 2011 10:22:43 +0200 Subject: [Gambas-user] glu.sphere In-Reply-To: <201109301016.40259.gambas@...1...> References: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> <201109301016.40259.gambas@...1...> Message-ID: <4E857C53.90803@...402...> Le 30/09/2011 10:16, Beno?t Minisini a ?crit : >> Salut, >> >> Je suis en train de me prendre la tete en essayant de faire une sphere >> en opengl, si quelqu'un pouvait m'envoyer un example simple de >> glu.sphere /glu.New quadric. >> Je n'ai pas trouver d'exemple. >> Merci d'avance >> Henri >> > This is an english mailing-list : please go the french mailing-list to speak > french! > > Regards, > Sorry I didn't even notice it ! From gambas at ...2524... Fri Sep 30 10:24:17 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Sep 2011 08:24:17 +0000 Subject: [Gambas-user] Issue 116 in gambas: sigfault with gb.db component In-Reply-To: <0-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 116 by benoit.m... at ...626...: sigfault with gb.db component http://code.google.com/p/gambas/issues/detail?id=116 (No comment was entered for this change.) From gambas at ...2524... Fri Sep 30 10:28:27 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Sep 2011 08:28:27 +0000 Subject: [Gambas-user] Issue 116 in gambas: sigfault with gb.db component In-Reply-To: <1-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> <0-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12211882621584567400-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 116 by benoit.m... at ...626...: sigfault with gb.db component http://code.google.com/p/gambas/issues/detail?id=116 Should be fixed in revision #4164. From girardhenri at ...67... Fri Sep 30 10:30:19 2011 From: girardhenri at ...67... (Girard Henri) Date: Fri, 30 Sep 2011 10:30:19 +0200 Subject: [Gambas-user] glu.sphere In-Reply-To: References: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> Message-ID: Le 30/09/2011 09:58, Girard Henri a ?crit : In english : Hi, I am looking for an example in opengl concerning glu.sphere /glu.New quadric. If someone could help be very thanks, a simple example would be appreciated. kind regards Henri > Salut, > > Je suis en train de me prendre la tete en essayant de faire une sphere > en opengl, si quelqu'un pouvait m'envoyer un example simple de > glu.sphere /glu.New quadric. > Je n'ai pas trouver d'exemple. > Merci d'avance > Henri > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From girardhenri at ...67... Fri Sep 30 10:32:17 2011 From: girardhenri at ...67... (Girard Henri) Date: Fri, 30 Sep 2011 10:32:17 +0200 Subject: [Gambas-user] glu.sphere In-Reply-To: <5478230.1574.1317370941826.JavaMail.root@...2632...> References: <5478230.1574.1317370941826.JavaMail.root@...2632...> Message-ID: Thanks i just send another mail before I read your email ! I am trying it :) regards Henri Le 30/09/2011 10:22, tommyline at ...2340... a ?crit : > Hi Henri. > > You can use just any Opengl example and add: > > > > Private quad As GluQuadric - in declaration > > > > quad = glu.NewQuadric() - in initializaction or screen_resize > > > > glu.Sphere(quad, 0.5, 16, 16) - in screen_draw. glu.sphere(quad,radius,slices,stacks) > > > That's it. > Reagards, Tomek. > > ----- Original Message ----- > From: "Girard Henri" > To: gambas-user at lists.sourceforge.net > Sent: Friday, 30 September, 2011 8:58:25 AM > Subject: [Gambas-user] glu.sphere > > Salut, > > Je suis en train de me prendre la tete en essayant de faire une sphere > en opengl, si quelqu'un pouvait m'envoyer un example simple de > glu.sphere /glu.New quadric. > Je n'ai pas trouver d'exemple. > Merci d'avance > Henri > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...2524... Fri Sep 30 10:32:31 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Sep 2011 08:32:31 +0000 Subject: [Gambas-user] Issue 117 in gambas: Clean Up deletes library files In-Reply-To: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11481284760814689118-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 117 by benoit.m... at ...626...: Clean Up deletes library files http://code.google.com/p/gambas/issues/detail?id=117 Yes, "clean up" remove all file having the ".gambas" extension. But why do you want to store gambas executables inside your project. This is normally not a good idea... From sotema at ...626... Fri Sep 30 12:34:24 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Fri, 30 Sep 2011 12:34:24 +0200 Subject: [Gambas-user] Issue 116 in gambas: sigfault with gb.db component Message-ID: <1317378864.19047.3.camel@...2516...> It is fixed with rev #4164 Thanks! Emanuele From girardhenri at ...402... Fri Sep 30 16:11:29 2011 From: girardhenri at ...402... (Girard Henri) Date: Fri, 30 Sep 2011 16:11:29 +0200 Subject: [Gambas-user] glu.wireCube or glu.wireSphere In-Reply-To: <5478230.1574.1317370941826.JavaMail.root@...2632...> References: <5478230.1574.1317370941826.JavaMail.root@...2632...> Message-ID: <4E85CE11.4090605@...402...> Hi, Is there a way of doing in gambas opengl glu.wireCube (with example)? I can't find it anywhere ? thanks Henri From vuott at ...325... Fri Sep 30 17:14:36 2011 From: vuott at ...325... (Ru Vuott) Date: Fri, 30 Sep 2011 16:14:36 +0100 (BST) Subject: [Gambas-user] R: Using ALSA library from Gambas In-Reply-To: <201109280302.31950.gambas@...1...> Message-ID: <1317395676.90685.YahooMailClassic@...2682...> Hello Beno?t, I tried rev. 4160 about your "trick", and everything went perfectly. So, I'ld like to thank you very much again. Regards Paolo --- Mer 28/9/11, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: [Gambas-user] Using ALSA library from Gambas > A: gambas-user at lists.sourceforge.net > Data: Mercoled? 28 settembre 2011, 03:02 > This mail is for Ru Vuott (Paulo): > > Hi Paulo, > > I finally succeeded in running your example. > > There was a bug in the interpreter that prevented the alsa > descritor from > being watched for reading only. It has been fixed in > revision #4160. > > So, in CAlsa.ini() function, the alsa fd is watched for > reading. And the event > handler is named "File_Read". > > When I click on the "Note" button, the MIDI event is > catched by the File_Read > procedure, and the event is printed on the console. And the > CPU stays quiet as > expected. > > So please upgrade to revision #4160, watch the file for > reading, and tell me > if it is ok for you. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT > infrastructure contains a > definitive record of customers, application performance, > security > threats, fraudulent activity and more. Splunk takes this > data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tommyline at ...2340... Fri Sep 30 19:44:21 2011 From: tommyline at ...2340... (tommyline at ...2340...) Date: Fri, 30 Sep 2011 18:44:21 +0100 (IST) Subject: [Gambas-user] glu.wireCube or glu.wireSphere In-Reply-To: <4E85CE11.4090605@...402...> Message-ID: <21780849.13256.1317404661477.JavaMail.root@...2632...> Hi Henri, Unfortunately Wire cube, or WireSphere is a part of the GLUT library which is not implemented in Gambas. But based on Freeglut source, I made my own glut geometry module. Public Sub WireCube(dSize As Float) Dim size As Float = dSize * 0.5 gl.Begin(gl.LINE_LOOP) gl.Normal3f(1.0, 0.0, 0.0) gl.Vertex3f(size, - size, size) gl.Vertex3f(size, - size, - size) gl.Vertex3f(size, size, - size) gl.Vertex3f(size, size, size) gl.End() gl.Begin(gl.LINE_LOOP) gl.Normal3f(0.0, 1.0, 0.0) gl.Vertex3f(size, size, size) gl.Vertex3f(size, size, - size) gl.Vertex3f(- size, size, - size) gl.Vertex3f(- size, size, size) gl.End() gl.Begin(gl.LINE_LOOP) gl.Normal3f(0.0, 0.0, 1.0) gl.Vertex3f(size, size, size) gl.Vertex3f(- size, size, size) gl.Vertex3f(- size, - size, size) gl.Vertex3f(size, - size, size) gl.End() gl.Begin(gl.LINE_LOOP) gl.Normal3f(1.0, 0.0, 0.0) gl.Vertex3f(- size, - size, size) gl.Vertex3f(- size, size, size) gl.Vertex3f(- size, size, - size) gl.Vertex3f(- size, - size, - size) gl.End() gl.Begin(gl.LINE_LOOP) gl.Normal3f(0.0, - 1.0, 0.0) gl.Vertex3f(- size, - size, size) gl.Vertex3f(- size, - size, - size) gl.Vertex3f(size, - size, - size) gl.Vertex3f(size, - size, size) gl.End() gl.Begin(gl.LINE_LOOP) gl.Normal3f(0.0, 0.0, 1.0) gl.Vertex3f(- size, - size, - size) gl.Vertex3f(- size, size, - size) gl.Vertex3f(size, size, - size) gl.Vertex3f(size, - size, - size) gl.End() End Public Sub WireSphere(radius As Float, slices As Integer, stacks As Integer) Dim i, j As Integer Dim z, x, r, y As Float Dim sint1, sint2 As New Float[360] Dim cost1, cost2 As New Float[360] Dim size As Integer ' / * Table size, the sign OF n flips the circle direction * / Dim angle As Float ' / * Determine the angle between samples * / '/* Pre - computed circle * / size = - slices angle As Float = 2 * Pi / (size) sint1[0] = 0.0 cost1[0] = 1.0 For i = 1 To size sint1[i] = Sin(angle * i) cost1[i] = Cos(angle * i) Next sint1[size] = sint1[0] cost1[size] = cost1[0] size = stacks * 2 angle As Float = 2 * Pi / (size) sint2[0] = 0.0 cost2[0] = 1.0 For i = 1 To size sint2[i] = Sin(angle * i) cost2[i] = Cos(angle * i) Next sint2[size] = sint2[0] cost2[size] = cost2[0] '/ * Draw a LINE LOOP FOR EACH stack * / For i = 1 To stacks z = cost2[i] r = sint2[i] gl.Begin(gl.LINE_LOOP) For j = 0 To slices x = cost1[j] y = sint1[j] gl.Normal3f(x, y, z) gl.Vertex3f(x * r * radius, y * r * radius, z * radius) Next gl.End() Next '/ * Draw a LINE LOOP FOR EACH slice * / For i = 0 To slices gl.Begin(gl.LINE_STRIP) For j = 0 To stacks x = cost1[i] * sint2[j] y = sint1[i] * sint2[j] z = cost2[j] gl.Normal3f(x, y, z) gl.Vertex3f(x * radius, y * radius, z * radius) Next gl.End() Next End Regards, Tomek ----- Original Message ----- From: "Girard Henri" To: gambas-user at lists.sourceforge.net Sent: Friday, 30 September, 2011 3:11:29 PM Subject: [Gambas-user] glu.wireCube or glu.wireSphere Hi, Is there a way of doing in gambas opengl glu.wireCube (with example)? I can't find it anywhere ? thanks Henri ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Fri Sep 30 21:36:04 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Sep 2011 19:36:04 +0000 Subject: [Gambas-user] Issue 118 in gambas: Project saving directory recursion Message-ID: <0-6813199134517018827-14949552785129910484-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 118 by Mushkete... at ...626...: Project saving directory recursion http://code.google.com/p/gambas/issues/detail?id=118 I have made project called "da" it compiles ok But (i dont know for what :D ) i wanted to save Project As i have chosen also that dir "da" Gambas gave me error- "Cant save project.stack overflow" i wathec at dirs and found that he made dir "da" in dir "da" and in that dir is also dir "da" :D so..the recursion he made aprox 200 dirs :D well..thats not a hard bug and its simple to fix I am using LinuxMint(ubuntu) and gambas 2.21 From girardhenri at ...402... Fri Sep 30 22:24:06 2011 From: girardhenri at ...402... (Girard Henri) Date: Fri, 30 Sep 2011 22:24:06 +0200 Subject: [Gambas-user] glu.wireCube or glu.wireSphere In-Reply-To: <21780849.13256.1317404661477.JavaMail.root@...2632...> References: <21780849.13256.1317404661477.JavaMail.root@...2632...> Message-ID: <4E862566.3040201@...402...> Le 30/09/2011 19:44, tommyline at ...2340... a ?crit : Works fine for wirecube but i got an "out of bounds" for the wiresphere at: sint1[size] = sint1[0] Wiresphere(1.0,5,5) for example Need help regards Henri > Hi Henri, > > Unfortunately Wire cube, or WireSphere is a part of the GLUT library which is not implemented in Gambas. But based on Freeglut source, I made my own glut geometry module. > > Public Sub WireCube(dSize As Float) > Dim size As Float = dSize * 0.5 > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(1.0, 0.0, 0.0) > gl.Vertex3f(size, - size, size) > gl.Vertex3f(size, - size, - size) > gl.Vertex3f(size, size, - size) > gl.Vertex3f(size, size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, 1.0, 0.0) > gl.Vertex3f(size, size, size) > gl.Vertex3f(size, size, - size) > gl.Vertex3f(- size, size, - size) > gl.Vertex3f(- size, size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, 0.0, 1.0) > gl.Vertex3f(size, size, size) > gl.Vertex3f(- size, size, size) > gl.Vertex3f(- size, - size, size) > gl.Vertex3f(size, - size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(1.0, 0.0, 0.0) > gl.Vertex3f(- size, - size, size) > gl.Vertex3f(- size, size, size) > gl.Vertex3f(- size, size, - size) > gl.Vertex3f(- size, - size, - size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, - 1.0, 0.0) > gl.Vertex3f(- size, - size, size) > gl.Vertex3f(- size, - size, - size) > gl.Vertex3f(size, - size, - size) > gl.Vertex3f(size, - size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, 0.0, 1.0) > gl.Vertex3f(- size, - size, - size) > gl.Vertex3f(- size, size, - size) > gl.Vertex3f(size, size, - size) > gl.Vertex3f(size, - size, - size) > gl.End() > > End > > Public Sub WireSphere(radius As Float, slices As Integer, stacks As Integer) > Dim i, j As Integer > Dim z, x, r, y As Float > Dim sint1, sint2 As New Float[360] > Dim cost1, cost2 As New Float[360] > Dim size As Integer ' / * Table size, the sign OF n flips the circle direction * / > Dim angle As Float ' / * Determine the angle between samples * / > > '/* Pre - computed circle * / > size = - slices > angle As Float = 2 * Pi / (size) > sint1[0] = 0.0 > cost1[0] = 1.0 > For i = 1 To size > sint1[i] = Sin(angle * i) > cost1[i] = Cos(angle * i) > Next > sint1[size] = sint1[0] > cost1[size] = cost1[0] > > size = stacks * 2 > angle As Float = 2 * Pi / (size) > sint2[0] = 0.0 > cost2[0] = 1.0 > For i = 1 To size > sint2[i] = Sin(angle * i) > cost2[i] = Cos(angle * i) > Next > sint2[size] = sint2[0] > cost2[size] = cost2[0] > > '/ * Draw a LINE LOOP FOR EACH stack * / > > For i = 1 To stacks > z = cost2[i] > r = sint2[i] > > gl.Begin(gl.LINE_LOOP) > For j = 0 To slices > x = cost1[j] > y = sint1[j] > gl.Normal3f(x, y, z) > gl.Vertex3f(x * r * radius, y * r * radius, z * radius) > Next > > gl.End() > Next > > '/ * Draw a LINE LOOP FOR EACH slice * / > > For i = 0 To slices > gl.Begin(gl.LINE_STRIP) > For j = 0 To stacks > x = cost1[i] * sint2[j] > y = sint1[i] * sint2[j] > z = cost2[j] > > gl.Normal3f(x, y, z) > gl.Vertex3f(x * radius, y * radius, z * radius) > Next > > gl.End() > Next > > End > > Regards, > Tomek > > ----- Original Message ----- > From: "Girard Henri" > To: gambas-user at lists.sourceforge.net > Sent: Friday, 30 September, 2011 3:11:29 PM > Subject: [Gambas-user] glu.wireCube or glu.wireSphere > > Hi, > Is there a way of doing in gambas opengl glu.wireCube (with example)? > I can't find it anywhere ? > thanks > Henri > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From tommyline at ...2340... Fri Sep 30 22:34:16 2011 From: tommyline at ...2340... (tommyline at ...2340...) Date: Fri, 30 Sep 2011 21:34:16 +0100 (IST) Subject: [Gambas-user] glu.wireCube or glu.wireSphere In-Reply-To: <4E862566.3040201@...402...> Message-ID: <2477820.15254.1317414856789.JavaMail.root@...2632...> I'm sorry, there was a bug. Instead of '/* Pre - computed circle * / size = - slices should be '/* Pre - computed circle * / size = slices 'No minus here!!! you get sint1[-5] => error. Regards, Tomek ----- Original Message ----- From: "Girard Henri" To: gambas-user at lists.sourceforge.net Sent: Friday, 30 September, 2011 9:24:06 PM Subject: Re: [Gambas-user] glu.wireCube or glu.wireSphere Le 30/09/2011 19:44, tommyline at ...2340... a ?crit : Works fine for wirecube but i got an "out of bounds" for the wiresphere at: sint1[size] = sint1[0] Wiresphere(1.0,5,5) for example Need help regards Henri > Hi Henri, > > Unfortunately Wire cube, or WireSphere is a part of the GLUT library which is not implemented in Gambas. But based on Freeglut source, I made my own glut geometry module. > > Public Sub WireCube(dSize As Float) > Dim size As Float = dSize * 0.5 > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(1.0, 0.0, 0.0) > gl.Vertex3f(size, - size, size) > gl.Vertex3f(size, - size, - size) > gl.Vertex3f(size, size, - size) > gl.Vertex3f(size, size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, 1.0, 0.0) > gl.Vertex3f(size, size, size) > gl.Vertex3f(size, size, - size) > gl.Vertex3f(- size, size, - size) > gl.Vertex3f(- size, size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, 0.0, 1.0) > gl.Vertex3f(size, size, size) > gl.Vertex3f(- size, size, size) > gl.Vertex3f(- size, - size, size) > gl.Vertex3f(size, - size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(1.0, 0.0, 0.0) > gl.Vertex3f(- size, - size, size) > gl.Vertex3f(- size, size, size) > gl.Vertex3f(- size, size, - size) > gl.Vertex3f(- size, - size, - size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, - 1.0, 0.0) > gl.Vertex3f(- size, - size, size) > gl.Vertex3f(- size, - size, - size) > gl.Vertex3f(size, - size, - size) > gl.Vertex3f(size, - size, size) > gl.End() > > gl.Begin(gl.LINE_LOOP) > gl.Normal3f(0.0, 0.0, 1.0) > gl.Vertex3f(- size, - size, - size) > gl.Vertex3f(- size, size, - size) > gl.Vertex3f(size, size, - size) > gl.Vertex3f(size, - size, - size) > gl.End() > > End > > Public Sub WireSphere(radius As Float, slices As Integer, stacks As Integer) > Dim i, j As Integer > Dim z, x, r, y As Float > Dim sint1, sint2 As New Float[360] > Dim cost1, cost2 As New Float[360] > Dim size As Integer ' / * Table size, the sign OF n flips the circle direction * / > Dim angle As Float ' / * Determine the angle between samples * / > > '/* Pre - computed circle * / > size = - slices > angle As Float = 2 * Pi / (size) > sint1[0] = 0.0 > cost1[0] = 1.0 > For i = 1 To size > sint1[i] = Sin(angle * i) > cost1[i] = Cos(angle * i) > Next > sint1[size] = sint1[0] > cost1[size] = cost1[0] > > size = stacks * 2 > angle As Float = 2 * Pi / (size) > sint2[0] = 0.0 > cost2[0] = 1.0 > For i = 1 To size > sint2[i] = Sin(angle * i) > cost2[i] = Cos(angle * i) > Next > sint2[size] = sint2[0] > cost2[size] = cost2[0] > > '/ * Draw a LINE LOOP FOR EACH stack * / > > For i = 1 To stacks > z = cost2[i] > r = sint2[i] > > gl.Begin(gl.LINE_LOOP) > For j = 0 To slices > x = cost1[j] > y = sint1[j] > gl.Normal3f(x, y, z) > gl.Vertex3f(x * r * radius, y * r * radius, z * radius) > Next > > gl.End() > Next > > '/ * Draw a LINE LOOP FOR EACH slice * / > > For i = 0 To slices > gl.Begin(gl.LINE_STRIP) > For j = 0 To stacks > x = cost1[i] * sint2[j] > y = sint1[i] * sint2[j] > z = cost2[j] > > gl.Normal3f(x, y, z) > gl.Vertex3f(x * radius, y * radius, z * radius) > Next > > gl.End() > Next > > End > > Regards, > Tomek > > ----- Original Message ----- > From: "Girard Henri" > To: gambas-user at lists.sourceforge.net > Sent: Friday, 30 September, 2011 3:11:29 PM > Subject: [Gambas-user] glu.wireCube or glu.wireSphere > > Hi, > Is there a way of doing in gambas opengl glu.wireCube (with example)? > I can't find it anywhere ? > thanks > Henri > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From girardhenri at ...402... Fri Sep 30 22:41:37 2011 From: girardhenri at ...402... (Girard Henri) Date: Fri, 30 Sep 2011 22:41:37 +0200 Subject: [Gambas-user] glu.wireCube or glu.wireSphere In-Reply-To: <4E862566.3040201@...402...> References: <21780849.13256.1317404661477.JavaMail.root@...2632...> <4E862566.3040201@...402...> Message-ID: <4E862981.1020102@...402...> Le 30/09/2011 22:24, Girard Henri a ?crit : Thanks for quick reply ! Works fine :) regards Henri > Le 30/09/2011 19:44, tommyline at ...2340... a ?crit : > Works fine for wirecube but i got an "out of bounds" for the wiresphere at: > sint1[size] = sint1[0] > Wiresphere(1.0,5,5) for example > Need help > regards > Henri >> Hi Henri, >> >> Unfortunately Wire cube, or WireSphere is a part of the GLUT library which is not implemented in Gambas. But based on Freeglut source, I made my own glut geometry module. >> >> Public Sub WireCube(dSize As Float) >> Dim size As Float = dSize * 0.5 >> >> gl.Begin(gl.LINE_LOOP) >> gl.Normal3f(1.0, 0.0, 0.0) >> gl.Vertex3f(size, - size, size) >> gl.Vertex3f(size, - size, - size) >> gl.Vertex3f(size, size, - size) >> gl.Vertex3f(size, size, size) >> gl.End() >> >> gl.Begin(gl.LINE_LOOP) >> gl.Normal3f(0.0, 1.0, 0.0) >> gl.Vertex3f(size, size, size) >> gl.Vertex3f(size, size, - size) >> gl.Vertex3f(- size, size, - size) >> gl.Vertex3f(- size, size, size) >> gl.End() >> >> gl.Begin(gl.LINE_LOOP) >> gl.Normal3f(0.0, 0.0, 1.0) >> gl.Vertex3f(size, size, size) >> gl.Vertex3f(- size, size, size) >> gl.Vertex3f(- size, - size, size) >> gl.Vertex3f(size, - size, size) >> gl.End() >> >> gl.Begin(gl.LINE_LOOP) >> gl.Normal3f(1.0, 0.0, 0.0) >> gl.Vertex3f(- size, - size, size) >> gl.Vertex3f(- size, size, size) >> gl.Vertex3f(- size, size, - size) >> gl.Vertex3f(- size, - size, - size) >> gl.End() >> >> gl.Begin(gl.LINE_LOOP) >> gl.Normal3f(0.0, - 1.0, 0.0) >> gl.Vertex3f(- size, - size, size) >> gl.Vertex3f(- size, - size, - size) >> gl.Vertex3f(size, - size, - size) >> gl.Vertex3f(size, - size, size) >> gl.End() >> >> gl.Begin(gl.LINE_LOOP) >> gl.Normal3f(0.0, 0.0, 1.0) >> gl.Vertex3f(- size, - size, - size) >> gl.Vertex3f(- size, size, - size) >> gl.Vertex3f(size, size, - size) >> gl.Vertex3f(size, - size, - size) >> gl.End() >> >> End >> >> Public Sub WireSphere(radius As Float, slices As Integer, stacks As Integer) >> Dim i, j As Integer >> Dim z, x, r, y As Float >> Dim sint1, sint2 As New Float[360] >> Dim cost1, cost2 As New Float[360] >> Dim size As Integer ' / * Table size, the sign OF n flips the circle direction * / >> Dim angle As Float ' / * Determine the angle between samples * / >> >> '/* Pre - computed circle * / >> size = - slices >> angle As Float = 2 * Pi / (size) >> sint1[0] = 0.0 >> cost1[0] = 1.0 >> For i = 1 To size >> sint1[i] = Sin(angle * i) >> cost1[i] = Cos(angle * i) >> Next >> sint1[size] = sint1[0] >> cost1[size] = cost1[0] >> >> size = stacks * 2 >> angle As Float = 2 * Pi / (size) >> sint2[0] = 0.0 >> cost2[0] = 1.0 >> For i = 1 To size >> sint2[i] = Sin(angle * i) >> cost2[i] = Cos(angle * i) >> Next >> sint2[size] = sint2[0] >> cost2[size] = cost2[0] >> >> '/ * Draw a LINE LOOP FOR EACH stack * / >> >> For i = 1 To stacks >> z = cost2[i] >> r = sint2[i] >> >> gl.Begin(gl.LINE_LOOP) >> For j = 0 To slices >> x = cost1[j] >> y = sint1[j] >> gl.Normal3f(x, y, z) >> gl.Vertex3f(x * r * radius, y * r * radius, z * radius) >> Next >> >> gl.End() >> Next >> >> '/ * Draw a LINE LOOP FOR EACH slice * / >> >> For i = 0 To slices >> gl.Begin(gl.LINE_STRIP) >> For j = 0 To stacks >> x = cost1[i] * sint2[j] >> y = sint1[i] * sint2[j] >> z = cost2[j] >> >> gl.Normal3f(x, y, z) >> gl.Vertex3f(x * radius, y * radius, z * radius) >> Next >> >> gl.End() >> Next >> >> End >> >> Regards, >> Tomek >> >> ----- Original Message ----- >> From: "Girard Henri" >> To: gambas-user at lists.sourceforge.net >> Sent: Friday, 30 September, 2011 3:11:29 PM >> Subject: [Gambas-user] glu.wireCube or glu.wireSphere >> >> Hi, >> Is there a way of doing in gambas opengl glu.wireCube (with example)? >> I can't find it anywhere ? >> thanks >> Henri >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > >