From john.aaron.rose at ...626... Sat Feb 1 11:25:51 2014 From: john.aaron.rose at ...626... (John Rose) Date: Sat, 01 Feb 2014 10:25:51 +0000 Subject: [Gambas-user] Converting from Basic4android to Gambas Message-ID: <52ECCBAF.3030004@...626...> Fabien, Apologies for not replying. I've just noticed that Thunderbird has been putting Gambas 'postings' into Junk. Re your question on 'is it projection'. I don't know what you mean by this. The library calculates from GB Ordnance Survey grid references to GB Ordnance Survey (i.e. GB36) co-ordinates to GPS (i.e. WGS84 co-ordinates) and vice-versa. It doesn't use the GPS receiver & it doesn't use maps. Thus, it's purely calculation. From gambas.fr at ...626... Sat Feb 1 11:35:56 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 1 Feb 2014 11:35:56 +0100 Subject: [Gambas-user] Converting from Basic4android to Gambas In-Reply-To: <52ECCBAF.3030004@...626...> References: <52ECCBAF.3030004@...626...> Message-ID: I have a class based on proj for that Le 1 f?vr. 2014 11:27, "John Rose" a ?crit : > Fabien, > Apologies for not replying. I've just noticed that Thunderbird has been > putting Gambas 'postings' into Junk. Re your question on 'is it > projection'. I don't know what you mean by this. The library calculates > from GB Ordnance Survey grid references to GB Ordnance Survey (i.e. > GB36) co-ordinates to GPS (i.e. WGS84 co-ordinates) and vice-versa. It > doesn't use the GPS receiver & it doesn't use maps. Thus, it's purely > calculation. > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Sat Feb 1 14:12:03 2014 From: abbat.81 at ...787... (abbat81) Date: Sat, 1 Feb 2014 05:12:03 -0800 (PST) Subject: [Gambas-user] DateChooser1.Month = Month(Now()) = ERROR (Invalid date) Message-ID: <1391260322620-45482.post@...3046...> I don't understand. It always worked good. But not today. DateChooser1.Month = Month(Now()) DateChooser1.Month = 2 Public Sub Button1_Click() DateChooser1.Month = 2 'Month(Now()) End = error (Invalid date) (2 and more time to press) DateChooser1.Month = 3 =OK I tjink it's a bug -- View this message in context: http://gambas.8142.n7.nabble.com/DateChooser1-Month-Month-Now-ERROR-Invalid-date-tp45482.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Sat Feb 1 14:35:24 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 1 Feb 2014 15:35:24 +0200 Subject: [Gambas-user] DateChooser1.Month = Month(Now()) = ERROR (Invalid date) In-Reply-To: <1391260322620-45482.post@...3046...> References: <1391260322620-45482.post@...3046...> Message-ID: I don't know what happens here, but documentation suggest that DateChooser1.Month is read only (could be error in doc). http://gambasdoc.org/help/comp/gb.form/datechooser/month?v3 But the error message is strange. Jussi On Sat, Feb 1, 2014 at 3:12 PM, abbat81 wrote: > I don't understand. It always worked good. > But not today. > > DateChooser1.Month = Month(Now()) > DateChooser1.Month = 2 > > Public Sub Button1_Click() > DateChooser1.Month = 2 'Month(Now()) > End > > = error (Invalid date) (2 and more time to press) > > > DateChooser1.Month = 3 > =OK > > I tjink it's a bug > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/DateChooser1-Month-Month-Now-ERROR-Invalid-date-tp45482.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Feb 1 14:40:19 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Feb 2014 14:40:19 +0100 Subject: [Gambas-user] DateChooser1.Month = Month(Now()) = ERROR (Invalid date) In-Reply-To: <1391260322620-45482.post@...3046...> References: <1391260322620-45482.post@...3046...> Message-ID: <52ECF943.90406@...1...> Le 01/02/2014 14:12, abbat81 a ?crit : > I don't understand. It always worked good. > But not today. > > DateChooser1.Month = Month(Now()) > DateChooser1.Month = 2 > > Public Sub Button1_Click() > DateChooser1.Month = 2 'Month(Now()) > End > > = error (Invalid date) (2 and more time to press) > > > DateChooser1.Month = 3 > =OK > > I tjink it's a bug > I confirm... -- Beno?t Minisini From vuott at ...325... Sat Feb 1 16:45:51 2014 From: vuott at ...325... (Ru Vuott) Date: Sat, 1 Feb 2014 15:45:51 +0000 (GMT) Subject: [Gambas-user] Gambas & Qt5 Message-ID: <1391269551.26125.YahooMailBasic@...3271...> Hello, a member of www.gambas-it.org forum asks ( http://www.gambas-it.org/smf/index.php?topic=3260 ) when QT5 libraries will be implemented in Gambas. Regards vuott From gambas at ...1... Sat Feb 1 17:21:30 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Feb 2014 17:21:30 +0100 Subject: [Gambas-user] Gambas & Qt5 In-Reply-To: <1391269551.26125.YahooMailBasic@...3271...> References: <1391269551.26125.YahooMailBasic@...3271...> Message-ID: <52ED1F0A.3020102@...1...> Le 01/02/2014 16:45, Ru Vuott a ?crit : > Hello, > > a member of www.gambas-it.org forum asks ( http://www.gambas-it.org/smf/index.php?topic=3260 ) when QT5 libraries will be implemented in Gambas. > > Regards > vuott > I'm waiting for KDE to release a stable Qt5-based desktop. I don't have much time, so I don't want to spend time to debug Qt5. :-) But what does that member of www.gambas-it.org expect from gb.qt5? There is no reason to have more feature from gb.qt5 than gb.qt4. Regards, -- Beno?t Minisini From gambas at ...1... Sat Feb 1 17:24:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Feb 2014 17:24:17 +0100 Subject: [Gambas-user] DateChooser1.Month = Month(Now()) = ERROR (Invalid date) In-Reply-To: <52ECF943.90406@...1...> References: <1391260322620-45482.post@...3046...> <52ECF943.90406@...1...> Message-ID: <52ED1FB1.4040806@...1...> Le 01/02/2014 14:40, Beno?t Minisini a ?crit : > Le 01/02/2014 14:12, abbat81 a ?crit : >> I don't understand. It always worked good. >> But not today. >> >> DateChooser1.Month = Month(Now()) >> DateChooser1.Month = 2 >> >> Public Sub Button1_Click() >> DateChooser1.Month = 2 'Month(Now()) >> End >> >> = error (Invalid date) (2 and more time to press) >> >> >> DateChooser1.Month = 3 >> =OK >> >> I tjink it's a bug >> > > I confirm... > The bug is fixed in revision #6118. Moreover, DateChooser gets a MinValue and MaxValue property. -- Beno?t Minisini From gambas at ...1... Sun Feb 2 00:25:13 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 02 Feb 2014 00:25:13 +0100 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix In-Reply-To: References: Message-ID: <52ED8259.9090404@...1...> Le 31/01/2014 20:52, PICCORO McKAY Lenz a ?crit : > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From: Beno?t Minisini >> A 'MinDate' property could be a good idea... >> And a 'MaxDate' too, why not? > HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! > (i still remenber that mail ok) > Can you change the subject of your mail if your answer is not related? I made a gb.web example in revision #6121. It is a wiki based on the Gambas markdown syntax. It is a CGI script whose size is about 25 Kb. Not bad for a almost complete wiki (images are not managed yet)? :-) Tell me if it helps you. -- Beno?t Minisini From john.aaron.rose at ...626... Sun Feb 2 09:02:38 2014 From: john.aaron.rose at ...626... (John Rose) Date: Sun, 02 Feb 2014 08:02:38 +0000 Subject: [Gambas-user] Converting from Basic4android to Gambas Message-ID: <52EDFB9E.50802@...626...> Fabien, I was not able to find the proj class in the Gambas documentation. Please tell me where its documentation is? From tercoide at ...67... Sun Feb 2 13:25:26 2014 From: tercoide at ...67... (=?ISO-8859-1?Q?Ing_Mart=EDn_Cristi=E1?=) Date: Sun, 2 Feb 2014 09:25:26 -0300 Subject: [Gambas-user] Long C routine Message-ID: Emil, this is the basic code. For the test, the Wait 0.01 were erased.Also the functions Addbanda(), DeBanda(), are just to locate the (row,col) element of the matrix in the array that contains it. That array cant be embedded as suggested because its size us unknown. Public Function solucionarXgauss(x As Float[], ti As Float[], iOrden As Integer) As Integer ??? ' OK GAMBAS ? ?? ? ??? Dim c1 As Float ??? Dim i As Integer, j As Integer, a As Integer, b As Integer, ok As Integer ??? Dim l As Integer, h As Integer, i1 As Integer, j1 As Integer ??? Dim p1 As Float ?? ? ??? contador = 0 ??? If iOrden = 0 Then Return 0 ??? ok = True ?? ? ??? 'usa el metodo de Gauss ??? 'debe ser cuadrada la matriz ??? ' triangulacion ??? For i = 0 To iOrden - 1 ??????? Wait 0.001 'necesario para el ambiente ??????? If debanda(i, i) <> 0 Then ??????????? For j = i + 1 To iOrden - 1 ??????????????? If debanda(j, i) <> 0 Then ??????????????????? c1 = - debanda(j, i) / debanda(i, i) ??????????????????? For h = i To iOrden - 1 ??????????????????????? addbanda(j, h, c1 * debanda(i, h)) ?????????????????????? ? ??????????????????? Next ??????????????????? ti[j] = ti[j] + c1 * ti[i] ??????????????? End If ??????????? Next ??????? Else ??????????? Return ??????????? l = i ??????????? If i = iOrden - 1 Or l > iOrden - 1 Then Return 0 ' el sistema es incompatible ?????????? ? ??????????? Do ??????????????? If debanda(l, i) <> 0 Then ??????????????????? For h = 0 To iOrden - 1 ??????????????????????? addbanda(i, h, debanda(l, h)) ??????????????????? Next ??????????????????? ti[i] = ti[i] + ti[l] ??????????????????? Exit ??????????????? Else ??????????????????? l = l + 1 ??????????????????? If i = iOrden - 1 Or l > iOrden - 1 Then Return 0 ' el sistema es incompatible ??????????????? End If ??????????? Loop ??????? End If ?????? ? ??? Next ??? ' sustitucion atr?s ?? ? ??? x[iOrden - 1] = ti[iOrden - 1] / debanda(iOrden - 1, iOrden - 1) ??? For i = iOrden - 2 To 0 Step -1 ??????? Wait 0.001 'necesario para el ambiente ??????? p1 = 0 ??????? For j = i + 1 To iOrden - 1 ??????????? p1 = p1 - x[j] * debanda(i, j) ?????????? ? ??????? Next ??????? p1 = ti[i] + p1 ??????? x[i] = p1 / debanda(i, i) ??? Next ??? Return ok ?? ? End Function Ing Martin Cristia From willy at ...2734... Sun Feb 2 15:05:46 2014 From: willy at ...2734... (Willy Raets) Date: Sun, 02 Feb 2014 15:05:46 +0100 Subject: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown Message-ID: <1391349946.3261.11.camel@...3024...> Hi all, I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014). When running the new Web example I got the message that the gb.markdown component is missing. When opening a project and checking the component tab in properties there is no gb.markdown selectable. Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do the trick either. Strange thing is that when I downloaded the source (apt-get source), the gb.markdown component source is available. Any ideas why the gb.markdown won't install. Tested this on: - Linux Mint 16 with xfce 4.10 - Lubuntu 12.10 with LXDE 0.5.11 -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Sun Feb 2 15:15:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 02 Feb 2014 15:15:14 +0100 Subject: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown In-Reply-To: <1391349946.3261.11.camel@...3024...> References: <1391349946.3261.11.camel@...3024...> Message-ID: <52EE52F2.1080904@...1...> Le 02/02/2014 15:05, Willy Raets a ?crit : > Hi all, > > I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014). > When running the new Web example I got the message that the gb.markdown > component is missing. > > When opening a project and checking the component tab in properties > there is no gb.markdown selectable. > > Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do > the trick either. Strange thing is that when I downloaded the source > (apt-get source), the gb.markdown component source is available. > > Any ideas why the gb.markdown won't install. > > Tested this on: > - Linux Mint 16 with xfce 4.10 > - Lubuntu 12.10 with LXDE 0.5.11 > > It has been fixed in revision #6125, so you must wait a little... -- Beno?t Minisini From gambas at ...1... Sun Feb 2 15:36:21 2014 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 02 Feb 2014 15:36:21 +0100 Subject: [Gambas-user] Fwd: Re: Gambas Daily builds PPA doesn't install gb.markdown In-Reply-To: References: Message-ID: <52EE57E5.7000102@...1...> -------- Message original -------- Sujet: Re: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown Date : Sun, 2 Feb 2014 12:23:12 -0200 De : Sebastian Kulesz Pour : Beno?t Minisini Unfortunately I'm on vacations right now and I won't be able to add it. You will have to wait for Kendek to fix it, if he is available. On Feb 2, 2014 9:16 AM, "Beno?t Minisini" > wrote: Le 02/02/2014 15:05, Willy Raets a ?crit : > Hi all, > > I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014). > When running the new Web example I got the message that the gb.markdown > component is missing. > > When opening a project and checking the component tab in properties > there is no gb.markdown selectable. > > Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do > the trick either. Strange thing is that when I downloaded the source > (apt-get source), the gb.markdown component source is available. > > Any ideas why the gb.markdown won't install. > > Tested this on: > - Linux Mint 16 with xfce 4.10 > - Lubuntu 12.10 with LXDE 0.5.11 > > It has been fixed in revision #6125, so you must wait a little... -- Beno?t Minisini ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Beno?t Minisini From willy at ...2734... Sun Feb 2 16:48:14 2014 From: willy at ...2734... (Willy Raets) Date: Sun, 02 Feb 2014 16:48:14 +0100 Subject: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown In-Reply-To: <52EE52F2.1080904@...1...> References: <1391349946.3261.11.camel@...3024...> <52EE52F2.1080904@...1...> Message-ID: <1391356094.3261.13.camel@...3024...> On Sun, 2014-02-02 at 15:15 +0100, Beno?t Minisini wrote: > Le 02/02/2014 15:05, Willy Raets a ?crit : > > Hi all, > > > > I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014). > > When running the new Web example I got the message that the gb.markdown > > component is missing. > > > > When opening a project and checking the component tab in properties > > there is no gb.markdown selectable. > > > > Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do > > the trick either. Strange thing is that when I downloaded the source > > (apt-get source), the gb.markdown component source is available. > > > > Any ideas why the gb.markdown won't install. > > > > Tested this on: > > - Linux Mint 16 with xfce 4.10 > > - Lubuntu 12.10 with LXDE 0.5.11 > > > > > > It has been fixed in revision #6125, so you must wait a little... > Thanks, I'll check tomorrows release of Daily builds and see if the fix works. I'll keep you updated. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Sun Feb 2 18:26:36 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 2 Feb 2014 18:26:36 +0100 Subject: [Gambas-user] SmallWiki (gb.web) example In-Reply-To: <52ED8259.9090404@...1...> References: <52ED8259.9090404@...1...> Message-ID: <20140202172636.GG618@...2774...> On Sun, 02 Feb 2014, Beno?t Minisini wrote: > Le 31/01/2014 20:52, PICCORO McKAY Lenz a ?crit : > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > From: Beno?t Minisini > >> A 'MinDate' property could be a good idea... > >> And a 'MaxDate' too, why not? > > HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! > > (i still remenber that mail ok) > > > > Can you change the subject of your mail if your answer is not related? > > I made a gb.web example in revision #6121. It is a wiki based on the > Gambas markdown syntax. It is a CGI script whose size is about 25 Kb. > Not bad for a almost complete wiki (images are not managed yet)? :-) > > Tell me if it helps you. > Marvellous example! I can't wait to study the sources as gb.web is one of those components I never really used (until now?). -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Feb 2 19:31:51 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 2 Feb 2014 19:31:51 +0100 Subject: [Gambas-user] SVN checkout not working? Message-ID: <20140202183151.GK618@...2774...> Hi, we noticed that a plain SVN checkout of trunk does not work anymore, i.e.: $ svn co svn://svn.code.sf.net/p/gambas/code/gambas/trunk svn: E210002: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/gambas/code/gambas/trunk' svn: E210002: Network connection closed unexpectedly where the command is from the "How to deal with subversion" page. What I verified is that my svn+ssh:// url allows to update and newly checkout without any problems. But what's the problem with the anonymous access? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Feb 2 21:05:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 02 Feb 2014 21:05:14 +0100 Subject: [Gambas-user] SVN checkout not working? In-Reply-To: <20140202183151.GK618@...2774...> References: <20140202183151.GK618@...2774...> Message-ID: <52EEA4FA.1070403@...1...> Le 02/02/2014 19:31, Tobias Boege a ?crit : > Hi, > > we noticed that a plain SVN checkout of trunk does not work anymore, i.e.: > > $ svn co svn://svn.code.sf.net/p/gambas/code/gambas/trunk > svn: E210002: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/gambas/code/gambas/trunk' > svn: E210002: Network connection closed unexpectedly > > where the command is from the "How to deal with subversion" page. > > What I verified is that my svn+ssh:// url allows to update and newly > checkout without any problems. But what's the problem with the anonymous > access? > > Regards, > Tobi > There: 'svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk" seems to work, but: 'svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk/" fails with that error message. No idea why. Or it is a coincidence, maybe sourceforge servers are overloaded? I don't know. -- Beno?t Minisini From gambas at ...2524... Sun Feb 2 21:12:50 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 02 Feb 2014 20:12:50 +0000 Subject: [Gambas-user] Issue 507 in gambas: Problem on drawing a rectangle Message-ID: <0-6813199134517018827-10703926685055997757-gambas=googlecode.com@...2524...> Status: New Owner: gambas... at ...626... Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 507 by gambas... at ...626...: Problem on drawing a rectangle http://code.google.com/p/gambas/issues/detail?id=507 1) Describe the problem. Drawing a rectangle in the image editor from a rectangular selection not work as expected 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.12.9-1-ARCH Architecture=x86_64 Distribution=arch Desktop=KDE4 Theme=Oxygen Language=fr_FR.UTF-8 Memory=3862M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.3 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.202.0 GTK+3=libgtk-3.so.0.1000.7 GTK+=libgtk-x11-2.0.so.0.2400.22 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug or the crash. 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. 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! ANOTHER NOTE: Don't create an issue if you have a compilation problem on the development version. Send a mail to the mailing-list instead, thanks. Attachments: capture d'?cran3.png 190 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From riccardo.giudici at ...626... Sun Feb 2 22:52:41 2014 From: riccardo.giudici at ...626... (kungfupanda) Date: Sun, 2 Feb 2014 13:52:41 -0800 (PST) Subject: [Gambas-user] gb-report ReportLabel color Message-ID: <1391377961384-45499.post@...3046...> Hi, I'm starting to use gb report component in gambas3. It works very fine and I was able to realize all I need. I saw a post with bug reporting about reportbrush.color problem. Is it a solve problem ?? I try to change the font color and background color in a ReportLabel " .Brush = ReportBrush.Color(Color.Cyan) .BackGround = ReportBrush.Color(Color.Cyan) " nothing change.... I make something wrong or the bug is not solved too ??? thank a lot -- View this message in context: http://gambas.8142.n7.nabble.com/gb-report-ReportLabel-color-tp45499.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Feb 2 23:12:01 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 2 Feb 2014 23:12:01 +0100 Subject: [Gambas-user] gb-report ReportLabel color In-Reply-To: <1391377961384-45499.post@...3046...> References: <1391377961384-45499.post@...3046...> Message-ID: it is solved but actually only on the svn version. You need to wait for release if you don't use this you can use as workarround: .Background = ReportBrush["#FF0000FF"] Regards, Fabien 2014-02-02 kungfupanda : > Hi, > > I'm starting to use gb report component in gambas3. It works very fine and I > was able to realize all I need. I saw a post with bug reporting about > reportbrush.color problem. > Is it a solve problem ?? I try to change the font color and background color > in a ReportLabel > > " > .Brush = ReportBrush.Color(Color.Cyan) > .BackGround = ReportBrush.Color(Color.Cyan) " > > nothing change.... I make something wrong or the bug is not solved too ??? > > thank a lot > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/gb-report-ReportLabel-color-tp45499.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From riccardo.giudici at ...626... Sun Feb 2 23:22:01 2014 From: riccardo.giudici at ...626... (kungfupanda) Date: Sun, 2 Feb 2014 14:22:01 -0800 (PST) Subject: [Gambas-user] gb-report ReportLabel color In-Reply-To: References: <1391377961384-45499.post@...3046...> Message-ID: <1391379721083-45501.post@...3046...> Thanks a lot!!! I'll wait the new version. In the meantime ".Background = ReportBrush["#FF0000FF"]" it's perfect to workaround the problem. -- View this message in context: http://gambas.8142.n7.nabble.com/gb-report-ReportLabel-color-tp45499p45501.html Sent from the gambas-user mailing list archive at Nabble.com. From wally at ...2037... Mon Feb 3 05:22:56 2014 From: wally at ...2037... (wally) Date: Mon, 03 Feb 2014 05:22:56 +0100 Subject: [Gambas-user] At revision 6127 serialport Message-ID: <52EF19A0.903@...2037...> Hello, with svn revision 6127 came an update of file "CSerialPort.c". Comparing this file with an older one, diff shows, that some stuff on input buffer size has been modified. What has been done here and what was the reason (error?) for this update ? wally From willy at ...2734... Mon Feb 3 14:22:28 2014 From: willy at ...2734... (Willy Raets) Date: Mon, 03 Feb 2014 14:22:28 +0100 Subject: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown In-Reply-To: <1391356094.3261.13.camel@...3024...> References: <1391349946.3261.11.camel@...3024...> <52EE52F2.1080904@...1...> <1391356094.3261.13.camel@...3024...> Message-ID: <1391433748.2370.36.camel@...3024...> On Sun, 2014-02-02 at 16:48 +0100, Willy Raets wrote: > On Sun, 2014-02-02 at 15:15 +0100, Beno?t Minisini wrote: > > Le 02/02/2014 15:05, Willy Raets a ?crit : > > > Hi all, > > > > > > I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014). > > > When running the new Web example I got the message that the gb.markdown > > > component is missing. > > > > > > When opening a project and checking the component tab in properties > > > there is no gb.markdown selectable. > > > > > > Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do > > > the trick either. Strange thing is that when I downloaded the source > > > (apt-get source), the gb.markdown component source is available. > > > > > > Any ideas why the gb.markdown won't install. > > > > > > Tested this on: > > > - Linux Mint 16 with xfce 4.10 > > > - Lubuntu 12.10 with LXDE 0.5.11 > > > > > > > > > > It has been fixed in revision #6125, so you must wait a little... > > > > Thanks, > > I'll check tomorrows release of Daily builds and see if the fix works. > I'll keep you updated. > Hi, Seems the problem is in the Gambas Daily Builds PPA. I updated today to: -> 3.5.99.1+svn20140203+build51~ubuntu12.10.1 (on the Lubuntu 12.10) -> 3.5.99.1+svn20140203+build18~ubuntu13.10.1 (on Linux Mint 16) I think that this is revision #6127 No gb.markdown gets installed on both systems mentioned earlier. Attached two screenshots. 1. When opening the SmallWiki example a message says gb.markdown missing 2. Properties -> Tab components of SmallWiki example (no gb.markdown to select) Doing a sudo apt-get install gambas3-gb-markdown doesn't install anything, as the package can't be found. As gb.markdown is a new component, maybe something in the packaging has gone wrong. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-2014-02-03.png Type: image/png Size: 175145 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-gb.markdown-missing.png Type: image/png Size: 108128 bytes Desc: not available URL: From mckaygerhard at ...626... Mon Feb 3 15:12:15 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 3 Feb 2014 09:42:15 -0430 Subject: [Gambas-user] how to fill combobox with specific index from a array matrix Message-ID: From: Tobias Boege > For Each sRes In cResult > myComboBox.Add(sRes, CInt(cResult.Key)) > Next GOOD that's work very well for me!!! thanks From: Fabien Bodard > ComboBoxLinDest.List = operaciones.OtenerDestinos() that NOT work in gambas 3.4.0 i use 3.4.0 due are more usable for lenny and very older (but very more faster) distro release of debian From mckaygerhard at ...626... Mon Feb 3 15:17:40 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 3 Feb 2014 09:47:40 -0430 Subject: [Gambas-user] Reminder alert: gb.web example for benoit! Message-ID: From: Beno?t Minisini > Subject: Re: [Gambas-user] how to fill combobox with specific index > from a array matrix > To: mailing list for gambas users > Message-ID: <52ED8259.9090404 at ...1...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Le 31/01/2014 20:52, PICCORO McKAY Lenz a ?crit : >> HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! >> (i still remenber that mail ok) > Can you change the subject of your mail if your answer is not related? Done in the main threath of web example reminder ;-) > > I made a gb.web example in revision #6121. It is a wiki based on the > Gambas markdown syntax. It is a CGI script whose size is about 25 Kb. > Not bad for a almost complete wiki (images are not managed yet)? :-) O.o <<<<<<<<<<<<<< Unbelievable! but true! ?_? >>>>>>>>>>> u make me trick? > > Tell me if it helps you. IF IT HELPS!!!?? , OF COURSE MANE!!!!! but are usable in gambas 3.4.0 ?=??????? ARRGG I bet it's incompatiblw with 3.4.X!!!!! > > -- > Beno?t Minisini From mckaygerhard at ...626... Mon Feb 3 15:26:12 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 3 Feb 2014 09:56:12 -0430 Subject: [Gambas-user] Reminder alert: gb.web example for benoit! Message-ID: > From: Willy Raets > > As gb.markdown is a new component, maybe something in the packaging has > gone wrong. i sussesfully build and install in a not clean environment the gambas svn and try to open the wiki example and i confirm when opening said that: "gb.markdown missing component" take in consideration that my env are not clean, it taking the old gambas install so that's confirmation of gbmarkdown missin build.. so how must i build gambs 3.5 and this error makes tha gambas smallwiki incompatible with gambas 3.4 when will be released gambas 3.5 ? !!! PLEASE and please!!!!! dont change more the gambas dependences packagin due are caused headhacheds !!!!! all mi gambas 3.4 packages now are conflicts with gambas 3.5!!!!!!!! OK Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From oliver at ...2681... Mon Feb 3 15:34:06 2014 From: oliver at ...2681... (Oliver Etchebarne Bejarano) Date: Mon, 03 Feb 2014 09:34:06 -0500 Subject: [Gambas-user] gb.db: Primary Key of a INSERT Message-ID: <52EFA8DE.7010202@...2681...> Hi everybody. How can I obtain the last AUTO_INCREMENT field after I run the Result.Update() on a new registry? I'm using a MySQL db. Thanks! -- /Oliver Etchebarne Bejarano/ Gerente General *Paperclip X10 SRL* ================================================ ?Visita la Tienda.X10!http://tienda.x10.pe ================================================ 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 Google+ :http://x10.pe/gplus Vimeo :http://x10.pe/vimeo ================================================ From sourceforge-raindog2 at ...94... Mon Feb 3 16:30:33 2014 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 03 Feb 2014 10:30:33 -0500 Subject: [Gambas-user] gb.db: Primary Key of a INSERT In-Reply-To: <52EFA8DE.7010202@...2681...> References: <52EFA8DE.7010202@...2681...> Message-ID: <52EFB619.7000609@...94...> On 02/03/2014 09:34 AM, Oliver Etchebarne Bejarano wrote: > How can I obtain the last AUTO_INCREMENT field after I run the > Result.Update() on a new registry? I'm using a MySQL db. On the same connection object, "select LAST_INSERT_ID() from tablename;" But will Result.Update() insert a new record if the Result object is pointing past the end of the table? If it will, the wiki should be updated to reflect that. Rob From mckaygerhard at ...626... Mon Feb 3 16:45:15 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 3 Feb 2014 11:15:15 -0430 Subject: [Gambas-user] print repot to pdf file Message-ID: i note that gambas does not have direct pdf printing support, so i plans to use ps2pdf commnd to that! but my question HOW CAN I WRITE THE REPORT TO POSTSCRIPT? i i can write te gambas report class result render to a postscript print file, i can wirte a pdf file converting this with ps2pdf commnd please urgent! (as always jjeje) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas.fr at ...626... Mon Feb 3 18:05:59 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 3 Feb 2014 18:05:59 +0100 Subject: [Gambas-user] print repot to pdf file In-Reply-To: References: Message-ID: As always you under estimates gb ? Just name the file with a .pdf as extention. Printer.filename="Toto.pdf" Will generate a pdf. Le 3 f?vr. 2014 16:46, "PICCORO McKAY Lenz" a ?crit : > i note that gambas does not have direct pdf printing support, so i plans to > use ps2pdf commnd to that! > > but my question HOW CAN I WRITE THE REPORT TO POSTSCRIPT? > > i i can write te gambas report class result render to a postscript print > file, i can wirte a pdf file converting this with ps2pdf commnd > > please urgent! (as always jjeje) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Feb 3 18:06:09 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 3 Feb 2014 18:06:09 +0100 Subject: [Gambas-user] Reminder alert: gb.web example for benoit! In-Reply-To: References: Message-ID: Maybe it's time to freeze ... And keep evolutions for us until the 4 Le 3 f?vr. 2014 15:27, "PICCORO McKAY Lenz" a ?crit : > > From: Willy Raets > > > > As gb.markdown is a new component, maybe something in the packaging has > > gone wrong. > > i sussesfully build and install in a not clean environment the gambas > svn and try to open the wiki example and i confirm when opening said > that: "gb.markdown missing component" > > take in consideration that my env are not clean, it taking the old > gambas install so that's confirmation of gbmarkdown missin build.. > > so how must i build gambs 3.5 and this error makes tha gambas > smallwiki incompatible with gambas 3.4 > > when will be released gambas 3.5 ? > > !!! PLEASE and please!!!!! dont change more the gambas dependences > packagin due are caused headhacheds !!!!! all mi gambas 3.4 packages > now are conflicts with gambas 3.5!!!!!!!! OK > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernando at ...3175... Mon Feb 3 18:46:49 2014 From: fernando at ...3175... (Fernando Martins) Date: Mon, 03 Feb 2014 18:46:49 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <1389342091.29682.1.camel@...2688...> References: <52CAE956.4050001@...1...> <52CBF06D.5040304@...221...> <52CBF331.5060906@...1...> <52CC3100.2060303@...221...> <52CC65D2.2060108@...1...> <52CDA957.5050900@...3175...> <52CFA637.9080605@...221...> <1389342091.29682.1.camel@...2688...> Message-ID: <52EFD609.2020807@...3175...> On 01/10/2014 09:21 AM, Bruce wrote: > On Fri, 2014-01-10 at 08:50 +0100, Rolf-Werner Eilert wrote: >> Am 08.01.2014 20:39, schrieb Fernando Martins: >>> On 01/07/2014 09:38 PM, Beno?t Minisini wrote: >>>> Le 07/01/2014 17:53, Rolf-Werner Eilert a ?crit : >>>>> As for TerraGen: http://planetside.co.uk/products/terragen3 >>>>> >>>>> But those guys have been programming it for years, so it would be hard >>>>> to come up with anything near to its perfection... >>>>> >>>>> The serial letter thing is (in a very simple form) the project I just >>>>> sent you. >>>>> >>>>> This image editor in the Gambas IDE, where is it? How can I access it? >>>>> >>>> Just put any image file (jpg, png, gif or xpm) in your project and >>>> double-click on it from the IDE. >>>> >>> I haven't checked it myself but your idea might not be so far fetched :) >>> I have not seen the latest versions of bitmap editors in Linux, but all >>> of those I have checked a couple of years ago, I always missed some >>> critical feature when compared to good old MS Paint Brush!! That's how >>> low my standard was. Amazing and very frustrating. My uses were actually >>> quite simple: grab some screenshot with PrtScn (or Alt+PrtScn), paste >>> into MS PB, do some basic image manipulation, but including pixel level >>> manipulation with a zoom, add some text, and then use it in a >>> presentation or the web. I remember the only feature I missed in PB was >>> to set the transparency color and some file format. >>> >>> Plenty of Linux bitmap editors would fail on the clipboard requirement. >>> Others in the zoom, or the text, IIRC. The only one that worked decently >>> was the very old x-paint (IIRC the name) a pure X app, ugly as it could >>> be but solid and fairly deep stuff. (gimp was not for me) >>> >>> Fernando >>> >> A few minutes ago, I wanted to do just the thing you mentioned (take a >> web graphic / screenshot, draw some lines, add a few comments, and put >> it back into a forum article). Gimp is way too sophisticated to do such >> things quick-and-dirty, and I didn't know what to use else. So: 100 % agree. >> >> On my distro, some mtPaint has been installed (and I hadn't even noticed >> yet). It seems it's older stuff, so it might have come in together with >> KDE3 (although it's GTK+). If you can find it, take a look at it. Or I >> could make a screenshot... It offers a lot of functions via the menues, >> much too many in my opinion. But it was delevoped to work on icon >> bitmaps, according to the impressum text. >> >> Anyway, its functions would mark the limit for me in such a tool. At a >> first glance, I would change the toolbars to a "minimum necessary" and a >> "show it all" version to not scare away beginners. And one might add a >> customizing function that allows icons/functions to swap between the two >> modes for usability. >> >> What I wanted to say is, the more I keep thinking about it, the more I >> begin to like this idea. >> >> Rolf >> > Rolf, > Not trying to kill any good ideas at all, but given what you said have > you ever had a look at "Shutter"? Here's a sample, it took about 30 > seconds. > > For the record, I just tried Shutter and it does not allow image editing, e.g., selecting an area and moving it to another place, fill inside an _existing_ region Fernando From john.aaron.rose at ...626... Mon Feb 3 19:14:47 2014 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 03 Feb 2014 18:14:47 +0000 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) Message-ID: <52EFDC97.8050000@...626...> There are also GNU Paint & Pinta. From fernando at ...3175... Mon Feb 3 19:32:28 2014 From: fernando at ...3175... (Fernando Martins) Date: Mon, 03 Feb 2014 19:32:28 +0100 Subject: [Gambas-user] Solving the Gambas packaging problem psychologically (!) In-Reply-To: <52EFDC97.8050000@...626...> References: <52EFDC97.8050000@...626...> Message-ID: <52EFE0BC.5040602@...3175...> Pinta was one of those I had tried years ago and was missing something. I gave it another quick go and at first sight it seems indeed to be doing the basic things I used to do with MS Paint. One minor thing, to be picky, I can't resize the canvas with handles. Regards, Fernando On 02/03/2014 07:14 PM, John Rose wrote: > There are also GNU Paint & Pinta. > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Mon Feb 3 21:07:49 2014 From: vuott at ...325... (Ru Vuott) Date: Mon, 3 Feb 2014 20:07:49 +0000 (GMT) Subject: [Gambas-user] Gambas & QT5 Message-ID: <1391458069.87436.YahooMailBasic@...3273...> > But what does that member of www.gambas-it.org expect from gb.qt5? > There is no reason to have more feature from gb.qt5 than gb.qt4. > > Regards, > -- > Beno?t Minisini Hello Beno?t, I communicated your question to our friend of italian Gambas forum, and he answered he is creating a "distro" and he would like to equip the distro with the wayland display server, and having the interest to include gambas, he fears that they are incompatible. He is convinced that QT5 can solve this dilemma, since they can work with X with Wayland. ...well, that's all. Bye vuotttt From mmcg29440 at ...3163... Mon Feb 3 22:31:30 2014 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Mon, 3 Feb 2014 16:31:30 -0500 Subject: [Gambas-user] Tutorial or Complete docs on gb.report Message-ID: Hello, Want to add reports to my Gambas database application. Understand that this is done with gb.report component. Is there a document or tutorial that explains it use? I am a beginner with gb.report. Do not know where to start. Can you suggest a few references to start with. I'm familiar with Gambas but not with this component. Did search the net but have not found a step by step approach to report writing. Thanks Marty From gambas.fr at ...626... Mon Feb 3 23:10:54 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 3 Feb 2014 23:10:54 +0100 Subject: [Gambas-user] Tutorial or Complete docs on gb.report In-Reply-To: References: Message-ID: for the time ... i've not really documented that but look at this : https://www.youtube.com/user/gambasfr/videos there is also many example in the report component sources. 2014-02-03 Marty McGlensey : > Hello, > > > > Want to add reports to my Gambas database application. Understand that this > is done with gb.report component. Is there a document or tutorial that > explains it use? I am a beginner with gb.report. Do not know where to > start. Can you suggest a few references to start with. I'm familiar with > Gambas but not with this component. Did search the net but have not found a > step by step approach to report writing. > > > > Thanks > > Marty > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From eilert-sprachen at ...221... Tue Feb 4 08:34:22 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 04 Feb 2014 08:34:22 +0100 Subject: [Gambas-user] ncurses help texts missing Message-ID: <52F097FE.7010808@...221...> Hi Tobias, your name is mentioned as the author of the ncurses component. Is that right? Anyway, I wanted to play around a bit with ncurses and found this component. A long time ago, I tried to write a program with ncurses but gave up when I had to find the screen dimensions (the original C function uses a pointer thing I couldn't make workable for my Gambas program). So thanks you've done it for me :) But the help texts aren't ready yet, and I miss some short examples on how to start by making a window and so on. Are the undocumented functions not ready yet, or is it that the help texts aren't complete yet? Regards Rolf From dominique.michel at ...3298... Tue Feb 4 09:13:08 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Tue, 4 Feb 2014 09:13:08 +0100 Subject: [Gambas-user] gambas on gentoo Message-ID: <20140204091308.257d7329@...3299...> Hi all, First, thank you for gambas. Even if a Linux system is more complicated, it remain me my old time with an Amiga in the eighties. Simple, powerful and efficient. gambas is not in portage currently, and it is an old bug report with an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 I just updated the ebuild to gambas-3.5.2. When installing it, I get the following warnings from portage: * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * jit_codegen.cpp:6649:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * framebufferobject.c:108:2: warning: implicit declaration of function 'GenerateMipmapEXT' [-Wimplicit-function-declaration] * framebufferobject.c:169:2: warning: implicit declaration of function 'GetRenderbuffe and * QA Notice: This package installs one or more .desktop files that do not * pass validation. * * /usr/share/applications/gambas3.desktop: error: (will be fatal in the future): value "gambas3.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path * /usr/share/applications/gambas3.desktop: warning: value "Application;Development;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application" * A question: When compiling, is it possible that elibtoolize and eautoreconf only scan what is needed to be able to run a gambas software, and after that, to only compile and install that part of gambas (I think the interpreter and its libraries). And when installed, to make separated builds for each other components? My concern is that portage compile every thing, and as the gambas executables depends on the interpreter and the lib, it is no need to recompile and reinstall every thing in most cases, if not all cases, when the interpreter and the libs are recompiled by portage during a system update. Such an update is a 3 steps process: 1) the updated packages are updated by portage, 2) the obsoleted packages are removed, and 3) revdep-rebuild check the reverse dependencies in the installed system and tell portage to reinstall the broken packages from their sources. In case of 3), it would be a waste of time and energy to recompile the whole gambas if just one of its executable or lib get broken, and it would be much better if I can make several ebuilds instead of only one. Also, I am trying now to get a live ebuild to work from the svn, and it would obviously be more important with it if can spilt the ebuild into several ones. Best regards, Dominique From taboege at ...626... Tue Feb 4 09:46:54 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 4 Feb 2014 09:46:54 +0100 Subject: [Gambas-user] ncurses help texts missing In-Reply-To: <52F097FE.7010808@...221...> References: <52F097FE.7010808@...221...> Message-ID: <20140204084654.GA515@...2774...> On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > Hi Tobias, > > your name is mentioned as the author of the ncurses component. Is that > right? > Yes, that's right. > Anyway, I wanted to play around a bit with ncurses and found this > component. A long time ago, I tried to write a program with ncurses but > gave up when I had to find the screen dimensions (the original C > function uses a pointer thing I couldn't make workable for my Gambas > program). So thanks you've done it for me :) > > But the help texts aren't ready yet, and I miss some short examples on > how to start by making a window and so on. > > Are the undocumented functions not ready yet, or is it that the help > texts aren't complete yet? > The help just isn't written. The component itself didn't change since 3.3 or so. Not that I am totally confident with it but it's working as it should at this point. Some things missing (actually, the whole menu and forms extensions of ncurses and wide character support!), etc. and I also want to add a gb.ncurses.cdk component based on the CDK library which implements controls in terminal but I have to design this carefully - and maybe even break gb.ncurses' API (very slightly if at all!). This is why I'm stuck programming and if the programming isn't done, I struggle to do the documentation :-) There are gb.ncurses examples: Pong and Invaders (the last one still not finished in regard to game logic) in the Games section. But if you told me that these don't help gb.ncurses newbies, I would agree... I'm actually not that fit anymore with gb.ncurses :-) but today afternoon I'll put some lines together about the basics. Regards, Tobi And now off to the Linear Algebra test ;-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mmcg29440 at ...3163... Tue Feb 4 13:44:11 2014 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Tue, 4 Feb 2014 07:44:11 -0500 Subject: [Gambas-user] Gambas report Component Docs In-Reply-To: References: Message-ID: Fabien, Thanks for the youtube link. Unfortunately I'm not able to get it too play. Do I have to subscribe to get it to play? Marty Message: 4 Date: Mon, 3 Feb 2014 16:31:30 -0500 From: "Marty McGlensey" Subject: [Gambas-user] Tutorial or Complete docs on gb.report To: Message-ID: Content-Type: text/plain; charset="us-ascii" Hello, Want to add reports to my Gambas database application. Understand that this is done with gb.report component. Is there a document or tutorial that explains it use? I am a beginner with gb.report. Do not know where to start. Can you suggest a few references to start with. I'm familiar with Gambas but not with this component. Did search the net but have not found a step by step approach to report writing. Thanks Marty ------------------------------ Message: 5 Date: Mon, 3 Feb 2014 23:10:54 +0100 From: Fabien Bodard Subject: Re: [Gambas-user] Tutorial or Complete docs on gb.report To: mailing list for gambas users Message-ID: Content-Type: text/plain; charset=ISO-8859-1 for the time ... i've not really documented that but look at this : https://www.youtube.com/user/gambasfr/videos there is also many example in the report component sources. 2014-02-03 Marty McGlensey : > Hello, > > > > Want to add reports to my Gambas database application. Understand that > this is done with gb.report component. Is there a document or tutorial > that explains it use? I am a beginner with gb.report. Do not know > where to start. Can you suggest a few references to start with. I'm > familiar with Gambas but not with this component. Did search the net > but have not found a step by step approach to report writing. > > > > Thanks > > Marty > > ---------------------------------------------------------------------- > -------- Managing the Performance of Cloud-Based Applications Take > advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg. > clktrk _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard ---------------------------------------------------------------------------- -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 93, Issue 6 ****************************************** From gambas at ...2524... Tue Feb 4 16:15:51 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 04 Feb 2014 15:15:51 +0000 Subject: [Gambas-user] Issue 508 in gambas: request: specify how many decimal places ValueBox Message-ID: <0-6813199134517018827-12633027283821706725-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 508 by flynetin... at ...626...: request: specify how many decimal places ValueBox http://code.google.com/p/gambas/issues/detail?id=508 1) It would be nice to be able to specify how many decimal places are visible in ValueBox If it is desired to always display a set number of decimal places is not possible currently -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From eilert-sprachen at ...221... Tue Feb 4 18:07:31 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 04 Feb 2014 18:07:31 +0100 Subject: [Gambas-user] ncurses help texts missing In-Reply-To: <20140204084654.GA515@...2774...> References: <52F097FE.7010808@...221...> <20140204084654.GA515@...2774...> Message-ID: <52F11E53.8020802@...221...> Am 04.02.2014 09:46, schrieb Tobias Boege: > On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: >> Hi Tobias, >> >> your name is mentioned as the author of the ncurses component. Is that >> right? >> > > Yes, that's right. > >> Anyway, I wanted to play around a bit with ncurses and found this >> component. A long time ago, I tried to write a program with ncurses but >> gave up when I had to find the screen dimensions (the original C >> function uses a pointer thing I couldn't make workable for my Gambas >> program). So thanks you've done it for me :) >> >> But the help texts aren't ready yet, and I miss some short examples on >> how to start by making a window and so on. >> >> Are the undocumented functions not ready yet, or is it that the help >> texts aren't complete yet? >> > > The help just isn't written. The component itself didn't change since 3.3 or > so. Not that I am totally confident with it but it's working as it should at > this point. > > Some things missing (actually, the whole menu and forms extensions of > ncurses and wide character support!), etc. and I also want to add a > gb.ncurses.cdk component based on the CDK library which implements controls > in terminal but I have to design this carefully - and maybe even break > gb.ncurses' API (very slightly if at all!). This is why I'm stuck programming > and if the programming isn't done, I struggle to do the documentation :-) > > There are gb.ncurses examples: Pong and Invaders (the last one still not > finished in regard to game logic) in the Games section. But if you told me > that these don't help gb.ncurses newbies, I would agree... > > I'm actually not that fit anymore with gb.ncurses :-) but today afternoon > I'll put some lines together about the basics. > > Regards, > Tobi > > And now off to the Linear Algebra test ;-) > Uuuuh - good luck! Just give me some hint how to start, and we could write some help texts and little examples. Although I don't have too much time right now, I would be able to help out a bit here... Rolf From taboege at ...626... Tue Feb 4 18:13:12 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 4 Feb 2014 18:13:12 +0100 Subject: [Gambas-user] ncurses help texts missing In-Reply-To: <52F11E53.8020802@...221...> References: <52F097FE.7010808@...221...> <20140204084654.GA515@...2774...> <52F11E53.8020802@...221...> Message-ID: <20140204171312.GF515@...2774...> On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > > > Am 04.02.2014 09:46, schrieb Tobias Boege: > > On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > >> Hi Tobias, > >> > >> your name is mentioned as the author of the ncurses component. Is that > >> right? > >> > > > > Yes, that's right. > > > >> Anyway, I wanted to play around a bit with ncurses and found this > >> component. A long time ago, I tried to write a program with ncurses but > >> gave up when I had to find the screen dimensions (the original C > >> function uses a pointer thing I couldn't make workable for my Gambas > >> program). So thanks you've done it for me :) > >> > >> But the help texts aren't ready yet, and I miss some short examples on > >> how to start by making a window and so on. > >> > >> Are the undocumented functions not ready yet, or is it that the help > >> texts aren't complete yet? > >> > > > > The help just isn't written. The component itself didn't change since 3.3 or > > so. Not that I am totally confident with it but it's working as it should at > > this point. > > > > Some things missing (actually, the whole menu and forms extensions of > > ncurses and wide character support!), etc. and I also want to add a > > gb.ncurses.cdk component based on the CDK library which implements controls > > in terminal but I have to design this carefully - and maybe even break > > gb.ncurses' API (very slightly if at all!). This is why I'm stuck programming > > and if the programming isn't done, I struggle to do the documentation :-) > > > > There are gb.ncurses examples: Pong and Invaders (the last one still not > > finished in regard to game logic) in the Games section. But if you told me > > that these don't help gb.ncurses newbies, I would agree... > > > > I'm actually not that fit anymore with gb.ncurses :-) but today afternoon > > I'll put some lines together about the basics. > > > > Regards, > > Tobi > > > > And now off to the Linear Algebra test ;-) > > > > Uuuuh - good luck! > > Just give me some hint how to start, and we could write some help texts > and little examples. Although I don't have too much time right now, I > would be able to help out a bit here... > Wait a minute (or one or two hours, more likely). I'm halfways through a quite comprehensive tutorial about basic usage: - printing text, - using attributes and colours, - creating dialogs. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Tue Feb 4 20:26:21 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 04 Feb 2014 19:26:21 +0000 Subject: [Gambas-user] Issue 508 in gambas: request: specify how many decimal places ValueBox In-Reply-To: <0-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Comment #1 on issue 508 by flynetin... at ...626...: request: specify how many decimal places ValueBox http://code.google.com/p/gambas/issues/detail?id=508 Even sometimes it is useful to specify what kind of number is shown if only integer not allow the entry point or comma, few maximum digits can be entered, if shown to the left of zeros to complete the amount of digits, etc. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Tue Feb 4 21:43:05 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 4 Feb 2014 21:43:05 +0100 Subject: [Gambas-user] ncurses help texts missing In-Reply-To: <20140204171312.GF515@...2774...> References: <52F097FE.7010808@...221...> <20140204084654.GA515@...2774...> <52F11E53.8020802@...221...> <20140204171312.GF515@...2774...> Message-ID: <20140204204305.GG515@...2774...> On Tue, 04 Feb 2014, Tobias Boege wrote: > On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > > > > > > Am 04.02.2014 09:46, schrieb Tobias Boege: > > > On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > > >> Hi Tobias, > > >> > > >> your name is mentioned as the author of the ncurses component. Is that > > >> right? > > >> > > > > > > Yes, that's right. > > > > > >> Anyway, I wanted to play around a bit with ncurses and found this > > >> component. A long time ago, I tried to write a program with ncurses but > > >> gave up when I had to find the screen dimensions (the original C > > >> function uses a pointer thing I couldn't make workable for my Gambas > > >> program). So thanks you've done it for me :) > > >> > > >> But the help texts aren't ready yet, and I miss some short examples on > > >> how to start by making a window and so on. > > >> > > >> Are the undocumented functions not ready yet, or is it that the help > > >> texts aren't complete yet? > > >> > > > > > > The help just isn't written. The component itself didn't change since 3.3 or > > > so. Not that I am totally confident with it but it's working as it should at > > > this point. > > > > > > Some things missing (actually, the whole menu and forms extensions of > > > ncurses and wide character support!), etc. and I also want to add a > > > gb.ncurses.cdk component based on the CDK library which implements controls > > > in terminal but I have to design this carefully - and maybe even break > > > gb.ncurses' API (very slightly if at all!). This is why I'm stuck programming > > > and if the programming isn't done, I struggle to do the documentation :-) > > > > > > There are gb.ncurses examples: Pong and Invaders (the last one still not > > > finished in regard to game logic) in the Games section. But if you told me > > > that these don't help gb.ncurses newbies, I would agree... > > > > > > I'm actually not that fit anymore with gb.ncurses :-) but today afternoon > > > I'll put some lines together about the basics. > > > > > > Regards, > > > Tobi > > > > > > And now off to the Linear Algebra test ;-) > > > > > > > Uuuuh - good luck! > > > > Just give me some hint how to start, and we could write some help texts > > and little examples. Although I don't have too much time right now, I > > would be able to help out a bit here... > > > > Wait a minute (or one or two hours, more likely). I'm halfways through a > quite comprehensive tutorial about basic usage: > > - printing text, > - using attributes and colours, > - creating dialogs. > Almost everything is in place here[0]. With the last little paragraph, I'll continue tomorrow as it's time for a break now. I've also prepared a project containing all the snippets presented which I will complete and upload tomorrow, too. Hope it helps. Note that I needed to fix some bugs I encountered while putting the code together so you better use the latest revision to test ;-) Regards, Tobi [0] http://gambasdoc.org/help/tutorial/ncursestut?v3 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Tue Feb 4 22:28:08 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 4 Feb 2014 16:58:08 -0430 Subject: [Gambas-user] gambas 3.5.2 released! thanks!! Message-ID: hi benoit.. i'm reading the changelog of gambas 3.5.2 and we have a common word: BUG!!! ;-) ... thanks fo the release ! i hope mayority of components can be compiled into older distributions! From mckaygerhard at ...626... Tue Feb 4 22:34:24 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 4 Feb 2014 17:04:24 -0430 Subject: [Gambas-user] gambas 3.5.2 released! thanks!! In-Reply-To: References: Message-ID: i read the requirements of gambas, are up to date? in the wiki? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com On Tue, Feb 4, 2014 at 4:58 PM, PICCORO McKAY Lenz wrote: > hi benoit.. i'm reading the changelog of gambas 3.5.2 and we have a common > word: BUG!!! > > ;-) > > ... thanks fo the release ! i hope mayority of components can be compiled > into older distributions! > From shanep1967 at ...169... Wed Feb 5 01:26:31 2014 From: shanep1967 at ...169... (Shane) Date: Wed, 05 Feb 2014 11:26:31 +1100 Subject: [Gambas-user] printer bug ? Message-ID: <52F18537.6090908@...169...> I think there might be a bug in the printer component this program generates a signal 11 when you press print From shanep1967 at ...169... Wed Feb 5 01:29:30 2014 From: shanep1967 at ...169... (Shane) Date: Wed, 05 Feb 2014 11:29:30 +1100 Subject: [Gambas-user] print repot to pdf file In-Reply-To: References: Message-ID: <52F185EA.9040506@...169...> That's Great just what i needed too On 04/02/14 04:05, Fabien Bodard wrote: > As always you under estimates gb ? > > Just name the file with a .pdf as extention. > > Printer.filename="Toto.pdf" > > Will generate a pdf. > Le 3 f?vr. 2014 16:46, "PICCORO McKAY Lenz" a > ?crit : > >> i note that gambas does not have direct pdf printing support, so i plans to >> use ps2pdf commnd to that! >> >> but my question HOW CAN I WRITE THE REPORT TO POSTSCRIPT? >> >> i i can write te gambas report class result render to a postscript print >> file, i can wirte a pdf file converting this with ps2pdf commnd >> >> please urgent! (as always jjeje) >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From shanep1967 at ...169... Wed Feb 5 01:36:02 2014 From: shanep1967 at ...169... (Shane) Date: Wed, 05 Feb 2014 11:36:02 +1100 Subject: [Gambas-user] printer bug ? In-Reply-To: <52F18537.6090908@...169...> References: <52F18537.6090908@...169...> Message-ID: <52F18772.4000004@...169...> and here is the project On 05/02/14 11:26, Shane wrote: > I think there might be a bug in the printer component > this program generates a signal 11 when you press print > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > 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: PrinterBug-0.0.1.tar.gz Type: application/gzip Size: 4793 bytes Desc: not available URL: From gambas at ...2524... Wed Feb 5 01:45:28 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 05 Feb 2014 00:45:28 +0000 Subject: [Gambas-user] Issue 507 in gambas: Problem on drawing a rectangle In-Reply-To: <0-6813199134517018827-10703926685055997757-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10703926685055997757-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10703926685055997757-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 507 by benoit.m... at ...626...: Problem on drawing a rectangle http://code.google.com/p/gambas/issues/detail?id=507 Actually it's the way stroking works. If you choose a size >= 1, you will get the expected result. If you choose a size = 0, then you ask for drawing exact pixels. So Qt/Cairo chooses to draw the bottom right pixels of the path. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Feb 5 01:47:29 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 05 Feb 2014 00:47:29 +0000 Subject: [Gambas-user] Issue 508 in gambas: request: specify how many decimal places ValueBox In-Reply-To: <1-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> <0-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #2 on issue 508 by benoit.m... at ...626...: request: specify how many decimal places ValueBox http://code.google.com/p/gambas/issues/detail?id=508 Did you look at the MaskBox control that can do what you want? Or do you really need the ValueBox control? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Feb 5 01:48:29 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 05 Feb 2014 00:48:29 +0000 Subject: [Gambas-user] Issue 484 in gambas: IDE and Runtime show different stock icons In-Reply-To: <4-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> <0-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #5 on issue 484 by benoit.m... at ...626...: IDE and Runtime show different stock icons http://code.google.com/p/gambas/issues/detail?id=484 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Wed Feb 5 02:07:03 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 05 Feb 2014 02:07:03 +0100 Subject: [Gambas-user] printer bug ? In-Reply-To: <52F18772.4000004@...169...> References: <52F18537.6090908@...169...> <52F18772.4000004@...169...> Message-ID: <52F18EB7.5080502@...1...> Le 05/02/2014 01:36, Shane a ?crit : > and here is the project > > > On 05/02/14 11:26, Shane wrote: >> I think there might be a bug in the printer component >> this program generates a signal 11 when you press print >> >> The bug has been fixed in revision #6134. Regards, -- Beno?t Minisini From shanep1967 at ...169... Wed Feb 5 08:11:40 2014 From: shanep1967 at ...169... (Shane) Date: Wed, 05 Feb 2014 18:11:40 +1100 Subject: [Gambas-user] ppa Message-ID: <52F1E42C.6060104@...169...> is the daily build of kendek's ppa still working ? From gambas at ...2524... Wed Feb 5 14:43:29 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 05 Feb 2014 13:43:29 +0000 Subject: [Gambas-user] Issue 509 in gambas: Bugs in gambas ide with RTL languages Message-ID: <0-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.2 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 509 by linux... at ...626...: Bugs in gambas ide with RTL languages http://code.google.com/p/gambas/issues/detail?id=509 hello, I'm using gambas version 3.5.2 right now on my debian 6 with Arabic language The ide has a few problems with arabic language gui: 1) problem with "open project" dialog , the list doesn't show file names (look at picture 1) 2) problem with project browser list on the right , it doesn't show names also (look at picture 2) 3) the last one with the editor , brackets aren't shown correctly (look at picture 3) the font used in editor is "Monospace,9" I attached some picture to explain the problem Greetings :) ================================== System information: [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.2.0-0.bpo.3-486 Architecture=x86 Distribution=debian 6.0.6 Desktop=LXDE Theme=QGtk Language=ar_EG.UTF-8 Memory=2017M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.26.0 GTK+=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 Qt4=libQtCore.so.4.6.3 SDL=libSDL-1.2.so.0.11.3 ================================== Attachments: 1.png 47.9 KB 2.png 102 KB 3.png 18.7 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From LouisWAdamsJr at ...3300... Wed Feb 5 16:40:01 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Wed, 5 Feb 2014 07:40:01 -0800 (PST) Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop Message-ID: <1391614800855-45541.post@...3046...> I have a drawing area control daChart on a form. To extract an image of that control area using screenshot, I expected that the following would work, where picSave is a Picture object. The number 28 accounts for the window control frame at the top for my screen resolution in Ubuntu (1920x1080). picSave = Desktop.Screenshot() With daChart picSave = picSave.Copy(Me.Left + .X, Me.Top + .Y + 28, .Width, .Height) End With Instead I must do what follows. picSave = Desktop.Screenshot() With daChart If (Me.Left > 0) Then picSave = picSave.Copy(Me.Left + 2 * .X, Me.Top + 2 * .Y + 28, .Width, .Height) Else picSave = picSave.Copy(Me.Left + .X + 1, Me.Top + .Y + 28, .Width, .Height) Endif End With In other words, if the form is not at the left edge of the desktop then I must double the drawing area control coordinates. I see nothing wrong with coordinate values of the form or the control as reported by the debugger, and Screenshot() is unaffected by form location on the desktop, so the problem might be in the Copy method. Here are my system particulars. [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.11.0-15-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=32135M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-Screenshot-Depends-on-Window-Location-on-Desktop-tp45541.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Wed Feb 5 16:58:17 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 5 Feb 2014 16:58:17 +0100 Subject: [Gambas-user] Feature request: Redirecting stderr of terminal-emulated program back to IDE Message-ID: <20140205155817.GB8944@...2774...> Hi Benoit, I may have requested this some time ago already but now I can give you a project where it is shown (see attachments). What I want is that we can use a terminal emulator to run a program but still get Debug statements into the IDE because they really disturb ncurses programs. I attach two projects: one is a mere application (*-app) using gb.ncurses, the second one (without the -app suffix) runs the former using xterm but redirects stderr back to itself to display it in the TextArea. There is already a .gambas archive of the -app project in the non-app project. I send you the -app project anyway for the obvious reasons. I'd like to ask you to incorporate this into the IDE as an option or so. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: terminal-redirect-stderr-back-app-0.0.2.tar.gz Type: application/octet-stream Size: 4658 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: terminal-redirect-stderr-back-0.0.1.tar.gz Type: application/octet-stream Size: 5578 bytes Desc: not available URL: From gambas.fr at ...626... Wed Feb 5 18:13:33 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 5 Feb 2014 18:13:33 +0100 Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop Message-ID: And hOmage=daChart.grab ? Le 5 f?vr. 2014 17:29, gambas.fr at ...626... a ?crit : Use dachart.screenx, dachart.screeny. and you will have what you want. It's the position of the control on the entire screen. Le 5 f?vr. 2014 16:42, "Louis W. Adams, Jr." a ?crit : I have a drawing area control daChart on a form. To extract an image of that control area using screenshot, I expected that the following would work, where picSave is a Picture object. The number 28 accounts for the window control frame at the top for my screen resolution in Ubuntu (1920x1080). picSave = Desktop.Screenshot() With daChart picSave = picSave.Copy(Me.Left + .X, Me.Top + .Y + 28, .Width, .Height) End With Instead I must do what follows. picSave = Desktop.Screenshot() With daChart If (Me.Left > 0) Then picSave = picSave.Copy(Me.Left + 2 * .X, Me.Top + 2 * .Y + 28, .Width, .Height) Else picSave = picSave.Copy(Me.Left + .X + 1, Me.Top + .Y + 28, .Width, .Height) Endif End With In other words, if the form is not at the left edge of the desktop then I must double the drawing area control coordinates. I see nothing wrong with coordinate values of the form or the control as reported by the debugger, and Screenshot() is unaffected by form location on the desktop, so the problem might be in the Copy method. Here are my system particulars. [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.11.0-15-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=32135M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-Screenshot-Depends-on-Window-Location-on-Desktop-tp45541.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Feb 5 18:13:33 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 5 Feb 2014 18:13:33 +0100 Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop In-Reply-To: <1391614800855-45541.post@...3046...> References: <1391614800855-45541.post@...3046...> Message-ID: Use dachart.screenx, dachart.screeny. and you will have what you want. It's the position of the control on the entire screen. Le 5 f?vr. 2014 16:42, "Louis W. Adams, Jr." a ?crit : > I have a drawing area control daChart on a form. To extract an image of > that > control area using screenshot, I expected that the following would work, > where picSave is a Picture object. The number 28 accounts for the window > control frame at the top for my screen resolution in Ubuntu (1920x1080). > > picSave = Desktop.Screenshot() > > With daChart > picSave = picSave.Copy(Me.Left + .X, Me.Top + .Y + 28, .Width, .Height) > End With > > Instead I must do what follows. > > picSave = Desktop.Screenshot() > > With daChart > If (Me.Left > 0) Then > picSave = picSave.Copy(Me.Left + 2 * .X, Me.Top + 2 * .Y + 28, > .Width, .Height) > Else > picSave = picSave.Copy(Me.Left + .X + 1, Me.Top + .Y + 28, .Width, > .Height) > Endif > End With > > In other words, if the form is not at the left edge of the desktop then I > must double the drawing area control coordinates. I see nothing wrong with > coordinate values of the form or the control as reported by the debugger, > and Screenshot() is unaffected by form location on the desktop, so the > problem might be in the Copy method. > > Here are my system particulars. > > [System] > Gambas=3.5.2 > OperatingSystem=Linux > Kernel=3.11.0-15-generic > Architecture=x86_64 > Distribution=Ubuntu 13.10 > Desktop=GNOME > Theme=QGtk > Language=en_US.UTF-8 > Memory=32135M > [Libraries] > Cairo=libcairo.so.2.11200.16 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.4 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.200.0 > GTK+=libgtk-x11-2.0.so.0.2400.20 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.43.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > > Lou > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-Screenshot-Depends-on-Window-Location-on-Desktop-tp45541.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Wed Feb 5 18:15:35 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 5 Feb 2014 18:15:35 +0100 Subject: [Gambas-user] ncurses help texts missing In-Reply-To: <20140204204305.GG515@...2774...> References: <52F097FE.7010808@...221...> <20140204084654.GA515@...2774...> <52F11E53.8020802@...221...> <20140204171312.GF515@...2774...> <20140204204305.GG515@...2774...> Message-ID: <20140205171535.GD8944@...2774...> On Tue, 04 Feb 2014, Tobias Boege wrote: > On Tue, 04 Feb 2014, Tobias Boege wrote: > > On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > > > > > > > > > Am 04.02.2014 09:46, schrieb Tobias Boege: > > > > On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: > > > >> Hi Tobias, > > > >> > > > >> your name is mentioned as the author of the ncurses component. Is that > > > >> right? > > > >> > > > > > > > > Yes, that's right. > > > > > > > >> Anyway, I wanted to play around a bit with ncurses and found this > > > >> component. A long time ago, I tried to write a program with ncurses but > > > >> gave up when I had to find the screen dimensions (the original C > > > >> function uses a pointer thing I couldn't make workable for my Gambas > > > >> program). So thanks you've done it for me :) > > > >> > > > >> But the help texts aren't ready yet, and I miss some short examples on > > > >> how to start by making a window and so on. > > > >> > > > >> Are the undocumented functions not ready yet, or is it that the help > > > >> texts aren't complete yet? > > > >> > > > > > > > > The help just isn't written. The component itself didn't change since 3.3 or > > > > so. Not that I am totally confident with it but it's working as it should at > > > > this point. > > > > > > > > Some things missing (actually, the whole menu and forms extensions of > > > > ncurses and wide character support!), etc. and I also want to add a > > > > gb.ncurses.cdk component based on the CDK library which implements controls > > > > in terminal but I have to design this carefully - and maybe even break > > > > gb.ncurses' API (very slightly if at all!). This is why I'm stuck programming > > > > and if the programming isn't done, I struggle to do the documentation :-) > > > > > > > > There are gb.ncurses examples: Pong and Invaders (the last one still not > > > > finished in regard to game logic) in the Games section. But if you told me > > > > that these don't help gb.ncurses newbies, I would agree... > > > > > > > > I'm actually not that fit anymore with gb.ncurses :-) but today afternoon > > > > I'll put some lines together about the basics. > > > > > > > > Regards, > > > > Tobi > > > > > > > > And now off to the Linear Algebra test ;-) > > > > > > > > > > Uuuuh - good luck! > > > > > > Just give me some hint how to start, and we could write some help texts > > > and little examples. Although I don't have too much time right now, I > > > would be able to help out a bit here... > > > > > > > Wait a minute (or one or two hours, more likely). I'm halfways through a > > quite comprehensive tutorial about basic usage: > > > > - printing text, > > - using attributes and colours, > > - creating dialogs. > > > > Almost everything is in place here[0]. With the last little paragraph, I'll > continue tomorrow as it's time for a break now. I've also prepared a project > containing all the snippets presented which I will complete and upload > tomorrow, too. Hope it helps. > > Note that I needed to fix some bugs I encountered while putting the code > together so you better use the latest revision to test ;-) > > Regards, > Tobi > > [0] http://gambasdoc.org/help/tutorial/ncursestut?v3 > OK, now it's ready and has a source code archive. Let me know if you have any suggestions. (Maybe one or the other screenshot would be nice?) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Wed Feb 5 18:23:56 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 5 Feb 2014 18:23:56 +0100 Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop In-Reply-To: References: Message-ID: <20140205172356.GE8944@...2774...> On Wed, 05 Feb 2014, Fabien Bodard wrote: > And hOmage=daChart.grab ? No, DrawingArea.Grab() is still Control.Grab() which, according to the documentation[0] does something very different since Gambas 3. Whenever I wanted to save something from a DrawingArea later, I wrote something like this routine: Public Sub PaintIt() Paint.Line(...) ' ... End which is agnostic about the Paint device. In the DrawingArea_Draw() event handler, I would call this procedure and when a picture with the contents is to be saved, I would create a Picture and start a Paint on it, then call that routine above again. Depending on your application (when the paint to the picture may already produce something different from the DrawingArea contents), you may also always paint to a Picture in the DrawingArea_Draw() event handler and then draw the Picture onto the DrawingArea in a second step. Taking a screenshot to get the DrawingArea contents seems to be a very ugly method to me. Regards, Tobi [0] http://gambasdoc.org/help/comp/gb.qt4/control/grab?v3 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Wed Feb 5 20:01:03 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 5 Feb 2014 14:31:03 -0430 Subject: [Gambas-user] gambas 3.5.2 released! thanks!! In-Reply-To: References: Message-ID: what its the minimun requirements or at leas openal component can be complied with both versions 1.12 and/or 1.14 ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com On Tue, Feb 4, 2014 at 5:04 PM, PICCORO McKAY Lenz wrote: > i read the requirements of gambas, are up to date? in the wiki? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > On Tue, Feb 4, 2014 at 4:58 PM, PICCORO McKAY Lenz > wrote: > >> hi benoit.. i'm reading the changelog of gambas 3.5.2 and we have a >> common word: BUG!!! >> >> ;-) >> >> ... thanks fo the release ! i hope mayority of components can be >> compiled into older distributions! >> > > From dominique.michel at ...3298... Wed Feb 5 20:38:40 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Wed, 5 Feb 2014 20:38:40 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140204091308.257d7329@...3299...> References: <20140204091308.257d7329@...3299...> Message-ID: <20140205203840.3ae1e986@...3299...> Le Tue, 4 Feb 2014 09:13:08 +0100, Dominique Michel a ?crit : > Hi all, > > First, thank you for gambas. Even if a Linux system is more > complicated, it remain me my old time with an Amiga in the eighties. > Simple, powerful and efficient. > > gambas is not in portage currently, and it is an old bug report with > an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 > > I just updated the ebuild to gambas-3.5.2. When installing it, I get > the following warnings from portage: More important, another user get the following error: I got a lot of "symbol lookup error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: undefined symbol: pow" Therefor gambas it's unusable for me. || || Unable to compile gb.desktop || Unable to compile gb.eval.highlight || Unable to compile gb.gui.base || Unable to compile gb.form || Unable to compile gb.form.dialog || Unable to compile gb.form.mdi || Unable to compile gb.db.form || Unable to compile gb.report || Unable to compile gb.chart || Unable to compile gb.net.pop3 || Unable to compile gb.memcached || Unable to compile gb.map || Unable to compile gambas3 || I added -lm to ldflags in makefile but with no use. #endquote Do you know which dependency is missing, and if not, what more is needed to know it? Dominique > > * QA Notice: Package triggers severe warnings which indicate that it > * may exhibit random runtime failures. > * jit_codegen.cpp:6649:33: warning: dereferencing type-punned pointer > will break strict-aliasing rules [-Wstrict-aliasing] > > > * QA Notice: Package triggers severe warnings which indicate that it > * may exhibit random runtime failures. > * framebufferobject.c:108:2: warning: implicit declaration of > function 'GenerateMipmapEXT' [-Wimplicit-function-declaration] > * framebufferobject.c:169:2: warning: implicit declaration of > function 'GetRenderbuffe > > and > > * QA Notice: This package installs one or more .desktop files that do > not > * pass validation. > * > * /usr/share/applications/gambas3.desktop: error: (will be > fatal in the future): value "gambas3.png" for key "Icon" in group > "Desktop Entry" is an icon name with an extension, but there should > be no extension as described in the Icon Theme Specification if the > value is not an absolute path > * /usr/share/applications/gambas3.desktop: warning: value > "Application;Development;" for key "Categories" in group "Desktop > Entry" contains a deprecated value "Application" > * > > A question: When compiling, is it possible that elibtoolize and > eautoreconf only scan what is needed to be able to run a gambas > software, and after that, to only compile and install that part of > gambas (I think the interpreter and its libraries). And when > installed, to make separated builds for each other components? > > My concern is that portage compile every thing, and as the gambas > executables depends on the interpreter and the lib, it is no need to > recompile and reinstall every thing in most cases, if not all cases, > when the interpreter and the libs are recompiled by portage during a > system update. > > Such an update is a 3 steps process: 1) the updated packages are > updated by portage, 2) the obsoleted packages are removed, and 3) > revdep-rebuild check the reverse dependencies in the installed system > and tell portage to reinstall the broken packages from their sources. > In case of 3), it would be a waste of time and energy to recompile > the whole gambas if just one of its executable or lib get broken, and > it would be much better if I can make several ebuilds instead of only > one. > > Also, I am trying now to get a live ebuild to work from the svn, and > it would obviously be more important with it if can spilt the ebuild > into several ones. > > Best regards, > Dominique > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From matti.eber at ...3240... Wed Feb 5 20:36:09 2014 From: matti.eber at ...3240... (Matti) Date: Wed, 05 Feb 2014 20:36:09 +0100 Subject: [Gambas-user] Issue 508 in gambas: request: specify how many decimal places ValueBox In-Reply-To: <2-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> <0-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> <2-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Message-ID: <52F292A9.4030001@...3240...> I think, recently I had the same problem, and I understand the request like that: I wanted to display formatted values of a database, without formatting by code. For example, 123 --> 123,00 1647.5 --> 1.647,50 48.356 --> 48,356000 MaskBox doesn't do anything here, it leaves the data as it is. Obviously, MaskBox is acting only on user input. With ValueBox, you only have the choice between 'Number' and 'Currency'. Both are useless here. So I ended up with formatting by code. No problem, but it would be really nice if MaskBox could handle data or if ValueBox could have more format possibilities. Am 05.02.2014 01:47, schrieb gambas at ...2524...: > Updates: > Status: NeedsInfo > Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement > > Comment #2 on issue 508 by benoit.m... at ...626...: request: specify how > many decimal places ValueBox > http://code.google.com/p/gambas/issues/detail?id=508 > > Did you look at the MaskBox control that can do what you want? Or do you > really need the ValueBox control? > From taboege at ...626... Wed Feb 5 20:50:10 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 5 Feb 2014 20:50:10 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205203840.3ae1e986@...3299...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> Message-ID: <20140205195010.GH8944@...2774...> On Wed, 05 Feb 2014, Dominique Michel wrote: > Le Tue, 4 Feb 2014 09:13:08 +0100, > Dominique Michel a ?crit : > > > Hi all, > > > > First, thank you for gambas. Even if a Linux system is more > > complicated, it remain me my old time with an Amiga in the eighties. > > Simple, powerful and efficient. > > > > gambas is not in portage currently, and it is an old bug report with > > an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 > > > > I just updated the ebuild to gambas-3.5.2. When installing it, I get > > the following warnings from portage: > > More important, another user get the following error: > > I got a lot of "symbol lookup > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > undefined symbol: pow" Therefor gambas it's unusable for me. > > || > || Unable to compile gb.desktop > || Unable to compile gb.eval.highlight > || Unable to compile gb.gui.base > || Unable to compile gb.form > || Unable to compile gb.form.dialog > || Unable to compile gb.form.mdi > || Unable to compile gb.db.form > || Unable to compile gb.report > || Unable to compile gb.chart > || Unable to compile gb.net.pop3 > || Unable to compile gb.memcached > || Unable to compile gb.map > || Unable to compile gambas3 > || > > I added -lm to ldflags in makefile but with no use. > > #endquote > > Do you know which dependency is missing, and if not, what more is > needed to know it? > Hmm, I can't remember any of the Gambas developers using Gentoo. Maybe that's why you didn't get an answer yet (I can't imagine at all what's the matter with pow). Maybe I'll find some place on my harddisk for a Gentoo chroot... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From dominique.michel at ...3298... Wed Feb 5 21:20:05 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Wed, 5 Feb 2014 21:20:05 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205203840.3ae1e986@...3299...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> Message-ID: <20140205212005.21d75f0a@...3299...> Le Wed, 5 Feb 2014 20:38:40 +0100, Dominique Michel a ?crit : > Le Tue, 4 Feb 2014 09:13:08 +0100, > Dominique Michel a ?crit : > > > Hi all, > > > > First, thank you for gambas. Even if a Linux system is more > > complicated, it remain me my old time with an Amiga in the eighties. > > Simple, powerful and efficient. > > > > gambas is not in portage currently, and it is an old bug report with > > an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 > > > > I just updated the ebuild to gambas-3.5.2. When installing it, I get > > the following warnings from portage: > > More important, another user get the following error: > > I got a lot of "symbol lookup > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > undefined symbol: pow" Therefor gambas it's unusable for me. > > || > || Unable to compile gb.desktop > || Unable to compile gb.eval.highlight > || Unable to compile gb.gui.base > || Unable to compile gb.form > || Unable to compile gb.form.dialog > || Unable to compile gb.form.mdi > || Unable to compile gb.db.form > || Unable to compile gb.report > || Unable to compile gb.chart > || Unable to compile gb.net.pop3 > || Unable to compile gb.memcached > || Unable to compile gb.map > || Unable to compile gambas3 > || > > I added -lm to ldflags in makefile but with no use. > > #endquote > > Do you know which dependency is missing, and if not, what more is > needed to know it? One more question, gb--gmp depend on libgmp.so. On my gentoo, I have 3 of them: # equery b libgmp.so * Searching for libgmp.so ... app-emulation/emul-linux-x86-baselibs-20131008-r11 (/usr/lib32/libgmp.so -> libgmp.so.10.0.2) dev-libs/gmp-5.1.3-r1 (/usr/lib64/libgmp.so -> libgmp.so.10.1.3) dev-libs/openssl-1.0.1f (/usr/lib64/engines/libgmp.so) I guess the good one for gambas is dev-libs/gmp. Right? > > Dominique > > > > > * QA Notice: Package triggers severe warnings which indicate that > > it > > * may exhibit random runtime failures. > > * jit_codegen.cpp:6649:33: warning: dereferencing type-punned > > pointer will break strict-aliasing rules [-Wstrict-aliasing] > > > > > > * QA Notice: Package triggers severe warnings which indicate that > > it > > * may exhibit random runtime failures. > > * framebufferobject.c:108:2: warning: implicit declaration of > > function 'GenerateMipmapEXT' [-Wimplicit-function-declaration] > > * framebufferobject.c:169:2: warning: implicit declaration of > > function 'GetRenderbuffe > > > > and > > > > * QA Notice: This package installs one or more .desktop files that > > do not > > * pass validation. > > * > > * /usr/share/applications/gambas3.desktop: error: (will be > > fatal in the future): value "gambas3.png" for key "Icon" in group > > "Desktop Entry" is an icon name with an extension, but there > > should be no extension as described in the Icon Theme Specification > > if the value is not an absolute path > > * /usr/share/applications/gambas3.desktop: warning: value > > "Application;Development;" for key "Categories" in group "Desktop > > Entry" contains a deprecated value "Application" > > * > > > > A question: When compiling, is it possible that elibtoolize and > > eautoreconf only scan what is needed to be able to run a gambas > > software, and after that, to only compile and install that part of > > gambas (I think the interpreter and its libraries). And when > > installed, to make separated builds for each other components? > > > > My concern is that portage compile every thing, and as the gambas > > executables depends on the interpreter and the lib, it is no need to > > recompile and reinstall every thing in most cases, if not all cases, > > when the interpreter and the libs are recompiled by portage during a > > system update. > > > > Such an update is a 3 steps process: 1) the updated packages are > > updated by portage, 2) the obsoleted packages are removed, and 3) > > revdep-rebuild check the reverse dependencies in the installed > > system and tell portage to reinstall the broken packages from their > > sources. In case of 3), it would be a waste of time and energy to > > recompile the whole gambas if just one of its executable or lib get > > broken, and it would be much better if I can make several ebuilds > > instead of only one. > > > > Also, I am trying now to get a live ebuild to work from the svn, and > > it would obviously be more important with it if can spilt the ebuild > > into several ones. > > > > Best regards, > > Dominique > > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common > > Pitfalls. Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Feb 5 21:36:28 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 5 Feb 2014 21:36:28 +0100 Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop In-Reply-To: <20140205172356.GE8944@...2774...> References: <20140205172356.GE8944@...2774...> Message-ID: Le 5 f?vr. 2014 18:26, "Tobias Boege" a ?crit : > > On Wed, 05 Feb 2014, Fabien Bodard wrote: > > And hOmage=daChart.grab ? > > No, DrawingArea.Grab() is still Control.Grab() which, according to the > documentation[0] does something very different since Gambas 3. > > Whenever I wanted to save something from a DrawingArea later, I wrote > something like this routine: > > Public Sub PaintIt() > Paint.Line(...) > ' ... > End > > which is agnostic about the Paint device. In the DrawingArea_Draw() event > handler, I would call this procedure and when a picture with the contents > is to be saved, I would create a Picture and start a Paint on it, then call > that routine above again. > > Depending on your application (when the paint to the picture may already > produce something different from the DrawingArea contents), you may also > always paint to a Picture in the DrawingArea_Draw() event handler and then > draw the Picture onto the DrawingArea in a second step. > > Taking a screenshot to get the DrawingArea contents seems to be a very ugly > method to me. I'm agree > > Regards, > Tobi > > [0] http://gambasdoc.org/help/comp/gb.qt4/control/grab?v3 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dominique.michel at ...3298... Wed Feb 5 22:12:12 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Wed, 5 Feb 2014 22:12:12 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205203840.3ae1e986@...3299...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> Message-ID: <20140205221212.6005317c@...3299...> Le Wed, 5 Feb 2014 20:38:40 +0100, Dominique Michel a ?crit : > Le Tue, 4 Feb 2014 09:13:08 +0100, > Dominique Michel a ?crit : > > > Hi all, > > > > First, thank you for gambas. Even if a Linux system is more > > complicated, it remain me my old time with an Amiga in the eighties. > > Simple, powerful and efficient. > > > > gambas is not in portage currently, and it is an old bug report with > > an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 Some more questions. gb.gtk depend on cairo. Doest it mean gb.cairo is mandatory if I want gb.gtk? gb.media depend on gstreamer-video. On gentoo, it is, among other video plugins: gst-plugins-dts: for MPEG-1/2 video encoding gst-plugins-x264: plugin for gstreamer ?? gst-plugins-xvid: for XviD (MPEG-4) video encoding/decoding gst-plugins-xvideo: plugin for gstreamer ?? Which one is the good one? Thanks, Dominique > > > > I just updated the ebuild to gambas-3.5.2. When installing it, I get > > the following warnings from portage: > > More important, another user get the following error: > > I got a lot of "symbol lookup > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > undefined symbol: pow" Therefor gambas it's unusable for me. > > || > || Unable to compile gb.desktop > || Unable to compile gb.eval.highlight > || Unable to compile gb.gui.base > || Unable to compile gb.form > || Unable to compile gb.form.dialog > || Unable to compile gb.form.mdi > || Unable to compile gb.db.form > || Unable to compile gb.report > || Unable to compile gb.chart > || Unable to compile gb.net.pop3 > || Unable to compile gb.memcached > || Unable to compile gb.map > || Unable to compile gambas3 > || > > I added -lm to ldflags in makefile but with no use. > > #endquote > > Do you know which dependency is missing, and if not, what more is > needed to know it? > > Dominique > > > > > * QA Notice: Package triggers severe warnings which indicate that > > it > > * may exhibit random runtime failures. > > * jit_codegen.cpp:6649:33: warning: dereferencing type-punned > > pointer will break strict-aliasing rules [-Wstrict-aliasing] > > > > > > * QA Notice: Package triggers severe warnings which indicate that > > it > > * may exhibit random runtime failures. > > * framebufferobject.c:108:2: warning: implicit declaration of > > function 'GenerateMipmapEXT' [-Wimplicit-function-declaration] > > * framebufferobject.c:169:2: warning: implicit declaration of > > function 'GetRenderbuffe > > > > and > > > > * QA Notice: This package installs one or more .desktop files that > > do not > > * pass validation. > > * > > * /usr/share/applications/gambas3.desktop: error: (will be > > fatal in the future): value "gambas3.png" for key "Icon" in group > > "Desktop Entry" is an icon name with an extension, but there > > should be no extension as described in the Icon Theme Specification > > if the value is not an absolute path > > * /usr/share/applications/gambas3.desktop: warning: value > > "Application;Development;" for key "Categories" in group "Desktop > > Entry" contains a deprecated value "Application" > > * > > > > A question: When compiling, is it possible that elibtoolize and > > eautoreconf only scan what is needed to be able to run a gambas > > software, and after that, to only compile and install that part of > > gambas (I think the interpreter and its libraries). And when > > installed, to make separated builds for each other components? > > > > My concern is that portage compile every thing, and as the gambas > > executables depends on the interpreter and the lib, it is no need to > > recompile and reinstall every thing in most cases, if not all cases, > > when the interpreter and the libs are recompiled by portage during a > > system update. > > > > Such an update is a 3 steps process: 1) the updated packages are > > updated by portage, 2) the obsoleted packages are removed, and 3) > > revdep-rebuild check the reverse dependencies in the installed > > system and tell portage to reinstall the broken packages from their > > sources. In case of 3), it would be a waste of time and energy to > > recompile the whole gambas if just one of its executable or lib get > > broken, and it would be much better if I can make several ebuilds > > instead of only one. > > > > Also, I am trying now to get a live ebuild to work from the svn, and > > it would obviously be more important with it if can spilt the ebuild > > into several ones. > > > > Best regards, > > Dominique > > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common > > Pitfalls. Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dominique.michel at ...3298... Wed Feb 5 22:23:34 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Wed, 5 Feb 2014 22:23:34 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205195010.GH8944@...2774...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> <20140205195010.GH8944@...2774...> Message-ID: <20140205222334.4b84177e@...3299...> Le Wed, 5 Feb 2014 20:50:10 +0100, Tobias Boege a ?crit : > On Wed, 05 Feb 2014, Dominique Michel wrote: > > Le Tue, 4 Feb 2014 09:13:08 +0100, > > Dominique Michel a ?crit : > > > > > Hi all, > > > > > > First, thank you for gambas. Even if a Linux system is more > > > complicated, it remain me my old time with an Amiga in the > > > eighties. Simple, powerful and efficient. > > > > > > gambas is not in portage currently, and it is an old bug report > > > with an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 > > > > > > I just updated the ebuild to gambas-3.5.2. When installing it, I > > > get the following warnings from portage: > > > > More important, another user get the following error: > > > > I got a lot of "symbol lookup > > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > > undefined symbol: pow" Therefor gambas it's unusable for me. > > > > || > > || Unable to compile gb.desktop > > || Unable to compile gb.eval.highlight > > || Unable to compile gb.gui.base > > || Unable to compile gb.form > > || Unable to compile gb.form.dialog > > || Unable to compile gb.form.mdi > > || Unable to compile gb.db.form > > || Unable to compile gb.report > > || Unable to compile gb.chart > > || Unable to compile gb.net.pop3 > > || Unable to compile gb.memcached > > || Unable to compile gb.map > > || Unable to compile gambas3 > > || > > > > I added -lm to ldflags in makefile but with no use. > > > > #endquote > > > > Do you know which dependency is missing, and if not, what more is > > needed to know it? > > > > Hmm, I can't remember any of the Gambas developers using Gentoo. Maybe > that's why you didn't get an answer yet (I can't imagine at all what's > the matter with pow). > > Maybe I'll find some place on my harddisk for a Gentoo chroot... I don't get this issue on my system. If you take a look at the bug report, you will see that user have unsafe cflags in make.conf (by unsafe I mean cflags that need to be tested on a per package basis, and are not 100% safe to use as system wide cflags): CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects" Dominique > > Regards, > Tobi > From taboege at ...626... Wed Feb 5 22:16:11 2014 From: taboege at ...626... (Tobias Boege) Date: Wed, 5 Feb 2014 22:16:11 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205222334.4b84177e@...3299...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> <20140205195010.GH8944@...2774...> <20140205222334.4b84177e@...3299...> Message-ID: <20140205211611.GI8944@...2774...> On Wed, 05 Feb 2014, Dominique Michel wrote: > Le Wed, 5 Feb 2014 20:50:10 +0100, > Tobias Boege a ?crit : > > > On Wed, 05 Feb 2014, Dominique Michel wrote: > > > Le Tue, 4 Feb 2014 09:13:08 +0100, > > > Dominique Michel a ?crit : > > > > > > > Hi all, > > > > > > > > First, thank you for gambas. Even if a Linux system is more > > > > complicated, it remain me my old time with an Amiga in the > > > > eighties. Simple, powerful and efficient. > > > > > > > > gambas is not in portage currently, and it is an old bug report > > > > with an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 > > > > > > > > I just updated the ebuild to gambas-3.5.2. When installing it, I > > > > get the following warnings from portage: > > > > > > More important, another user get the following error: > > > > > > I got a lot of "symbol lookup > > > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > > > undefined symbol: pow" Therefor gambas it's unusable for me. > > > > > > || > > > || Unable to compile gb.desktop > > > || Unable to compile gb.eval.highlight > > > || Unable to compile gb.gui.base > > > || Unable to compile gb.form > > > || Unable to compile gb.form.dialog > > > || Unable to compile gb.form.mdi > > > || Unable to compile gb.db.form > > > || Unable to compile gb.report > > > || Unable to compile gb.chart > > > || Unable to compile gb.net.pop3 > > > || Unable to compile gb.memcached > > > || Unable to compile gb.map > > > || Unable to compile gambas3 > > > || > > > > > > I added -lm to ldflags in makefile but with no use. > > > > > > #endquote > > > > > > Do you know which dependency is missing, and if not, what more is > > > needed to know it? > > > > > > > Hmm, I can't remember any of the Gambas developers using Gentoo. Maybe > > that's why you didn't get an answer yet (I can't imagine at all what's > > the matter with pow). > > > > Maybe I'll find some place on my harddisk for a Gentoo chroot... > > I don't get this issue on my system. If you take a look at the bug > report, you will see that user have unsafe cflags in make.conf (by > unsafe I mean cflags that need to be tested on a per package basis, > and are not 100% safe to use as system wide cflags): > > CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 > -fno-fat-lto-objects" > Do you want to tell me that this is a actually non-issue? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sbungay at ...3301... Wed Feb 5 21:54:29 2014 From: sbungay at ...3301... (Stephen) Date: Wed, 05 Feb 2014 15:54:29 -0500 Subject: [Gambas-user] 3.5.2 and CentOS 6.5 64 bit. Message-ID: <52F2A505.7090703@...3301...> Anyone got the combination in the subject line up and running? -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From dominique.michel at ...3298... Thu Feb 6 00:53:25 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Thu, 6 Feb 2014 00:53:25 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205211611.GI8944@...2774...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> <20140205195010.GH8944@...2774...> <20140205222334.4b84177e@...3299...> <20140205211611.GI8944@...2774...> Message-ID: <20140206005325.2bd88bcf@...3299...> Le Wed, 5 Feb 2014 22:16:11 +0100, Tobias Boege a ?crit : > On Wed, 05 Feb 2014, Dominique Michel wrote: > > Le Wed, 5 Feb 2014 20:50:10 +0100, > > Tobias Boege a ?crit : > > > > > On Wed, 05 Feb 2014, Dominique Michel wrote: > > > > Le Tue, 4 Feb 2014 09:13:08 +0100, > > > > Dominique Michel a ?crit : > > > > > > > > > Hi all, > > > > > > > > > > First, thank you for gambas. Even if a Linux system is more > > > > > complicated, it remain me my old time with an Amiga in the > > > > > eighties. Simple, powerful and efficient. > > > > > > > > > > gambas is not in portage currently, and it is an old bug > > > > > report with an ebuild at > > > > > https://bugs.gentoo.org/show_bug.cgi?id=302136 > > > > > > > > > > I just updated the ebuild to gambas-3.5.2. When installing > > > > > it, I get the following warnings from portage: > > > > > > > > More important, another user get the following error: > > > > > > > > I got a lot of "symbol lookup > > > > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > > > > undefined symbol: pow" Therefor gambas it's unusable for me. > > > > > > > > || > > > > || Unable to compile gb.desktop > > > > || Unable to compile gb.eval.highlight > > > > || Unable to compile gb.gui.base > > > > || Unable to compile gb.form > > > > || Unable to compile gb.form.dialog > > > > || Unable to compile gb.form.mdi > > > > || Unable to compile gb.db.form > > > > || Unable to compile gb.report > > > > || Unable to compile gb.chart > > > > || Unable to compile gb.net.pop3 > > > > || Unable to compile gb.memcached > > > > || Unable to compile gb.map > > > > || Unable to compile gambas3 > > > > || > > > > > > > > I added -lm to ldflags in makefile but with no use. > > > > > > > > #endquote > > > > > > > > Do you know which dependency is missing, and if not, what more > > > > is needed to know it? > > > > > > > > > > Hmm, I can't remember any of the Gambas developers using Gentoo. > > > Maybe that's why you didn't get an answer yet (I can't imagine at > > > all what's the matter with pow). > > > > > > Maybe I'll find some place on my harddisk for a Gentoo chroot... > > > > I don't get this issue on my system. If you take a look at the bug > > report, you will see that user have unsafe cflags in make.conf (by > > unsafe I mean cflags that need to be tested on a per package basis, > > and are not 100% safe to use as system wide cflags): > > > > CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 > > -fno-fat-lto-objects" > > > > Do you want to tell me that this is a actually non-issue? I don't know at that time. I asked the user to filter out his CFLAGS and LDFLAGS and to try again, and he didn't answered at that time. All I know is I don't get this issue and I use the recommended global USE flags for my arch which are "-march=native -O2 -pipe" and nothing more. The other compilation flags used by portage will be the ones from their respective sources, if they are not filtered out by the ebuild. My main issue with that ebuild, as my other messages show it, is to bullet-prof the dependencies. Best, Dominique > > Regards, > Tobi > From gambas at ...1... Thu Feb 6 00:45:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 06 Feb 2014 00:45:39 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140204091308.257d7329@...3299...> References: <20140204091308.257d7329@...3299...> Message-ID: <52F2CD23.6050100@...1...> Le 04/02/2014 09:13, Dominique Michel a ?crit : > Hi all, > > First, thank you for gambas. Even if a Linux system is more > complicated, it remain me my old time with an Amiga in the eighties. > Simple, powerful and efficient. > > gambas is not in portage currently, and it is an old bug report with > an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 > > I just updated the ebuild to gambas-3.5.2. When installing it, I get > the following warnings from portage: > > * QA Notice: Package triggers severe warnings which indicate that it > * may exhibit random runtime failures. > * jit_codegen.cpp:6649:33: warning: dereferencing type-punned pointer > will break strict-aliasing rules [-Wstrict-aliasing] > > > * QA Notice: Package triggers severe warnings which indicate that it > * may exhibit random runtime failures. > * framebufferobject.c:108:2: warning: implicit declaration of function > 'GenerateMipmapEXT' [-Wimplicit-function-declaration] > * framebufferobject.c:169:2: warning: implicit declaration of function > 'GetRenderbuffe These warnings are not a problem. The warnings on gb.opengl cannot be avoided at the moment AFAIK. > > and > > * QA Notice: This package installs one or more .desktop files that do > not > * pass validation. > * > * /usr/share/applications/gambas3.desktop: error: (will be > fatal in the future): value "gambas3.png" for key "Icon" in group > "Desktop Entry" is an icon name with an extension, but there should > be no extension as described in the Icon Theme Specification if the > value is not an absolute path > * /usr/share/applications/gambas3.desktop: warning: value > "Application;Development;" for key "Categories" in group "Desktop > Entry" contains a deprecated value "Application" > * OK, I will fix that. For the remainder, I can't help, I don't use Gentoo. Regards, -- Beno?t Minisini From gambas at ...1... Thu Feb 6 00:47:24 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 06 Feb 2014 00:47:24 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <20140205203840.3ae1e986@...3299...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> Message-ID: <52F2CD8C.80806@...1...> Le 05/02/2014 20:38, Dominique Michel a ?crit : > Le Tue, 4 Feb 2014 09:13:08 +0100, > Dominique Michel a ?crit : > >> Hi all, >> >> First, thank you for gambas. Even if a Linux system is more >> complicated, it remain me my old time with an Amiga in the eighties. >> Simple, powerful and efficient. >> >> gambas is not in portage currently, and it is an old bug report with >> an ebuild at https://bugs.gentoo.org/show_bug.cgi?id=302136 >> >> I just updated the ebuild to gambas-3.5.2. When installing it, I get >> the following warnings from portage: > > More important, another user get the following error: > > I got a lot of "symbol lookup > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > undefined symbol: pow" Therefor gambas it's unusable for me. > I will fix that too. I don't know why, but it does not crash elsewhere. -- Beno?t Minisini From LouisWAdamsJr at ...3300... Thu Feb 6 05:35:33 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Wed, 5 Feb 2014 20:35:33 -0800 (PST) Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop In-Reply-To: References: <1391614800855-45541.post@...3046...> Message-ID: <1391661333308-45560.post@...3046...> > Use dachart.screenx, dachart.screeny and you will have what you want. Thanks very much, that works perfectly. It is still the case that what I reported seems to be a bug that ought to be fixed. Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-Screenshot-Depends-on-Window-Location-on-Desktop-tp45541p45560.html Sent from the gambas-user mailing list archive at Nabble.com. From LouisWAdamsJr at ...3300... Thu Feb 6 05:50:00 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Wed, 5 Feb 2014 20:50:00 -0800 (PST) Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop In-Reply-To: <20140205172356.GE8944@...2774...> References: <1391614800855-45541.post@...3046...> <20140205172356.GE8944@...2774...> Message-ID: <1391662200146-45561.post@...3046...> > Taking a screenshot to get the DrawingArea contents seems to be a very ugly method to me. I think it's ugly too, but I'm the only one using the programs I write so I'm the only one offended. I'm a GAMBUS newbie, and I've been very confused by posts that explain the proper way to convert the internal picture of a drawing area control into an image file. Picture versus Image. Paint versus Draw. Drawing Area control versus Picture Box control versus ImageView control. Maybe someday I'll understand. For right now Screenshot works for me. Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-Screenshot-Depends-on-Window-Location-on-Desktop-tp45541p45561.html Sent from the gambas-user mailing list archive at Nabble.com. From shanep1967 at ...169... Thu Feb 6 06:26:22 2014 From: shanep1967 at ...169... (Shane) Date: Thu, 06 Feb 2014 16:26:22 +1100 Subject: [Gambas-user] bug ? Message-ID: <52F31CFE.5000402@...169...> is this a bug ? when I use - " Me.Parent.Width " I get a value as exspeced but when I use " Me.Parent.X .Y " I get 0 when I expecting a value > 0 and the same with " Me.Parent.ClientX .ClientY " etc From shanep1967 at ...169... Thu Feb 6 06:28:50 2014 From: shanep1967 at ...169... (Shane) Date: Thu, 06 Feb 2014 16:28:50 +1100 Subject: [Gambas-user] spelling bug ? In-Reply-To: <52F31CFE.5000402@...169...> References: <52F31CFE.5000402@...169...> Message-ID: <52F31D92.7090901@...169...> > is this a bug ? > > when I use - " Me.Parent.Width " I get a value as expected > but when I use " Me.Parent.X .Y " I get 0 when I expecting a value > 0 > and the same with > " Me.Parent.ClientX .ClientY " etc From willy at ...2734... Thu Feb 6 09:28:40 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 06 Feb 2014 09:28:40 +0100 Subject: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown In-Reply-To: <1391433748.2370.36.camel@...3024...> References: <1391349946.3261.11.camel@...3024...> <52EE52F2.1080904@...1...> <1391356094.3261.13.camel@...3024...> <1391433748.2370.36.camel@...3024...> Message-ID: <1391675320.2310.8.camel@...3024...> On Mon, 2014-02-03 at 14:22 +0100, Willy Raets wrote: > On Sun, 2014-02-02 at 16:48 +0100, Willy Raets wrote: > > On Sun, 2014-02-02 at 15:15 +0100, Beno?t Minisini wrote: > > > Le 02/02/2014 15:05, Willy Raets a ?crit : > > > > Hi all, > > > > > > > > I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014). > > > > When running the new Web example I got the message that the gb.markdown > > > > component is missing. > > > > > > > > When opening a project and checking the component tab in properties > > > > there is no gb.markdown selectable. > > > > > > > > Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do > > > > the trick either. Strange thing is that when I downloaded the source > > > > (apt-get source), the gb.markdown component source is available. > > > > > > > > Any ideas why the gb.markdown won't install. > > > > > > > > Tested this on: > > > > - Linux Mint 16 with xfce 4.10 > > > > - Lubuntu 12.10 with LXDE 0.5.11 > > > > > > > > > > > > > > It has been fixed in revision #6125, so you must wait a little... > > > > > > > Thanks, > > > > I'll check tomorrows release of Daily builds and see if the fix works. > > I'll keep you updated. > > > > Hi, > > Seems the problem is in the Gambas Daily Builds PPA. > > I updated today to: > -> 3.5.99.1+svn20140203+build51~ubuntu12.10.1 (on the Lubuntu 12.10) > -> 3.5.99.1+svn20140203+build18~ubuntu13.10.1 (on Linux Mint 16) > > I think that this is revision #6127 > > No gb.markdown gets installed on both systems mentioned earlier. > > Attached two screenshots. > 1. When opening the SmallWiki example a message says gb.markdown missing > 2. Properties -> Tab components of SmallWiki example (no gb.markdown to > select) > > Doing a sudo apt-get install gambas3-gb-markdown doesn't install > anything, as the package can't be found. > > As gb.markdown is a new component, maybe something in the packaging has > gone wrong. Hello, Update Gambas from PPA Daily Builds to: -> 3.5.99.1+svn20140205+build51~ubuntu12.10.1. (Lubuntu 12.10) -> 3.5.99.1+svn20140205+build18~ubuntu13.10.1 (Linux Mint 16) I think this is revision #6134. WikiExample gives no errors. This makes sense as gb.markdown has been embedded into the example by Beno?t. But the new gb.markdown component still doesn't get installed. So I guess Kendek and/or Sebastian will have to have a look at the packaging process and see what has gone wrong there. Please keep me informed when it will get fixed and I'll have another go to check. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Feb 6 09:36:07 2014 From: willy at ...2734... (Willy Raets) Date: Thu, 06 Feb 2014 09:36:07 +0100 Subject: [Gambas-user] ppa In-Reply-To: <52F1E42C.6060104@...169...> References: <52F1E42C.6060104@...169...> Message-ID: <1391675767.2310.11.camel@...3024...> On Wed, 2014-02-05 at 18:11 +1100, Shane wrote: > is the daily build of kendek's ppa still working ? Gambas Daily Builds PPA (the development version of Gambas) is still working. It doesn't install a new component named gb.markdown, but other than that is just runs fine and shouldn't be a problem as long as you are in no need of gb.markdown.cion Kendek's Gambas3 PPA (the stable version of Gambas) is still working as well. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From jussi.lahtinen at ...626... Thu Feb 6 12:54:34 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 6 Feb 2014 13:54:34 +0200 Subject: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop In-Reply-To: <1391662200146-45561.post@...3046...> References: <1391614800855-45541.post@...3046...> <20140205172356.GE8944@...2774...> <1391662200146-45561.post@...3046...> Message-ID: Not sure you can access internal picture of drawing area, but if you need to copy it's content I suggest you do it other way around. That is, do all drawing to picture and copy the ready picture to drawing area. Draw.Begin(hMyPic) Draw. ... what ever ... Draw.End() Or: hMyPic = Picture.Load(...) Or however you have made content to drawing area. When the pic is ready, you just put it on drawing area: Draw.Begin(daChart) '' <--- use this only if drawing area property cached = true Draw.Picture(hMyPic, 0, 0) Draw.End() Jussi On Thu, Feb 6, 2014 at 6:50 AM, Louis W. Adams, Jr. < LouisWAdamsJr at ...407...> wrote: > > Taking a screenshot to get the DrawingArea contents seems to be a very > ugly > method to me. > > I think it's ugly too, but I'm the only one using the programs I write so > I'm the only one offended. I'm a GAMBUS newbie, and I've been very > confused > by posts that explain the proper way to convert the internal picture of a > drawing area control into an image file. Picture versus Image. Paint > versus Draw. Drawing Area control versus Picture Box control versus > ImageView control. Maybe someday I'll understand. For right now > Screenshot > works for me. > > Lou > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-Screenshot-Depends-on-Window-Location-on-Desktop-tp45541p45561.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Thu Feb 6 15:10:25 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Thu, 6 Feb 2014 06:10:25 -0800 (PST) Subject: [Gambas-user] gridview column clicked indicator Message-ID: <1391695825277-45567.post@...3046...> I thought I had seen an added feature to gridview where the ColumnClick event results in a small indicator in the column header but can't find it now. Anyway, such a feature would be helpful to show which column in a table had been sorted (and also if 'up' or 'down' sorted). Any ideas? -- View this message in context: http://gambas.8142.n7.nabble.com/gridview-column-clicked-indicator-tp45567.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Thu Feb 6 16:31:14 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 6 Feb 2014 16:31:14 +0100 Subject: [Gambas-user] gridview column clicked indicator In-Reply-To: <1391695825277-45567.post@...3046...> References: <1391695825277-45567.post@...3046...> Message-ID: Try simply myGridview.sorted=true Then a indicator appears on title anch changes on click. You must provide de sort routine by yourself. Regards 2014-02-06 bill-lancaster : > I thought I had seen an added feature to gridview where the ColumnClick > event > results in a small indicator in the column header but can't find it now. > Anyway, such a feature would be helpful to show which column in a table had > been sorted (and also if 'up' or 'down' sorted). > Any ideas? > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/gridview-column-clicked-indicator-tp45567.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Feb 6 16:54:29 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 6 Feb 2014 16:54:29 +0100 Subject: [Gambas-user] spelling bug ? In-Reply-To: <52F31D92.7090901@...169...> References: <52F31CFE.5000402@...169...> <52F31D92.7090901@...169...> Message-ID: But what is parent ? Le 6 f?vr. 2014 06:31, "Shane" a ?crit : > > > > is this a bug ? > > > > when I use - " Me.Parent.Width " I get a value as expected > > but when I use " Me.Parent.X .Y " I get 0 when I expecting a value > 0 > > and the same with > > " Me.Parent.ClientX .ClientY " etc > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Thu Feb 6 18:31:05 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Thu, 6 Feb 2014 09:31:05 -0800 (PST) Subject: [Gambas-user] gridview column clicked indicator In-Reply-To: References: <1391695825277-45567.post@...3046...> Message-ID: <1391707865061-45570.post@...3046...> Thanks Jorge, can the indicator be changed to point up as well as down? -- View this message in context: http://gambas.8142.n7.nabble.com/gridview-column-clicked-indicator-tp45567p45570.html Sent from the gambas-user mailing list archive at Nabble.com. From matti.eber at ...3240... Thu Feb 6 20:14:03 2014 From: matti.eber at ...3240... (Matti) Date: Thu, 06 Feb 2014 20:14:03 +0100 Subject: [Gambas-user] To the wishlist Message-ID: <52F3DEFB.8040703@...3240...> CheckBox and RadioButton: Sometimes, just for the look-and-feel, it would be better to have the label on the left side of the control. Of course, this can be done with a separate label and the text property set to "", but - why not add a Label_left/right property to these controls? Would be elegant. Regards Matti From bbruen at ...2308... Fri Feb 7 01:28:08 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 07 Feb 2014 10:58:08 +1030 Subject: [Gambas-user] Return TextBox.Selection from a custom control Message-ID: <1391732888.4077.6.camel@...2688...> I have a custom control that contains a TextBox. I need to expose the Selection property of that textbox through a property in the custom control. Alas, Selection is a virtual class. I've tried several approaches without any joy, including trying to pass it as a generic Object. Any clues? tia Bruce From shanep1967 at ...169... Fri Feb 7 02:46:00 2014 From: shanep1967 at ...169... (Shane) Date: Fri, 07 Feb 2014 12:46:00 +1100 Subject: [Gambas-user] spelling bug ? In-Reply-To: References: <52F31CFE.5000402@...169...> <52F31D92.7090901@...169...> Message-ID: <52F43AD8.2050203@...169...> Control.Parent (gb.qt4) Property Read *Parent* As Container Returns the control container. On 07/02/14 02:54, Fabien Bodard wrote: > But what is parent ? > Le 6 f?vr. 2014 06:31, "Shane" a ?crit : > >> >>> is this a bug ? >>> >>> when I use - " Me.Parent.Width " I get a value as expected >>> but when I use " Me.Parent.X .Y " I get 0 when I expecting a value > 0 >>> and the same with >>> " Me.Parent.ClientX .ClientY " etc >> >> >> ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From yodi at ...18... Fri Feb 7 04:24:47 2014 From: yodi at ...18... (Dirk) Date: Fri, 07 Feb 2014 04:24:47 +0100 Subject: [Gambas-user] morse code sound ? Message-ID: <52F451FF.6070304@...18...> Hi, can create with gambas morse code sound ? ... Dirk From gambas.fr at ...626... Fri Feb 7 07:13:42 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Feb 2014 07:13:42 +0100 Subject: [Gambas-user] Return TextBox.Selection from a custom control In-Reply-To: <1391732888.4077.6.camel@...2688...> References: <1391732888.4077.6.camel@...2688...> Message-ID: Why not create your own selection sub class that communicate with the component Public _textbox as textbox Property Start as integer Public function Start() as integer Return _textbox.selection.start End In your component Property read selection as CSelection Private $hSelection As New CSelection Public sub _new () $hselection._textbox=mytextbox So user can use My component.Selection.start=6 Le 7 f?vr. 2014 01:29, "Bruce" a ?crit : > I have a custom control that contains a TextBox. I need to expose the > Selection property of that textbox through a property in the custom > control. Alas, Selection is a virtual class. > > I've tried several approaches without any joy, including trying to pass > it as a generic Object. > > Any clues? > > tia > Bruce > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Feb 7 07:13:42 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Feb 2014 07:13:42 +0100 Subject: [Gambas-user] spelling bug ? In-Reply-To: <52F43AD8.2050203@...169...> References: <52F31CFE.5000402@...169...> <52F31D92.7090901@...169...> <52F43AD8.2050203@...169...> Message-ID: Le 7 f?vr. 2014 02:46, "Shane" a ?crit : > > Control.Parent (gb.qt4) > > Property Read *Parent* As Container < http://gambasdoc.org/help/comp/gb.qt4/container?v3> Well lol, I know that ... I just want to know what parent must to be ... A form ?... A control ? If you want to get the form of a control prefer the use of me.window > Returns the control container. > > On 07/02/14 02:54, Fabien Bodard wrote: > > But what is parent ? > > Le 6 f?vr. 2014 06:31, "Shane" a ?crit : > > > >> > >>> is this a bug ? > >>> > >>> when I use - " Me.Parent.Width " I get a value as expected > >>> but when I use " Me.Parent.X .Y " I get 0 when I expecting a value > 0 > >>> and the same with > >>> " Me.Parent.ClientX .ClientY " etc > >> > >> > >> ------------------------------------------------------------------------------ > >> Managing the Performance of Cloud-Based Applications > >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > >> Read the Whitepaper. > >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Fri Feb 7 08:50:51 2014 From: vuott at ...325... (Ru Vuott) Date: Fri, 7 Feb 2014 07:50:51 +0000 (GMT) Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <52F451FF.6070304@...18...> Message-ID: <1391759451.21028.YahooMailBasic@...3271...> "morse code sound" ....a kind of bip bip ? -------------------------------------------- Ven 7/2/14, Dirk ha scritto: Oggetto: [Gambas-user] morse code sound ? A: Gambas-user at lists.sourceforge.net Data: Venerd? 7 febbraio 2014, 04:24 Hi, can create with gambas morse code? sound ? ... Dirk ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From shordi at ...626... Fri Feb 7 09:24:31 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 7 Feb 2014 09:24:31 +0100 Subject: [Gambas-user] gridview column clicked indicator In-Reply-To: <1391707865061-45570.post@...3046...> References: <1391695825277-45567.post@...3046...> <1391707865061-45570.post@...3046...> Message-ID: Just click on title bar... Regards 2014-02-06 bill-lancaster : > Thanks Jorge, can the indicator be changed to point up as well as down? > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/gridview-column-clicked-indicator-tp45567p45570.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mike.crean at ...2897... Fri Feb 7 09:25:09 2014 From: mike.crean at ...2897... (Mike Crean) Date: Fri, 7 Feb 2014 00:25:09 -0800 (PST) Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <1391759451.21028.YahooMailBasic@...3271...> References: <52F451FF.6070304@...18...> <1391759451.21028.YahooMailBasic@...3271...> Message-ID: <1391761509.9858.YahooMailNeo@...3084...> So how about di, di, dit, dar,dar,dar On Friday, 7 February 2014 3:53 PM, Ru Vuott wrote: "morse code? sound" ....a kind of bip bip ? -------------------------------------------- Ven 7/2/14, Dirk ha scritto: Oggetto: [Gambas-user] morse code? sound ? A: Gambas-user at lists.sourceforge.net Data: Venerd? 7 febbraio 2014, 04:24 Hi, can create with gambas morse code? sound ? ... Dirk ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From shanep1967 at ...169... Fri Feb 7 09:34:48 2014 From: shanep1967 at ...169... (Shane) Date: Fri, 07 Feb 2014 19:34:48 +1100 Subject: [Gambas-user] Parent bug ? In-Reply-To: References: <52F31CFE.5000402@...169...> <52F31D92.7090901@...169...> <52F43AD8.2050203@...169...> Message-ID: <52F49AA8.8020504@...169...> lol what i have is a form2 on a workspace1 and the workspace1 is on the main form1 so from2 I want to get the location of workspace1 on form1 hope that makes sense? it just seem that these properties should be filled. On 07/02/14 17:13, Fabien Bodard wrote: > Le 7 f?vr. 2014 02:46, "Shane" a ?crit : >> Control.Parent (gb.qt4) >> >> Property Read *Parent* As Container < > http://gambasdoc.org/help/comp/gb.qt4/container?v3> > > Well lol, > > I know that ... I just want to know what parent must to be ... A form ?... > A control ? > > If you want to get the form of a control prefer the use of me.window > >> Returns the control container. >> >> On 07/02/14 02:54, Fabien Bodard wrote: >>> But what is parent ? >>> Le 6 f?vr. 2014 06:31, "Shane" a ?crit : >>> >>>>> is this a bug ? >>>>> >>>>> when I use - " Me.Parent.Width " I get a value as expected >>>>> but when I use " Me.Parent.X .Y " I get 0 when I expecting a value > 0 >>>>> and the same with >>>>> " Me.Parent.ClientX .ClientY " etc >>>> >>>> > ------------------------------------------------------------------------------ >>>> Managing the Performance of Cloud-Based Applications >>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >>>> Read the Whitepaper. >>>> >>>> > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > ------------------------------------------------------------------------------ >>> Managing the Performance of Cloud-Based Applications >>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >>> Read the Whitepaper. >>> > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> > ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mike.crean at ...2897... Fri Feb 7 09:34:56 2014 From: mike.crean at ...2897... (Mike Crean) Date: Fri, 7 Feb 2014 00:34:56 -0800 (PST) Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <1391761509.9858.YahooMailNeo@...3084...> References: <52F451FF.6070304@...18...> <1391759451.21028.YahooMailBasic@...3271...> <1391761509.9858.YahooMailNeo@...3084...> Message-ID: <1391762096.33866.YahooMailNeo@...3084...> Correction to my?last. For those that are interested complements of Wikipedia ? International Morse code is composed of five elements: 1. short mark, dot or "dit" (?) ? "dot duration" is one time unit long 2. longer mark, dash or "dah" (?) ? three time units long 3. inter-element gap between the dots and dashes within a character ? one dot duration or one unit long 4. short gap (between letters) ? three time units long 5. medium gap (between words) ? seven time units long[1] Morse code can be transmitted in a number of ways: originally as electrical pulses along a telegraphwire, but also as an audio tone, a radio signal with short and long tones, or as a mechanical, audible or visual signal (e.g. a flashing light) using devices like an Aldis lampor a heliograph, a common flashlight, or even a car horn. Some mine rescues have used pulling on a rope - a short pull for a dot and a long pull for a dash. Morse code is transmitted using just two states (on and off). Historians have called it the first digitalcode. Strictly speaking it is not binary, as there are five fundamental elements (see quinary). However, this does not mean Morse code cannot be represented as a binary code. In an abstract sense, this is the function that telegraph operators perform when transmitting messages. Working from the above definitions and further defining a "unit" as a bit, we can visualize any Morse code sequence as a combination of the following five elements: 1. short mark, dot or "dit" (?) ? 1 2. longer mark, dash or "dah" (?) ? 111 3. intra-character gap (between the dots and dashes within a character) ? 0 4. short gap (between letters) ? 000 5. medium gap (between words) ? 0000000 Note that this method assumes that dits and dahs are always separated by dot duration gaps, and that gaps are always separated by dits and dahs. On Friday, 7 February 2014 4:25 PM, Mike Crean wrote: So how about di, di, dit, dar,dar,dar On Friday, 7 February 2014 3:53 PM, Ru Vuott wrote: ? "morse code? sound" ....a kind of bip bip ? -------------------------------------------- Ven 7/2/14, Dirk ha scritto: Oggetto: [Gambas-user] morse code? sound ? A: Gambas-user at lists.sourceforge.net Data: Venerd? 7 febbraio 2014, 04:24 Hi, can create with gambas morse code? sound ? ... Dirk ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Feb 7 10:03:56 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Feb 2014 10:03:56 +0100 Subject: [Gambas-user] Parent bug ? In-Reply-To: <52F49AA8.8020504@...169...> References: <52F31CFE.5000402@...169...> <52F31D92.7090901@...169...> <52F43AD8.2050203@...169...> <52F49AA8.8020504@...169...> Message-ID: Well this property is relative. So the position is defined relatively from the container of the workspace. Tel me exactly what you want to and maybe I can help you... Because I don't know why you want this properties I can't know if you need a relative pos or a screen position From bill-lancaster at ...2231... Fri Feb 7 10:34:30 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 7 Feb 2014 01:34:30 -0800 (PST) Subject: [Gambas-user] gridview column clicked indicator In-Reply-To: References: <1391695825277-45567.post@...3046...> <1391707865061-45570.post@...3046...> Message-ID: <1391765670098-45583.post@...3046...> Oh! I should pay better attention. Thanks again -- View this message in context: http://gambas.8142.n7.nabble.com/gridview-column-clicked-indicator-tp45567p45583.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Fri Feb 7 11:37:26 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Feb 2014 11:37:26 +0100 Subject: [Gambas-user] Benoit, How to bypass a super event Message-ID: For example i have a class that emit an event MyClass1 Event data MyClass1 -> so over drive the native class 1 Event Data Public sub Super_Data() -> this is what i want to do inc _Index raise Data end For the user it's transparnt as it is alway the class MyClass1 that emit the data event... but the sur-layer can catch the event before the emit. well to say trust i'm trying to add the multipage on printer so basically if i say 4 page on one i need to give to painter 4 time an image Public sub Super_Begin Raise Begin iOldCount = Super.Count end Public sub Super_Draw() paint.scale(1/iPageByPage,1/iPageByPage) For i = 0 to iPageByPage Paint.Begin($aImgPage[i]) raise Draw paint.end next paint.reset for i = 0 to iPageByPage Draw.Image(... next end Public sub Super_End raise End Super.Count = iOldCount end Well it is just a concept code ... it don't work. But printing multipage on gambas don't need necessary to implement this on each toolkit but just via a gambas class. -- Fabien Bodard From pinozollo at ...626... Fri Feb 7 11:57:18 2014 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 07 Feb 2014 07:57:18 -0300 Subject: [Gambas-user] morse code sound ? In-Reply-To: References: Message-ID: <52F4BC0E.5070903@...626...> El 07/02/14 03:13, gambas-user-request at lists.sourceforge.net escribi?: > morse code sound ? Can even send characters to cwdaemon. 73 Pino ZP4KFX From rmorgan62 at ...626... Fri Feb 7 11:57:35 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 7 Feb 2014 02:57:35 -0800 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <1391762096.33866.YahooMailNeo@...3084...> References: <52F451FF.6070304@...18...> <1391759451.21028.YahooMailBasic@...3271...> <1391761509.9858.YahooMailNeo@...3084...> <1391762096.33866.YahooMailNeo@...3084...> Message-ID: Morse Code is a binary code. An audible binary code. It has two states. Long tone or short tone. I used the similarity between Morse Code and Binary ASCII text to help teach how computers represent text in binary many years ago. I am sure you could find Morse code audio files (They provide them for free for studying for HAM license test) and edit out the two tones. Then write your code to use the gb.sdl.sound component to play the files as needed. You may also find code files on free audio sites for gaming. Good luck On Fri, Feb 7, 2014 at 12:34 AM, Mike Crean wrote: > > > Correction to my last. For those that are interested > complements of Wikipedia > > International Morse code is > composed of five elements: > 1. short mark, dot or "dit" (?) -- "dot duration" is one time unit > long > 2. longer mark, dash or "dah" (-) -- three time units long > 3. inter-element gap between the dots and dashes within a > character -- one dot duration or one unit long > 4. short gap (between letters) -- three time units long > 5. medium gap (between words) -- seven time units long[1] > Morse code can be transmitted in > a number of ways: originally as electrical pulses along a telegraphwire, > but also as an audio tone, a radio signal with short and long tones, or > as a mechanical, audible or visual signal (e.g. a flashing light) using > devices > like an Aldis > lampor a heliograph, a common flashlight, or even a car horn. Some > mine rescues have used pulling on a rope - a short pull for a dot and a > long > pull for a dash. > Morse code is transmitted using > just two states (on and off). Historians have called it the first > digitalcode. Strictly speaking it is not binary, as there are five > fundamental > elements (see quinary). > However, this does not mean Morse code cannot be represented as a binary > code. > In an abstract sense, this is the function that telegraph operators perform > when transmitting messages. Working from the above definitions and further > defining a "unit" as a bit, we can visualize any Morse code sequence as a > combination of > the following five elements: > 1. short mark, dot or "dit" (?) -- 1 > 2. longer mark, dash or "dah" (-) -- 111 > 3. intra-character gap (between the dots and dashes within a > character) -- 0 > 4. short gap (between letters) -- 000 > 5. medium gap (between words) -- 0000000 > Note that this method assumes > that dits and dahs are always separated by dot duration gaps, and that > gaps are > always separated by dits and dahs. > > > > On Friday, 7 February 2014 4:25 PM, Mike Crean > wrote: > > So how about di, di, dit, dar,dar,dar > > > > > On Friday, 7 February 2014 3:53 PM, Ru Vuott wrote: > > "morse code sound" ....a kind of bip bip ? > > > > > -------------------------------------------- > Ven 7/2/14, Dirk ha scritto: > > Oggetto: [Gambas-user] morse code sound ? > A: Gambas-user at lists.sourceforge.net > Data: Venerd? 7 febbraio 2014, 04:24 > > Hi, > > > can create with gambas morse code sound ? > > > ... > Dirk > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common > Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- 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 vuott at ...325... Fri Feb 7 12:02:00 2014 From: vuott at ...325... (Ru Vuott) Date: Fri, 7 Feb 2014 11:02:00 +0000 (GMT) Subject: [Gambas-user] MessageBox: probable bug with GTK - GUI ? Message-ID: <1391770920.82270.YahooMailBasic@...3273...> Hello, I have this code: Public Sub Form_Open() Dim s As String = "Gambas is a free development environment based on a Basic interpreter with object extensions" Message.Info(s) Message.Delete(s) Message.Error(s) Message.Question(s) Message.Warning(s) End Well, with gb.gtk or gb.gui messagebox window doesn't not show the whole sentence: this is cut. Is it a bug ? Regards vuott From bbruen at ...2308... Fri Feb 7 12:28:19 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 07 Feb 2014 21:58:19 +1030 Subject: [Gambas-user] Benoit, How to bypass a super event In-Reply-To: References: Message-ID: <1391772500.4077.25.camel@...2688...> On Fri, 2014-02-07 at 11:37 +0100, Fabien Bodard wrote: > For example i have a class that emit an event > > MyClass1 > Event data > > > MyClass1 -> so over drive the native class 1 > Event Data > > Public sub Super_Data() -> this is what i want to do > inc _Index > raise Data > end > > > > For the user it's transparnt as it is alway the class MyClass1 that > emit the data event... but the sur-layer can catch the event before > the emit. > > > well to say trust i'm trying to add the multipage on printer > > > so basically if i say 4 page on one i need to give to painter 4 time an image > > > > Public sub Super_Begin > > Raise Begin > iOldCount = Super.Count > > end > > Public sub Super_Draw() > paint.scale(1/iPageByPage,1/iPageByPage) > For i = 0 to iPageByPage > Paint.Begin($aImgPage[i]) > > raise Draw > > paint.end > next > paint.reset > > for i = 0 to iPageByPage > > Draw.Image(... > > next > > > > end > > Public sub Super_End > > raise End > Super.Count = iOldCount > end > > > Well it is just a concept code ... it don't work. But printing > multipage on gambas don't need necessary to implement this on each > toolkit but just via a gambas class. > Not quite here with you yet Fabien. I have done (I think) this many times. I think respond to the event in the intermediate class. (Oh and its a good idea to have an observer hanging around somewhere!) Mainly I needed to trap the Change and Activate and LostFocus events in a custom control that included, say, a textbox. So all three events are trapped in "InnerTextBox_(blah blah). From which I then raise a differently named event for the custom control (usually "Changed") So if I read you correctly, the first thing I'd try is to rename the raised event "data" to something like, eh, "neudata". That at least might let you see who is bugging who :-) (As a matter of fact I have been chasing down a similar, but not the same, beast today too.) cheers Bruce From eilert-sprachen at ...221... Fri Feb 7 13:21:17 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 07 Feb 2014 13:21:17 +0100 Subject: [Gambas-user] ncurses help texts missing In-Reply-To: <20140205171535.GD8944@...2774...> References: <52F097FE.7010808@...221...> <20140204084654.GA515@...2774...> <52F11E53.8020802@...221...> <20140204171312.GF515@...2774...> <20140204204305.GG515@...2774...> <20140205171535.GD8944@...2774...> Message-ID: <52F4CFBD.4080306@...221...> Am 05.02.2014 18:15, schrieb Tobias Boege: > On Tue, 04 Feb 2014, Tobias Boege wrote: >> On Tue, 04 Feb 2014, Tobias Boege wrote: >>> On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: >>>> >>>> >>>> Am 04.02.2014 09:46, schrieb Tobias Boege: >>>>> On Tue, 04 Feb 2014, Rolf-Werner Eilert wrote: >>>>>> Hi Tobias, >>>>>> >>>>>> your name is mentioned as the author of the ncurses component. Is that >>>>>> right? >>>>>> >>>>> >>>>> Yes, that's right. >>>>> >>>>>> Anyway, I wanted to play around a bit with ncurses and found this >>>>>> component. A long time ago, I tried to write a program with ncurses but >>>>>> gave up when I had to find the screen dimensions (the original C >>>>>> function uses a pointer thing I couldn't make workable for my Gambas >>>>>> program). So thanks you've done it for me :) >>>>>> >>>>>> But the help texts aren't ready yet, and I miss some short examples on >>>>>> how to start by making a window and so on. >>>>>> >>>>>> Are the undocumented functions not ready yet, or is it that the help >>>>>> texts aren't complete yet? >>>>>> >>>>> >>>>> The help just isn't written. The component itself didn't change since 3.3 or >>>>> so. Not that I am totally confident with it but it's working as it should at >>>>> this point. >>>>> >>>>> Some things missing (actually, the whole menu and forms extensions of >>>>> ncurses and wide character support!), etc. and I also want to add a >>>>> gb.ncurses.cdk component based on the CDK library which implements controls >>>>> in terminal but I have to design this carefully - and maybe even break >>>>> gb.ncurses' API (very slightly if at all!). This is why I'm stuck programming >>>>> and if the programming isn't done, I struggle to do the documentation :-) >>>>> >>>>> There are gb.ncurses examples: Pong and Invaders (the last one still not >>>>> finished in regard to game logic) in the Games section. But if you told me >>>>> that these don't help gb.ncurses newbies, I would agree... >>>>> >>>>> I'm actually not that fit anymore with gb.ncurses :-) but today afternoon >>>>> I'll put some lines together about the basics. >>>>> >>>>> Regards, >>>>> Tobi >>>>> >>>>> And now off to the Linear Algebra test ;-) >>>>> >>>> >>>> Uuuuh - good luck! >>>> >>>> Just give me some hint how to start, and we could write some help texts >>>> and little examples. Although I don't have too much time right now, I >>>> would be able to help out a bit here... >>>> >>> >>> Wait a minute (or one or two hours, more likely). I'm halfways through a >>> quite comprehensive tutorial about basic usage: >>> >>> - printing text, >>> - using attributes and colours, >>> - creating dialogs. >>> >> >> Almost everything is in place here[0]. With the last little paragraph, I'll >> continue tomorrow as it's time for a break now. I've also prepared a project >> containing all the snippets presented which I will complete and upload >> tomorrow, too. Hope it helps. >> >> Note that I needed to fix some bugs I encountered while putting the code >> together so you better use the latest revision to test ;-) >> >> Regards, >> Tobi >> >> [0] http://gambasdoc.org/help/tutorial/ncursestut?v3 >> > > OK, now it's ready and has a source code archive. Let me know if you have > any suggestions. (Maybe one or the other screenshot would be nice?) > > Regards, > Tobi > Thanks a lot, I'll take that with me into the weekend and browse through it as soon as I find some time for it. Will be back on you next week, have a nice weekend! Regards Rolf From mckaygerhard at ...626... Fri Feb 7 14:05:08 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 7 Feb 2014 08:35:08 -0430 Subject: [Gambas-user] MessageBox: probable bug with GTK - GUI ? Message-ID: well i test the code and works perfectly only in gambas 3.4 (that's why i still use the 3.4 release and not 3.5 release) i think its a bug or u have used a win-like env in u'r linux (i mean u have a problem in u'r desktop or u'r distro maybe) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From jussi.lahtinen at ...626... Fri Feb 7 14:39:16 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 7 Feb 2014 15:39:16 +0200 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: References: <52F451FF.6070304@...18...> <1391759451.21028.YahooMailBasic@...3271...> <1391761509.9858.YahooMailNeo@...3084...> <1391762096.33866.YahooMailNeo@...3084...> Message-ID: > Morse Code is a binary code. An audible binary code. It has two states. > Long tone or short tone. I used the similarity between Morse Code and > Binary ASCII text to help teach how computers represent text in binary many > years ago. > > I am sure you could find Morse code audio files (They provide them for free > for studying for HAM license test) and edit out the two tones. Then write > your code to use the gb.sdl.sound component to play the files as needed. > You may also find code files on free audio sites for gaming. > I have never done any audio things with Gambas, but isn't there possibility to make tones? That would allow more flexible solution than playing recorded tones per letter. Jussi From jussi.lahtinen at ...626... Fri Feb 7 15:09:41 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 7 Feb 2014 16:09:41 +0200 Subject: [Gambas-user] MessageBox: probable bug with GTK - GUI ? In-Reply-To: <1391770920.82270.YahooMailBasic@...3273...> References: <1391770920.82270.YahooMailBasic@...3273...> Message-ID: I confirm. Bug can be reproduced with latest revision, but only with gb.gtk, not with gb.qt4. Jussi On Fri, Feb 7, 2014 at 1:02 PM, Ru Vuott wrote: > Hello, > > I have this code: > > > Public Sub Form_Open() > > Dim s As String = "Gambas is a free development environment based on a > Basic interpreter with object extensions" > > Message.Info(s) > Message.Delete(s) > Message.Error(s) > Message.Question(s) > Message.Warning(s) > > End > > > Well, with gb.gtk or gb.gui messagebox window doesn't not show the > whole sentence: this is cut. > > Is it a bug ? > > Regards > vuott > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Fri Feb 7 15:17:59 2014 From: vuott at ...325... (Ru Vuott) Date: Fri, 7 Feb 2014 14:17:59 +0000 (GMT) Subject: [Gambas-user] R: morse code sound ? In-Reply-To: Message-ID: <1391782679.3539.YahooMailBasic@...3274...> I'ld suggest some my little study about...... http://www.gambas-it.org/wiki/index.php?title=Emettere_suoni vuott ------------------------------------------------------------------------------ I have never done any audio things with Gambas, but isn't there possibility to make tones? That would allow more flexible solution than playing recorded tones per letter. Jussi ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Fri Feb 7 15:21:11 2014 From: vuott at ...325... (Ru Vuott) Date: Fri, 7 Feb 2014 14:21:11 +0000 (GMT) Subject: [Gambas-user] MessageBox: probable bug with GTK - GUI ? In-Reply-To: Message-ID: <1391782871.39540.YahooMailBasic@...3274...> My system: [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.0-12-generic Architecture=x86_64 Distribution=Linux Mint 16 Petra Desktop=GNOME Theme=QCleanlooks Language=it_IT.UTF-8 Memory=3954M [Libraries] Cairo=libcairo.so.2.11200.16 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.803.4 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Regards vuott -------------------------------------------- Ven 7/2/14, PICCORO McKAY Lenz ha scritto: Oggetto: Re: [Gambas-user] MessageBox: probable bug with GTK - GUI ? A: "mailing list for gambas users" Data: Venerd? 7 febbraio 2014, 14:05 well i test the code and works perfectly only in gambas 3.4 (that's why i still use the 3.4 release and not 3.5 release) i think its a bug or u have used a win-like env in u'r linux (i mean u have a problem in u'r desktop or u'r distro maybe) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Feb 7 15:32:01 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Feb 2014 15:32:01 +0100 Subject: [Gambas-user] NEWS Message-ID: Hey gambasians, i've update the report component. Try the new viewer and tell me what you think about (Good and/or bad). -- Fabien Bodard From ea7dfh at ...2382... Fri Feb 7 16:16:25 2014 From: ea7dfh at ...2382... (Jesus) Date: Fri, 07 Feb 2014 16:16:25 +0100 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <1391782679.3539.YahooMailBasic@...3274...> References: <1391782679.3539.YahooMailBasic@...3274...> Message-ID: <52F4F8C9.1050008@...2382...> El 07/02/14 15:17, Ru Vuott escribi?: > I'ld suggest some my little study about...... > > http://www.gambas-it.org/wiki/index.php?title=Emettere_suoni > > > vuott > Wow! That's exactly what I was looking for. Great job, vuott. In the other hand, I suggest Dirk to take a close look at this project [1], though written in Python, well worth to give it a try, or perhaps trying to convert to gambas the relevant code. [1] https://code.google.com/p/kochmorse/source/browse/trunk/KochMorse/alsamorse/morse.py -- Jesus Guardon From mckaygerhard at ...626... Fri Feb 7 17:57:18 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 7 Feb 2014 12:27:18 -0430 Subject: [Gambas-user] how to customize report print size Message-ID: in the report form i set the custom size and in code set: Report.Size = "Custom" Report.Width = "10.5 cm" Report.Height = "15 cm" but said: "mising parameter" in lines how can i set size of page or printing or size of report? documentation are very vage about that! From vuott at ...325... Fri Feb 7 18:49:30 2014 From: vuott at ...325... (Ru Vuott) Date: Fri, 7 Feb 2014 17:49:30 +0000 (GMT) Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <52F4F8C9.1050008@...2382...> Message-ID: <1391795370.38534.YahooMailBasic@...3268...> > Wow! That's exactly what I was looking for. Great job, vuott. Thank you very much, Jesus. > In the other hand, I suggest Dirk to take a close look at this project [1], > though written in Python, well worth to give it a try, or perhaps > trying to convert to gambas the relevant code. > > [1] > https://code.google.com/p/kochmorse/source/browse/trunk/KochMorse/alsamorse/morse.py uhmmm... very interesting, Jesus. Is someone able to "convert" that python code in Gambas ? Bye vuott From gambas at ...2524... Fri Feb 7 19:17:17 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 07 Feb 2014 18:17:17 +0000 Subject: [Gambas-user] Issue 510 in gambas: problemas al cargar datos en gridview Message-ID: <0-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any Arch-X86 New issue 510 by hiperz... at ...626...: problemas al cargar datos en gridview http://code.google.com/p/gambas/issues/detail?id=510 1) Describe the problem. el problema es que trato de cargar informacion a un gridview desde una base de datos y dice "bad row index" pero anteriormente funcionaba, y funciona enproyectos que he realizado... no se porque ahora no funciona y da ese error 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86 Distribution=Linux Mint 15 Olivia Desktop=MATE Theme=QGtk Language=es_VE.UTF-8 Memory=2009M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. una base de datos x con una tabla llamada fac que contiene los siguientes campos: id, cant, descripcion y precio 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! ANOTHER NOTE: Don't create an issue if you have a compilation problem on the development version. Send a mail to the mailing-list instead, thanks. Attachments: problema.tar.gz 9.1 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Feb 7 19:24:41 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 07 Feb 2014 18:24:41 +0000 Subject: [Gambas-user] Issue 510 in gambas: problemas al cargar datos en gridview In-Reply-To: <0-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 510 by benoit.m... at ...626...: problemas al cargar datos en gridview http://code.google.com/p/gambas/issues/detail?id=510 Please post in english. I can't speak spanish. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Fri Feb 7 19:44:41 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 7 Feb 2014 19:44:41 +0100 Subject: [Gambas-user] how to customize report print size In-Reply-To: References: Message-ID: Well report.size ?????? Report.Paper = Printer.Custom Report.Width="10.5cm" Report.Height="15cm" Normally if you set The width or the height then the paper change to custom so it is not necessary to setup (or just in the ide with the editor) why don't you use the editor ? 2014-02-07 17:57 GMT+01:00 PICCORO McKAY Lenz : > in the report form i set the custom size and in code set: > > Report.Size = "Custom" > Report.Width = "10.5 cm" > Report.Height = "15 cm" > > but said: "mising parameter" in lines > > how can i set size of page or printing or size of report? > > documentation are very vage about that! > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From dominique.michel at ...3298... Fri Feb 7 20:52:18 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Fri, 7 Feb 2014 20:52:18 +0100 Subject: [Gambas-user] gambas on gentoo In-Reply-To: <52F2CD8C.80806@...1...> References: <20140204091308.257d7329@...3299...> <20140205203840.3ae1e986@...3299...> <52F2CD8C.80806@...1...> Message-ID: <20140207205218.5d7bda8d@...3299...> Le Thu, 06 Feb 2014 00:47:24 +0100, Beno?t Minisini a ?crit : > Le 05/02/2014 20:38, Dominique Michel a ?crit : > > Le Tue, 4 Feb 2014 09:13:08 +0100, > > Dominique Michel a ?crit : > > > > More important, another user get the following error: > > > > I got a lot of "symbol lookup > > error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: > > undefined symbol: pow" Therefor gambas it's unusable for me. > > > > I will fix that too. I don't know why, but it does not crash > elsewhere. > I don't know why either. Thank you. Dominique From sbungay at ...3301... Fri Feb 7 21:29:56 2014 From: sbungay at ...3301... (Stephen) Date: Fri, 07 Feb 2014 15:29:56 -0500 Subject: [Gambas-user] Need a little help getting things going Message-ID: <52F54244.6080601@...3301...> Getting a sore forehead from banging against this wall.... Trying to get gambas 2.2.24.0 up and running on a rather hefty CentOS box. Here's the specs... CentOS 6.5 (final) Kernel: 2.6.32-431.3.10el6.x86_64 GNOME 2.28.2 RAM: 32GB CPU: AMD FX-8320 reconf-all appeared to complete OK. ./configure produces this as the final result || || THESE COMPONENTS ARE DISABLED: || - gb.jit || - gb.media || - gb.openal || OK, nothing to see there, I'm not interested in .media, openal, or JIT (yet). Running make produces this tasty morsel... /usr/bin/ld: .libs/gb_qt4_la-main_moc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC .libs/gb_qt4_la-main_moc.o: could not read symbols: Bad value Now qt-devel 4.6.2-26.el6_4 x86_64 is installed, can someone help me understand what the error message is telling me? Steve. From dominique.michel at ...3298... Fri Feb 7 22:15:32 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Fri, 7 Feb 2014 22:15:32 +0100 Subject: [Gambas-user] configure options Message-ID: <20140207221532.1dff696e@...3299...> On gentoo, portage policy is to handle every single configuration option. A part of the output of configure --help is: --enable-bzlib2 enable bzlib2 component (default: yes) --enable-zlib enable zlib component (default: yes) --enable-mysql enable mysql component (default: yes) --enable-odbc enable odbc component (default: yes) --enable-postgresql enable postgresql componentn(default: yes) --enable-sqlite2 enable sqlite2 component (default: yes) --enable-sqlite3 enable sqlite3 component (default: yes) --enable-net enable net component (default: yes) --enable-curl enable curl component (default: yes) --enable-smtp enable smtp component (default: yes) --enable-mime enable mime component (default: yes) --enable-pcre enable pcre component (default: yes) --enable-sdl enable sdl component (default: yes) --enable-sdlsound enable sdlsound component (default: yes) --enable-libxml enable libxml component (default: yes) --enable-xml enable xml component (default: yes) --enable-v4l enable v4l component (default: yes) --enable-crypt enable crypt component (default: yes) --enable-qt4 enable qt4 component (default: yes) --enable-gtk enable gtk component (default: yes) --enable-gtk3 enable gtk3 component (default: yes) --enable-opengl enable opengl component (default: yes) --enable-desktop enable desktop component (default: yes) --enable-pdf enable pdf component (default: yes) --enable-cairo enable cairo component (default: yes) --enable-imageio enable imageio component (default: yes) --enable-imageimlib enable imageimlib component (default: yes) --enable-dbus enable dbus component (default: yes) --enable-gsl enable gsl component (default: yes) --enable-gmp enable gmp component (default: yes) --enable-ncurses enable ncurses component (default: yes) --enable-media enable media component (default: yes) --enable-jit enable jit component (default: yes) --enable-httpd enable httpd component (default: yes) --enable-openssl enable openssl component (default: yes) --enable-openal enable openal component (default: yes) In order to get the most out of the gentoo ebuild, I need to know the following: Are any of these components mandatory in order to get a working minimal Gambas installation? Are any of these components dependent of any other of these components, and if yes, which one(s) and how? Are any of these components recommended in order to get a good experience with Gambas? Dominique From gambas at ...2524... Fri Feb 7 23:23:29 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 07 Feb 2014 22:23:29 +0000 Subject: [Gambas-user] Issue 510 in gambas: problemas al cargar datos en gridview In-Reply-To: <1-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> <0-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-6356897606995535986-gambas=googlecode.com@...2524...> Comment #2 on issue 510 by mckayger... at ...626...: problemas al cargar datos en gridview http://code.google.com/p/gambas/issues/detail?id=510 confirm, in gambas 3.4 (that works perfectly in debian lenny) load and works.. in gambas 3.5.1 or 3.5.2 in debian wheeze crash confirmo este problema.. carga perfecto solo en gambas 3.4 mas no en versiones subsiguintes benoit, this its a important errore, its so dificult load the google translation? gambas must have and error due load translations are dificult!? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Fri Feb 7 23:28:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 07 Feb 2014 23:28:14 +0100 Subject: [Gambas-user] MessageBox: probable bug with GTK - GUI ? In-Reply-To: References: <1391770920.82270.YahooMailBasic@...3273...> Message-ID: <52F55DFE.3090201@...1...> Le 07/02/2014 15:09, Jussi Lahtinen a ?crit : > I confirm. Bug can be reproduced with latest revision, but only with > gb.gtk, not with gb.qt4. > > Jussi > > Fixed in revision #6138. Regards, -- Beno?t Minisini From gambas at ...1... Fri Feb 7 23:33:10 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 07 Feb 2014 23:33:10 +0100 Subject: [Gambas-user] To the wishlist In-Reply-To: <52F3DEFB.8040703@...3240...> References: <52F3DEFB.8040703@...3240...> Message-ID: <52F55F26.7010202@...1...> Le 06/02/2014 20:14, Matti a ?crit : > CheckBox and RadioButton: > Sometimes, just for the look-and-feel, it would be better to have the label on the left side of the control. > Of course, this can be done with a separate label and the text property set to "", but - > why not add a Label_left/right property to these controls? Would be elegant. > Regards Matti > I know, but the GUI toolkits do not allow that. -- Beno?t Minisini From mckaygerhard at ...626... Fri Feb 7 23:35:50 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 7 Feb 2014 18:05:50 -0430 Subject: [Gambas-user] how to customize report print size Message-ID: From: Fabien Bodard > Report.Paper = Printer.Custom > > Report.Width="10.5cm" > Report.Height="15cm" > dont work, said "null objetc" where i need to set that? From dominique.michel at ...3298... Sat Feb 8 01:24:29 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 8 Feb 2014 01:24:29 +0100 Subject: [Gambas-user] sound in gambas 3 Message-ID: <20140208012429.7e1983b8@...3299...> Hi, I try to do my first gambas program, and I am stuck with the sound. All I have for now is 2 labels, 2 value boxes and 1 toggle button. When I press the toggle button, it launch a message box with the 2 values in the value boxes and some text. 1 is a frequency, the other is the amplitude. I want to use these values to make some sounds. When looking for sound functions, I found Play in sdl.sound. Is it possible with it, or with another function, to use something like: Play frequency volume Another way would be to create an audio file on the fly... Dominique From Gambas at ...1950... Sat Feb 8 01:15:57 2014 From: Gambas at ...1950... (Caveat) Date: Sat, 08 Feb 2014 01:15:57 +0100 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <1391795370.38534.YahooMailBasic@...3268...> References: <1391795370.38534.YahooMailBasic@...3268...> Message-ID: <52F5773D.7040008@...1950...> A very crude implementation... I first used audacity to generate a basic tone that lasts a few seconds and saved it as tone.wav. The form contains a text box called TextBox1 and a button called Button1. The results sound kind of morsey, but you will probably want to play around with the pauses and lengths of the dots and dashes. Private morseTable As Collection Public Sub Form_Open() Music.Load("/home/jules/Sounds/tone.wav") setupMorse() End Public Sub setupMorse() morseTable = New Collection morseTable.Add(".-", "a") morseTable.Add("-...", "b") morseTable.Add("-.-.", "c") morseTable.Add("-..", "d") morseTable.Add(".", "e") morseTable.Add("..-.", "f") morseTable.Add("--.", "g") morseTable.Add("....", "h") morseTable.Add("..", "i") morseTable.Add(".---", "j") morseTable.Add("-.-", "k") morseTable.Add(".-..", "l") morseTable.Add("--", "m") morseTable.Add("-.", "n") morseTable.Add("---", "o") morseTable.Add(".--.", "p") morseTable.Add("--.-", "q") morseTable.Add(".-.", "r") morseTable.Add("...", "s") morseTable.Add("-", "t") morseTable.Add("..-", "u") morseTable.Add("...-", "v") morseTable.Add(".--", "w") morseTable.Add("-..-", "x") morseTable.Add("-.--", "y") morseTable.Add("--..", "z") morseTable.Add("-----", "0") morseTable.Add(".----", "1") morseTable.Add("..---", "2") morseTable.Add("...--", "3") morseTable.Add("....-", "4") morseTable.Add(".....", "5") morseTable.Add("-....", "6") morseTable.Add("--...", "7") morseTable.Add("---..", "8") morseTable.Add("----.", "9") morseTable.Add(".-.-.-", ".") morseTable.Add("--..--", ",") morseTable.Add("..--..", "?") morseTable.Add(".----.", "'") morseTable.Add("-.-.--", "!") morseTable.Add("-..-.", "/") morseTable.Add("-.--.", "(") morseTable.Add("-.--.-", ")") morseTable.Add(".-...", "&") morseTable.Add("---...", ":") morseTable.Add("-.-.-.", ";") morseTable.Add("-...-", "=") morseTable.Add(".-.-.", "+") morseTable.Add("-....-", "-") morseTable.Add("..--.-", "_") morseTable.Add(".-..-.", "\"") morseTable.Add("...-..-", "$") morseTable.Add(".--.-.", "@") End Public Sub Button1_Click() Dim idx As Integer Dim aChar As String For idx = 1 To Len(TextBox1.text) aChar = Mid$(TextBox1.text, idx, 1) If aChar = " " Then Print "Break between words" ' Pause between words (perhaps do something to eliminate multiple spaces?) Wait 0.7 Continue Endif playChar(aChar) Next End Sub Public Sub playChar(aChar As String) Dim charAsMorse As String Dim idx As Integer charAsMorse = morseTable[aChar] Print "Playing: " & charAsMorse For idx = 1 To Len(charAsMorse) If Mid$(charAsMorse, idx, 1) = "." Then playDot() Else playDash() Endif ' Pause between individual dots/dashes of a single character Wait 0.2 Next ' Pause between characters of a word Wait 0.5 End Public Sub playDot() playTone(0.1) End Public Sub playDash() playTone(0.4) End Public Sub playTone(duration As Float) Music.Play() Wait duration Music.Stop() End Kind regards, Caveat On 07/02/14 18:49, Ru Vuott wrote: >> Wow! That's exactly what I was looking for. Great job, vuott. > Thank you very much, Jesus. > >> In the other hand, I suggest Dirk to take a close look at this project [1], >> though written in Python, well worth to give it a try, or perhaps >> trying to convert to gambas the relevant code. >> >> [1] >> https://code.google.com/p/kochmorse/source/browse/trunk/KochMorse/alsamorse/morse.py > > uhmmm... very interesting, Jesus. Is someone able to "convert" that python code in Gambas ? > > Bye > vuott > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Feb 8 02:04:54 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 08 Feb 2014 02:04:54 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: <20140208012429.7e1983b8@...3299...> References: <20140208012429.7e1983b8@...3299...> Message-ID: <52F582B6.1020308@...1...> Le 08/02/2014 01:24, Dominique Michel a ?crit : > Hi, > > I try to do my first gambas program, and I am stuck with the sound. > > All I have for now is 2 labels, 2 value boxes and 1 toggle button. > > When I press the toggle button, it launch a message box with the 2 > values in the value boxes and some text. 1 is a frequency, the other is > the amplitude. I want to use these values to make some sounds. > > When looking for sound functions, I found Play in sdl.sound. Is it > possible with it, or with another function, to use something like: > > Play frequency volume > > Another way would be to create an audio file on the fly... > > Dominique > You must use gb.media, which is the interface to gstreamer. GStreamer has a plugin for generating sinusoidal sounds (its name is "audiotestsrc", look at the GStreamer documentation for the details). Regards, -- Beno?t Minisini From rmorgan62 at ...626... Sat Feb 8 03:15:34 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 7 Feb 2014 18:15:34 -0800 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <52F5773D.7040008@...1950...> References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> Message-ID: It seems like playing a simple tone is something that should be a primitive in the Gambas Language... A simple Play(frequency, duration) type of function as was found in many of the early BASIC languages. Am I the only one who think like this? On Fri, Feb 7, 2014 at 4:15 PM, Caveat wrote: > A very crude implementation... I first used audacity to generate a basic > tone that lasts a few seconds and saved it as tone.wav. > > The form contains a text box called TextBox1 and a button called Button1. > > The results sound kind of morsey, but you will probably want to play > around with the pauses and lengths of the dots and dashes. > > Private morseTable As Collection > > Public Sub Form_Open() > > Music.Load("/home/jules/Sounds/tone.wav") > setupMorse() > > End > > Public Sub setupMorse() > > morseTable = New Collection > morseTable.Add(".-", "a") > morseTable.Add("-...", "b") > morseTable.Add("-.-.", "c") > morseTable.Add("-..", "d") > morseTable.Add(".", "e") > morseTable.Add("..-.", "f") > morseTable.Add("--.", "g") > morseTable.Add("....", "h") > morseTable.Add("..", "i") > morseTable.Add(".---", "j") > morseTable.Add("-.-", "k") > morseTable.Add(".-..", "l") > morseTable.Add("--", "m") > morseTable.Add("-.", "n") > morseTable.Add("---", "o") > morseTable.Add(".--.", "p") > morseTable.Add("--.-", "q") > morseTable.Add(".-.", "r") > morseTable.Add("...", "s") > morseTable.Add("-", "t") > morseTable.Add("..-", "u") > morseTable.Add("...-", "v") > morseTable.Add(".--", "w") > morseTable.Add("-..-", "x") > morseTable.Add("-.--", "y") > morseTable.Add("--..", "z") > morseTable.Add("-----", "0") > morseTable.Add(".----", "1") > morseTable.Add("..---", "2") > morseTable.Add("...--", "3") > morseTable.Add("....-", "4") > morseTable.Add(".....", "5") > morseTable.Add("-....", "6") > morseTable.Add("--...", "7") > morseTable.Add("---..", "8") > morseTable.Add("----.", "9") > morseTable.Add(".-.-.-", ".") > morseTable.Add("--..--", ",") > morseTable.Add("..--..", "?") > morseTable.Add(".----.", "'") > morseTable.Add("-.-.--", "!") > morseTable.Add("-..-.", "/") > morseTable.Add("-.--.", "(") > morseTable.Add("-.--.-", ")") > morseTable.Add(".-...", "&") > morseTable.Add("---...", ":") > morseTable.Add("-.-.-.", ";") > morseTable.Add("-...-", "=") > morseTable.Add(".-.-.", "+") > morseTable.Add("-....-", "-") > morseTable.Add("..--.-", "_") > morseTable.Add(".-..-.", "\"") > morseTable.Add("...-..-", "$") > morseTable.Add(".--.-.", "@") > End > > Public Sub Button1_Click() > > Dim idx As Integer > Dim aChar As String > For idx = 1 To Len(TextBox1.text) > aChar = Mid$(TextBox1.text, idx, 1) > If aChar = " " Then > Print "Break between words" > ' Pause between words (perhaps do something to eliminate multiple > spaces?) > Wait 0.7 > Continue > Endif > playChar(aChar) > Next > > End Sub > > Public Sub playChar(aChar As String) > > Dim charAsMorse As String > Dim idx As Integer > charAsMorse = morseTable[aChar] > Print "Playing: " & charAsMorse > For idx = 1 To Len(charAsMorse) > If Mid$(charAsMorse, idx, 1) = "." Then > playDot() > Else > playDash() > Endif > ' Pause between individual dots/dashes of a single character > Wait 0.2 > Next > ' Pause between characters of a word > Wait 0.5 > > End > > Public Sub playDot() > > playTone(0.1) > > End > > Public Sub playDash() > > playTone(0.4) > > End > > > > Public Sub playTone(duration As Float) > > Music.Play() > Wait duration > Music.Stop() > > End > > Kind regards, > Caveat > > On 07/02/14 18:49, Ru Vuott wrote: > >> Wow! That's exactly what I was looking for. Great job, vuott. > > Thank you very much, Jesus. > > > >> In the other hand, I suggest Dirk to take a close look at this project > [1], > >> though written in Python, well worth to give it a try, or perhaps > >> trying to convert to gambas the relevant code. > >> > >> [1] > >> > https://code.google.com/p/kochmorse/source/browse/trunk/KochMorse/alsamorse/morse.py > > > > uhmmm... very interesting, Jesus. Is someone able to "convert" that > python code in Gambas ? > > > > Bye > > vuott > > > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > > Read the Whitepaper. > > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- 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 gambas at ...1... Sat Feb 8 03:33:34 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 08 Feb 2014 03:33:34 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: <52F582B6.1020308@...1...> References: <20140208012429.7e1983b8@...3299...> <52F582B6.1020308@...1...> Message-ID: <52F5977E.4070507@...1...> Le 08/02/2014 02:04, Beno?t Minisini a ?crit : > Le 08/02/2014 01:24, Dominique Michel a ?crit : >> Hi, >> >> I try to do my first gambas program, and I am stuck with the sound. >> >> All I have for now is 2 labels, 2 value boxes and 1 toggle button. >> >> When I press the toggle button, it launch a message box with the 2 >> values in the value boxes and some text. 1 is a frequency, the other is >> the amplitude. I want to use these values to make some sounds. >> >> When looking for sound functions, I found Play in sdl.sound. Is it >> possible with it, or with another function, to use something like: >> >> Play frequency volume >> >> Another way would be to create an audio file on the fly... >> >> Dominique >> > > You must use gb.media, which is the interface to gstreamer. GStreamer > has a plugin for generating sinusoidal sounds (its name is > "audiotestsrc", look at the GStreamer documentation for the details). > > Regards, > I made an example of that for you in revision #6140. Regards, -- Beno?t Minisini From sbungay at ...3301... Sat Feb 8 04:16:20 2014 From: sbungay at ...3301... (Stephen) Date: Fri, 07 Feb 2014 22:16:20 -0500 Subject: [Gambas-user] help with gb.qt4. Message-ID: <52F5A184.8000801@...3301...> Gambas 3.5.2 is close to being successfully built but I have run into a snag with the gb.qt4 component. ./reconf-all works OK. ./configure results in the following || || THESE COMPONENTS ARE DISABLED: || - gb.jit || - gb.media || - gb.openal || no errors, but when then make fails with the following; Making all in gb.qt4 make[2]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4' make all-recursive make[3]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4' Making all in src make[4]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src' Making all in . make[5]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src' CXXLD gb.qt4.la /usr/bin/ld: .libs/gb_qt4_la-main_moc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC .libs/gb_qt4_la-main_moc.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[5]: *** [gb.qt4.la] Error 1 make[5]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/User/Downloads/gambas3-3.5.2' make: *** [all] Error 2 OK. I'm not a C or C++ programmer, the suggestion seems to be to recompile gb_qt4_la-main_moc.o with -fPIC, am I on the right track with this? If so how do I accomplish this task? Steve. From gambas.fr at ...626... Sat Feb 8 06:48:11 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 8 Feb 2014 06:48:11 +0100 Subject: [Gambas-user] how to customize report print size In-Reply-To: References: Message-ID: Send me a small project that show the problem Le 7 f?vr. 2014 23:36, "PICCORO McKAY Lenz" a ?crit : > From: Fabien Bodard > > Report.Paper = Printer.Custom > > > > Report.Width="10.5cm" > > Report.Height="15cm" > > > dont work, said "null objetc" > > where i need to set that? > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sat Feb 8 07:07:23 2014 From: bbruen at ...2308... (Bruce) Date: Sat, 08 Feb 2014 16:37:23 +1030 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> Message-ID: <1391839643.3294.4.camel@...2688...> On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote: > It seems like playing a simple tone is something that should be a primitive > in the Gambas Language... A simple Play(frequency, duration) type of > function as was found in many of the early BASIC languages. Am I the only > one who think like this? > Ah yes! But those magical sounds were made by dividing the clock signal and sending the resultant wave directly out to the onboard speaker port. I dont think any of the boxes here have a onboard speaker any more? "Leisure Suit Larry" anyone? cheers Bruce p.s. It's cooled down a bit, only 42C today From gambas.fr at ...626... Sat Feb 8 07:48:21 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 8 Feb 2014 07:48:21 +0100 Subject: [Gambas-user] Paint.ClipRect Message-ID: Benoit, Does ClipRect not follow the scale transformation ?... it seem not Is it a Bug ? -- Fabien Bodard From gambas.fr at ...626... Sat Feb 8 07:53:27 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 8 Feb 2014 07:53:27 +0100 Subject: [Gambas-user] configure options In-Reply-To: <20140207221532.1dff696e@...3299...> References: <20140207221532.1dff696e@...3299...> Message-ID: The Development Environment The Gambas IDE is made with Gambas. In order to compile and use it, you need to compile the following components: gb.db gb.db.form gb.debug gb.desktop gb.eval gb.eval.highlight gb.form gb.form.dialog gb.form.mdi gb.image gb.image.effect gb.qt4 gb.qt4.ext gb.qt4.webkit gb.settings Then all the infos are here : http://gambasdoc.org/help/howto/package?v3 Regards, -- Fabien Bodard From rmorgan62 at ...626... Sat Feb 8 08:55:37 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 7 Feb 2014 23:55:37 -0800 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <1391839643.3294.4.camel@...2688...> References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> <1391839643.3294.4.camel@...2688...> Message-ID: I got 5F here. Looking forward to a possible 30F next week. True the old BASIC machines used the internal speakers, and those are hard to find. But almost every *nix box has a sound system. And we no-longer need to count clock cycles, we can use the the built-in timing routines or delay routines. The Sound and Play function where blocking functions. No need for anything fancy. But I do think adding a simple Play freq., duration function would be a great addition to the language and would make it more complete. For anything more elaborate there is Sdl and such. On Fri, Feb 7, 2014 at 10:07 PM, Bruce wrote: > On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote: > > It seems like playing a simple tone is something that should be a > primitive > > in the Gambas Language... A simple Play(frequency, duration) type of > > function as was found in many of the early BASIC languages. Am I the only > > one who think like this? > > > > Ah yes! But those magical sounds were made by dividing the clock signal > and sending the resultant wave directly out to the onboard speaker port. > I dont think any of the boxes here have a onboard speaker any more? > > "Leisure Suit Larry" anyone? > > cheers > Bruce > > p.s. It's cooled down a bit, only 42C today > > > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- 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 kevinfishburne at ...1887... Sat Feb 8 09:34:14 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 08 Feb 2014 03:34:14 -0500 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> <1391839643.3294.4.camel@...2688...> Message-ID: <52F5EC06.9060707@...1887...> On 02/08/2014 02:55 AM, Randall Morgan wrote: > I got 5F here. Looking forward to a possible 30F next week. > > True the old BASIC machines used the internal speakers, and those are hard > to find. But almost every *nix box has a sound system. And we no-longer > need to count clock cycles, we can use the the built-in timing routines or > delay routines. The Sound and Play function where blocking functions. No > need for anything fancy. But I do think adding a simple Play freq., > duration function would be a great addition to the language and would make > it more complete. For anything more elaborate there is Sdl and such. > > > > > On Fri, Feb 7, 2014 at 10:07 PM, Bruce wrote: > >> On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote: >>> It seems like playing a simple tone is something that should be a >> primitive >>> in the Gambas Language... A simple Play(frequency, duration) type of >>> function as was found in many of the early BASIC languages. Am I the only >>> one who think like this? >>> >> Ah yes! But those magical sounds were made by dividing the clock signal >> and sending the resultant wave directly out to the onboard speaker port. >> I dont think any of the boxes here have a onboard speaker any more? >> >> "Leisure Suit Larry" anyone? >> >> cheers >> Bruce > From Wikipedia: http://en.wikipedia.org/wiki/GW-BASIC#Syntax GW-BASIC allowed use ofjoystick andlight pen input devices. GW-BASIC can read from and write to files andCOM ports ; it can also do event trapping for ports. Since thecassette port interface of the original IBM PC was never implemented on compatibles, cassette operations are not supported. GW-BASIC can play simple music using the|PLAY|statement, needing a string of notes represented in amusic macro language (e.g.|PLAY "edcdeee2dfedc4"|). Morelow-level control is possible with the|SOUND|statement, which takes the arguments of afrequency inhertz and a length in clock ticks for the standard internalPC speaker in IBM machines. Consequently sound is limited to single channel beeps and whistles as befits a 'business' machine. Home-based PCs such as theTandy 1000 allowed up to three channels of sound for the|SOUND|and|PLAY|commands.^[5] The first time I ever made music on a computer was using GW-BASIC, using PLAY. Later I figured out how to do loops and pass those values to SOUND. I even made a delayed vibrato by slightly modifying the frequency with a sine wave. Experiences like that and similar keep me programming today; it's awesome. I wonder if OpenAL has a tone generator. You could do perpendicular sine waves for source positioning (since it's 7.1 and all that). I'm looking forward to switching to it (from sdl.sound playback features) soon so hopefully it will kick ass. If basic sound generation were to be implemented in GAMBAS, it would have to generate a tone that relied on a high frame rate to sound right (frequency) and optionally let it play in the background until stopped (duration). You could turn the channel on and off, but would leave it on when making sounds. I would keep it as simple and fast as possible, so frequencies would be heard exactly as set with an extremely high frame rate (2K - 24K FPS if only setting the frequency and duration?). One could use Timer to set a tempo and do some programmatic beats and frequency-switching. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Sat Feb 8 09:39:53 2014 From: Gambas at ...1950... (Caveat) Date: Sat, 08 Feb 2014 09:39:53 +0100 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> <1391839643.3294.4.camel@...2688...> Message-ID: <52F5ED59.9000602@...1950...> I have to say I was a little surprised to find no simple play(note, duration) or BEEP command built-in. Could we add this to the wish-list, Benoit? :-) Kind regards, Caveat On 08/02/14 08:55, Randall Morgan wrote: > I got 5F here. Looking forward to a possible 30F next week. > > True the old BASIC machines used the internal speakers, and those are hard > to find. But almost every *nix box has a sound system. And we no-longer > need to count clock cycles, we can use the the built-in timing routines or > delay routines. The Sound and Play function where blocking functions. No > need for anything fancy. But I do think adding a simple Play freq., > duration function would be a great addition to the language and would make > it more complete. For anything more elaborate there is Sdl and such. > > > > > On Fri, Feb 7, 2014 at 10:07 PM, Bruce wrote: > >> On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote: >>> It seems like playing a simple tone is something that should be a >> primitive >>> in the Gambas Language... A simple Play(frequency, duration) type of >>> function as was found in many of the early BASIC languages. Am I the only >>> one who think like this? >>> >> Ah yes! But those magical sounds were made by dividing the clock signal >> and sending the resultant wave directly out to the onboard speaker port. >> I dont think any of the boxes here have a onboard speaker any more? >> >> "Leisure Suit Larry" anyone? >> >> cheers >> Bruce >> >> p.s. It's cooled down a bit, only 42C today >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas.fr at ...626... Sat Feb 8 10:52:34 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 8 Feb 2014 10:52:34 +0100 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: <52F5ED59.9000602@...1950...> References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> <1391839643.3294.4.camel@...2688...> <52F5ED59.9000602@...1950...> Message-ID: At the days of GW-BASIC they were not any system shared libs . And the access to the hardware is now behind different layers and quite difficult to manage. These functionnality must not be part of the core language. Even C doesn't have this. But Gambas have tools to do that ... and SDL sound is sure not the better. You must use gb.media that have tons of modules, or gb.openal for more advanced use. 2014-02-08 9:39 GMT+01:00 Caveat : > I have to say I was a little surprised to find no simple play(note, > duration) or BEEP command built-in. > > Could we add this to the wish-list, Benoit? :-) > > Kind regards, > Caveat > > On 08/02/14 08:55, Randall Morgan wrote: >> I got 5F here. Looking forward to a possible 30F next week. >> >> True the old BASIC machines used the internal speakers, and those are hard >> to find. But almost every *nix box has a sound system. And we no-longer >> need to count clock cycles, we can use the the built-in timing routines or >> delay routines. The Sound and Play function where blocking functions. No >> need for anything fancy. But I do think adding a simple Play freq., >> duration function would be a great addition to the language and would make >> it more complete. For anything more elaborate there is Sdl and such. >> >> >> >> >> On Fri, Feb 7, 2014 at 10:07 PM, Bruce wrote: >> >>> On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote: >>>> It seems like playing a simple tone is something that should be a >>> primitive >>>> in the Gambas Language... A simple Play(frequency, duration) type of >>>> function as was found in many of the early BASIC languages. Am I the only >>>> one who think like this? >>>> >>> Ah yes! But those magical sounds were made by dividing the clock signal >>> and sending the resultant wave directly out to the onboard speaker port. >>> I dont think any of the boxes here have a onboard speaker any more? >>> >>> "Leisure Suit Larry" anyone? >>> >>> cheers >>> Bruce >>> >>> p.s. It's cooled down a bit, only 42C today >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Managing the Performance of Cloud-Based Applications >>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >>> Read the Whitepaper. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas at ...2524... Sat Feb 8 15:14:45 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 08 Feb 2014 14:14:45 +0000 Subject: [Gambas-user] Issue 508 in gambas: request: specify how many decimal places ValueBox In-Reply-To: <2-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> <0-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12633027283821706725-gambas=googlecode.com@...2524...> Comment #3 on issue 508 by flynetin... at ...626...: request: specify how many decimal places ValueBox http://code.google.com/p/gambas/issues/detail?id=508 The maskbox is good, but I mean a ValueBox designed to define the type of value as a sql database and thus simplify the way you read and write from the db without having to make type conversions Thanks anyway -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From dominique.michel at ...3298... Sat Feb 8 19:41:05 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 8 Feb 2014 19:41:05 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: <52F5977E.4070507@...1...> References: <20140208012429.7e1983b8@...3299...> <52F582B6.1020308@...1...> <52F5977E.4070507@...1...> Message-ID: <20140208194105.41dc28a9@...3299...> Le Sat, 08 Feb 2014 03:33:34 +0100, Beno?t Minisini a ?crit : > Le 08/02/2014 02:04, Beno?t Minisini a ?crit : > > Le 08/02/2014 01:24, Dominique Michel a ?crit : > >> Hi, > >> > >> I try to do my first gambas program, and I am stuck with the sound. > >> > >> All I have for now is 2 labels, 2 value boxes and 1 toggle button. > >> > >> When I press the toggle button, it launch a message box with the 2 > >> values in the value boxes and some text. 1 is a frequency, the > >> other is the amplitude. I want to use these values to make some > >> sounds. > >> > >> When looking for sound functions, I found Play in sdl.sound. Is it > >> possible with it, or with another function, to use something like: > >> > >> Play frequency volume > >> > >> Another way would be to create an audio file on the fly... > >> > >> Dominique > >> > > > > You must use gb.media, which is the interface to gstreamer. > > GStreamer has a plugin for generating sinusoidal sounds (its name is > > "audiotestsrc", look at the GStreamer documentation for the > > details). > > > > Regards, > > > > I made an example of that for you in revision #6140. Thanks a lot! I see it is possible to use the other properties like wave for the waveform. Gambas is amazing and very powerful. When modifying the volume control to have the label in dB, I see that a formula like SetFreq(Exp(Log(20) + (Log(20000) - Log(20)) * sldFrequency1.Value / 1000)) doesn't give an error when sldFrequency = 0, but a formula like lblVolume1.Text = Format((20 * Log10(fVol / 1000)), "0.00") & " dB" give an error when fVol = 0. I don't understand why it work in the first case but not in the second case. Best Regards, Dominique > > Regards, > From gambas.fr at ...626... Sat Feb 8 19:36:49 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 8 Feb 2014 19:36:49 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: <20140208194105.41dc28a9@...3299...> References: <20140208012429.7e1983b8@...3299...> <52F582B6.1020308@...1...> <52F5977E.4070507@...1...> <20140208194105.41dc28a9@...3299...> Message-ID: Is it a way to introspect the media lib ? I mean For each s in Media.ControlList hMedia = MediaControl($hcont, s) for each sprop in hMedia next next get props and signatures... like for dBus. 2014-02-08 19:41 GMT+01:00 Dominique Michel : > Le Sat, 08 Feb 2014 03:33:34 +0100, > Beno?t Minisini a ?crit : > >> Le 08/02/2014 02:04, Beno?t Minisini a ?crit : >> > Le 08/02/2014 01:24, Dominique Michel a ?crit : >> >> Hi, >> >> >> >> I try to do my first gambas program, and I am stuck with the sound. >> >> >> >> All I have for now is 2 labels, 2 value boxes and 1 toggle button. >> >> >> >> When I press the toggle button, it launch a message box with the 2 >> >> values in the value boxes and some text. 1 is a frequency, the >> >> other is the amplitude. I want to use these values to make some >> >> sounds. >> >> >> >> When looking for sound functions, I found Play in sdl.sound. Is it >> >> possible with it, or with another function, to use something like: >> >> >> >> Play frequency volume >> >> >> >> Another way would be to create an audio file on the fly... >> >> >> >> Dominique >> >> >> > >> > You must use gb.media, which is the interface to gstreamer. >> > GStreamer has a plugin for generating sinusoidal sounds (its name is >> > "audiotestsrc", look at the GStreamer documentation for the >> > details). >> > >> > Regards, >> > >> >> I made an example of that for you in revision #6140. > > Thanks a lot! I see it is possible to use the other properties like > wave for the waveform. Gambas is amazing and very powerful. > > When modifying the volume control to have the label in dB, I see that a > formula like > > SetFreq(Exp(Log(20) + (Log(20000) - Log(20)) * > sldFrequency1.Value / 1000)) > > doesn't give an error when sldFrequency = 0, but a formula like > > lblVolume1.Text = Format((20 * Log10(fVol / 1000)), "0.00") & > " dB" > > give an error when fVol = 0. I don't understand why it work in the > first case but not in the second case. > > > Best Regards, > > Dominique >> >> Regards, >> > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From dominique.michel at ...3298... Sat Feb 8 21:03:18 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 8 Feb 2014 21:03:18 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: References: <20140208012429.7e1983b8@...3299...> <52F582B6.1020308@...1...> <52F5977E.4070507@...1...> <20140208194105.41dc28a9@...3299...> Message-ID: <20140208210318.7204ebdf@...3299...> Le Sat, 8 Feb 2014 19:36:49 +0100, Fabien Bodard a ?crit : > Is it a way to introspect the media lib ? I use gst-inspect for that. I don't know if it is possible to do it in Gambas. On my system: gst-inspect-1.0 audiotestsrc As I understand the Media.control, it send the control name to gstreamer, audiotestsrc in that case, together with the property it want to control, "volume", "wave, ..., and its value. gts-inspect will give you a description of all the properties and their possible values. Dominique > > I mean > > For each s in Media.ControlList > hMedia = MediaControl($hcont, s) > for each sprop in hMedia > > > next > > > next > > get props and signatures... like for dBus. > > > 2014-02-08 19:41 GMT+01:00 Dominique Michel > : > > Le Sat, 08 Feb 2014 03:33:34 +0100, > > Beno?t Minisini a ?crit : > > > >> Le 08/02/2014 02:04, Beno?t Minisini a ?crit : > >> > Le 08/02/2014 01:24, Dominique Michel a ?crit : > >> >> Hi, > >> >> > >> >> I try to do my first gambas program, and I am stuck with the > >> >> sound. > >> >> > >> >> All I have for now is 2 labels, 2 value boxes and 1 toggle > >> >> button. > >> >> > >> >> When I press the toggle button, it launch a message box with > >> >> the 2 values in the value boxes and some text. 1 is a > >> >> frequency, the other is the amplitude. I want to use these > >> >> values to make some sounds. > >> >> > >> >> When looking for sound functions, I found Play in sdl.sound. Is > >> >> it possible with it, or with another function, to use something > >> >> like: > >> >> > >> >> Play frequency volume > >> >> > >> >> Another way would be to create an audio file on the fly... > >> >> > >> >> Dominique > >> >> > >> > > >> > You must use gb.media, which is the interface to gstreamer. > >> > GStreamer has a plugin for generating sinusoidal sounds (its > >> > name is "audiotestsrc", look at the GStreamer documentation for > >> > the details). > >> > > >> > Regards, > >> > > >> > >> I made an example of that for you in revision #6140. > > > > Thanks a lot! I see it is possible to use the other properties like > > wave for the waveform. Gambas is amazing and very powerful. > > > > When modifying the volume control to have the label in dB, I see > > that a formula like > > > > SetFreq(Exp(Log(20) + (Log(20000) - Log(20)) * > > sldFrequency1.Value / 1000)) > > > > doesn't give an error when sldFrequency = 0, but a formula like > > > > lblVolume1.Text = Format((20 * Log10(fVol / 1000)), > > "0.00") & " dB" > > > > give an error when fVol = 0. I don't understand why it work in the > > first case but not in the second case. > > > > > > Best Regards, > > > > Dominique > >> > >> Regards, > >> > > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common > > Pitfalls. Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From LouisWAdamsJr at ...3300... Sat Feb 8 21:18:05 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Sat, 8 Feb 2014 12:18:05 -0800 (PST) Subject: [Gambas-user] Accessing Project Data in a Text File Message-ID: <1391890685423-45627.post@...3046...> I have a project with a text file associated with it. So there is a tab displaying the data imported into the project (?) from the text file. How do I access the data? Since the project is already aware of the data, I wouldn't think that it's necessary to Open the file and Read its contents as would be done if the file were not associated with the project. If it was a graphics file all I'd have to do is load it into a Picture object. Is there a similar way of loading a line of text into a string, or load the contents of the line into variables based on spaces/tabs/commas that separate data values? Some of the data is text (strings of characters without spaces/tabs/commas), and some are numbers. It is a UTF-8 file if that makes a difference. Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Accessing-Project-Data-in-a-Text-File-tp45627.html Sent from the gambas-user mailing list archive at Nabble.com. From vuott at ...325... Sun Feb 9 03:14:46 2014 From: vuott at ...325... (Ru Vuott) Date: Sun, 9 Feb 2014 02:14:46 +0000 (GMT) Subject: [Gambas-user] R: morse code sound ? Message-ID: <1391912086.51285.YahooMailBasic@...3271...> ......maybe like this ? -------------------------------------------- Ven 7/2/14, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] R: morse code sound ? A: "mailing list for gambas users" Data: Venerd? 7 febbraio 2014, 14:39 > Morse Code is a binary code. An audible binary code. It has two states. > Long tone or short tone. I used the similarity between Morse Code and > Binary ASCII text to help teach how computers represent text in binary many > years ago. > > I am sure you could find Morse code audio files (They provide them for free > for studying for HAM license test) and edit out the two tones. Then write > your code to use the gb.sdl.sound component to play the files as needed. > You may also find code files on free audio sites for gaming. > I have never done any audio things with Gambas, but isn't there possibility to make tones? That would allow more flexible solution than playing recorded tones per letter. Jussi ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ 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: morse_audio-0.0.1.tar.gz Type: application/gzip Size: 7050 bytes Desc: not available URL: From dominique.michel at ...3298... Sun Feb 9 06:06:09 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sun, 9 Feb 2014 06:06:09 +0100 Subject: [Gambas-user] R: morse code sound ? In-Reply-To: References: <1391795370.38534.YahooMailBasic@...3268...> <52F5773D.7040008@...1950...> <1391839643.3294.4.camel@...2688...> Message-ID: <20140209060609.625c7653@...3299...> Le Fri, 7 Feb 2014 23:55:37 -0800, Randall Morgan a ?crit : > I got 5F here. Looking forward to a possible 30F next week. > > True the old BASIC machines used the internal speakers, and those are > hard to find. But almost every *nix box has a sound system. And we > no-longer need to count clock cycles, we can use the the built-in > timing routines or delay routines. The Sound and Play function where > blocking functions. No need for anything fancy. But I do think adding > a simple Play freq., duration function would be a great addition to > the language and would make it more complete. For anything more > elaborate there is Sdl and such. It was possible to do music with the GWBasic on the old IBM pc. Otherwise, the AmigaBasic was very powerful, and also to make music. The clock issue is not a trivial one at all. It was a few discussions about this on the jack-devel list very recently. As example: http://jack-audio.10948.n7.nabble.com/Jack-Devel-jack-is-broken-on-ARM-without-bogomips-td17596.html On the other hand, I think gambas can simply use the sampling rate provided by the sound system. "All" that is needed is to output samples at the correct sampling rate. Otherwise, it is the play command that come with sox that is a great tool, and among other things, it can play amazing beeps. But we are in the 21th century, and if something like the play command is implemented, I would prefer if it use Gstreamer, ALSA or JACK, instead of the buzzer. Also, for the morse code, the new WaveGenerator example show how to use the media component to make audio waves. I can be paused/restarted with just: Public Sub btnPlay_Click() $bPlay = Not $bPlay If $bPlay Then $hPlayer.Play Else $hPlayer.Pause Endif End That imply the morse code should be able to drive it. That would be a good test to see how fast hPlayer can commute between Pause and Play. Dominique > > > > > On Fri, Feb 7, 2014 at 10:07 PM, Bruce wrote: > > > On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote: > > > It seems like playing a simple tone is something that should be a > > primitive > > > in the Gambas Language... A simple Play(frequency, duration) type > > > of function as was found in many of the early BASIC languages. Am > > > I the only one who think like this? > > > > > > > Ah yes! But those magical sounds were made by dividing the clock > > signal and sending the resultant wave directly out to the onboard > > speaker port. I dont think any of the boxes here have a onboard > > speaker any more? > > > > "Leisure Suit Larry" anyone? > > > > cheers > > Bruce > > > > p.s. It's cooled down a bit, only 42C today > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common > > Pitfalls. Read the Whitepaper. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From bbruen at ...2308... Sun Feb 9 08:36:31 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 09 Feb 2014 18:06:31 +1030 Subject: [Gambas-user] Oops, I think I have broken something seriously here. Message-ID: <1391931391.3459.8.camel@...2688...> Without my usual long winded post, the project concerned runs perfectly well in the IDE and the local executable i.e. tmcvmgr3.gambas runs perfectly from a vterminal in the project directory. But when I installed it into /usr/local/bin via autotools and run it I get the following stuff. The project is VERY complex. I just want to know where I should start looking for what I have broken. (btw: Application._init.50 is in a local override of Application and is just a line containing "Logger.Begin()") Bruce [bb at ...2711... comp]$ tmcvmgr3.gambas Another tag to check the tmcvmgr3 crash, this should move the backtrace on Application._init from 49 to 50 This is just a tag to see if we can get a better handle on the tmcvmgr3 crash (it should adjust the crash line from 122 to 123 This is just a tag to see if we can get a better handle on the tmcvmgr3 crash (it should adjust the crash line from 122 to 123 Logger._free.123: #13: Null object 1: Application._init.50 *** glibc detected *** /usr/local/bin/tmcvmgr3.gambas: free(): invalid pointer: 0x0961f247 *** ======= Backtrace: ========= /lib/i686/libc.so.6[0x45454afa] /usr/local/bin/tmcvmgr3.gambas[0x806ce09] /usr/local/bin/tmcvmgr3.gambas[0x806ce2a] /usr/local/bin/tmcvmgr3.gambas[0x806bb93] /usr/local/bin/tmcvmgr3.gambas[0x804b359] /lib/i686/libc.so.6(__libc_start_main+0xf5)[0x453fa9e5] /usr/local/bin/tmcvmgr3.gambas[0x804b415] ======= Memory map: ======== 08047000-08094000 r-xp 00000000 08:01 819627 /usr/bin/gbx3 08094000-08099000 rw-p 0004d000 08:01 819627 /usr/bin/gbx3 08099000-0809b000 rw-p 00000000 00:00 0 0950b000-0963c000 rw-p 00000000 00:00 0 [heap] 4119a000-411a3000 r-xp 00000000 08:01 1112250 /lib/libintl.so.8.1.2 411a3000-411a4000 rw-p 00009000 08:01 1112250 /lib/libintl.so.8.1.2 42c78000-42c98000 r-xp 00000000 08:01 607759 /usr/lib/libxcb.so.1.1.0 42c98000-42c99000 rw-p 0001f000 08:01 607759 /usr/lib/libxcb.so.1.1.0 42c9b000-42dce000 r-xp 00000000 08:01 607805 /usr/lib/libX11.so.6.3.0 42dce000-42dd1000 rw-p 00133000 08:01 607805 /usr/lib/libX11.so.6.3.0 42dd1000-42dd2000 rw-p 00000000 00:00 0 42dd4000-42de4000 r-xp 00000000 08:01 608875 /usr/lib/libXext.so.6.4.0 42de4000-42de5000 rw-p 00010000 08:01 608875 /usr/lib/libXext.so.6.4.0 42de7000-42ee7000 r-xp 00000000 08:01 608881 /usr/lib/libglib-2.0.so.0.3800.2 42ee7000-42ee8000 rw-p 00100000 08:01 608881 /usr/lib/libglib-2.0.so.0.3800.2 42eea000-42ef2000 r-xp 00000000 08:01 608108 /usr/lib/libXrender.so.1.3.0 42ef2000-42ef3000 rw-p 00008000 08:01 608108 /usr/lib/libXrender.so.1.3.0 42ef5000-42f03000 r-xp 00000000 08:01 610750 /usr/lib/libXi.so.6.1.0 42f03000-42f04000 rw-p 0000d000 08:01 610750 /usr/lib/libXi.so.6.1.0 42f06000-42f0f000 r-xp 00000000 08:01 610752 /usr/lib/libXrandr.so.2.2.0 42f0f000-42f10000 rw-p 00008000 08:01 610752 /usr/lib/libXrandr.so.2.2.0 42f12000-42f15000 r-xp 00000000 08:01 609010 /usr/lib/libgmodule-2.0.so.0.3800.2 42f15000-42f16000 rw-p 00002000 08:01 609010 /usr/lib/libgmodule-2.0.so.0.3800.2 42f18000-42f1a000 r-xp 00000000 08:01 610748 /usr/lib/libXinerama.so.1.0.0 42f1a000-42f1b000 rw-p 00001000 08:01 610748 /usr/lib/libXinerama.so.1.0.0 42f4a000-42f9d000 r-xp 00000000 08:01 611169 /usr/lib/libQtSvg.so.4.8.5 42f9d000-42f9f000 rw-p 00052000 08:01 611169 /usr/lib/libQtSvg.so.4.8.5 4301e000-43023000 r-xp 00000000 08:01 610393 /usr/lib/libXtst.so.6.1.0 43023000-43024000 rw-p 00004000 08:01 610393 /usr/lib/libXtst.so.6.1.0 43095000-430e3000 r-xp 00000000 08:01 608882 /usr/lib/libgobject-2.0.so.0.3800.2 430e3000-430e4000 rw-p 0004e000 08:01 608882 /usr/lib/libgobject-2.0.so.0.3800.2 430e6000-4324d000 r-xp 00000000 08:01 610745 /usr/lib/libgio-2.0.so.0.3800.2 4324d000-43250000 rw-p 00166000 08:01 610745 /usr/lib/libgio-2.0.so.0.3800.2 43250000-43251000 rw-p 00000000 00:00 0 43253000-4325c000 r-xp 00000000 08:01 610754 /usr/lib/libXcursor.so.1.0.2 4325c000-4325d000 rw-p 00008000 08:01 610754 /usr/lib/libXcursor.so.1.0.2 4325f000-43263000 r-xp 00000000 08:01 610753 /usr/lib/libXfixes.so.3.1.0 43263000-43264000 rw-p 00003000 08:01 610753 /usr/lib/libXfixes.so.3.1.0 43266000-43267000 r-xp 00000000 08:01 610287 /usr/lib/libgthread-2.0.so.0.3800.2 43267000-43268000 rw-p 00000000 08:01 610287 /usr/lib/libgthread-2.0.so.0.3800.2 4326a000-432e7000 r-xp 00000000 08:01 611159 /usr/lib/libQtDBus.so.4.8.5 432e7000-432e9000 rw-p 0007c000 08:01 611159 /usr/lib/libQtDBus.so.4.8.5 433cb000-4340a000 r-xp 00000000 08:01 611028 /usr/lib/libQtXml.so.4.8.5 4340a000-4340c000 rw-p 0003e000 08:01 611028 /usr/lib/libQtXml.so.4.8.5 4340e000-43547000 r-xp 00000000 08:01 610508 /usr/lib/libQtNetwork.so.4.8.5 43547000-4354b000 rw-p 00139000 08:01 610508 /usr/lib/libQtNetwork.so.4.8.5 435e7000-43624000 r-xp 00000000 08:01 611193 /usr/lib/libQtSql.so.4.8.5 43624000-43625000 rw-p 0003d000 08:01 611193 /usr/lib/libQtSql.so.4.8.5 436c2000-439a5000 r-xp 00000000 08:01 610386 /usr/lib/libQtCore.so.4.8.5 439a5000-439ac000 rw-p 002e3000 08:01 610386 /usr/lib/libQtCore.so.4.8.5 439ac000-439ad000 rw-p 00000000 00:00 0 43ca8000-43d5b000 r-xp 00000000 08:01 605086 /usr/lib/libsqlite3.so.0.8.6 43d5b000-43d5e000 rw-p 000b2000 08:01 605086 /usr/lib/libsqlite3.so.0.8.6 43e29000-43f0b000 r-xp 00000000 08:01 610297 /usr/lib/libgstreamer-0.10.so.0.30.0 43f0b000-43f0f000 rw-p 000e1000 08:01 610297 /usr/lib/libgstreamer-0.10.so.0.30.0 43f0f000-43f10000 rw-p 00000000 00:00 0 43f7c000-43fdb000 r-xp 00000000 08:01 610874 /usr/lib/libgstbase-0.10.so.0.30.0 43fdb000-43fdc000 rw-p 0005f000 08:01 610874 /usr/lib/libgstbase-0.10.so.0.30.0 44014000-44034000 r-xp 00000000 08:01 611307 /usr/lib/libgstpbutils-0.10.so.0.25.0 44034000-44036000 rw-p 0001f000 08:01 611307 /usr/lib/libgstpbutils-0.10.so.0.25.0 44038000-44047000 r-xp 00000000 08:01 611357 /usr/lib/libgstinterfaces-0.10.so.0.25.0 44047000-44048000 rw-p 0000f000 08:01 611357 /usr/lib/libgstinterfaces-0.10.so.0.25.0 440b8000-440d4000 r-xp 00000000 08:01 611360 /usr/lib/libgstvideo-0.10.so.0.25.0 440d4000-440d5000 rw-p 0001b000 08:01 611360 /usr/lib/libgstvideo-0.10.so.0.25.0 440d7000-440e2000 r-xp 00000000 08:01 611356 /usr/lib/libgstapp-0.10.so.0.25.0 440e2000-440e3000 rw-p 0000b000 08:01 611356 /usr/lib/libgstapp-0.10.so.0.25.0 4457e000-4459c000 r-xp 00000000 08:01 1113181 /lib/ld-2.16.so 4459c000-4459d000 r--p 0001d000 08:01 1113181 /lib/ld-2.16.so 4459d000-4459e000 rw-p 0001e000 08:01 1113181 /lib/ld-2.16.so 44918000-44bd4000 r-xp 00000000 08:01 611195 /usr/lib/libQt3Support.so.4.8.5 44bd4000-44be2000 rw-p 002bb000 08:01 611195 /usr/lib/libQt3Support.so.4.8.5 453e1000-45588000 r-xp 00000000 08:01 1113182 /lib/i686/libc-2.16.so 45588000-45589000 ---p 001a7000 08:01 1113182 /lib/i686/libc-2.16.so 45589000-4558b000 r--p 001a7000 08:01 1113182 /lib/i686/libc-2.16.so 4558b000-4558c000 rw-p 001a9000 08:01 1113182 /lib/i686/libc-2.16.so 4558c000-4558f000 rw-p 00000000 00:00 0 45591000-45594000 r-xp 00000000 08:01 1113186 /lib/libdl-2.16.so 45594000-45595000 r--p 00002000 08:01 1113186 /lib/libdl-2.16.so 45595000-45596000 rw-p 00003000 08:01 1113186 /lib/libdl-2.16.so 45598000-455d6000 r-xp 00000000 08:01 1113183 /lib/i686/libm-2.16.so 455d6000-455d7000 r--p 0003d000 08:01 1113183 /lib/i686/libm-2.16.so 455d7000-455d8000 rw-p 0003e000 08:01 1113183 /lib/i686/libm-2.16.so 455da000-455f0000 r-xp 00000000 08:01 1113184 /lib/i686/libpthread-2.16.so 455f0000-455f1000 r--p 00015000 08:01 1113184 /lib/i686/libpthread-2.16.so 455f1000-455f2000 rw-p 00016000 08:01 1113184 /lib/i686/libpthread-2.16.so 455f2000-455f4000 rw-p 00000000 00:00 0 455f6000-455fd000 r-xp 00000000 08:01 1114297 /lib/i686/librt-2.16.so 455fd000-455fe000 r--p 00006000 08:01 1114297 /lib/i686/librt-2.16.so 455fe000-455ff000 rw-p 00007000 08:01 1114297 /lib/i686/librt-2.16.so 45601000-45617000 r-xp 00000000 08:01 1114296 /lib/libz.so.1.2.8 45617000-45618000 r--p 00015000 08:01 1114296 /lib/libz.so.1.2.8 45618000-45619000 rw-p 00016000 08:01 1114296 /lib/libz.so.1.2.8 4561b000-4561d000 r-xp 00000000 08:01 610981 /usr/lib/libXau.so.6.0.0 4561d000-4561e000 rw-p 00001000 08:01 610981 /usr/lib/libXau.so.6.0.0 45759000-4575e000 r-xp 00000000 08:01 610983 /usr/lib/libXdmcp.so.6.0.0 4575e000-4575f000 rw-p 00004000 08:01 610983 /usr/lib/libXdmcp.so.6.0.0 45797000-45803000 r-xp 00000000 08:01 1113185 /lib/libpcre.so.1.2.1 45803000-45804000 rw-p 0006b000 08:01 1113185 /lib/libpcre.so.1.2.1 45806000-458eb000 r-xp 00000000 08:01 607538 /usr/lib/libstdc ++.so.6.0.17 458eb000-458ef000 r--p 000e4000 08:01 607538 /usr/lib/libstdc ++.so.6.0.17 458ef000-458f1000 rw-p 000e8000 08:01 607538 /usr/lib/libstdc ++.so.6.0.17 458f1000-458f8000 rw-p 00000000 00:00 0 458fa000-45916000 r-xp 00000000 08:01 1114295 /lib/libgcc_s-4.7.2.so.1 45916000-45917000 rw-p 0001b000 08:01 1114295 /lib/libgcc_s-4.7.2.so.1 45a1c000-45a30000 r-xp 00000000 08:01 1114671 /lib/libresolv-2.16.so 45a30000-45a31000 ---p 00014000 08:01 1114671 /lib/libresolv-2.16.so 45a31000-45a32000 r--p 00014000 08:01 1114671 /lib/libresolv-2.16.so 45a32000-45a33000 rw-p 00015000 08:01 1114671 /lib/libresolv-2.16.so 45a33000-45a35000 rw-p 00000000 00:00 0 45a42000-45b89000 r-xp 00000000 08:01 611025 /usr/lib/libxml2.so.2.7.8 45b89000-45b8e000 rw-p 00146000 08:01 611025 /usr/lib/libxml2.so.2.7.8 45b8e000-45b8f000 rw-p 00000000 00:00 0 45b91000-45b96000 r-xp 00000000 08:01 611282 /usr/lib/libffi.so.5.0.9 45b96000-45b97000 rw-p 00005000 08:01 611282 /usr/lib/libffi.so.5.0.9 45c07000-45c82000 r-xp 00000000 08:01 609992 /usr/lib/libfreetype.so.6.3.22 45c82000-45c86000 rw-p 0007a000 08:01 609992 /usr/lib/libfreetype.so.6.3.22 45c8e000-45cd2000 r-xp 00000000 08:01 607596 /usr/lib/libpng12.so.0.50.0 45cd2000-45cd3000 rw-p 00043000 08:01 607596 /usr/lib/libpng12.so.0.50.0 45cd5000-45d06000 r-xp 00000000 08:01 611267 /usr/lib/libfontconfig.so.1.4.4 45d06000-45d08000 rw-p 00030000 08:01 611267 /usr/lib/libfontconfig.so.1.4.4 45e7f000-45e95000 r-xp 00000000 08:01 611005 /usr/lib/libICE.so.6.3.0 45e95000-45e96000 rw-p 00015000 08:01 611005 /usr/lib/libICE.so.6.3.0 45e96000-45e98000 rw-p 00000000 00:00 0 45e9a000-45ea1000 r-xp 00000000 08:01 611007 /usr/lib/libSM.so.6.0.1 45ea1000-45ea2000 rw-p 00006000 08:01 611007 /usr/lib/libSM.so.6.0.1 45eb7000-4606a000 r-xp 00000000 08:01 610971 /usr/lib/libcrypto.so.1.0.0 4606a000-4607f000 rw-p 001b3000 08:01 610971 /usr/lib/libcrypto.so.1.0.0 4607f000-46082000 rw-p 00000000 00:00 0 460ab000-460f4000 r-xp 00000000 08:01 1114673 /lib/libdbus-1.so.3.7.4 460f4000-460f5000 rw-p 00048000 08:01 1114673 /lib/libdbus-1.so.3.7.4 4649b000-464f0000 r-xp 00000000 08:01 610973 /usr/lib/libssl.so.1.0.0 464f0000-464f4000 rw-p 00055000 08:01 610973 /usr/lib/libssl.so.1.0.0 46d29000-477e9000 r-xp 00000000 08:01 610991 /usr/lib/libQtGui.so.4.8.5 477e9000-4780e000 rw-p 00abf000 08:01 610991 /usr/lib/libQtGui.so.4.8.5 4780e000-47811000 rw-p 00000000 00:00 0 48816000-488a5000 r-xp 00000000 08:01 608286 /usr/lib/liborc-0.4.so.0.17.0 488a5000-488aa000 rw-p 0008e000 08:01 608286 /usr/lib/liborc-0.4.so.0.17.0 488ac000-49fb0000 r-xp 00000000 08:01 608982 /usr/lib/libQtWebKit.so.4.9.4 49fb0000-4a08c000 rw-p 01703000 08:01 608982 /usr/lib/libQtWebKit.so.4.9.4 4a08c000-4a0a1000 rw-p 00000000 00:00 0 b66fa000-b6701000 r--s 00000000 08:01 761994 /usr/lib/gconv/gconv-modules.cache b6701000-b6702000 rw-p 00000000 00:00 0 b68b3000-b68c4000 r-xp 00000000 08:01 680413 /usr/lib/gambas3/gb.qt4.webkit.so.0.0.0 b68c4000-b68c7000 rw-p 00010000 08:01 680413 /usr/lib/gambas3/gb.qt4.webkit.so.0.0.0 b6923000-b692e000 r-xp 00000000 08:01 678874 /usr/lib/gambas3/gb.db.so.0.0.0 b692e000-b6930000 rw-p 0000a000 08:01 678874 /usr/lib/gambas3/gb.db.so.0.0.0 b6a29000-b6a2e000 r-xp 00000000 08:01 680414 /usr/lib/gambas3/gb.desktop.so.0.0.0 b6a2e000-b6a2f000 rw-p 00004000 08:01 680414 /usr/lib/gambas3/gb.desktop.so.0.0.0 b6b1e000-b6b88000 r-xp 00000000 08:01 680410 /usr/lib/gambas3/gb.qt4.so.0.0.0 b6b88000-b6b94000 rw-p 0006a000 08:01 680410 /usr/lib/gambas3/gb.qt4.so.0.0.0 b6b94000-b6ba0000 r-xp 00000000 08:01 679330 /usr/lib/gambas3/gb.image.so.0.0.0 b6ba0000-b6ba1000 rw-p 0000c000 08:01 679330 /usr/lib/gambas3/gb.image.so.0.0.0 b73a4000-b7514000 r--p 00334000 08:01 738240 /usr/share/locale/locale-archive b7514000-b7714000 r--p 00000000 08:01 738240 /usr/share/locale/locale-archive b7714000-b7716000 rw-p 00000000 00:00 0 b772b000-b772f000 r-xp 00000000 08:01 679060 /usr/lib/gambas3/gb.geom.so.0.0.0 b772f000-b7730000 rw-p 00004000 08:01 679060 /usr/lib/gambas3/gb.geom.so.0.0.0 b7730000-b7737000 r-xp 00000000 08:01 679100 /usr/lib/gambas3/gb.draw.so.0.0.0 b7737000-b7739000 rw-p 00006000 08:01 679100 /usr/lib/gambas3/gb.draw.so.0.0.0 b773d000-b773f000 rw-p 00000000 00:00 0 bfad3000-bfaf5000 rw-p 00000000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] Aborted From dominique.michel at ...3298... Sun Feb 9 14:13:01 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sun, 9 Feb 2014 14:13:01 +0100 Subject: [Gambas-user] Wave generator Message-ID: <20140209141301.3429a679@...3299...> I made some changes to the Wave generator. A screen shoot is better than a long explanation: http://postimg.org/image/7kbr04d31/ I tested it with both the alsasink and the jackaudiosink, but I didn't made a menu for that, because I don't know how to test if a sink exist without to load it. And when it try to load a non existing sink, it just crash. Instead, it is a comment in the source. The jack sink is the one that work best of the two I tested. It give less parasitic noises than with the alsasink. The cursor buttons are coupled with value boxes. The frequency corsor work just great, but it is a glitch with the volume cursor. When entering a value in the volume value box, the cursor move too much to the left. It is at the right exactly at 0 dB, but it reach the left side at -40 dB, when this setting is calibrated at -60 dB. And that strange because it work just fine when moving the cursor. The sources archive is about 21 kb and I want to share it, that both for you and for review. It is my first Basic program from a very long time ago... So, where is the best place to put that archive? Dominique From dominique.michel at ...3298... Sun Feb 9 16:22:48 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sun, 9 Feb 2014 16:22:48 +0100 Subject: [Gambas-user] configure options In-Reply-To: References: <20140207221532.1dff696e@...3299...> Message-ID: <20140209162248.18e055fb@...3299...> Le Sat, 8 Feb 2014 07:53:27 +0100, Fabien Bodard a ?crit : > The Development Environment > > The Gambas IDE is made with Gambas. In order to compile and use it, > you need to compile the following components: > > gb.db > gb.db.form > gb.debug > gb.desktop > gb.eval > gb.eval.highlight > gb.form > gb.form.dialog > gb.form.mdi > gb.image > gb.image.effect > gb.qt4 > gb.qt4.ext > gb.qt4.webkit > gb.settings > > Then all the infos are here : > http://gambasdoc.org/help/howto/package?v3 > > Regards, > > -- > Fabien Bodard Thanks for the info. The issue with gentoo is it install all from the sources, and in order to split Gambas in several package, I have to deal with autoconf in the ebuilds for that. In configure.ac and Makefile.am, I can remove the directories that doesn't correspond to a given package. If I understand right, if I made a base ebuild with AC_CONFIG_SUBDIRS(main) AC_CONFIG_SUBDIRS(comp) AC_CONFIG_SUBDIRS(app) AC_CONFIG_SUBDIRS(examples) I will get a build with the runtime, development, scripter and example packages, and some extras which are parts of the IDE. I can use an USE flag for the examples. After, If I made another package with GB_CONFIG_SUBDIRS(qt4, gb.qt4) GB_CONFIG_SUBDIRS(desktop, gb.desktop) GB_CONFIG_SUBDIRS(imageio, gb.image.io) I must get a build for the remaining of the IDE. I am not sure about imageio, because on the web site, it is gb.image and gb.image.effect, and in the sources it is gb.image.io and gb.image,imlib. Should I install both of them for the IDE? After that, I can make separated ebuilds for all the remaining stuffs. Dominique From gambas at ...1... Sun Feb 9 16:27:45 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 09 Feb 2014 16:27:45 +0100 Subject: [Gambas-user] Paint.ClipRect In-Reply-To: References: Message-ID: <52F79E71.1090008@...1...> Le 08/02/2014 07:48, Fabien Bodard a ?crit : > Benoit, > > Does ClipRect not follow the scale transformation ?... it seem not > > Is it a Bug ? > No, it is by design in the GUI toolkit (not a Gambas choice). -- Beno?t Minisini From gambas at ...1... Sun Feb 9 16:30:40 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 09 Feb 2014 16:30:40 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: <20140208210318.7204ebdf@...3299...> References: <20140208012429.7e1983b8@...3299...> <52F582B6.1020308@...1...> <52F5977E.4070507@...1...> <20140208194105.41dc28a9@...3299...> <20140208210318.7204ebdf@...3299...> Message-ID: <52F79F20.2050602@...1...> Le 08/02/2014 21:03, Dominique Michel a ?crit : > Le Sat, 8 Feb 2014 19:36:49 +0100, > Fabien Bodard a ?crit : > >> Is it a way to introspect the media lib ? I think so, but I didn't implement it. It is a big job. > > I use gst-inspect for that. I don't know if it is possible to do it in > Gambas. On my system: > > gst-inspect-1.0 audiotestsrc > > As I understand the Media.control, it send the control name to > gstreamer, audiotestsrc in that case, together with the property it > want to control, "volume", "wave, ..., and its value. > > gts-inspect will give you a description of all the properties and their > possible values. > > Dominique > plugins are usually documented on the Gstreamer site too. Not necessarilly very well (same problem as Gambas documentation!), but they are tons of them. -- Beno?t Minisini From taboege at ...626... Sun Feb 9 16:59:37 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 9 Feb 2014 16:59:37 +0100 Subject: [Gambas-user] configure options In-Reply-To: <20140209162248.18e055fb@...3299...> References: <20140207221532.1dff696e@...3299...> <20140209162248.18e055fb@...3299...> Message-ID: <20140209155937.GB1224@...2774...> On Sun, 09 Feb 2014, Dominique Michel wrote: > Le Sat, 8 Feb 2014 07:53:27 +0100, > Fabien Bodard a ?crit : > > > The Development Environment > > > > The Gambas IDE is made with Gambas. In order to compile and use it, > > you need to compile the following components: > > > > gb.db > > gb.db.form > > gb.debug > > gb.desktop > > gb.eval > > gb.eval.highlight > > gb.form > > gb.form.dialog > > gb.form.mdi > > gb.image > > gb.image.effect > > gb.qt4 > > gb.qt4.ext > > gb.qt4.webkit > > gb.settings > > > > Then all the infos are here : > > http://gambasdoc.org/help/howto/package?v3 > > > > Regards, > > > > -- > > Fabien Bodard > > Thanks for the info. The issue with gentoo is it install all from the > sources, and in order to split Gambas in several package, I have to > deal with autoconf in the ebuilds for that. > > In configure.ac and Makefile.am, I can remove the directories that > doesn't correspond to a given package. If I understand right, if I made > a base ebuild with > > AC_CONFIG_SUBDIRS(main) > AC_CONFIG_SUBDIRS(comp) > AC_CONFIG_SUBDIRS(app) > AC_CONFIG_SUBDIRS(examples) > > I will get a build with the runtime, development, scripter and example > packages, and some extras which are parts of the IDE. I can use an USE > flag for the examples. > Hmm. Not really. You will also get things like gb.report, gb.web or gb.memcached from comp/ which are rather highlevel components (not ultimately needed to run Gambas and not even the IDE). And you will get things like gb.data or gb.inotify from main/lib/ which are also unneccessary for a runtime or even runtime + IDE package. >> Are any of these components mandatory in order to get a working minimal >> Gambas installation? >> Only the gb component is mandatory actually. And it's built together with the interpreter in main/gbx/. >> Are any of these components dependent of any other of these components, >> and if yes, which one(s) and how? >> As a rule of thumb: C/C++ components usually (?) don't depend upon each other. If they do, they belong to the same "package" anyway, like gb.qt4.ext obviously depends on gb.qt4. However, Gambas components can depend on other ones in less obvious ways. You can scan their .project files for Component= lines to get this information. >> Are any of these components recommended in order to get a good >> experience with Gambas? The IDE is a good thing but you can go without (I still have my vim syntax files for Gambas sources :-)). Apart from that (which is a development tool and not a component but pulls the latter ones in), it highly depends on what people want to do. Does gentoo have a metapackage kind like "gambas3-things- you-may-like" or why do you need this information? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Feb 9 17:00:34 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 09 Feb 2014 17:00:34 +0100 Subject: [Gambas-user] Feature request: Redirecting stderr of terminal-emulated program back to IDE In-Reply-To: <20140205155817.GB8944@...2774...> References: <20140205155817.GB8944@...2774...> Message-ID: <52F7A622.9060006@...1...> Le 05/02/2014 16:58, Tobias Boege a ?crit : > Hi Benoit, > > I may have requested this some time ago already but now I can give you a > project where it is shown (see attachments). > > What I want is that we can use a terminal emulator to run a program but > still get Debug statements into the IDE because they really disturb ncurses > programs. > > I attach two projects: one is a mere application (*-app) using gb.ncurses, > the second one (without the -app suffix) runs the former using xterm but > redirects stderr back to itself to display it in the TextArea. There is > already a .gambas archive of the -app project in the non-app project. I > send you the -app project anyway for the obvious reasons. > > I'd like to ask you to incorporate this into the IDE as an option or so. > > Regards, > Tobi > Done in revision #6146. Regards, -- Beno?t Minisini From taboege at ...626... Sun Feb 9 17:07:22 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 9 Feb 2014 17:07:22 +0100 Subject: [Gambas-user] sound in gambas 3 In-Reply-To: <20140208194105.41dc28a9@...3299...> References: <20140208012429.7e1983b8@...3299...> <52F582B6.1020308@...1...> <52F5977E.4070507@...1...> <20140208194105.41dc28a9@...3299...> Message-ID: <20140209160722.GC1224@...2774...> On Sat, 08 Feb 2014, Dominique Michel wrote: > Le Sat, 08 Feb 2014 03:33:34 +0100, > Beno?t Minisini a ?crit : > > > Le 08/02/2014 02:04, Beno?t Minisini a ?crit : > > > Le 08/02/2014 01:24, Dominique Michel a ?crit : > > >> Hi, > > >> > > >> I try to do my first gambas program, and I am stuck with the sound. > > >> > > >> All I have for now is 2 labels, 2 value boxes and 1 toggle button. > > >> > > >> When I press the toggle button, it launch a message box with the 2 > > >> values in the value boxes and some text. 1 is a frequency, the > > >> other is the amplitude. I want to use these values to make some > > >> sounds. > > >> > > >> When looking for sound functions, I found Play in sdl.sound. Is it > > >> possible with it, or with another function, to use something like: > > >> > > >> Play frequency volume > > >> > > >> Another way would be to create an audio file on the fly... > > >> > > >> Dominique > > >> > > > > > > You must use gb.media, which is the interface to gstreamer. > > > GStreamer has a plugin for generating sinusoidal sounds (its name is > > > "audiotestsrc", look at the GStreamer documentation for the > > > details). > > > > > > Regards, > > > > > > > I made an example of that for you in revision #6140. > > Thanks a lot! I see it is possible to use the other properties like > wave for the waveform. Gambas is amazing and very powerful. > > When modifying the volume control to have the label in dB, I see that a > formula like > > SetFreq(Exp(Log(20) + (Log(20000) - Log(20)) * > sldFrequency1.Value / 1000)) > > doesn't give an error when sldFrequency = 0, but a formula like > > lblVolume1.Text = Format((20 * Log10(fVol / 1000)), "0.00") & > " dB" > > give an error when fVol = 0. I don't understand why it work in the > first case but not in the second case. Well... if sldFrequency1.Value = 0, then you get SetFreq(Exp(Log(20) + 0)) which equals 20 (and 20 is not an invalid frequency, is it?). Whereas, if fVol = 0, you will evaluate Log10(0) which is undefined. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Feb 9 17:16:00 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 9 Feb 2014 17:16:00 +0100 Subject: [Gambas-user] Accessing Project Data in a Text File In-Reply-To: <1391890685423-45627.post@...3046...> References: <1391890685423-45627.post@...3046...> Message-ID: <20140209161600.GD1224@...2774...> On Sat, 08 Feb 2014, Louis W. Adams, Jr. wrote: > I have a project with a text file associated with it. So there is a tab > displaying the data imported into the project (?) from the text file. How > do I access the data? Since the project is already aware of the data, I > wouldn't think that it's necessary to Open the file and Read its contents as > would be done if the file were not associated with the project. If it was a > graphics file all I'd have to do is load it into a Picture object. Is there > a similar way of loading a line of text into a string, or load the contents > of the line into variables based on spaces/tabs/commas that separate data > values? Some of the data is text (strings of characters without > spaces/tabs/commas), and some are numbers. It is a UTF-8 file if that makes > a difference. > Are you talking about your project at design time in the IDE or when your project runs, i.e. do you want to look at the file or does your program need it at run time? I guess the second but it's not clear to me... So you said, if it was a graphics file, you would *load* it into a Picture object. Why do you then think it's unnecessary to load the text file? You have to open and read it which can be done line-wise in at least two comfortable ways: 1) File.Load() and Split() 2) Open and Line Input. Look at the documentation. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Feb 9 17:24:05 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 9 Feb 2014 17:24:05 +0100 Subject: [Gambas-user] Wave generator In-Reply-To: <20140209141301.3429a679@...3299...> References: <20140209141301.3429a679@...3299...> Message-ID: <20140209162405.GE1224@...2774...> On Sun, 09 Feb 2014, Dominique Michel wrote: > I made some changes to the Wave generator. > > A screen shoot is better than a long explanation: > http://postimg.org/image/7kbr04d31/ > > I tested it with both the alsasink and the jackaudiosink, but I didn't > made a menu for that, because I don't know how to test if a sink exist > without to load it. And when it try to load a non existing sink, it > just crash. Instead, it is a comment in the source. > > The jack sink is the one that work best of the two I tested. It give > less parasitic noises than with the alsasink. > > The cursor buttons are coupled with value boxes. The frequency corsor > work just great, but it is a glitch with the volume cursor. When > entering a value in the volume value box, the cursor move too much to > the left. It is at the right exactly at 0 dB, but it reach the left > side at -40 dB, when this setting is calibrated at -60 dB. And that > strange because it work just fine when moving the cursor. > > The sources archive is about 21 kb and I want to share it, that both for > you and for review. It is my first Basic program from a very long time > ago... So, where is the best place to put that archive? > No problem to send it to the list if it's less than... 256 KiB? I don't know the limit anymore. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Feb 9 17:57:47 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 9 Feb 2014 17:57:47 +0100 Subject: [Gambas-user] Feature request: Redirecting stderr of terminal-emulated program back to IDE In-Reply-To: <52F7A622.9060006@...1...> References: <20140205155817.GB8944@...2774...> <52F7A622.9060006@...1...> Message-ID: <20140209165747.GI1224@...2774...> On Sun, 09 Feb 2014, Beno?t Minisini wrote: > Le 05/02/2014 16:58, Tobias Boege a ?crit : > > Hi Benoit, > > > > I may have requested this some time ago already but now I can give you a > > project where it is shown (see attachments). > > > > What I want is that we can use a terminal emulator to run a program but > > still get Debug statements into the IDE because they really disturb ncurses > > programs. > > > > I attach two projects: one is a mere application (*-app) using gb.ncurses, > > the second one (without the -app suffix) runs the former using xterm but > > redirects stderr back to itself to display it in the TextArea. There is > > already a .gambas archive of the -app project in the non-app project. I > > send you the -app project anyway for the obvious reasons. > > > > I'd like to ask you to incorporate this into the IDE as an option or so. > > > > Regards, > > Tobi > > > > Done in revision #6146. > Just how I wanted it to be. Thanks. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mmcg29440 at ...3163... Sun Feb 9 20:37:22 2014 From: mmcg29440 at ...3163... (Marty) Date: Sun, 09 Feb 2014 14:37:22 -0500 Subject: [Gambas-user] Fields do not print on report Message-ID: <52F7D8F2.40108@...3163...> Hello, I'm blundering through my first report. I've looked at the examples and tried the same code as in report1. Had to make some modifications to connect to MySQL Database. The report contains a ReportVBox called RVBCont and a ReportLabel called ReportLabel1. The code is below: Public Sub _new(sType As String) Dim $Query As String Dim Rlbl As ReportLabel Dim strTest As String $Query = "SELECT tblneighborhood.* FROM tblneighborhood ORDER BY Last_Name, First_Name LIMIT 10;" hResult1 = modMain.$Con.Exec($Query) hResult1.MoveFirst 'Report.Debug = True 'ReportPanel1.DataCount = hResult1.Count strTest = CStr(hResult1.Count) For Each hResult1 Rlbl = New ReportLabel(RVBCont) Rlbl.Autoresize = True Rlbl.Text = hResult1!Last_Name & " " & hResult1!First_Name strTest = Rlbl.Text Rlbl.Border.bottom.Width = "1px" Next End The report appears to run. Looking a strTest shows that the names are in the Rlbl.Text property. Nothing prints on the report preview. It is blank. In the debug widow is the message "gnome keyring couldn't connect to /tmp/key-ring-nWROjb/pkcs11 - No such directory". I'm using Gambas 3.5 on Ubutu 12.04 LTS. By the way I did look a Fabien's sight but I do not speak French. Maybe some one could suggest a good reference in English. Thanks, Marty From gambas.fr at ...626... Sun Feb 9 22:01:02 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 9 Feb 2014 22:01:02 +0100 Subject: [Gambas-user] Fields do not print on report In-Reply-To: <52F7D8F2.40108@...3163...> References: <52F7D8F2.40108@...3163...> Message-ID: 2014-02-09 20:37 GMT+01:00 Marty : > Hello, > > I'm blundering through my first report. I've looked at the examples and > tried the same code as in report1. Had to make some modifications to > connect to MySQL Database. The report contains a ReportVBox called > RVBCont and a ReportLabel called ReportLabel1. > > The code is below: try to put autoresize to true on the ReportVBox (it's defult size is 0) or it's expand property to true This is a thing i want to change on the reportcontrol definition ... they must have at less 1 cm of hight/width... but it's not so simple when many report known the default to be at 0 > Public Sub _new(sType As String) > > Dim $Query As String > Dim Rlbl As ReportLabel > Dim strTest As String > > $Query = "SELECT tblneighborhood.* FROM tblneighborhood ORDER BY > Last_Name, First_Name LIMIT 10;" > hResult1 = modMain.$Con.Exec($Query) > hResult1.MoveFirst > 'Report.Debug = True > 'ReportPanel1.DataCount = hResult1.Count > strTest = CStr(hResult1.Count) > > For Each hResult1 > > Rlbl = New ReportLabel(RVBCont) > Rlbl.Autoresize = True > Rlbl.Text = hResult1!Last_Name & " " & hResult1!First_Name > strTest = Rlbl.Text > Rlbl.Border.bottom.Width = "1px" > > Next > > End Another thing Add a reportHbox in the reportVBox in the report editor. Set its height as 1 cm add in it a reportLabel name it lblField and delete the text property content. then in the code Public Sub _new(sType As String) Dim $Query As String Dim Rlbl As ReportLabel Dim strTest As String $Query = "SELECT tblneighborhood.* FROM tblneighborhood ORDER BY Last_Name, First_Name LIMIT 10;" hResult1 = modMain.$Con.Exec($Query) ReportHBox1.DataCount = hResult1.Count end Public sub lblField_Data(Index as integer) hResult1.MoveTo(Index) Last.Data = hResult1!Last_Name & " " & hResult1!First_Name end > The report appears to run. Looking a strTest shows that the names are in > the Rlbl.Text property. Nothing prints on the report preview. It is > blank. In the debug widow is the message "gnome keyring couldn't connect > to /tmp/key-ring-nWROjb/pkcs11 - No such directory". > > I'm using Gambas 3.5 on Ubutu 12.04 LTS. > > By the way I did look a Fabien's sight but I do not speak French. Maybe > some one could suggest a good reference in English. > > Thanks, > Marty > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From dominique.michel at ...3298... Mon Feb 10 00:01:36 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 00:01:36 +0100 Subject: [Gambas-user] configure options In-Reply-To: <20140209155937.GB1224@...2774...> References: <20140207221532.1dff696e@...3299...> <20140209162248.18e055fb@...3299...> <20140209155937.GB1224@...2774...> Message-ID: <20140210000136.75ac1900@...3299...> Le Sun, 9 Feb 2014 16:59:37 +0100, Tobias Boege a ?crit : > On Sun, 09 Feb 2014, Dominique Michel wrote: > > Le Sat, 8 Feb 2014 07:53:27 +0100, > > Fabien Bodard a ?crit : > > > > > The Development Environment > > > > > > The Gambas IDE is made with Gambas. In order to compile and use > > > it, you need to compile the following components: > > > > > > gb.db > > > gb.db.form > > > gb.debug > > > gb.desktop > > > gb.eval > > > gb.eval.highlight > > > gb.form > > > gb.form.dialog > > > gb.form.mdi > > > gb.image > > > gb.image.effect > > > gb.qt4 > > > gb.qt4.ext > > > gb.qt4.webkit > > > gb.settings > > > > > > Then all the infos are here : > > > http://gambasdoc.org/help/howto/package?v3 > > > > > > Regards, > > > > > > -- > > > Fabien Bodard > > > > Thanks for the info. The issue with gentoo is it install all from > > the sources, and in order to split Gambas in several package, I > > have to deal with autoconf in the ebuilds for that. > > > > In configure.ac and Makefile.am, I can remove the directories that > > doesn't correspond to a given package. If I understand right, if I > > made a base ebuild with > > > > AC_CONFIG_SUBDIRS(main) > > AC_CONFIG_SUBDIRS(comp) > > AC_CONFIG_SUBDIRS(app) > > AC_CONFIG_SUBDIRS(examples) > > > > I will get a build with the runtime, development, scripter and > > example packages, and some extras which are parts of the IDE. I can > > use an USE flag for the examples. > > > > Hmm. Not really. You will also get things like gb.report, gb.web or > gb.memcached from comp/ which are rather highlevel components (not > ultimately needed to run Gambas and not even the IDE). And you will > get things like gb.data or gb.inotify from main/lib/ which are also > unneccessary for a runtime or even runtime + IDE package. > > >> Are any of these components mandatory in order to get a working > >> minimal Gambas installation? > >> > > Only the gb component is mandatory actually. And it's built together > with the interpreter in main/gbx/. > > >> Are any of these components dependent of any other of these > >> components, and if yes, which one(s) and how? > >> > > As a rule of thumb: C/C++ components usually (?) don't depend upon > each other. If they do, they belong to the same "package" anyway, > like gb.qt4.ext obviously depends on gb.qt4. However, Gambas > components can depend on other ones in less obvious ways. You can > scan their .project files for Component= lines to get this > information. > > >> Are any of these components recommended in order to get a good > >> experience with Gambas? > > The IDE is a good thing but you can go without (I still have my vim > syntax files for Gambas sources :-)). Apart from that (which is a > development tool and not a component but pulls the latter ones in), > it highly depends on what people want to do. Does gentoo have a > metapackage kind like "gambas3-things- you-may-like" or why do you > need this information? For now, it is a gambas ebuild that install everything, and it is several USE flags (one by configure flag) to choose which component(s) must be enabled, compiled and installed. That work fine, but take some time, especially the autoconf stuff. In gentoo, this is not the package manager that build a software, but portage. It run what is in the source, for gambas libtoolize autorecomf configure make make install In the case of a system update and as the gambas' ebuild is now, if db-qt or any other component get broken, the ebuild will recompile every thing, which take about one hour in my PC, and even more if it is buzzy with something else. Working with the sources with portage is not like working with sources somewhere in $HOME. All that is left after a portage installation is the installed files and the source archive. That imply portage will decompress the sources, and run the whole installation process again as specified into the sources in any case. Ebuilds are scripts, so I can tell portage to do whatever I want on the sources into them. In order to split the actual ebuild into several ones, I need to not only tell configure what must be compiled and installed, but to also tell libtoolize and autoreconf to only care about what will be configured, compiled and installed, and to skip the rest. For that, the easiest way seam to patch the configure.ac and Makefile.am files in each of the projected ebuilds. The live ebuild that install Gambas from its svn repo is another issue. Portage make a local copy of the repo, and update it automatically. But it doesn't use that copy to install gambas, but a copy of that copy, which imply a fresh install in any case. As it is no way portage can know the file xyz that was updated into the repo is part of gb.qt or gb.db, I will keep the monolithic ebuild. And anyway, I doubt that live ebuild make its way into portage, maybe into an overlay. Best, Dominique > Regards, > Tobi > From dominique.michel at ...3298... Mon Feb 10 00:04:44 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 00:04:44 +0100 Subject: [Gambas-user] Wave generator In-Reply-To: <20140209162405.GE1224@...2774...> References: <20140209141301.3429a679@...3299...> <20140209162405.GE1224@...2774...> Message-ID: <20140210000444.57825e64@...3299...> Le Sun, 9 Feb 2014 17:24:05 +0100, Tobias Boege a ?crit : > On Sun, 09 Feb 2014, Dominique Michel wrote: > > I made some changes to the Wave generator. > > > > A screen shoot is better than a long explanation: > > http://postimg.org/image/7kbr04d31/ > > > > I tested it with both the alsasink and the jackaudiosink, but I > > didn't made a menu for that, because I don't know how to test if a > > sink exist without to load it. And when it try to load a non > > existing sink, it just crash. Instead, it is a comment in the > > source. > > > > The jack sink is the one that work best of the two I tested. It give > > less parasitic noises than with the alsasink. > > > > The cursor buttons are coupled with value boxes. The frequency > > corsor work just great, but it is a glitch with the volume cursor. > > When entering a value in the volume value box, the cursor move too > > much to the left. It is at the right exactly at 0 dB, but it reach > > the left side at -40 dB, when this setting is calibrated at -60 dB. > > And that strange because it work just fine when moving the cursor. > > > > The sources archive is about 21 kb and I want to share it, that > > both for you and for review. It is my first Basic program from a > > very long time ago... So, where is the best place to put that > > archive? > > > > No problem to send it to the list if it's less than... 256 KiB? I > don't know the limit anymore. OK, here it is. The alsasink is the default sink. > > Regards, > Tobi > -------------- next part -------------- A non-text attachment was scrubbed... Name: WaveGenerator-3.5.92.tar.gz Type: application/gzip Size: 21694 bytes Desc: not available URL: From mmcg29440 at ...3163... Mon Feb 10 01:46:39 2014 From: mmcg29440 at ...3163... (Marty) Date: Sun, 09 Feb 2014 19:46:39 -0500 Subject: [Gambas-user] Unable to print fields on report Message-ID: <52F8216F.9050909@...3163...> Fabien, Thanks for your reply. I tried your first suggestion. Changed autoresize and expand to true on the reportvbox. Still nothing prints. Tried your second suggestion. Added reporthbox in reportvbox. Added lblField to reporthbox with empty text content. Add lblField_Data(Index as Integer) sub also. No results. In debug the main routine ends and the data sub does not execute. The reporthbox.DataContent = 10. New code: Public Sub _new(sType As String) Dim $Query As String Dim strTest As String $Query = "SELECT tblneighborhood.* FROM tblneighborhood ORDER BY Last_Name, First_Name LIMIT 10;" hResult1 = modMain.$Con.Exec($Query) 'Report.Debug = True ReportHBox1.DataCount = hResult1.Count strTest = CStr(ReportHBox1.DataCount) End Public Sub lblField_Data(Index As Integer) hResult1.MoveTo(Index) Last.Data = hResult1!Last_Name & " " & hResult1!First_Name End The height of the reporthbox is set to 1 cm. Other suggestions? Thanks, Marty From mmcg29440 at ...3163... Mon Feb 10 02:11:11 2014 From: mmcg29440 at ...3163... (Marty) Date: Sun, 09 Feb 2014 20:11:11 -0500 Subject: [Gambas-user] Unable to print fields on report Message-ID: <52F8272F.1000300@...3163...> Did a little more debugging and found that the lblField data event does cycle through the ten records. I can see each one in the console local variables. So it must have to due with the different boxes on the report. Something prevents the displa of the data. Marty From gambas.fr at ...626... Mon Feb 10 06:29:35 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 10 Feb 2014 06:29:35 +0100 Subject: [Gambas-user] Unable to print fields on report In-Reply-To: <52F8272F.1000300@...3163...> References: <52F8272F.1000300@...3163...> Message-ID: Send me your project Le 10 f?vr. 2014 02:12, "Marty" a ?crit : > Did a little more debugging and found that the lblField data event does > cycle through the ten records. I can see each one in the console local > variables. So it must have to due with the different boxes on the > report. Something prevents the displa of the data. > > Marty > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From LouisWAdamsJr at ...3300... Mon Feb 10 07:06:08 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Sun, 9 Feb 2014 22:06:08 -0800 (PST) Subject: [Gambas-user] Accessing Project Data in a Text File In-Reply-To: <20140209161600.GD1224@...2774...> References: <1391890685423-45627.post@...3046...> <20140209161600.GD1224@...2774...> Message-ID: <1392012368717-45648.post@...3046...> > Are you talking about your project at design time in the IDE or when your > project runs, i.e. do you want to look at the file or does your program > need > it at run time? I guess the second but it's not clear to me... I added my data file (a text file) to the Data section of the project during design time because that's what I thought the Data section was for. What is the purpose of associating a data file containing numerical information with a project by putting it on the list? It sounds like I must access the data in exactly the same way whether or not the file is listed, by processing the file resident in the filing system. So why don't I just leave it out of the project? What's the point of listing it? Why list anything in the Data section of a GAMBAS project? Is the only purpose to make sure listed files are included in a source archive or an installation package for the project? By adding a tab in the IDE with the data parsed and displayed, it looks like it has the same status as the form and class tabs (that is, it contains information resident in the project). But I guess not. I'm a GAMBAS beginner, so please be patient with my questions. I'm still learning. I can't find an answer to this question in documentation or books that I've checked. In fact, I can't find anything written anywhere that explains the purpose of the Data section of a project in the GAMBAS IDE. Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Accessing-Project-Data-in-a-Text-File-tp45627p45648.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Mon Feb 10 08:15:33 2014 From: bbruen at ...2308... (Bruce) Date: Mon, 10 Feb 2014 17:45:33 +1030 Subject: [Gambas-user] Accessing Project Data in a Text File In-Reply-To: <1392012368717-45648.post@...3046...> References: <1391890685423-45627.post@...3046...> <20140209161600.GD1224@...2774...> <1392012368717-45648.post@...3046...> Message-ID: <1392016533.3459.19.camel@...2688...> On Sun, 2014-02-09 at 22:06 -0800, Louis W. Adams, Jr. wrote: > > Are you talking about your project at design time in the IDE or when your > > project runs, i.e. do you want to look at the file or does your program > > need > > it at run time? I guess the second but it's not clear to me... > > I added my data file (a text file) to the Data section of the project during > design time because that's what I thought the Data section was for. What is > the purpose of associating a data file containing numerical information with > a project by putting it on the list? It sounds like I must access the data > in exactly the same way whether or not the file is listed, by processing the > file resident in the filing system. So why don't I just leave it out of the > project? What's the point of listing it? Why list anything in the Data > section of a GAMBAS project? Is the only purpose to make sure listed files > are included in a source archive or an installation package for the project? > By adding a tab in the IDE with the data parsed and displayed, it looks like > it has the same status as the form and class tabs (that is, it contains > information resident in the project). But I guess not. > The files in the Data section are included in the gambas executable archive. When you build that via Project|Make|Executable it includes those files in the compressed "project".gambas file. They are accessed as "normal" files BUT they are referred to using relative paths. This is explained in the Language Index of the help or on the wiki at http://gambasdoc.org/help/cat/path?v3&help There are a miriad of uses for this technique, project images for buttons, static data referred to by the program etc etc. It is NOT for your program's volatile data! In fact, you cannot write to one of these files from within the program (but you can from the IDE.) One other wiki page may help you: http://gambasdoc.org/help/doc/project_structure?v3 > I'm a GAMBAS beginner, so please be patient with my questions. I'm still > learning. I can't find an answer to this question in documentation or books > that I've checked. In fact, I can't find anything written anywhere that > explains the purpose of the Data section of a project in the GAMBAS IDE. > > Lou > No problems, we all started in the same boat. Bruce From dominique.michel at ...3298... Mon Feb 10 08:58:28 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 08:58:28 +0100 Subject: [Gambas-user] Wave generator In-Reply-To: <20140210000444.57825e64@...3299...> References: <20140209141301.3429a679@...3299...> <20140209162405.GE1224@...2774...> <20140210000444.57825e64@...3299...> Message-ID: <20140210085828.3080f75c@...3299...> Le Mon, 10 Feb 2014 00:04:44 +0100, Dominique Michel a ?crit : > Le Sun, 9 Feb 2014 17:24:05 +0100, > Tobias Boege a ?crit : > > > On Sun, 09 Feb 2014, Dominique Michel wrote: > > > I made some changes to the Wave generator. > > > > > > A screen shoot is better than a long explanation: > > > http://postimg.org/image/7kbr04d31/ > > > > > > I tested it with both the alsasink and the jackaudiosink, but I > > > didn't made a menu for that, because I don't know how to test if a > > > sink exist without to load it. And when it try to load a non > > > existing sink, it just crash. Instead, it is a comment in the > > > source. > > > > > > The jack sink is the one that work best of the two I tested. It > > > give less parasitic noises than with the alsasink. > > > > > > The cursor buttons are coupled with value boxes. The frequency > > > corsor work just great, but it is a glitch with the volume cursor. > > > When entering a value in the volume value box, the cursor move too > > > much to the left. It is at the right exactly at 0 dB, but it reach > > > the left side at -40 dB, when this setting is calibrated at -60 > > > dB. And that strange because it work just fine when moving the > > > cursor. > > > > > > The sources archive is about 21 kb and I want to share it, that > > > both for you and for review. It is my first Basic program from a > > > very long time ago... So, where is the best place to put that > > > archive? > > > > > > > No problem to send it to the list if it's less than... 256 KiB? I > > don't know the limit anymore. > > OK, here it is. The alsasink is the default sink. A new version. It add a Quit function and some comments. > > > > > Regards, > > Tobi > > -------------- next part -------------- A non-text attachment was scrubbed... Name: WaveGenerator-3.5.93.tar.gz Type: application/gzip Size: 22197 bytes Desc: not available URL: From gambas.fr at ...626... Mon Feb 10 09:43:23 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 10 Feb 2014 09:43:23 +0100 Subject: [Gambas-user] Wave generator In-Reply-To: <20140210085828.3080f75c@...3299...> References: <20140209141301.3429a679@...3299...> <20140209162405.GE1224@...2774...> <20140210000444.57825e64@...3299...> <20140210085828.3080f75c@...3299...> Message-ID: Really buggy... First don't use ValueBox but simle textbox as it is just to display value (ReadOnly, align right) the i can't get it playing... $hplayer.play can't set staus... (Benoit's example run here... so) What is the need of : Public Sub QuitGWG() $hPlayer.Close FMain.Close End Just put it in Form_Close() You can call Form_Close() every where even from the menu event, it's a regular sub. Public Sub MainMenuSub1_Click() Form_Close End Public Sub Form_Close() $hPlayer.Close FMain.Close End Prefer the use of an internal variable for the current frequency value... Use the Widget at less at possible for storing data. Private $fCurFrequency as float ... Well as this think code is better than explanation sometime... this is your code reviewed, feel free to ask questions if you have because there is many things corrected. We are always happy to meet new gambas users ... And we know that learning new language concept are difficult even if gambas try to keep all as more simple as it can do. 2014-02-10 8:58 GMT+01:00 Dominique Michel : > Le Mon, 10 Feb 2014 00:04:44 +0100, > Dominique Michel a ?crit : > >> Le Sun, 9 Feb 2014 17:24:05 +0100, >> Tobias Boege a ?crit : >> >> > On Sun, 09 Feb 2014, Dominique Michel wrote: >> > > I made some changes to the Wave generator. >> > > >> > > A screen shoot is better than a long explanation: >> > > http://postimg.org/image/7kbr04d31/ >> > > >> > > I tested it with both the alsasink and the jackaudiosink, but I >> > > didn't made a menu for that, because I don't know how to test if a >> > > sink exist without to load it. And when it try to load a non >> > > existing sink, it just crash. Instead, it is a comment in the >> > > source. >> > > >> > > The jack sink is the one that work best of the two I tested. It >> > > give less parasitic noises than with the alsasink. >> > > >> > > The cursor buttons are coupled with value boxes. The frequency >> > > corsor work just great, but it is a glitch with the volume cursor. >> > > When entering a value in the volume value box, the cursor move too >> > > much to the left. It is at the right exactly at 0 dB, but it reach >> > > the left side at -40 dB, when this setting is calibrated at -60 >> > > dB. And that strange because it work just fine when moving the >> > > cursor. >> > > >> > > The sources archive is about 21 kb and I want to share it, that >> > > both for you and for review. It is my first Basic program from a >> > > very long time ago... So, where is the best place to put that >> > > archive? >> > > >> > >> > No problem to send it to the list if it's less than... 256 KiB? I >> > don't know the limit anymore. >> >> OK, here it is. The alsasink is the default sink. > > A new version. It add a Quit function and some comments. > >> >> > >> > Regards, >> > Tobi >> > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: WaveGenerator-3.5.93.tar.gz Type: application/x-gzip Size: 22102 bytes Desc: not available URL: From dominique.michel at ...3298... Mon Feb 10 10:12:37 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 10:12:37 +0100 Subject: [Gambas-user] window placement policy Message-ID: <20140210101237.3a984930@...3299...> When doing the Wave generator, I see that Gambas place the window of a program by default at the top left corner of the screen, which override the window manager placement policy. (fvwm with fvwm-crystal in my case) I see it is possible to use Me.Center, or Me.Top, Bottom, Left and Right, but is it possible to make gambas to let the window manager place the windows? With fvwm, I can add Style Gambas* !UsePPosition in my style options, but it would be better if I can do the same directly with Gambas. Dominique From dominique.michel at ...3298... Mon Feb 10 11:00:04 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 11:00:04 +0100 Subject: [Gambas-user] Wave generator In-Reply-To: References: <20140209141301.3429a679@...3299...> <20140209162405.GE1224@...2774...> <20140210000444.57825e64@...3299...> <20140210085828.3080f75c@...3299...> Message-ID: <20140210110004.7f031fb3@...3299...> Le Mon, 10 Feb 2014 09:43:23 +0100, Fabien Bodard a ?crit : > Really buggy... > > First don't use ValueBox but simle textbox as it is just to display > value (ReadOnly, align right) If you enter a value and click OK, that value is applied. That is what I want to do. I first try without the OK button, but the result was erratic and uncontrollable. > > the i can't get it playing... $hplayer.play can't set staus... > (Benoit's example run here... so) Strange, it run fine here, both with the alsasink and the jackaudiosink. I will compare the 2 versions. > > > What is the need of : > Public Sub QuitGWG() > > $hPlayer.Close > FMain.Close > End > > > Just put it in Form_Close() > > You can call Form_Close() every where even from the menu event, it's a > regular sub. Just because I didn't know it before. > > > Public Sub MainMenuSub1_Click() > > Form_Close > > End > > Public Sub Form_Close() > > $hPlayer.Close > FMain.Close > > End > > Prefer the use of an internal variable for the current frequency > value... Use the Widget at less at possible for storing data. OK, I will change that. With the actual code, the precision of the frequency changes with the buttons is not as great than the ones I get with bc into a shell script (used to control alsaplayer and mplayer speed). I am sure using a float will improve that. > > Private $fCurFrequency as float > > > ... Well as this think code is better than explanation sometime... > this is your code reviewed, feel free to ask questions if you have > because there is many things corrected. You made huge change to the menu. I will take a look at it later. > > We are always happy to meet new gambas users ... And we know that > learning new language concept are difficult even if gambas try to keep > all as more simple as it can do. I know. Gambas is not that hard, but it is complex. This is the same issue with fvwm, which is not only a wm but also a tool-kit for the Xlib at the same time. And I think that like with fvwm, each piece of Gambas have its place, and it will take me some time to get the big picture. Thank you for the review, Dominique > > > > > > 2014-02-10 8:58 GMT+01:00 Dominique Michel > : > > Le Mon, 10 Feb 2014 00:04:44 +0100, > > Dominique Michel a ?crit : > > > >> Le Sun, 9 Feb 2014 17:24:05 +0100, > >> Tobias Boege a ?crit : > >> > >> > On Sun, 09 Feb 2014, Dominique Michel wrote: > >> > > I made some changes to the Wave generator. > >> > > > >> > > A screen shoot is better than a long explanation: > >> > > http://postimg.org/image/7kbr04d31/ > >> > > > >> > > I tested it with both the alsasink and the jackaudiosink, but I > >> > > didn't made a menu for that, because I don't know how to test > >> > > if a sink exist without to load it. And when it try to load a > >> > > non existing sink, it just crash. Instead, it is a comment in > >> > > the source. > >> > > > >> > > The jack sink is the one that work best of the two I tested. It > >> > > give less parasitic noises than with the alsasink. > >> > > > >> > > The cursor buttons are coupled with value boxes. The frequency > >> > > corsor work just great, but it is a glitch with the volume > >> > > cursor. When entering a value in the volume value box, the > >> > > cursor move too much to the left. It is at the right exactly > >> > > at 0 dB, but it reach the left side at -40 dB, when this > >> > > setting is calibrated at -60 dB. And that strange because it > >> > > work just fine when moving the cursor. > >> > > > >> > > The sources archive is about 21 kb and I want to share it, that > >> > > both for you and for review. It is my first Basic program from > >> > > a very long time ago... So, where is the best place to put that > >> > > archive? > >> > > > >> > > >> > No problem to send it to the list if it's less than... 256 KiB? I > >> > don't know the limit anymore. > >> > >> OK, here it is. The alsasink is the default sink. > > > > A new version. It add a Quit function and some comments. > > > >> > >> > > >> > Regards, > >> > Tobi > >> > > > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common > > Pitfalls. Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From johny.provoost at ...27... Mon Feb 10 11:07:34 2014 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 10 Feb 2014 11:07:34 +0100 Subject: [Gambas-user] window placement policy In-Reply-To: <20140210101237.3a984930@...3299...> References: <20140210101237.3a984930@...3299...> Message-ID: <52F8A4E6.3040305@...27...> Dominique, Look at gb.settings. With 'settings.write' you can save the position of your window, with 'settings read' you can read it back. You can do a lot more with settings: [1]http://gambasdoc.org/help/comp/gb.settings/settings?v3&view op 10-02-14 10:12, Dominique Michel schreef: When doing the Wave generator, I see that Gambas place the window of a program by default at the top left corner of the screen, which override the window manager placement policy. (fvwm with fvwm-crystal in my case) I see it is possible to use Me.Center, or Me.Top, Bottom, Left and Right, but is it possible to make gambas to let the window manager place the windows? With fvwm, I can add Style Gambas* !UsePPosition in my style options, but it would be better if I can do the same directly with Gambas. Dominique ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. [2]http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user -- Vriendelijke Groeten Johny Provoost mailto: [5]johny.provoost at ...27... mailto: [6]johny.provoost at ...626... Website: [7]http://www.johnyprovoost.net References 1. http://gambasdoc.org/help/comp/gb.settings/settings?v3&view 2. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user 5. mailto:johny.provoost at ...27... 6. mailto:johny.provoost at ...626... 7. http://www.johnyprovoost.net/ From taboege at ...626... Mon Feb 10 11:21:25 2014 From: taboege at ...626... (Tobias Boege) Date: Mon, 10 Feb 2014 11:21:25 +0100 Subject: [Gambas-user] window placement policy In-Reply-To: <20140210101237.3a984930@...3299...> References: <20140210101237.3a984930@...3299...> Message-ID: <20140210102125.GA673@...2774...> On Mon, 10 Feb 2014, Dominique Michel wrote: > When doing the Wave generator, I see that Gambas place the window of a > program by default at the top left corner of the screen, which override > the window manager placement policy. (fvwm with fvwm-crystal in my case) > > I see it is possible to use Me.Center, or Me.Top, Bottom, Left and > Right, but is it possible to make gambas to let the window manager > place the windows? > > With fvwm, I can add > > Style Gambas* !UsePPosition > > in my style options, but it would be better if I can do the same > directly with Gambas. > > Dominique > I don't think Gambas provides any interface to your wm's settings. But if you can get that information via shell, you can place your window manually... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Mon Feb 10 11:37:56 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 10 Feb 2014 11:37:56 +0100 Subject: [Gambas-user] Wave generator In-Reply-To: <20140210110004.7f031fb3@...3299...> References: <20140209141301.3429a679@...3299...> <20140209162405.GE1224@...2774...> <20140210000444.57825e64@...3299...> <20140210085828.3080f75c@...3299...> <20140210110004.7f031fb3@...3299...> Message-ID: 2014-02-10 11:00 GMT+01:00 Dominique Michel : > Le Mon, 10 Feb 2014 09:43:23 +0100, > Fabien Bodard a ?crit : > >> Really buggy... >> >> First don't use ValueBox but simle textbox as it is just to display >> value (ReadOnly, align right) > > If you enter a value and click OK, that value is applied. That is > what I want to do. I first try without the OK button, but the result > was erratic and uncontrollable. > >> >> the i can't get it playing... $hplayer.play can't set staus... >> (Benoit's example run here... so) > > Strange, it run fine here, both with the alsasink and the > jackaudiosink. I will compare the 2 versions. this was because i've not jack installed on my box ... like many people. >> >> >> What is the need of : >> Public Sub QuitGWG() >> >> $hPlayer.Close >> FMain.Close >> End >> >> >> Just put it in Form_Close() >> >> You can call Form_Close() every where even from the menu event, it's a >> regular sub. > > Just because I didn't know it before. > >> >> >> Public Sub MainMenuSub1_Click() >> >> Form_Close >> >> End >> >> Public Sub Form_Close() >> >> $hPlayer.Close >> FMain.Close >> >> End >> >> Prefer the use of an internal variable for the current frequency >> value... Use the Widget at less at possible for storing data. > > OK, I will change that. With the actual code, the precision of the > frequency changes with the buttons is not as great than the ones I get > with bc into a shell script (used to control alsaplayer and mplayer > speed). I am sure using a float will improve that. > >> >> Private $fCurFrequency as float >> >> >> ... Well as this think code is better than explanation sometime... >> this is your code reviewed, feel free to ask questions if you have >> because there is many things corrected. > > You made huge change to the menu. I will take a look at it later. > >> >> We are always happy to meet new gambas users ... And we know that >> learning new language concept are difficult even if gambas try to keep >> all as more simple as it can do. > > I know. Gambas is not that hard, but it is complex. This is the same > issue with fvwm, which is not only a wm but also a tool-kit for the > Xlib at the same time. And I think that like with fvwm, each piece of > Gambas have its place, and it will take me some time to get the big > picture. It's true :-)... Thats why since many year i use only one language ... but trys to know him better as i can. And also because it is sufficient for my needs and i have not so much time. > > Thank you for the review, > Dominique > >> >> >> >> >> >> 2014-02-10 8:58 GMT+01:00 Dominique Michel >> : >> > Le Mon, 10 Feb 2014 00:04:44 +0100, >> > Dominique Michel a ?crit : >> > >> >> Le Sun, 9 Feb 2014 17:24:05 +0100, >> >> Tobias Boege a ?crit : >> >> >> >> > On Sun, 09 Feb 2014, Dominique Michel wrote: >> >> > > I made some changes to the Wave generator. >> >> > > >> >> > > A screen shoot is better than a long explanation: >> >> > > http://postimg.org/image/7kbr04d31/ >> >> > > >> >> > > I tested it with both the alsasink and the jackaudiosink, but I >> >> > > didn't made a menu for that, because I don't know how to test >> >> > > if a sink exist without to load it. And when it try to load a >> >> > > non existing sink, it just crash. Instead, it is a comment in >> >> > > the source. >> >> > > >> >> > > The jack sink is the one that work best of the two I tested. It >> >> > > give less parasitic noises than with the alsasink. >> >> > > >> >> > > The cursor buttons are coupled with value boxes. The frequency >> >> > > corsor work just great, but it is a glitch with the volume >> >> > > cursor. When entering a value in the volume value box, the >> >> > > cursor move too much to the left. It is at the right exactly >> >> > > at 0 dB, but it reach the left side at -40 dB, when this >> >> > > setting is calibrated at -60 dB. And that strange because it >> >> > > work just fine when moving the cursor. >> >> > > >> >> > > The sources archive is about 21 kb and I want to share it, that >> >> > > both for you and for review. It is my first Basic program from >> >> > > a very long time ago... So, where is the best place to put that >> >> > > archive? >> >> > > >> >> > >> >> > No problem to send it to the list if it's less than... 256 KiB? I >> >> > don't know the limit anymore. >> >> >> >> OK, here it is. The alsasink is the default sink. >> > >> > A new version. It add a Quit function and some comments. >> > >> >> >> >> > >> >> > Regards, >> >> > Tobi >> >> > >> > >> > ------------------------------------------------------------------------------ >> > Managing the Performance of Cloud-Based Applications >> > Take advantage of what the Cloud has to offer - Avoid Common >> > Pitfalls. Read the Whitepaper. >> > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bbruen at ...2308... Mon Feb 10 11:44:57 2014 From: bbruen at ...2308... (Bruce) Date: Mon, 10 Feb 2014 21:14:57 +1030 Subject: [Gambas-user] window placement policy In-Reply-To: <52F8A4E6.3040305@...27...> References: <20140210101237.3a984930@...3299...> <52F8A4E6.3040305@...27...> Message-ID: <1392029097.3459.24.camel@...2688...> On Mon, 2014-02-10 at 11:07 +0100, Johny Provoost wrote: > Dominique, > Look at gb.settings. With 'settings.write' you can save the position of > your window, with 'settings read' you can read it back. > You can do a lot more with settings: > [1]http://gambasdoc.org/help/comp/gb.settings/settings?v3&view 100% right! Every form we use has: Public Sub Form_Open() Settings.Read(Me) etc.. End Public Sub Form_Close() Settings_Write(Me) etc.. End in it. gb.settings is so easy! And Like Johny says, you can do a lot more. Bruce From dominique.michel at ...3298... Mon Feb 10 13:57:30 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 13:57:30 +0100 Subject: [Gambas-user] window placement policy In-Reply-To: <1392029097.3459.24.camel@...2688...> References: <20140210101237.3a984930@...3299...> <52F8A4E6.3040305@...27...> <1392029097.3459.24.camel@...2688...> Message-ID: <20140210135730.420b5707@...3299...> Le Mon, 10 Feb 2014 21:14:57 +1030, Bruce a ?crit : > On Mon, 2014-02-10 at 11:07 +0100, Johny Provoost wrote: > > Dominique, > > Look at gb.settings. With 'settings.write' you can save the > > position of your window, with 'settings read' you can read it back. > > You can do a lot more with settings: > > [1]http://gambasdoc.org/help/comp/gb.settings/settings?v3&view > > 100% right! Every form we use has: > > Public Sub Form_Open() > Settings.Read(Me) > etc.. > End > > Public Sub Form_Close() > Settings_Write(Me) > etc.. > End > > in it. gb.settings is so easy! And Like Johny says, you can do a lot > more. > > Bruce Thanks, I will take a look at it when I get some time. Dominique > > > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dominique.michel at ...3298... Mon Feb 10 14:16:28 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 14:16:28 +0100 Subject: [Gambas-user] window placement policy In-Reply-To: <20140210102125.GA673@...2774...> References: <20140210101237.3a984930@...3299...> <20140210102125.GA673@...2774...> Message-ID: <20140210141628.6f15f4d4@...3299...> Le Mon, 10 Feb 2014 11:21:25 +0100, Tobias Boege a ?crit : > On Mon, 10 Feb 2014, Dominique Michel wrote: > > When doing the Wave generator, I see that Gambas place the window > > of a program by default at the top left corner of the screen, which > > override the window manager placement policy. (fvwm with > > fvwm-crystal in my case) > > > > I see it is possible to use Me.Center, or Me.Top, Bottom, Left and > > Right, but is it possible to make gambas to let the window manager > > place the windows? > > > > With fvwm, I can add > > > > Style Gambas* !UsePPosition > > > > in my style options, but it would be better if I can do the same > > directly with Gambas. > > > > Dominique > > > > I don't think Gambas provides any interface to your wm's settings. > But if you can get that information via shell, you can place your > window manually... > > Regards, > Tobi It don't need to. All I want is that Gambas doesn't manage at all the window placement, and let the wm do its job. Fvwm doesn't have 3D effects and such, but it just do a wonderful job at managing things like windows placement or focus policies, and I just want that Gambas let fvwm do its job. For that, all that is needed is that Gambas doesn't manage the placement at all if I don't want it. http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#idp6374024 Quote: Rationale: Window managers can often perform better placement (that may be even configurable) for windows than the application. However at the time of writing this it is problematic for Window managers to decide when to use them because many applications abuse positioning flags and/or provide unnecessary default positions. EndQuote As I think many Gambas applications force the windows placement, my Gambas* fvwm style will stay for ever in my fvwm configuration. But it doesn't work when launching a program with F5 from the IDE. It would be great to have an option to disable this placement policy at least in the IDE. Regards, Dominique > From mckaygerhard at ...626... Mon Feb 10 14:23:45 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 10 Feb 2014 08:53:45 -0430 Subject: [Gambas-user] MessageBox: probable bug with GTK - GUI ? Message-ID: From: Beno?t Minisini > Subject: Re: [Gambas-user] MessageBox: probable bug with GTK - GUI ? > Fixed in revision #6138. > thanks benoit i hope that this patch sourceforge.net/p/gambas/code/6138 can work with gtk 2.18 From mckaygerhard at ...626... Mon Feb 10 14:34:37 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 10 Feb 2014 09:04:37 -0430 Subject: [Gambas-user] how to customize report print size Message-ID: From: Fabien Bodard > Send me a small project that show the problem >> From: Fabien Bodard >> > Report.Paper = Printer.Custom >> > >> > Report.Width="10.5cm" >> > Report.Height="15cm" >> > >> dont work, said "null objetc" >> attached and sending also to personal mail with Bcc -------------- next part -------------- A non-text attachment was scrubbed... Name: report-example-custom-print-0.0.1.tar.gz Type: application/x-gzip Size: 5803 bytes Desc: not available URL: From mmcg29440 at ...3163... Mon Feb 10 15:25:17 2014 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Mon, 10 Feb 2014 09:25:17 -0500 Subject: [Gambas-user] Unable to print fields in report Message-ID: Fabien, Appears as though I cannot attach the Gambas project directory. Too many files to attach. It will not just attach the directory. If there is a way to get it to you, please let me know. I've taken it out of the more complex application so that we can deal with it alone. Also the data is confidential. I have removed the login and password data as well as the database name. Any simple MySQL data table with about ten records will do. This time I set every control to autoresize and expand including the report. Now it works properly. It displays ten names. The vertical spacing is not as I would want it. It's much too much. Would like to see each line close to the one above. But, for now this is progress. Thanks for your continued help. Marty From LouisWAdamsJr at ...3300... Mon Feb 10 18:55:24 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Mon, 10 Feb 2014 09:55:24 -0800 (PST) Subject: [Gambas-user] Accessing Project Data in a Text File In-Reply-To: <1392016533.3459.19.camel@...2688...> References: <1391890685423-45627.post@...3046...> <20140209161600.GD1224@...2774...> <1392012368717-45648.post@...3046...> <1392016533.3459.19.camel@...2688...> Message-ID: <1392054924728-45663.post@...3046...> > It is NOT for your program's volatile data! In fact, you cannot write to > one of these files from within the program (but you can from the IDE.) The links you suggested were helpful, thanks. The data in my file is always used when the program is run, program constants you could say. I placed the file in the project directory, so it wasn't necessary to specify a path to access it. Most "data sections" in other programming languages that I've used (e.g., assembler) contain data that reside in memory as part of the executable, and have addresses that make the data available to the running program. I just wanted to make sure that I wasn't doing things the hard way by processing a file containing information that was already part of the (running) program. I've finished the program, and it works great -- data file access and all. The program also creates files, but that's a different matter. Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Accessing-Project-Data-in-a-Text-File-tp45627p45663.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Mon Feb 10 21:25:37 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 10 Feb 2014 21:25:37 +0100 Subject: [Gambas-user] Unable to print fields in report In-Reply-To: References: Message-ID: to send me a project : Project>generate>source archive 2014-02-10 15:25 GMT+01:00 Marty McGlensey : > Fabien, > > > > Appears as though I cannot attach the Gambas project directory. Too many > files to attach. It will not just attach the directory. If there is a way to > get it to you, please let me know. I've taken it out of the more complex > application so that we can deal with it alone. Also the data is > confidential. I have removed the login and password data as well as the > database name. Any simple MySQL data table with about ten records will do. > This time I set every control to autoresize and expand including the report. > Now it works properly. It displays ten names. The vertical spacing is not as > I would want it. It's much too much. Would like to see each line close to > the one above. But, for now this is progress. > > > > Thanks for your continued help. > > > > Marty > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From dominique.michel at ...3298... Mon Feb 10 22:31:07 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Mon, 10 Feb 2014 22:31:07 +0100 Subject: [Gambas-user] window placement policy In-Reply-To: <20140210141628.6f15f4d4@...3299...> References: <20140210101237.3a984930@...3299...> <20140210102125.GA673@...2774...> <20140210141628.6f15f4d4@...3299...> Message-ID: <20140210223107.300b2d11@...3299...> Le Mon, 10 Feb 2014 14:16:28 +0100, Dominique Michel a ?crit : > Le Mon, 10 Feb 2014 11:21:25 +0100, > Tobias Boege a ?crit : > > > On Mon, 10 Feb 2014, Dominique Michel wrote: > > > When doing the Wave generator, I see that Gambas place the window > > > of a program by default at the top left corner of the screen, > > > which override the window manager placement policy. (fvwm with > > > fvwm-crystal in my case) > > > > > > I see it is possible to use Me.Center, or Me.Top, Bottom, Left and > > > Right, but is it possible to make gambas to let the window manager > > > place the windows? > > > > > > With fvwm, I can add > > > > > > Style Gambas* !UsePPosition > > > > > > in my style options, but it would be better if I can do the same > > > directly with Gambas. > > > > > > Dominique > > > > > > > I don't think Gambas provides any interface to your wm's settings. > > But if you can get that information via shell, you can place your > > window manually... > > > > Regards, > > Tobi > > It don't need to. All I want is that Gambas doesn't manage at all the > window placement, and let the wm do its job. Fvwm doesn't have 3D > effects and such, but it just do a wonderful job at managing things > like windows placement or focus policies, and I just want that Gambas > let fvwm do its job. For that, all that is needed is that Gambas > doesn't manage the placement at all if I don't want it. > > http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#idp6374024 > > Quote: > Rationale: Window managers can often perform better placement (that > may be even configurable) for windows than the application. However > at the time of writing this it is problematic for Window managers to > decide when to use them because many applications abuse positioning > flags and/or provide unnecessary default positions. > EndQuote > > As I think many Gambas applications force the windows placement, my > Gambas* fvwm style will stay for ever in my fvwm configuration. But it > doesn't work when launching a program with F5 from the IDE. It would > be great to have an option to disable this placement policy at least > in the IDE. With xprop, I get the following when the Wave Generator is launched from the menu or the console: ... WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified location: 0, 0 ... and the following when it is launched via F5 in the IDE: ... WM_NORMAL_HINTS(WM_SIZE_HINTS): user specified location: 0, 0 program specified location: 0, 0 ... That imply this is gambas and the gambas applications that force the position. They force the program specified location, and the IDE or if Settings.Read(Me) is in use in a gambas program, they also force the user specified location. And more, by using such a default position, they don't even respect the FWMH working area, and overlap my desktop menu bar at the top of the screen. The FWMH working area is what is left of the screen size when things like pagers or desktop buttons and menus are done reserving space. Not all desktop buttons and menus reserve space, in fvwm-crystal, this is done on a per recipe (theme) basis. A secondary issue with Settings.Read(Me) and the user specified location is when launching 2 instances of the same application: they will completely overlap each other. Anyway, a second fvwm style option solved that issue for me: Style Gambas* !UseUSPosition Style Gambas* !UsePPosition and for fvwm-crystal: http://sourceforge.net/p/fvwm-crystal/code/600/tree//fvwm/components/styles/Applications?diff=50eecb63e88f3d24b3d97ee6:599 Regards, Dominique > > Regards, > Dominique > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nigelverity at ...67... Tue Feb 11 16:04:14 2014 From: nigelverity at ...67... (Nigel Verity) Date: Tue, 11 Feb 2014 15:04:14 +0000 Subject: [Gambas-user] TextArea Control - Tab Key Message-ID: Hi I have some text area controls which I would like to behave like text boxes, i.e hitting the tab key moves the cursor to the next control. I can write some long-hand code to monitor for chr(9) on the "keypress" event, but is there a tidier way of achieving this - an obscure property perhaps? Thanks Nige From gambas at ...1... Tue Feb 11 16:14:43 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 11 Feb 2014 16:14:43 +0100 Subject: [Gambas-user] TextArea Control - Tab Key In-Reply-To: References: Message-ID: <52FA3E63.2080506@...1...> Le 11/02/2014 16:04, Nigel Verity a ?crit : > > > > Hi > > I have some text area controls which I would like to behave like text > boxes, i.e hitting the tab key moves the cursor to the next control. > > I can write some long-hand code to monitor for chr(9) on the > "keypress" event, but is there a tidier way of achieving this - an > obscure property perhaps? > > Thanks > > Nige You should create your own MyTextArea control that inherits TextArea, and that uses an Observer to catch the tab key, move to the next control, and cancel its default behaviour. Regards, -- Beno?t Minisini From mmcg29440 at ...3163... Tue Feb 11 17:38:56 2014 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Tue, 11 Feb 2014 11:38:56 -0500 Subject: [Gambas-user] Continued difficulties using gb.report Message-ID: Hi, A few posts ago I indicated that I was just starting to use gb.report. I wrote a basic report to show ten names. I got it working with help from Fabien. I could not send him the project as my email client would not attach that many files. Well I know that I need a ReportHBox, a ReportVBox and a Reportfield on the report, I do not understand why these components are needed. It would be of help for the documentation to explain how to build a report from scratch. Now that the report runs there is another quirk. The ten names are spread out down the page with about one inch space between them. Not what I would want on a report. I've searched the net and the docs but I can find how to set the line spacing. I have also looked at the examples. Since they are read only I cannot see their properties. I have used Basic and VB for years and therefore am familiar with Gambas. I think it is great. Many of the DB functions, complicated in VB, are simple. Thank you. I guess what I'm asking for is some basic guidance as to how to code a report and why I'm doing it that way. If somebody in the group wants to mentor; you can contact me via e-mail directly or via the list. The help will be appreciated. Thanks, Marty From Karl.Reinl at ...2345... Tue Feb 11 19:29:31 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 11 Feb 2014 19:29:31 +0100 Subject: [Gambas-user] Continued difficulties using gb.report In-Reply-To: References: Message-ID: <1392143371.2552.14.camel@...40...> Am Dienstag, den 11.02.2014, 11:38 -0500 schrieb Marty McGlensey: > Hi, > > > > A few posts ago I indicated that I was just starting to use gb.report. I > wrote a basic report to show ten names. I got it working with help from > Fabien. I could not send him the project as my email client would not attach > that many files. The gambas IDE provides an archive function, just press Ctrl+Alt+A, very nice to make quick project backups. > Well I know that I need a ReportHBox, a ReportVBox and a > Reportfield on the report, I do not understand why these components are > needed. It would be of help for the documentation to explain how to build a > report from scratch. Now that the report runs there is another quirk. The > ten names are spread out down the page with about one inch space between > them. Not what I would want on a report. I've searched the net and the docs > but I can find how to set the line spacing. I have also looked at the > examples. Since they are read only I cannot see their properties. The gambas IDE provides a 'Save as..' function, just press Ctrl+Alt +Shift+S, a quick way to fork the project. And the the code is yours. > > I have used Basic and VB for years and therefore am familiar with Gambas. I > think it is great. Many of the DB functions, complicated in VB, are simple. > Thank you. I guess what I'm asking for is some basic guidance as to how to > code a report and why I'm doing it that way. If somebody in the group wants > to mentor; you can contact me via e-mail directly or via the list. The help > will be appreciated. > > > > Thanks, > > Marty Salut Marty, sorry, but for gb.report I can't help, never used it. But Fabien, the author of gb.report is best Adresse here in the list. -- Amicalement Charlie From taboege at ...626... Tue Feb 11 21:15:10 2014 From: taboege at ...626... (Tobias Boege) Date: Tue, 11 Feb 2014 21:15:10 +0100 Subject: [Gambas-user] gb.gsl: pseudo-complex Vectors make different cross product Message-ID: <20140211201510.GC650@...2774...> Hi Benoit, a strange thing this time. Using gb.gsl, we noticed that there is a way to compute the cross product of two Vector objects in "complex" mode - but without any complex numbers in them - which yields a different result than other methods to compute it. Attached is a project that shows what I mean. Note that everything is fine if we don't force the Vector to be complex and also everything is fine if we don't insist on computing the components in separate Float variables, as said in the comments. Oh, and for the record, the Y component is wrong. It should be -18 every time but using that special method above, we get +18. The vectors are immediately taken from an application, seemingly nothing special about them. I also noticed that wrapping each product of components into a CFloat() call yields the correct result again... I tried that because even the debugger didn't seem to get the type of hA[iIndex] figured out... What may be going on there? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: vector-issue-0.0.1.tar.gz Type: application/octet-stream Size: 5068 bytes Desc: not available URL: From gambas.fr at ...626... Tue Feb 11 22:00:51 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 11 Feb 2014 22:00:51 +0100 Subject: [Gambas-user] Continued difficulties using gb.report In-Reply-To: References: Message-ID: I will do :-)... Just one or t is not conventinalwo thingsto add and then i begin to do many tutos. Yes the way to do reports is not usual. You must to understant the gambas form layout to understand how report work ... plus some specific thing to page layout 2014-02-11 17:38 GMT+01:00 Marty McGlensey : > Hi, > > > > A few posts ago I indicated that I was just starting to use gb.report. I > wrote a basic report to show ten names. I got it working with help from > Fabien. I could not send him the project as my email client would not attach > that many files. Well I know that I need a ReportHBox, a ReportVBox and a > Reportfield on the report, I do not understand why these components are > needed. It would be of help for the documentation to explain how to build a > report from scratch. Now that the report runs there is another quirk. The > ten names are spread out down the page with about one inch space between > them. Not what I would want on a report. I've searched the net and the docs > but I can find how to set the line spacing. I have also looked at the > examples. Since they are read only I cannot see their properties. > > > > I have used Basic and VB for years and therefore am familiar with Gambas. I > think it is great. Many of the DB functions, complicated in VB, are simple. > Thank you. I guess what I'm asking for is some basic guidance as to how to > code a report and why I'm doing it that way. If somebody in the group wants > to mentor; you can contact me via e-mail directly or via the list. The help > will be appreciated. > > > > Thanks, > > Marty > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Tue Feb 11 23:44:21 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 11 Feb 2014 23:44:21 +0100 Subject: [Gambas-user] _Get special sub Message-ID: Why can't we declare two _Get function in a class ? One in static the other in instance ? STATIC PUBLIC FUNCTION _Get[sValue as string] as MySelf hMySelf as new MySelf return MySelf END PUBLIC FUNCTION _Get[Index] as _MySubClass return aSubClass[index] END Logically i must be possible ... -- Fabien Bodard From gambas at ...1... Tue Feb 11 23:59:19 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 11 Feb 2014 23:59:19 +0100 Subject: [Gambas-user] _Get special sub In-Reply-To: References: Message-ID: <52FAAB47.1080101@...1...> Le 11/02/2014 23:44, Fabien Bodard a ?crit : > Why can't we declare two _Get function in a class ? > > One in static the other in instance ? > > > > STATIC PUBLIC FUNCTION _Get[sValue as string] as MySelf > hMySelf as new MySelf > > return MySelf > END > > > PUBLIC FUNCTION _Get[Index] as _MySubClass > return aSubClass[index] > END > > Logically i must be possible ... > > -- > Fabien Bodard > You can't, you have two methods with the same name. -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Feb 12 01:37:39 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 12 Feb 2014 02:37:39 +0200 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 Message-ID: See attached pic. No further error messages, or warnings. Gambas 3 rev 6147 @ Xubuntu 13.10 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.jpg Type: image/jpeg Size: 75413 bytes Desc: not available URL: From gambas at ...1... Wed Feb 12 01:43:55 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 12 Feb 2014 01:43:55 +0100 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 In-Reply-To: References: Message-ID: <52FAC3CB.4040306@...1...> Le 12/02/2014 01:37, Jussi Lahtinen a ?crit : > See attached pic. No further error messages, or warnings. > > Gambas 3 rev 6147 @ Xubuntu 13.10 64bit > > Jussi > Replace "alsasink" with "autoaudiosink". I will commit that fix later. -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Feb 12 01:57:10 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 12 Feb 2014 02:57:10 +0200 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 In-Reply-To: <52FAC3CB.4040306@...1...> References: <52FAC3CB.4040306@...1...> Message-ID: OK, now it works. I'm getting these messages: Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started I really don't have jack installed, why it looks for it? Jussi On Wed, Feb 12, 2014 at 2:43 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 12/02/2014 01:37, Jussi Lahtinen a ?crit : > > See attached pic. No further error messages, or warnings. > > > > Gambas 3 rev 6147 @ Xubuntu 13.10 64bit > > > > Jussi > > > > Replace "alsasink" with "autoaudiosink". I will commit that fix later. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dominique.michel at ...3298... Wed Feb 12 07:12:52 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Wed, 12 Feb 2014 07:12:52 +0100 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 In-Reply-To: References: <52FAC3CB.4040306@...1...> Message-ID: <20140212071252.41cf9085@...3299...> Le Wed, 12 Feb 2014 02:57:10 +0200, Jussi Lahtinen a ?crit : > OK, now it works. I'm getting these messages: > Cannot connect to server socket err = No such file or directory > Cannot connect to server request channel > jack server is not running or cannot be started > > I really don't have jack installed, why it looks for it? > > > Jussi This have nothing to do with Gambas and all with Gstreamer. Here I have jack running all the time, and if I use the autoaudiosink, gstreamer connect to alsa... Dominique > > > On Wed, Feb 12, 2014 at 2:43 AM, Beno?t Minisini < > gambas at ...1...> wrote: > > > Le 12/02/2014 01:37, Jussi Lahtinen a ?crit : > > > See attached pic. No further error messages, or warnings. > > > > > > Gambas 3 rev 6147 @ Xubuntu 13.10 64bit > > > > > > Jussi > > > > > > > Replace "alsasink" with "autoaudiosink". I will commit that fix > > later. > > > > -- > > Beno?t Minisini > > > > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Feb 12 11:21:36 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 12 Feb 2014 11:21:36 +0100 Subject: [Gambas-user] _Get special sub In-Reply-To: <52FAAB47.1080101@...1...> References: <52FAAB47.1080101@...1...> Message-ID: Yes but... I want to implement a ReportBoxShadow for the ide the need is : MyReportObject.BoxShadow = ReportBoxShadow["define"] If i think for future ... boxshadow is an array So i need to access each shadow this way : MyReportObject.BoxShadow[0].XOffset = For me ... yes there is the same name, but it is two different context of access. I imagine Static part as a concatenate module in a class... You can't use dynamic object because they can't exist in an external module ... as well as in this static part. So Why this restriction ?. It is not a usual use but i think it must be possible... at less for the special subs (_get, _put, _call, _next) For the time i will forget the array ... but think about it :-) 2014-02-11 23:59 GMT+01:00 Beno?t Minisini : > Le 11/02/2014 23:44, Fabien Bodard a ?crit : >> Why can't we declare two _Get function in a class ? >> >> One in static the other in instance ? >> >> >> >> STATIC PUBLIC FUNCTION _Get[sValue as string] as MySelf >> hMySelf as new MySelf >> >> return MySelf >> END >> >> >> PUBLIC FUNCTION _Get[Index] as _MySubClass >> return aSubClass[index] >> END >> >> Logically i must be possible ... >> >> -- >> Fabien Bodard >> > > You can't, you have two methods with the same name. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Wed Feb 12 11:24:32 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 12 Feb 2014 11:24:32 +0100 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 In-Reply-To: <20140212071252.41cf9085@...3299...> References: <52FAC3CB.4040306@...1...> <20140212071252.41cf9085@...3299...> Message-ID: 2014-02-12 7:12 GMT+01:00 Dominique Michel : > Le Wed, 12 Feb 2014 02:57:10 +0200, > Jussi Lahtinen a ?crit : > >> OK, now it works. I'm getting these messages: >> Cannot connect to server socket err = No such file or directory >> Cannot connect to server request channel >> jack server is not running or cannot be started >> >> I really don't have jack installed, why it looks for it? >> >> >> Jussi > > This have nothing to do with Gambas and all with Gstreamer. Here I have > jack running all the time, and if I use the autoaudiosink, gstreamer > connect to alsa... But you need to this for anybody... it is an example ... it is not only for your use. > > Dominique > >> >> >> On Wed, Feb 12, 2014 at 2:43 AM, Beno?t Minisini < >> gambas at ...1...> wrote: >> >> > Le 12/02/2014 01:37, Jussi Lahtinen a ?crit : >> > > See attached pic. No further error messages, or warnings. >> > > >> > > Gambas 3 rev 6147 @ Xubuntu 13.10 64bit >> > > >> > > Jussi >> > > >> > >> > Replace "alsasink" with "autoaudiosink". I will commit that fix >> > later. >> > >> > -- >> > Beno?t Minisini >> > >> > >> > ------------------------------------------------------------------------------ >> > Android apps run on BlackBerry 10 >> > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> > Now with support for Jelly Bean, Bluetooth, Mapview and more. >> > Get your Android app in front of a whole new audience. Start now. >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------------------------ >> Android apps run on BlackBerry 10 >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> Now with support for Jelly Bean, Bluetooth, Mapview and more. >> Get your Android app in front of a whole new audience. Start now. >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Wed Feb 12 15:37:34 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 12 Feb 2014 16:37:34 +0200 Subject: [Gambas-user] _Get special sub In-Reply-To: References: <52FAAB47.1080101@...1...> Message-ID: Why not just simply: STATIC PUBLIC FUNCTION CreateNew[sValue as string] as MySelf hMySelf as new MySelf return MySelf END Jussi On Wed, Feb 12, 2014 at 12:21 PM, Fabien Bodard wrote: > Yes but... > > > I want to implement a ReportBoxShadow > > for the ide the need is : > > MyReportObject.BoxShadow = ReportBoxShadow["define"] > > If i think for future ... boxshadow is an array > > So i need to access each shadow this way : > > MyReportObject.BoxShadow[0].XOffset = > > For me ... yes there is the same name, but it is two different context > of access. I imagine Static part as a concatenate module in a class... > You can't use dynamic object because they can't exist in an external > module ... as well as in this static part. So Why this restriction ?. > > It is not a usual use but i think it must be possible... at less for > the special subs (_get, _put, _call, _next) > > > For the time i will forget the array ... but think about it :-) > > > > > > 2014-02-11 23:59 GMT+01:00 Beno?t Minisini : > > Le 11/02/2014 23:44, Fabien Bodard a ?crit : > >> Why can't we declare two _Get function in a class ? > >> > >> One in static the other in instance ? > >> > >> > >> > >> STATIC PUBLIC FUNCTION _Get[sValue as string] as MySelf > >> hMySelf as new MySelf > >> > >> return MySelf > >> END > >> > >> > >> PUBLIC FUNCTION _Get[Index] as _MySubClass > >> return aSubClass[index] > >> END > >> > >> Logically i must be possible ... > >> > >> -- > >> Fabien Bodard > >> > > > > You can't, you have two methods with the same name. > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Feb 12 16:37:23 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 12 Feb 2014 16:37:23 +0100 Subject: [Gambas-user] _Get special sub In-Reply-To: References: <52FAAB47.1080101@...1...> Message-ID: Well because of the Gambas form loader working way. in the form file for example you have : Font = Arial,12,Bold the query become : object.font = Font["Arial,12,Bold"] No choice :-) 2014-02-12 15:37 GMT+01:00 Jussi Lahtinen : > Why not just simply: > > STATIC PUBLIC FUNCTION CreateNew[sValue as string] as MySelf > hMySelf as new MySelf > > return MySelf > END > > > Jussi > > > > On Wed, Feb 12, 2014 at 12:21 PM, Fabien Bodard wrote: > >> Yes but... >> >> >> I want to implement a ReportBoxShadow >> >> for the ide the need is : >> >> MyReportObject.BoxShadow = ReportBoxShadow["define"] >> >> If i think for future ... boxshadow is an array >> >> So i need to access each shadow this way : >> >> MyReportObject.BoxShadow[0].XOffset = >> >> For me ... yes there is the same name, but it is two different context >> of access. I imagine Static part as a concatenate module in a class... >> You can't use dynamic object because they can't exist in an external >> module ... as well as in this static part. So Why this restriction ?. >> >> It is not a usual use but i think it must be possible... at less for >> the special subs (_get, _put, _call, _next) >> >> >> For the time i will forget the array ... but think about it :-) >> >> >> >> >> >> 2014-02-11 23:59 GMT+01:00 Beno?t Minisini : >> > Le 11/02/2014 23:44, Fabien Bodard a ?crit : >> >> Why can't we declare two _Get function in a class ? >> >> >> >> One in static the other in instance ? >> >> >> >> >> >> >> >> STATIC PUBLIC FUNCTION _Get[sValue as string] as MySelf >> >> hMySelf as new MySelf >> >> >> >> return MySelf >> >> END >> >> >> >> >> >> PUBLIC FUNCTION _Get[Index] as _MySubClass >> >> return aSubClass[index] >> >> END >> >> >> >> Logically i must be possible ... >> >> >> >> -- >> >> Fabien Bodard >> >> >> > >> > You can't, you have two methods with the same name. >> > >> > -- >> > Beno?t Minisini >> > >> > >> ------------------------------------------------------------------------------ >> > Android apps run on BlackBerry 10 >> > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> > Now with support for Jelly Bean, Bluetooth, Mapview and more. >> > Get your Android app in front of a whole new audience. Start now. >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Android apps run on BlackBerry 10 >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> Now with support for Jelly Bean, Bluetooth, Mapview and more. >> Get your Android app in front of a whole new audience. Start now. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From shordi at ...626... Wed Feb 12 18:43:37 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 12 Feb 2014 18:43:37 +0100 Subject: [Gambas-user] Super Events. Are they posible? Message-ID: It's posible to raise a Super Event? ("Super" like in Superman, not in oop). I mean to create a Event that works in every part of the application. I am developing a very large proyect with docens of forms and I've a form calle HelpForm wich implements a Help system for the user sensible to last control used for search help about it . What I want is a method like this Public sub SUPER_Key_Release( key as integer) dim help as formHelp if key.code=key.F1 then fHelp = new formHelp(lastcontrol) fHelp.show endif end Press F1 in whatever Form inside or outside of whatever control and get acces to a FormHelp. In other words: a Event that I must declare only once in Application or, at least, once in form and affect all controls. It's posible to do somenthing like that? Thanks in advance. Regards From gambas.fr at ...626... Wed Feb 12 18:54:14 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 12 Feb 2014 18:54:14 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: References: Message-ID: http://gambasdoc.org/help/comp/gb/application?v3 These event handlers must be defined in the startup class as static methods to be taken into account by the interpreter. Application_ReadCatches data sent to the standard input. If that static method is defined in the project startup class, then the standard input is watched by the interpreter, and the method is called each time there is something to read on the standard input Static public Sub Application_Read() endif 2014-02-12 18:43 GMT+01:00 Jorge Carri?n : > It's posible to raise a Super Event? ("Super" like in Superman, not in > oop). > I mean to create a Event that works in every part of the application. > I am developing a very large proyect with docens of forms and I've a form > calle HelpForm wich implements a Help system for the user sensible to last > control used for search help about it . > > What I want is a method like this > > Public sub SUPER_Key_Release( key as integer) > > dim help as formHelp > > if key.code=key.F1 then > fHelp = new formHelp(lastcontrol) > fHelp.show > endif > end > > Press F1 in whatever Form inside or outside of whatever control and get > acces to a FormHelp. > > In other words: a Event that I must declare only once in Application or, at > least, once in form and affect all controls. > It's posible to do somenthing like that? > > Thanks in advance. > > Regards > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From matti.eber at ...3240... Wed Feb 12 18:56:11 2014 From: matti.eber at ...3240... (Matti) Date: Wed, 12 Feb 2014 18:56:11 +0100 Subject: [Gambas-user] CheckBox Message-ID: <52FBB5BB.3060403@...3240...> Why doesn't have the CheckBox a 'Change' event? Would be very handy to use in an action group with other controls, to catch if the user made changes. Now, the 'Click' events for CheckBoxes have to be handled separately. Regards Matti From dominique.michel at ...3298... Wed Feb 12 20:19:31 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Wed, 12 Feb 2014 20:19:31 +0100 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 In-Reply-To: References: <52FAC3CB.4040306@...1...> <20140212071252.41cf9085@...3299...> Message-ID: <20140212201931.595f5d87@...3299...> Le Wed, 12 Feb 2014 11:24:32 +0100, Fabien Bodard a ?crit : > 2014-02-12 7:12 GMT+01:00 Dominique Michel > : > > Le Wed, 12 Feb 2014 02:57:10 +0200, > > Jussi Lahtinen a ?crit : > > > >> OK, now it works. I'm getting these messages: > >> Cannot connect to server socket err = No such file or directory > >> Cannot connect to server request channel > >> jack server is not running or cannot be started > >> > >> I really don't have jack installed, why it looks for it? > >> > >> > >> Jussi > > > > This have nothing to do with Gambas and all with Gstreamer. Here I > > have jack running all the time, and if I use the autoaudiosink, > > gstreamer connect to alsa... > > But you need to this anybody... it is an example ... it is not > only for your use. I know that. That was just to say Jussi is not the only one that have an issue with that auto sink, even if it work. On my system, alsa and jack are interconnected with the jack pcm plugin in my .asoundrc, so I get the sound of both sound systems in jack. > > > > > Dominique > > > >> > >> > >> On Wed, Feb 12, 2014 at 2:43 AM, Beno?t Minisini < > >> gambas at ...1...> wrote: > >> > >> > Le 12/02/2014 01:37, Jussi Lahtinen a ?crit : > >> > > See attached pic. No further error messages, or warnings. > >> > > > >> > > Gambas 3 rev 6147 @ Xubuntu 13.10 64bit > >> > > > >> > > Jussi > >> > > > >> > > >> > Replace "alsasink" with "autoaudiosink". I will commit that fix > >> > later. > >> > > >> > -- > >> > Beno?t Minisini > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Android apps run on BlackBerry 10 > >> > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> > Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> > Get your Android app in front of a whole new audience. Start > >> > now. > >> > > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> ------------------------------------------------------------------------------ > >> Android apps run on BlackBerry 10 > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> Get your Android app in front of a whole new audience. Start now. > >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From shordi at ...626... Wed Feb 12 22:10:59 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 12 Feb 2014 22:10:59 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: References: Message-ID: Oh, Fabien... I don't understand. At the begining of the fMain class in a simple proyect with a textbox in the fMain form. and a second form, Helpform, that just contains a label. I've declared this Static Public Sub Application_Read() Dim f As Helpform If key.code = Key.F1 Then f = New Helpform f.showmodal Endif End But the Application_Read sub never is called.... I don't understand. The doc on gambasdoc is not very clear. it's suppoused Application_Read catch the Standard Input... ?From the Shell? ?From the keyboard? I don't understand... Is ask too much ask for a little example? Thanks in advance. Regards 2014-02-12 18:54 GMT+01:00 Fabien Bodard : > http://gambasdoc.org/help/comp/gb/application?v3 > > These event handlers must be defined in the startup class as static > methods to be taken into account by the interpreter. > > Application_ReadCatches data sent to the standard input. > > If that static method is defined in the project startup class, then > the standard input is watched by the interpreter, and the method is > called each time there is something to read on the standard input > > > Static public Sub Application_Read() > > > > endif > > 2014-02-12 18:43 GMT+01:00 Jorge Carri?n : > > It's posible to raise a Super Event? ("Super" like in Superman, not in > > oop). > > I mean to create a Event that works in every part of the application. > > I am developing a very large proyect with docens of forms and I've a form > > calle HelpForm wich implements a Help system for the user sensible to > last > > control used for search help about it . > > > > What I want is a method like this > > > > Public sub SUPER_Key_Release( key as integer) > > > > dim help as formHelp > > > > if key.code=key.F1 then > > fHelp = new formHelp(lastcontrol) > > fHelp.show > > endif > > end > > > > Press F1 in whatever Form inside or outside of whatever control and get > > acces to a FormHelp. > > > > In other words: a Event that I must declare only once in Application or, > at > > least, once in form and affect all controls. > > It's posible to do somenthing like that? > > > > Thanks in advance. > > > > Regards > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Thu Feb 13 01:00:05 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 13 Feb 2014 01:00:05 +0100 Subject: [Gambas-user] Freeze the IDE only with the words you type! Message-ID: <20140213000005.GE24428@...2774...> Hi Benoit, very funny issue IMHO. You can freeze the IDE (in an infinite loop maybe?) by doing the following: 1. Create a GUI project (QT4, this is what I always choose at least) 2. Create an Export'd class named "Form" 3. Open your Form.class and write Public Sub _new() Super._new() End The IDE freezes before I can type the parentheses of the function call. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Thu Feb 13 01:02:38 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 13 Feb 2014 01:02:38 +0100 Subject: [Gambas-user] Freeze the IDE only with the words you type! In-Reply-To: <20140213000005.GE24428@...2774...> References: <20140213000005.GE24428@...2774...> Message-ID: <20140213000238.GF24428@...2774...> On Thu, 13 Feb 2014, Tobias Boege wrote: > Hi Benoit, > > very funny issue IMHO. You can freeze the IDE (in an infinite loop maybe?) > by doing the following: > > 1. Create a GUI project (QT4, this is what I always choose at least) > 2. Create an Export'd class named "Form" > 3. Open your Form.class and write > Public Sub _new() > Super._new() > End > > The IDE freezes before I can type the parentheses of the function call. > Oh, apparently this has nothing to do with Super. Try only to call "_new()" inside _new(). -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Thu Feb 13 01:48:02 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 13 Feb 2014 01:48:02 +0100 Subject: [Gambas-user] Freeze the IDE only with the words you type! In-Reply-To: <20140213000238.GF24428@...2774...> References: <20140213000005.GE24428@...2774...> <20140213000238.GF24428@...2774...> Message-ID: <52FC1642.2050300@...1...> Le 13/02/2014 01:02, Tobias Boege a ?crit : > On Thu, 13 Feb 2014, Tobias Boege wrote: >> Hi Benoit, >> >> very funny issue IMHO. You can freeze the IDE (in an infinite loop maybe?) >> by doing the following: >> >> 1. Create a GUI project (QT4, this is what I always choose at least) >> 2. Create an Export'd class named "Form" >> 3. Open your Form.class and write >> Public Sub _new() >> Super._new() >> End >> >> The IDE freezes before I can type the parentheses of the function call. >> > > Oh, apparently this has nothing to do with Super. Try only to call "_new()" > inside _new(). > Fixed in revision #6154. -- Beno?t Minisini From taboege at ...626... Thu Feb 13 02:46:07 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 13 Feb 2014 02:46:07 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: References: Message-ID: <20140213014607.GG24428@...2774...> On Wed, 12 Feb 2014, Jorge Carri?n wrote: > Oh, Fabien... I don't understand. > At the begining of the fMain class in a simple proyect with a textbox in > the fMain form. and a second form, Helpform, that just contains a label. > I've declared this > > Static Public Sub Application_Read() > > Dim f As Helpform > > If key.code = Key.F1 Then > f = New Helpform > f.showmodal > Endif > > End > > But the Application_Read sub never is called.... > I don't understand. > The doc on gambasdoc is not very clear. it's suppoused Application_Read > catch the Standard Input... ?From the Shell? ?From the keyboard? I don't > understand... > Is ask too much ask for a little example? > Thanks in advance. > Application_Read() watches stdin which is not what you need. Actually, I don't think there is a good solution. Objects are bound to a single "default" or "main" observer (occasionally called its "parent" but this is misleading when we talk about control containers which are also called "parents" but aren't necessarily main observers) which intercepts events of the observed objects. Normally (when you use the form editor) controls are bound to the form they are put on. That's why you can write something like Public Sub btnClose_Click() in your form's class file for a Button btnClose on the form. In addition to the main observer, you can create other Observer objects (Observer is a class in the gb component) which are... additional observers and duplicate events raised by the observed object. Or you can attach an object to another main observer at runtime using Object.Attach(). However, if you use the latter method, the event handlers you wrote in your form code will not work anymore. So we will have to use the Observer stuff which lets us catch event duplicates behind the scenes. This technique requires to create an observer for *each* control that you want to incorporate into your help system... or (!) we can create only *one* observer per Form instance and use some really black magic called the Grab() method whose existence is very fortunate here... Let's consider the second, obviously more efficient, approach. This would require to add an observer for each of your forms. To automate this task, we need a way to hook the creation of forms without imposing the need to change any existing code (which should be our ultimate goal). This is normally done by overriding a class in the global symbol table. Then we can "hook" the _new() special method and register the newly created form with our help system which will create an observer and watch the window. In the attached POC code, I have deliberately used a Control's Tag property to store the help text. It's up to you to make it better. Then, in the new Form class, a new observer for the form is created with the form itself. If the user presses F1, the form goes into "help mode" which means that the form will grab any user input (from mouse and keyboard) of its controls so that, e.g., Buttons don't raise Click events anymore but instead the form raises a MouseUp event. Help mode is indicated visually by the mouse being set to Mouse.Pointing. Then we can display the help on the form observer's MouseUp event handler. I hope the project helps. At least it satisfies me because as you will see, you don't need to change any existing code, but only override the Form class. And in case you're still curious: the first approach (creating observers for every control) would *not* work the same way (if at all) because you cannot override the Control class. This yielded an error I have never seen before about the inability to override a class which is already inherited or the like. Likely, my POC code will not work in your project if you have any classes derived from Form. Thanks for that interesting question ;-) We'll definitely write an article about this topic on gambas-buch.de. Do you mind if I mention your name? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: super-event-poc-1-0.0.1.tar.gz Type: application/octet-stream Size: 5988 bytes Desc: not available URL: From taboege at ...626... Thu Feb 13 03:07:24 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 13 Feb 2014 03:07:24 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: <20140213014607.GG24428@...2774...> References: <20140213014607.GG24428@...2774...> Message-ID: <20140213020724.GI24428@...2774...> On Thu, 13 Feb 2014, Tobias Boege wrote: > I hope the project helps. At least it satisfies me because as you will see, > you don't need to change any existing code, but only override the Form > class. > The Label's text on FMain should actually read: "Press F1 to get into help mode, then click on a control to get help.". The text in the project was from a former try. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Thu Feb 13 07:36:45 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 13 Feb 2014 06:36:45 +0000 Subject: [Gambas-user] Issue 511 in gambas: Datebox.ReadOnly doesn't appear to work Message-ID: <0-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Other GUI-Any Usability New issue 511 by adamn... at ...626...: Datebox.ReadOnly doesn't appear to work http://code.google.com/p/gambas/issues/detail?id=511 1) Describe the problem. If I set a datebox control to ReadOnly = True the button is still active and the date can be changed. Similarly it can be changed by typing. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6147 Operating system: Linux Distribution: PCLinuxOS Architecture: x86 GUI component: QT4 Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. 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. 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! ANOTHER NOTE: Don't create an issue if you have a compilation problem on the development version. Send a mail to the mailing-list instead, thanks. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Feb 13 07:54:04 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 13 Feb 2014 06:54:04 +0000 Subject: [Gambas-user] Issue 511 in gambas: Datebox.ReadOnly doesn't appear to work In-Reply-To: <0-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> Comment #1 on issue 511 by adamn... at ...626...: Datebox.ReadOnly doesn't appear to work http://code.google.com/p/gambas/issues/detail?id=511 (Too quick on the trigger finger there, I meant to add...) It looks like the ReadOnly_Write in the ButtonBox only sets the inner TextBox (actually it is a MaskBox) to ReadOnly. It doesn't disable the button. The strange thing is, although the maskbox is set to ReadOnly, I can click in the text and change the date. Maybe the text entry bit is happening in MaskBox? Using a bare maskbox with ReadOnly=True I can still type in there. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Thu Feb 13 09:31:26 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 13 Feb 2014 09:31:26 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: <20140213014607.GG24428@...2774...> References: <20140213014607.GG24428@...2774...> Message-ID: I don't mind at all to be mentioned, Tobi (Vanitas, vanitatis...hehehe) What I've done 'till the moment is a sqlite3 database with the help contents (don't want Remote Server Access for this) in .config/gambas3/ wich is installed in first execution of application. After that I joined each control that need help in a group called "Help" and the event help_keyrelease call the Help Form sending the form's and control's name. With this information the form control shows in a sepparate window the adecuate help or raise a globe with it. It works fine, BUT... I can't group all this controls in another group, what is something I need sometimes... or I have to code all keyrelease events for every control separate, what is tedious an slow to code... That last option is the second most boring thing in a development... after writes the help itself, naturally :-D Regards 2014-02-13 2:46 GMT+01:00 Tobias Boege : > On Wed, 12 Feb 2014, Jorge Carri?n wrote: > > Oh, Fabien... I don't understand. > > At the begining of the fMain class in a simple proyect with a textbox in > > the fMain form. and a second form, Helpform, that just contains a label. > > I've declared this > > > > Static Public Sub Application_Read() > > > > Dim f As Helpform > > > > If key.code = Key.F1 Then > > f = New Helpform > > f.showmodal > > Endif > > > > End > > > > But the Application_Read sub never is called.... > > I don't understand. > > The doc on gambasdoc is not very clear. it's suppoused Application_Read > > catch the Standard Input... ?From the Shell? ?From the keyboard? I don't > > understand... > > Is ask too much ask for a little example? > > Thanks in advance. > > > > Application_Read() watches stdin which is not what you need. > > Actually, I don't think there is a good solution. Objects are bound to a > single "default" or "main" observer (occasionally called its "parent" but > this is misleading when we talk about control containers which are also > called "parents" but aren't necessarily main observers) which intercepts > events of the observed objects. Normally (when you use the form editor) > controls are bound to the form they are put on. That's why you can write > something like Public Sub btnClose_Click() in your form's class file for a > Button btnClose on the form. > > In addition to the main observer, you can create other Observer objects > (Observer is a class in the gb component) which are... additional observers > and duplicate events raised by the observed object. Or you can attach an > object to another main observer at runtime using Object.Attach(). > > However, if you use the latter method, the event handlers you wrote in your > form code will not work anymore. So we will have to use the Observer stuff > which lets us catch event duplicates behind the scenes. > > This technique requires to create an observer for *each* control that you > want to incorporate into your help system... or (!) we can create only > *one* > observer per Form instance and use some really black magic called the > Grab() > method whose existence is very fortunate here... > > Let's consider the second, obviously more efficient, approach. This would > require to add an observer for each of your forms. To automate this task, > we > need a way to hook the creation of forms without imposing the need to > change > any existing code (which should be our ultimate goal). This is normally > done > by overriding a class in the global symbol table. Then we can "hook" the > _new() special method and register the newly created form with our help > system which will create an observer and watch the window. > > In the attached POC code, I have deliberately used a Control's Tag property > to store the help text. It's up to you to make it better. Then, in the new > Form class, a new observer for the form is created with the form itself. If > the user presses F1, the form goes into "help mode" which means that the > form will grab any user input (from mouse and keyboard) of its controls so > that, e.g., Buttons don't raise Click events anymore but instead the form > raises a MouseUp event. Help mode is indicated visually by the mouse being > set to Mouse.Pointing. Then we can display the help on the form observer's > MouseUp event handler. > > I hope the project helps. At least it satisfies me because as you will see, > you don't need to change any existing code, but only override the Form > class. > > And in case you're still curious: the first approach (creating observers > for > every control) would *not* work the same way (if at all) because you cannot > override the Control class. This yielded an error I have never seen before > about the inability to override a class which is already inherited or the > like. Likely, my POC code will not work in your project if you have any > classes derived from Form. > > Thanks for that interesting question ;-) We'll definitely write an article > about this topic on gambas-buch.de. Do you mind if I mention your name? > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From shordi at ...626... Thu Feb 13 09:37:10 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 13 Feb 2014 09:37:10 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: <20140213020724.GI24428@...2774...> References: <20140213014607.GG24428@...2774...> <20140213020724.GI24428@...2774...> Message-ID: Tobi Yours is a interesting approach of the problem. I'll think about it. Perhaps a smooth color change of background form in "Help Mode"... But I like the Idea. Regards. 2014-02-13 3:07 GMT+01:00 Tobias Boege : > On Thu, 13 Feb 2014, Tobias Boege wrote: > > I hope the project helps. At least it satisfies me because as you will > see, > > you don't need to change any existing code, but only override the Form > > class. > > > > The Label's text on FMain should actually read: "Press F1 to get into help > mode, then click on a control to get help.". The text in the project was > from a former try. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Thu Feb 13 09:40:33 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 13 Feb 2014 19:10:33 +1030 Subject: [Gambas-user] Where is the help for commit log comments Message-ID: <1392280833.3459.33.camel@...2688...> Graarrrggh! I have another tiny commit for gb.desktop xdg-email that stops it opening the web browser on LXDE when I try to send an email from within a Gambas app. Do you think I can find Benoit's request for how the commit log comments should be structured? No. Any help please. Bruce From bbruen at ...2308... Thu Feb 13 10:21:42 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 13 Feb 2014 19:51:42 +1030 Subject: [Gambas-user] Key.Enter and Key.Return Message-ID: <1392283302.3459.37.camel@...2688...> What is the difference here? Every keyboard I have has an "Enter" key which apparently is a Key.Return, so what is Key.Enter? Does it depend on some particular keyboard? Silly question, no. If some users keyboard generates a different code how can I tell what key was pressed? (This has been driving me insane for an hour now. I am probably too stressed out to see the simple answer.) Bruce From rolf.frogs at ...221... Thu Feb 13 11:18:13 2014 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Thu, 13 Feb 2014 11:18:13 +0100 Subject: [Gambas-user] Key.Enter and Key.Return In-Reply-To: <1392283302.3459.37.camel@...2688...> References: <1392283302.3459.37.camel@...2688...> Message-ID: <52FC9BE5.8080201@...221...> Hi Bruce: > What is the difference here? > > Every keyboard I have has an "Enter" key which apparently is a > Key.Return, so what is Key.Enter? Does it depend on some particular > keyboard? > One is the key right near the character keys and the other is the (enter) key at the number pad Hope that helps. Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: From gambas.fr at ...626... Thu Feb 13 11:54:10 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 13 Feb 2014 11:54:10 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: References: <20140213014607.GG24428@...2774...> <20140213020724.GI24428@...2774...> Message-ID: hum ... yes it seem my idea not work :-/ Sorry... i've not tested it ... i was on my phone 2014-02-13 9:37 GMT+01:00 Jorge Carri?n : > Tobi > Yours is a interesting approach of the problem. I'll think about it. > Perhaps a smooth color change of background form in "Help Mode"... But I > like the Idea. > > Regards. > > > > 2014-02-13 3:07 GMT+01:00 Tobias Boege : > >> On Thu, 13 Feb 2014, Tobias Boege wrote: >> > I hope the project helps. At least it satisfies me because as you will >> see, >> > you don't need to change any existing code, but only override the Form >> > class. >> > >> >> The Label's text on FMain should actually read: "Press F1 to get into help >> mode, then click on a control to get help.". The text in the project was >> from a former try. >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> >> ------------------------------------------------------------------------------ >> Android apps run on BlackBerry 10 >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> Now with support for Jelly Bean, Bluetooth, Mapview and more. >> Get your Android app in front of a whole new audience. Start now. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From taboege at ...626... Thu Feb 13 12:07:11 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 13 Feb 2014 12:07:11 +0100 Subject: [Gambas-user] Where is the help for commit log comments In-Reply-To: <1392280833.3459.33.camel@...2688...> References: <1392280833.3459.33.camel@...2688...> Message-ID: <20140213110711.GA514@...2774...> On Thu, 13 Feb 2014, Bruce wrote: > Graarrrggh! > > I have another tiny commit for gb.desktop xdg-email that stops it > opening the web browser on LXDE when I try to send an email from within > a Gambas app. > > Do you think I can find Benoit's request for how the commit log comments > should be structured? No. > > Any help please. In the SVN tree: README.svn-commit or more elaborate in the docs under "How to deal with subversion" :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bbruen at ...2308... Thu Feb 13 12:46:32 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 13 Feb 2014 22:16:32 +1030 Subject: [Gambas-user] Key.Enter and Key.Return In-Reply-To: <52FC9BE5.8080201@...221...> References: <1392283302.3459.37.camel@...2688...> <52FC9BE5.8080201@...221...> Message-ID: <1392291992.3459.40.camel@...2688...> On Thu, 2014-02-13 at 11:18 +0100, Rolf Schmidt wrote: > Hi Bruce: > > What is the difference here? > > > > Every keyboard I have has an "Enter" key which apparently is a > > Key.Return, so what is Key.Enter? Does it depend on some particular > > keyboard? > > > One is the key right near the character keys and the other is the > (enter) key at the number pad > > Hope that helps. > Rolf > Thanks Rolf, I knew in my heart it was something simple. I just couldn't get a grip on it. Maybe I should look at the keyboard more often. Bruce From bbruen at ...2308... Thu Feb 13 12:58:44 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 13 Feb 2014 22:28:44 +1030 Subject: [Gambas-user] Where is the help for commit log comments In-Reply-To: <20140213110711.GA514@...2774...> References: <1392280833.3459.33.camel@...2688...> <20140213110711.GA514@...2774...> Message-ID: <1392292724.3459.42.camel@...2688...> On Thu, 2014-02-13 at 12:07 +0100, Tobias Boege wrote: > On Thu, 13 Feb 2014, Bruce wrote: > > Graarrrggh! > > > > I have another tiny commit for gb.desktop xdg-email that stops it > > opening the web browser on LXDE when I try to send an email from within > > a Gambas app. > > > > Do you think I can find Benoit's request for how the commit log comments > > should be structured? No. > > > > Any help please. > > In the SVN tree: README.svn-commit or more elaborate in the docs under "How > to deal with subversion" :-) > > Regards, > Tobi > Thanks Tobi!!! B From taboege at ...626... Thu Feb 13 13:01:34 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 13 Feb 2014 13:01:34 +0100 Subject: [Gambas-user] Where is the help for commit log comments In-Reply-To: <1392292724.3459.42.camel@...2688...> References: <1392280833.3459.33.camel@...2688...> <20140213110711.GA514@...2774...> <1392292724.3459.42.camel@...2688...> Message-ID: <20140213120134.GB514@...2774...> On Thu, 13 Feb 2014, Bruce wrote: > On Thu, 2014-02-13 at 12:07 +0100, Tobias Boege wrote: > > On Thu, 13 Feb 2014, Bruce wrote: > > > Graarrrggh! > > > > > > I have another tiny commit for gb.desktop xdg-email that stops it > > > opening the web browser on LXDE when I try to send an email from within > > > a Gambas app. > > > > > > Do you think I can find Benoit's request for how the commit log comments > > > should be structured? No. > > > > > > Any help please. > > > > In the SVN tree: README.svn-commit or more elaborate in the docs under "How > > to deal with subversion" :-) > > > > Regards, > > Tobi > > > > Thanks Tobi!!! > :-) It should be like * BUG: ... not [BUG] ... -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shordi at ...626... Thu Feb 13 13:11:56 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 13 Feb 2014 13:11:56 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: References: <20140213014607.GG24428@...2774...> <20140213020724.GI24428@...2774...> Message-ID: ok Fabian. Thanks. 2014-02-13 11:54 GMT+01:00 Fabien Bodard : > hum ... yes it seem my idea not work :-/ > > Sorry... i've not tested it ... i was on my phone > > 2014-02-13 9:37 GMT+01:00 Jorge Carri?n : > > Tobi > > Yours is a interesting approach of the problem. I'll think about it. > > Perhaps a smooth color change of background form in "Help Mode"... But I > > like the Idea. > > > > Regards. > > > > > > > > 2014-02-13 3:07 GMT+01:00 Tobias Boege : > > > >> On Thu, 13 Feb 2014, Tobias Boege wrote: > >> > I hope the project helps. At least it satisfies me because as you will > >> see, > >> > you don't need to change any existing code, but only override the Form > >> > class. > >> > > >> > >> The Label's text on FMain should actually read: "Press F1 to get into > help > >> mode, then click on a control to get help.". The text in the project was > >> from a former try. > >> > >> -- > >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> > >> > >> > ------------------------------------------------------------------------------ > >> Android apps run on BlackBerry 10 > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> Get your Android app in front of a whole new audience. Start now. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Thu Feb 13 13:26:40 2014 From: bbruen at ...2308... (Bruce) Date: Thu, 13 Feb 2014 22:56:40 +1030 Subject: [Gambas-user] Where is the help for commit log comments In-Reply-To: <20140213120134.GB514@...2774...> References: <1392280833.3459.33.camel@...2688...> <20140213110711.GA514@...2774...> <1392292724.3459.42.camel@...2688...> <20140213120134.GB514@...2774...> Message-ID: <1392294400.3459.46.camel@...2688...> On Thu, 2014-02-13 at 13:01 +0100, Tobias Boege wrote: > On Thu, 13 Feb 2014, Bruce wrote: > > On Thu, 2014-02-13 at 12:07 +0100, Tobias Boege wrote: > > > On Thu, 13 Feb 2014, Bruce wrote: > > > > Graarrrggh! > > > > > > > > I have another tiny commit for gb.desktop xdg-email that stops it > > > > opening the web browser on LXDE when I try to send an email from within > > > > a Gambas app. > > > > > > > > Do you think I can find Benoit's request for how the commit log comments > > > > should be structured? No. > > > > > > > > Any help please. > > > > > > In the SVN tree: README.svn-commit or more elaborate in the docs under "How > > > to deal with subversion" :-) > > > > > > Regards, > > > Tobi > > > > > > > Thanks Tobi!!! > > > > :-) It should be like > > * BUG: ... > > not > > [BUG] ... > GRRRRRRRRRRRRRRRRRRRRRRRRAAAAAAAAAAAAAAAAAAAAARRRRGGGGGGGG This must be Monday, surely? :-( B From gambas.fr at ...626... Thu Feb 13 15:12:43 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 13 Feb 2014 15:12:43 +0100 Subject: [Gambas-user] Where is the help for commit log comments In-Reply-To: <1392294400.3459.46.camel@...2688...> References: <1392280833.3459.33.camel@...2688...> <20140213110711.GA514@...2774...> <1392292724.3459.42.camel@...2688...> <20140213120134.GB514@...2774...> <1392294400.3459.46.camel@...2688...> Message-ID: Well it seem you have the same problem than me ... the difference is just that me it's since 10 year... :-/... I always forget * or : somewhere. 2014-02-13 13:26 GMT+01:00 Bruce : > On Thu, 2014-02-13 at 13:01 +0100, Tobias Boege wrote: >> On Thu, 13 Feb 2014, Bruce wrote: >> > On Thu, 2014-02-13 at 12:07 +0100, Tobias Boege wrote: >> > > On Thu, 13 Feb 2014, Bruce wrote: >> > > > Graarrrggh! >> > > > >> > > > I have another tiny commit for gb.desktop xdg-email that stops it >> > > > opening the web browser on LXDE when I try to send an email from within >> > > > a Gambas app. >> > > > >> > > > Do you think I can find Benoit's request for how the commit log comments >> > > > should be structured? No. >> > > > >> > > > Any help please. >> > > >> > > In the SVN tree: README.svn-commit or more elaborate in the docs under "How >> > > to deal with subversion" :-) >> > > >> > > Regards, >> > > Tobi >> > > >> > >> > Thanks Tobi!!! >> > >> >> :-) It should be like >> >> * BUG: ... >> >> not >> >> [BUG] ... >> > > GRRRRRRRRRRRRRRRRRRRRRRRRAAAAAAAAAAAAAAAAAAAAARRRRGGGGGGGG > > > This must be Monday, surely? > > :-( > B > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From rmorgan62 at ...626... Thu Feb 13 16:19:44 2014 From: rmorgan62 at ...626... (Randall Morgan) Date: Thu, 13 Feb 2014 07:19:44 -0800 Subject: [Gambas-user] Key.Enter and Key.Return In-Reply-To: <1392291992.3459.40.camel@...2688...> References: <1392283302.3459.37.camel@...2688...> <52FC9BE5.8080201@...221...> <1392291992.3459.40.camel@...2688...> Message-ID: FYI: Historically, the return key was used to return the carriage on a teletype or typewriter to the home (left side) position. The enter key was taken from mechanical 10-key calculating machines and is used on the numerical keypad to "enter" a value into the calculation. On Thu, Feb 13, 2014 at 3:46 AM, Bruce wrote: > On Thu, 2014-02-13 at 11:18 +0100, Rolf Schmidt wrote: > > Hi Bruce: > > > What is the difference here? > > > > > > Every keyboard I have has an "Enter" key which apparently is a > > > Key.Return, so what is Key.Enter? Does it depend on some particular > > > keyboard? > > > > > One is the key right near the character keys and the other is the > > (enter) key at the number pad > > > > Hope that helps. > > Rolf > > > Thanks Rolf, > > I knew in my heart it was something simple. I just couldn't get a grip > on it. Maybe I should look at the keyboard more often. > > Bruce > > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- 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 iss_boss at ...770... Thu Feb 13 17:18:53 2014 From: iss_boss at ...770... (ISS Boss) Date: Thu, 13 Feb 2014 11:18:53 -0500 Subject: [Gambas-user] Key.Enter and Key.Return In-Reply-To: References: <1392283302.3459.37.camel@...2688...> <52FC9BE5.8080201@...221...> <1392291992.3459.40.camel@...2688...> Message-ID: <52FCF06D.8050501@...770...> Didn't we have this conversation not too long ago? Just saying... :-) Randall Morgan wrote, On 02/13/2014 10:19: FYI: Historically, the return key was used to return the carriage on a teletype or typewriter to the home (left side) position. The enter key was taken from mechanical 10-key calculating machines and is used on the numerical keypad to "enter" a value into the calculation. On Thu, Feb 13, 2014 at 3:46 AM, Bruce [1] wrote: On Thu, 2014-02-13 at 11:18 +0100, Rolf Schmidt wrote: Hi Bruce: What is the difference here? Every keyboard I have has an "Enter" key which apparently is a Key.Return, so what is Key.Enter? Does it depend on some particular keyboard? One is the key right near the character keys and the other is the (enter) key at the number pad Hope that helps. Rolf Thanks Rolf, I knew in my heart it was something simple. I just couldn't get a grip on it. Maybe I should look at the keyboard more often. Bruce ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. [2]http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:bbruen at ...2308... 2. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Feb 13 19:17:44 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 13 Feb 2014 19:17:44 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: References: Message-ID: <52FD0C48.50108@...1...> For information: In Gambas, KeyPress events on a control are sent to the form that contains the control first. That way you have to write one event handler for each form only. And if your application has a lot of forms opened at the same time, you are rewriting the GIMP. :-) Le 12/02/2014 18:43, Jorge Carri?n a ?crit : > It's posible to raise a Super Event? ("Super" like in Superman, not in > oop). > I mean to create a Event that works in every part of the application. > I am developing a very large proyect with docens of forms and I've a form > calle HelpForm wich implements a Help system for the user sensible to last > control used for search help about it . > > What I want is a method like this > > Public sub SUPER_Key_Release( key as integer) > > dim help as formHelp > > if key.code=key.F1 then > fHelp = new formHelp(lastcontrol) > fHelp.show > endif > end > > Press F1 in whatever Form inside or outside of whatever control and get > acces to a FormHelp. > > In other words: a Event that I must declare only once in Application or, at > least, once in form and affect all controls. > It's posible to do somenthing like that? > > Thanks in advance. > > Regards > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Beno?t Minisini From gambas at ...1... Thu Feb 13 19:19:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 13 Feb 2014 19:19:39 +0100 Subject: [Gambas-user] Where is the help for commit log comments In-Reply-To: References: <1392280833.3459.33.camel@...2688...> <20140213110711.GA514@...2774...> <1392292724.3459.42.camel@...2688...> <20140213120134.GB514@...2774...> <1392294400.3459.46.camel@...2688...> Message-ID: <52FD0CBB.5040408@...1...> Le 13/02/2014 15:12, Fabien Bodard a ?crit : > Well it seem you have the same problem than me ... the difference is > just that me it's since 10 year... :-/... I always forget * or : > somewhere. > It's important for me: I made a program that create the ChangeLog from the svn commit logs, but if the syntax is not respected, I have to do the job by hand, which takes me a lot of time! -- Beno?t Minisini From gambas at ...1... Thu Feb 13 19:20:50 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 13 Feb 2014 19:20:50 +0100 Subject: [Gambas-user] Key.Enter and Key.Return In-Reply-To: <52FCF06D.8050501@...770...> References: <1392283302.3459.37.camel@...2688...> <52FC9BE5.8080201@...221...> <1392291992.3459.40.camel@...2688...> <52FCF06D.8050501@...770...> Message-ID: <52FD0D02.1090905@...1...> When we become old, we start repeating the same things again and again. :-) Le 13/02/2014 17:18, ISS Boss a ?crit : > > Didn't we have this conversation not too long ago? Just saying... :-) > > Randall Morgan wrote, On 02/13/2014 10:19: > > FYI: Historically, the return key was used to return the carriage on a > teletype or typewriter to the home (left side) position. The enter key was > taken from mechanical 10-key calculating machines and is used on the > numerical keypad to "enter" a value into the calculation. > > > On Thu, Feb 13, 2014 at 3:46 AM, Bruce [1] wrote: > > On Thu, 2014-02-13 at 11:18 +0100, Rolf Schmidt wrote: > > Hi Bruce: > > What is the difference here? > > Every keyboard I have has an "Enter" key which apparently is a > Key.Return, so what is Key.Enter? Does it depend on some particular > keyboard? > > One is the key right near the character keys and the other is the > (enter) key at the number pad > > Hope that helps. > Rolf > > Thanks Rolf, > > I knew in my heart it was something simple. I just couldn't get a grip > on it. Maybe I should look at the keyboard more often. > > Bruce > > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > [2]http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > [3]Gambas-user at lists.sourceforge.net > [4]https://lists.sourceforge.net/lists/listinfo/gambas-user > > References > > 1. mailto:bbruen at ...2308... > 2. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > 3. mailto:Gambas-user at lists.sourceforge.net > 4. https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Beno?t Minisini From shordi at ...626... Thu Feb 13 19:31:04 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 13 Feb 2014 19:31:04 +0100 Subject: [Gambas-user] Super Events. Are they posible? In-Reply-To: <52FD0C48.50108@...1...> References: <52FD0C48.50108@...1...> Message-ID: It have a lot of forms opened... in a few workspaces, of course. I'll try what you sa*y *I'll Keep you informed. Regards. 2014-02-13 19:17 GMT+01:00 Beno?t Minisini : > For information: > > In Gambas, KeyPress events on a control are sent to the form that > contains the control first. That way you have to write one event handler > for each form only. > > And if your application has a lot of forms opened at the same time, you > are rewriting the GIMP. :-) > > Le 12/02/2014 18:43, Jorge Carri?n a ?crit : > > It's posible to raise a Super Event? ("Super" like in Superman, not in > > oop). > > I mean to create a Event that works in every part of the application. > > I am developing a very large proyect with docens of forms and I've a form > > calle HelpForm wich implements a Help system for the user sensible to > last > > control used for search help about it . > > > > What I want is a method like this > > > > Public sub SUPER_Key_Release( key as integer) > > > > dim help as formHelp > > > > if key.code=key.F1 then > > fHelp = new formHelp(lastcontrol) > > fHelp.show > > endif > > end > > > > Press F1 in whatever Form inside or outside of whatever control and get > > acces to a FormHelp. > > > > In other words: a Event that I must declare only once in Application or, > at > > least, once in form and affect all controls. > > It's posible to do somenthing like that? > > > > Thanks in advance. > > > > Regards > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dominique.michel at ...3298... Fri Feb 14 00:20:13 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Fri, 14 Feb 2014 00:20:13 +0100 Subject: [Gambas-user] Key.Enter and Key.Return In-Reply-To: <1392283302.3459.37.camel@...2688...> References: <1392283302.3459.37.camel@...2688...> Message-ID: <20140214002013.062b8fd8@...3299...> Le Thu, 13 Feb 2014 19:51:42 +1030, Bruce a ?crit : > What is the difference here? > > Every keyboard I have has an "Enter" key which apparently is a > Key.Return, so what is Key.Enter? Does it depend on some particular > keyboard? On linux, you can run xev to know the key codes and the key syms. The Return key sym is Return, and the Enter key is KP_Enter. You also have 2 '*' keys, one is the asterisk, the other is KP_Multiply. And so on with -, /, +, . and the numbers. Dominique > > Silly question, no. If some users keyboard generates a different code > how can I tell what key was pressed? > > (This has been driving me insane for an hour now. I am probably too > stressed out to see the simple answer.) > > Bruce > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ihaywood3 at ...626... Fri Feb 14 09:14:01 2014 From: ihaywood3 at ...626... (Ian Haywood) Date: Fri, 14 Feb 2014 19:14:01 +1100 Subject: [Gambas-user] vanishing .info files Message-ID: <52FDD049.9020309@...626...> On Debian packages get submitted for compiling on quite a few architectures. Gambas compiles fine on several flavours on ARM and PowerPC It fails on s390x [IBM mainframes], as follows: dh_install --sourcedir=debian/tmp -a cp: cannot stat 'debian/tmp/usr/share/gambas3/info/gb.opengl.info': No such file or directory dh_install: cp -a debian/tmp/usr/share/gambas3/info/gb.opengl.info debian/gambas3-gb-opengl//usr/share/gambas3/info/ returned exit code 1 make: *** [binary-arch] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2 Any reason why an .info file would not exist on one architecture but does on all the others. The full build log is here. https://buildd.debian.org/status/fetch.php?pkg=gambas3&arch=s390x&ver=3.5.1-1&stamp=1387060766 Ian From roel at ...3306... Fri Feb 14 09:02:18 2014 From: roel at ...3306... (Roel Touwen [prive]) Date: Fri, 14 Feb 2014 09:02:18 +0100 Subject: [Gambas-user] Strange msq problem Message-ID: <52FDCD8A.5040701@...3306...> Hi All, I have installed the latest Fedora (20) with gambas from the repository. When I do some datathing in mysql it simple won't update the database. This code works fine on my old gambas 2 but update won't work in gambas3: Public Sub SendTimeStamp() Dim Hs As String Hs = "Test" Sql = "relation = '" & Main.RobotCust & "' and robotID = " & Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer = 0" rsTimeSt = db.Edit("robots", Sql) rsTimeSt!msg = Hs rsTimeSt.Update() Endif End From gambas.fr at ...626... Fri Feb 14 10:15:03 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 14 Feb 2014 10:15:03 +0100 Subject: [Gambas-user] Strange msq problem In-Reply-To: <52FDCD8A.5040701@...3306...> References: <52FDCD8A.5040701@...3306...> Message-ID: And If you add db.commit at the end of the job ? Le 14 f?vr. 2014 10:04, "Roel Touwen [prive]" a ?crit : > Hi All, > > I have installed the latest Fedora (20) with gambas from the repository. > > When I do some datathing in mysql it simple won't update the database. > > This code works fine on my old gambas 2 but update won't work in gambas3: > > Public Sub SendTimeStamp() > Dim Hs As String > > Hs = "Test" > > > Sql = "relation = '" & Main.RobotCust & "' and robotID = " & > Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer = 0" > rsTimeSt = db.Edit("robots", Sql) > rsTimeSt!msg = Hs > rsTimeSt.Update() > Endif > > > End > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From roel at ...3306... Fri Feb 14 10:18:38 2014 From: roel at ...3306... (Roel Touwen [prive]) Date: Fri, 14 Feb 2014 10:18:38 +0100 Subject: [Gambas-user] Strange msq problem In-Reply-To: References: <52FDCD8A.5040701@...3306...> Message-ID: <52FDDF6E.5070608@...3306...> I tried that but it isn't the solution. In the past I tried combining gambas2 and gambas3 on fedora 18. I had the same situation then but I blamed it on the combination of g2 and g3. Now I installed it on a clean fedora 20 machine and I experience the same. op 14-02-14 10:15, Fabien Bodard schreef: > And If you add db.commit at the end of the job ? > Le 14 f?vr. 2014 10:04, "Roel Touwen [prive]" a ?crit : > >> Hi All, >> >> I have installed the latest Fedora (20) with gambas from the repository. >> >> When I do some datathing in mysql it simple won't update the database. >> >> This code works fine on my old gambas 2 but update won't work in gambas3: >> >> Public Sub SendTimeStamp() >> Dim Hs As String >> >> Hs = "Test" >> >> >> Sql = "relation = '" & Main.RobotCust & "' and robotID = " & >> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer = 0" >> rsTimeSt = db.Edit("robots", Sql) >> rsTimeSt!msg = Hs >> rsTimeSt.Update() >> Endif >> >> >> End >> >> >> >> ------------------------------------------------------------------------------ >> Android apps run on BlackBerry 10 >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> Now with support for Jelly Bean, Bluetooth, Mapview and more. >> Get your Android app in front of a whole new audience. Start now. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Feb 14 10:47:19 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 14 Feb 2014 10:47:19 +0100 Subject: [Gambas-user] Strange msq problem In-Reply-To: <52FDDF6E.5070608@...3306...> References: <52FDCD8A.5040701@...3306...> <52FDDF6E.5070608@...3306...> Message-ID: When you say won't work.. does it crash ? Do you obtain the edit result object ? Is result.available is true Le 14 f?vr. 2014 10:20, "Roel Touwen [prive]" a ?crit : > I tried that but it isn't the solution. > > In the past I tried combining gambas2 and gambas3 on fedora 18. I had > the same situation then but I blamed it on the combination of g2 and g3. > Now I installed it on a clean fedora 20 machine and I experience the same. > > > > op 14-02-14 10:15, Fabien Bodard schreef: > > And If you add db.commit at the end of the job ? > > Le 14 f?vr. 2014 10:04, "Roel Touwen [prive]" a > ?crit : > > > >> Hi All, > >> > >> I have installed the latest Fedora (20) with gambas from the repository. > >> > >> When I do some datathing in mysql it simple won't update the database. > >> > >> This code works fine on my old gambas 2 but update won't work in > gambas3: > >> > >> Public Sub SendTimeStamp() > >> Dim Hs As String > >> > >> Hs = "Test" > >> > >> > >> Sql = "relation = '" & Main.RobotCust & "' and robotID = " & > >> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer = 0" > >> rsTimeSt = db.Edit("robots", Sql) > >> rsTimeSt!msg = Hs > >> rsTimeSt.Update() > >> Endif > >> > >> > >> End > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Android apps run on BlackBerry 10 > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> Get your Android app in front of a whole new audience. Start now. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From roel at ...3306... Fri Feb 14 10:54:24 2014 From: roel at ...3306... (Roel Touwen [prive]) Date: Fri, 14 Feb 2014 10:54:24 +0100 Subject: [Gambas-user] Strange msq problem In-Reply-To: References: <52FDCD8A.5040701@...3306...> <52FDDF6E.5070608@...3306...> Message-ID: <52FDE7D0.2010808@...3306...> Hi Fabien, Uptil the .update it works. I get the record, I can read the data and after setting the field it contains the new data. Strangest thing is that there is no error. The program assumes it has updated the record. But in the db the update is not performed. op 14-02-14 10:47, Fabien Bodard schreef: > When you say won't work.. does it crash ? Do you obtain the edit result > object ? > Is result.available is true > Le 14 f?vr. 2014 10:20, "Roel Touwen [prive]" a ?crit : > >> I tried that but it isn't the solution. >> >> In the past I tried combining gambas2 and gambas3 on fedora 18. I had >> the same situation then but I blamed it on the combination of g2 and g3. >> Now I installed it on a clean fedora 20 machine and I experience the same. >> >> >> >> op 14-02-14 10:15, Fabien Bodard schreef: >>> And If you add db.commit at the end of the job ? >>> Le 14 f?vr. 2014 10:04, "Roel Touwen [prive]" a >> ?crit : >>>> Hi All, >>>> >>>> I have installed the latest Fedora (20) with gambas from the repository. >>>> >>>> When I do some datathing in mysql it simple won't update the database. >>>> >>>> This code works fine on my old gambas 2 but update won't work in >> gambas3: >>>> Public Sub SendTimeStamp() >>>> Dim Hs As String >>>> >>>> Hs = "Test" >>>> >>>> >>>> Sql = "relation = '" & Main.RobotCust & "' and robotID = " & >>>> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer = 0" >>>> rsTimeSt = db.Edit("robots", Sql) >>>> rsTimeSt!msg = Hs >>>> rsTimeSt.Update() >>>> Endif >>>> >>>> >>>> End >>>> >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Android apps run on BlackBerry 10 >>>> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >>>> Now with support for Jelly Bean, Bluetooth, Mapview and more. >>>> Get your Android app in front of a whole new audience. Start now. >>>> >>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >> ------------------------------------------------------------------------------ >>> Android apps run on BlackBerry 10 >>> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >>> Now with support for Jelly Bean, Bluetooth, Mapview and more. >>> Get your Android app in front of a whole new audience. Start now. >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Android apps run on BlackBerry 10 >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> Now with support for Jelly Bean, Bluetooth, Mapview and more. >> Get your Android app in front of a whole new audience. Start now. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Fri Feb 14 11:23:38 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 14 Feb 2014 20:53:38 +1030 Subject: [Gambas-user] Strange msq problem In-Reply-To: <52FDE7D0.2010808@...3306...> References: <52FDCD8A.5040701@...3306...> <52FDDF6E.5070608@...3306...> <52FDE7D0.2010808@...3306...> Message-ID: <1392373418.3995.9.camel@...2688...> On Fri, 2014-02-14 at 10:54 +0100, Roel Touwen [prive] wrote: > Sql = "relation = '" & Main.RobotCust & "' and robotID = " & > >>>> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer > = 0" After that line can you print (or debug) Sql. Don't know (because of email wrapping) but it looks kind of weird to me. B From dominique.michel at ...3298... Fri Feb 14 11:51:08 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Fri, 14 Feb 2014 11:51:08 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink Message-ID: <20140214115108.418a0939@...3299...> I am adding a preference system to the WaveGenerator for the audio sink. It work for all sinks I try but one, the filesink. It is something like $hPlayer = New MediaPipeline $hAudio = New MediaControl($hPlayer, "audiotestsrc") $hConv = New MediaControl($hPlayer, "audioconvert") ' Set the output sink $hOutput = New MediaControl($hPlayer, Settings["OutputSink", "autoaudiosink"]) ' Set the pipeline $hAudio.LinkTo($hConv) $hConv.LinkTo($hOutput) When the output sink is filesink, the preference key look like OutputSink="filesink location=/home/dom/wavegenerator.ogg" And when running it, it fail with Unable to create mediacontrol dans FMain:50 which is $hOutput = New MediaControl($hPlayer, Settings["OutputSink", "autoaudiosink"]) I try without the location=.., or without the path with just location=wavegenerator.ogg, and get the same result. Is it something I can do to get this to work? Dominique From roel at ...3306... Fri Feb 14 11:28:59 2014 From: roel at ...3306... (Roel Touwen [prive]) Date: Fri, 14 Feb 2014 11:28:59 +0100 Subject: [Gambas-user] Strange msq problem In-Reply-To: <1392373418.3995.9.camel@...2688...> References: <52FDCD8A.5040701@...3306...> <52FDDF6E.5070608@...3306...> <52FDE7D0.2010808@...3306...> <1392373418.3995.9.camel@...2688...> Message-ID: <52FDEFEB.502@...3306...> Hi Bruce, That is indeed from the email-wrapping. That part works fine. I get the data from the database. The Sql what is sent to MySql is: *relation = '9123' and robotID = 1 and rectype = 'TS' and subID = '' and sequencer = 0* But, as said, that part works. op 14-02-14 11:23, Bruce schreef: > On Fri, 2014-02-14 at 10:54 +0100, Roel Touwen [prive] wrote: >> Sql = "relation = '" & Main.RobotCust & "' and robotID = " & >>>>>> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer >> = 0" > After that line can you print (or debug) Sql. > Don't know (because of email wrapping) but it looks kind of weird to me. > B > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Feb 14 11:55:40 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 14 Feb 2014 11:55:40 +0100 Subject: [Gambas-user] Strange msq problem In-Reply-To: <52FDEFEB.502@...3306...> References: <52FDCD8A.5040701@...3306...> <52FDDF6E.5070608@...3306...> <52FDE7D0.2010808@...3306...> <1392373418.3995.9.camel@...2688...> <52FDEFEB.502@...3306...> Message-ID: If I remember well there is a way to get all the underlayer output. On the project option in environment tab there is a buttonmenu with known special env value. Look if there Is a sql one (I'm not on my pc) Le 14 f?vr. 2014 11:30, "Roel Touwen [prive]" a ?crit : > Hi Bruce, > > That is indeed from the email-wrapping. That part works fine. I get the > data from the database. > > The Sql what is sent to MySql is: > *relation = '9123' and robotID = 1 and rectype = 'TS' and subID = '' and > sequencer = 0* > But, as said, that part works. > > > > op 14-02-14 11:23, Bruce schreef: > > On Fri, 2014-02-14 at 10:54 +0100, Roel Touwen [prive] wrote: > >> Sql = "relation = '" & Main.RobotCust & "' and robotID = " & > >>>>>> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer > >> = 0" > > After that line can you print (or debug) Sql. > > Don't know (because of email wrapping) but it looks kind of weird to me. > > B > > > > > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Fri Feb 14 13:35:23 2014 From: bbruen at ...2308... (Bruce) Date: Fri, 14 Feb 2014 23:05:23 +1030 Subject: [Gambas-user] Strange msq problem In-Reply-To: <52FDEFEB.502@...3306...> References: <52FDCD8A.5040701@...3306...> <52FDDF6E.5070608@...3306...> <52FDE7D0.2010808@...3306...> <1392373418.3995.9.camel@...2688...> <52FDEFEB.502@...3306...> Message-ID: <1392381323.3995.20.camel@...2688...> On Fri, 2014-02-14 at 11:28 +0100, Roel Touwen [prive] wrote: > Hi Bruce, > > That is indeed from the email-wrapping. That part works fine. I get the > data from the database. > > The Sql what is sent to MySql is: > *relation = '9123' and robotID = 1 and rectype = 'TS' and subID = '' and > sequencer = 0* > But, as said, that part works. > > > > op 14-02-14 11:23, Bruce schreef: > > On Fri, 2014-02-14 at 10:54 +0100, Roel Touwen [prive] wrote: > >> Sql = "relation = '" & Main.RobotCust & "' and robotID = " & > >>>>>> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer > >> = 0" > > After that line can you print (or debug) Sql. > > Don't know (because of email wrapping) but it looks kind of weird to me. > > B Still guessing! So you say that at > >> rsTimeSt = db.Edit("robots", Sql) you have a writeable Result. I presume that rsTimeSt is a Result. If so, does it fail on the next line: > >> rsTimeSt!msg = Hs I see that Hs is a string, what is the dbms datatype of "msg". We need more lower level debug info here. (Not, as some may know, that I am great fan of MyBuggySQL.) I rigged up from what you have told us, and some guessing, the same thing in postgresql and it runs with no problems. The first thing we need to know is exactly where there is a fail and how do you see the symptoms. B From dominique.michel at ...3298... Fri Feb 14 16:33:28 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Fri, 14 Feb 2014 16:33:28 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <20140214115108.418a0939@...3299...> References: <20140214115108.418a0939@...3299...> Message-ID: <20140214163328.341d3c67@...3299...> Le Fri, 14 Feb 2014 11:51:08 +0100, Dominique Michel a ?crit : > I am adding a preference system to the WaveGenerator for the audio > sink. It work for all sinks I try but one, the filesink. > > It is something like > > $hPlayer = New MediaPipeline > $hAudio = New MediaControl($hPlayer, "audiotestsrc") > $hConv = New MediaControl($hPlayer, "audioconvert") > ' Set the output sink > $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > "autoaudiosink"]) > ' Set the pipeline > $hAudio.LinkTo($hConv) > $hConv.LinkTo($hOutput) > > When the output sink is filesink, the preference key look like > OutputSink="filesink location=/home/dom/wavegenerator.ogg" > > And when running it, it fail with > Unable to create mediacontrol dans FMain:50 > > which is > $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > "autoaudiosink"]) > > I try without the location=.., or without the path with just > location=wavegenerator.ogg, and get the same result. > > Is it something I can do to get this to work? Never mind, I find it. > > Dominique > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Fri Feb 14 16:49:28 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 14 Feb 2014 16:49:28 +0100 Subject: [Gambas-user] Translate project into like Korean Message-ID: <20140214154928.GB583@...2774...> Hi, Hans noticed when he wanted to translate his project into Korean (I don't know why he does that because neither of us knows Korean) that not the actual letters are printed on the GUI but the hexadecimal codes of the letters. He supposed that he may have to install some Korean language packages and since I totally fail when it comes to internationalisation, I thought I just ask here. (His mail suggests that he did see the correct letters in Google Translate, though.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Fri Feb 14 17:01:49 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 14 Feb 2014 17:01:49 +0100 Subject: [Gambas-user] Moving elements in ListView Message-ID: <20140214160149.GD583@...2774...> Hi all, can someone please help me moving elements in a ListView or tell me that's impossible? I have tried the same three things or so for the last hour and always thought "this time it's gonna work!" but it didn't... Say I have a list of four elements (#0..#3) and want to move #1 to position #2 so that #2 goes to position #1. A source archive would be enough. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Fri Feb 14 17:36:17 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 14 Feb 2014 17:36:17 +0100 Subject: [Gambas-user] Translate project into like Korean In-Reply-To: <20140214154928.GB583@...2774...> References: <20140214154928.GB583@...2774...> Message-ID: <52FE4601.3090106@...1...> Le 14/02/2014 16:49, Tobias Boege a ?crit : > Hi, > > Hans noticed when he wanted to translate his project into Korean (I don't > know why he does that because neither of us knows Korean) that not the > actual letters are printed on the GUI but the hexadecimal codes of the > letters. > > He supposed that he may have to install some Korean language packages and > since I totally fail when it comes to internationalisation, I thought I just > ask here. (His mail suggests that he did see the correct letters in Google > Translate, though.) > > Regards, > Tobi > He has to install at least one korean font I guess... -- Beno?t Minisini From gambas at ...1... Fri Feb 14 17:37:39 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 14 Feb 2014 17:37:39 +0100 Subject: [Gambas-user] CheckBox In-Reply-To: <52FBB5BB.3060403@...3240...> References: <52FBB5BB.3060403@...3240...> Message-ID: <52FE4653.7080103@...1...> Le 12/02/2014 18:56, Matti a ?crit : > Why doesn't have the CheckBox a 'Change' event? > Would be very handy to use in an action group with other controls, to catch if the user made changes. > Now, the 'Click' events for CheckBoxes have to be handled separately. > Regards > Matti > I don't understand: the Click event *is* your Change event. -- Beno?t Minisini From gambas at ...1... Fri Feb 14 18:02:22 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 14 Feb 2014 18:02:22 +0100 Subject: [Gambas-user] gb.gsl: pseudo-complex Vectors make different cross product In-Reply-To: <20140211201510.GC650@...2774...> References: <20140211201510.GC650@...2774...> Message-ID: <52FE4C1E.1020901@...1...> Le 11/02/2014 21:15, Tobias Boege a ?crit : > Hi Benoit, > > a strange thing this time. Using gb.gsl, we noticed that there is a way to > compute the cross product of two Vector objects in "complex" mode - but > without any complex numbers in them - which yields a different result than > other methods to compute it. Attached is a project that shows what I mean. > > Note that everything is fine if we don't force the Vector to be complex and > also everything is fine if we don't insist on computing the components in > separate Float variables, as said in the comments. > > Oh, and for the record, the Y component is wrong. It should be -18 every > time but using that special method above, we get +18. The vectors are > immediately taken from an application, seemingly nothing special about them. > > I also noticed that wrapping each product of components into a CFloat() call > yields the correct result again... I tried that because even the debugger > didn't seem to get the type of hA[iIndex] figured out... > > What may be going on there? > > Regards, > Tobi > Arf... This is because Complex to Float conversion takes the modulus value, so -18 as a complex becomes +18. Mmm... that was a weird choice. We can even call that a bug. I must leave now, but I think I will replace that by taking the real part of the complex number if the imaginary part is zero, and raising a conversion error instead. Regards, -- Beno?t Minisini From taboege at ...626... Fri Feb 14 18:20:24 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 14 Feb 2014 18:20:24 +0100 Subject: [Gambas-user] gb.gsl: pseudo-complex Vectors make different cross product In-Reply-To: <52FE4C1E.1020901@...1...> References: <20140211201510.GC650@...2774...> <52FE4C1E.1020901@...1...> Message-ID: <20140214172024.GH583@...2774...> On Fri, 14 Feb 2014, Beno?t Minisini wrote: > Le 11/02/2014 21:15, Tobias Boege a ?crit : > > Hi Benoit, > > > > a strange thing this time. Using gb.gsl, we noticed that there is a way to > > compute the cross product of two Vector objects in "complex" mode - but > > without any complex numbers in them - which yields a different result than > > other methods to compute it. Attached is a project that shows what I mean. > > > > Note that everything is fine if we don't force the Vector to be complex and > > also everything is fine if we don't insist on computing the components in > > separate Float variables, as said in the comments. > > > > Oh, and for the record, the Y component is wrong. It should be -18 every > > time but using that special method above, we get +18. The vectors are > > immediately taken from an application, seemingly nothing special about them. > > > > I also noticed that wrapping each product of components into a CFloat() call > > yields the correct result again... I tried that because even the debugger > > didn't seem to get the type of hA[iIndex] figured out... > > > > What may be going on there? > > > > Regards, > > Tobi > > > > Arf... This is because Complex to Float conversion takes the modulus > value, so -18 as a complex becomes +18. > > Mmm... that was a weird choice. We can even call that a bug. > > I must leave now, but I think I will replace that by taking the real > part of the complex number if the imaginary part is zero, and raising a > conversion error instead. > I second that. Thanks. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Fri Feb 14 19:37:53 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 14 Feb 2014 19:37:53 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <20140214163328.341d3c67@...3299...> References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> Message-ID: and ? it's? 2014-02-14 16:33 GMT+01:00 Dominique Michel : > Le Fri, 14 Feb 2014 11:51:08 +0100, > Dominique Michel a ?crit : > >> I am adding a preference system to the WaveGenerator for the audio >> sink. It work for all sinks I try but one, the filesink. >> >> It is something like >> >> $hPlayer = New MediaPipeline >> $hAudio = New MediaControl($hPlayer, "audiotestsrc") >> $hConv = New MediaControl($hPlayer, "audioconvert") >> ' Set the output sink >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", >> "autoaudiosink"]) >> ' Set the pipeline >> $hAudio.LinkTo($hConv) >> $hConv.LinkTo($hOutput) >> >> When the output sink is filesink, the preference key look like >> OutputSink="filesink location=/home/dom/wavegenerator.ogg" >> >> And when running it, it fail with >> Unable to create mediacontrol dans FMain:50 >> >> which is >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", >> "autoaudiosink"]) >> >> I try without the location=.., or without the path with just >> location=wavegenerator.ogg, and get the same result. >> >> Is it something I can do to get this to work? > > Never mind, I find it. > >> >> Dominique >> >> ------------------------------------------------------------------------------ >> Android apps run on BlackBerry 10 >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. >> Now with support for Jelly Bean, Bluetooth, Mapview and more. >> Get your Android app in front of a whole new audience. Start now. >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From sbungay at ...3301... Fri Feb 14 19:47:51 2014 From: sbungay at ...3301... (Stephen) Date: Fri, 14 Feb 2014 13:47:51 -0500 Subject: [Gambas-user] Class editor toolbar keyboard shortcuts? Message-ID: <52FE64D7.5010106@...3301...> Being able to comment and uncomment large blocks of selected code is a wonderful thing, being able to do it without having to mouse up to the editor tool bar would be even more so. Is there keyboard shortcut to perform the aforementioned function? -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From bbruen at ...2308... Fri Feb 14 22:57:25 2014 From: bbruen at ...2308... (Bruce) Date: Sat, 15 Feb 2014 08:27:25 +1030 Subject: [Gambas-user] Class editor toolbar keyboard shortcuts? In-Reply-To: <52FE64D7.5010106@...3301...> References: <52FE64D7.5010106@...3301...> Message-ID: <1392415045.3995.22.camel@...2688...> On Fri, 2014-02-14 at 13:47 -0500, Stephen wrote: > Being able to comment and uncomment large blocks of selected code is > a wonderful thing, being able to do it without having to mouse up to the > editor tool bar would be even more so. Is there keyboard shortcut to > perform the aforementioned function? > ctl+K, ctl+U hth B From bbruen at ...2308... Fri Feb 14 23:01:21 2014 From: bbruen at ...2308... (Bruce) Date: Sat, 15 Feb 2014 08:31:21 +1030 Subject: [Gambas-user] Moving elements in ListView In-Reply-To: <20140214160149.GD583@...2774...> References: <20140214160149.GD583@...2774...> Message-ID: <1392415281.3995.23.camel@...2688...> On Fri, 2014-02-14 at 17:01 +0100, Tobias Boege wrote: > Hi all, > > can someone please help me moving elements in a ListView or tell me that's > impossible? I have tried the same three things or so for the last hour and > always thought "this time it's gonna work!" but it didn't... > > Say I have a list of four elements (#0..#3) and want to move #1 to position > #2 so that #2 goes to position #1. A source archive would be enough. > > Regards, > Tobi > Something like this? http://paddys-hill.net/wp/gambas/gambas-components/gb-listmgr/ Bruce From horechuk at ...981... Fri Feb 14 23:01:20 2014 From: horechuk at ...981... (Paul Horechuk) Date: Fri, 14 Feb 2014 17:01:20 -0500 Subject: [Gambas-user] [Gambas-User] StarField Example Message-ID: <52FE9230.8090000@...981...> Could someone please explain the program flow for the Examples/Games/Starfield project? I've stepped through the code after setting a breakpoint. The screen_draw procedure executes immediately following the Public Sub Main() procedure when it finishes. What triggers the Public Sub screen_draw procedure to start and loop? -- Think Free... Use OpenSource Software From dominique.michel at ...3298... Fri Feb 14 23:42:51 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Fri, 14 Feb 2014 23:42:51 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> Message-ID: <20140214234251.00c3bd2c@...3299...> Le Fri, 14 Feb 2014 19:37:53 +0100, Fabien Bodard a ?crit : > and ? it's? It's to add $hOutput["location"] = "wavegenerator.flac" $hPlayer = New MediaPipeline $hAudio = New MediaControl($hPlayer, "audiotestsrc") $hConv = New MediaControl($hPlayer, "flacenc") $hOutput = New MediaControl($hPlayer, "filesink"]) $hOutput["location"] = "wavegenerator.flac" ' Set the pipeline $hAudio.LinkTo($hConv) $hConv.LinkTo($hOutput) But I get another issue now. MediaPipeline have 4 methods: Play, Pause, Stop and Quit. Play is used to start the playing, and when I click on the Play button, I get the file. When I click on the Play button a second time, GStreamer pause and the file is still here and I can play it with mplayer and alsaplayer. aplay play it but give garbage at the output. mplayer sound is the best, but it never stop the playing. Alsaplayer sound is a little bit choppy and the duration display is lost. And when I quit the wavegenerator, the file is still here, but its content is erased and give a 0 bit file. I googled a lot, but didn't find nothing that helped. In the play/pause function, I try to replace $hPlayer.Pause by $hPlayer.Stop but the issue remain the same. When quitting, $hPlayer.Quit is called, and that's what reinitialize the file to a 0 length file. Another issue is it look like to be no duration information in the file before its reinitialization to 0. I googled a lot, but didn't find nothing that helped. Dominique > > 2014-02-14 16:33 GMT+01:00 Dominique Michel > : > > Le Fri, 14 Feb 2014 11:51:08 +0100, > > Dominique Michel a ?crit : > > > >> I am adding a preference system to the WaveGenerator for the audio > >> sink. It work for all sinks I try but one, the filesink. > >> > >> It is something like > >> > >> $hPlayer = New MediaPipeline > >> $hAudio = New MediaControl($hPlayer, "audiotestsrc") > >> $hConv = New MediaControl($hPlayer, "audioconvert") > >> ' Set the output sink > >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > >> "autoaudiosink"]) > >> ' Set the pipeline > >> $hAudio.LinkTo($hConv) > >> $hConv.LinkTo($hOutput) > >> > >> When the output sink is filesink, the preference key look like > >> OutputSink="filesink location=/home/dom/wavegenerator.ogg" > >> > >> And when running it, it fail with > >> Unable to create mediacontrol dans FMain:50 > >> > >> which is > >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > >> "autoaudiosink"]) > >> > >> I try without the location=.., or without the path with just > >> location=wavegenerator.ogg, and get the same result. > >> > >> Is it something I can do to get this to work? > > > > Never mind, I find it. > > > >> > >> Dominique > >> > >> ------------------------------------------------------------------------------ > >> Android apps run on BlackBerry 10 > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> Get your Android app in front of a whole new audience. Start now. > >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Fri Feb 14 23:35:09 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 14 Feb 2014 23:35:09 +0100 Subject: [Gambas-user] [Gambas-User] StarField Example In-Reply-To: <52FE9230.8090000@...981...> References: <52FE9230.8090000@...981...> Message-ID: <52FE9A1D.9030300@...1...> Le 14/02/2014 23:01, Paul Horechuk a ?crit : > Could someone please explain the program flow for the > Examples/Games/Starfield project? I've stepped through the code after > setting a breakpoint. The screen_draw procedure executes immediately > following the Public Sub Main() procedure when it finishes. What > triggers the Public Sub screen_draw procedure to start and loop? > It's a SDL project : when using the gb.sdl component, you create a unique window object (the 'screen' global variable), and then this object will raise its Draw event automatically at each event loop tick. The window object has a "FrameRate" property that allows to define the frequency of that event (for example, 60 draws by second). -- Beno?t Minisini From taboege at ...626... Sat Feb 15 00:12:54 2014 From: taboege at ...626... (Tobias Boege) Date: Sat, 15 Feb 2014 00:12:54 +0100 Subject: [Gambas-user] Moving elements in ListView In-Reply-To: <1392415281.3995.23.camel@...2688...> References: <20140214160149.GD583@...2774...> <1392415281.3995.23.camel@...2688...> Message-ID: <20140214231254.GS583@...2774...> On Sat, 15 Feb 2014, Bruce wrote: > On Fri, 2014-02-14 at 17:01 +0100, Tobias Boege wrote: > > Hi all, > > > > can someone please help me moving elements in a ListView or tell me that's > > impossible? I have tried the same three things or so for the last hour and > > always thought "this time it's gonna work!" but it didn't... > > > > Say I have a list of four elements (#0..#3) and want to move #1 to position > > #2 so that #2 goes to position #1. A source archive would be enough. > > > > Regards, > > Tobi > > > > Something like this? > http://paddys-hill.net/wp/gambas/gambas-components/gb-listmgr/ > > Bruce > If I understood the code correctly, you implement moving (btnMoveUp -> MoveItem, LoadList) by managing an internal array which is modified and then used to generate ColumnView contents from scratch? Nice idea but this ranks among "workaround" because of two reasons: 1) it's a ColumnView, not a ListView; we want to operate with ListView only; 2) we want to use the ListView properties and methods (if at all possible) to do the move, not repopulate the ListView with changed data (we have a purely theoretical goal here). I should have said that... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From dominique.michel at ...3298... Sat Feb 15 00:38:43 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 15 Feb 2014 00:38:43 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <20140214234251.00c3bd2c@...3299...> References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> <20140214234251.00c3bd2c@...3299...> Message-ID: <20140215003843.4d34fa2c@...3299...> Le Fri, 14 Feb 2014 23:42:51 +0100, Dominique Michel a ?crit : > Le Fri, 14 Feb 2014 19:37:53 +0100, > Fabien Bodard a ?crit : > > > and ? it's? > > It's to add > $hOutput["location"] = "wavegenerator.flac" > > > $hPlayer = New MediaPipeline > $hAudio = New MediaControl($hPlayer, "audiotestsrc") That solve the duration issue with mplayer and alsaplayer: $hAudio["is-live"] = "1" but not the 0 length file issue. > $hConv = New MediaControl($hPlayer, "flacenc") > $hOutput = New MediaControl($hPlayer, "filesink"]) > $hOutput["location"] = "wavegenerator.flac" > ' Set the pipeline > $hAudio.LinkTo($hConv) > $hConv.LinkTo($hOutput) > > > > But I get another issue now. MediaPipeline have 4 methods: Play, > Pause, Stop and Quit. > > Play is used to start the playing, and when I click on > the Play button, I get the file. > > When I click on the Play button a second time, GStreamer pause and the > file is still here and I can play it with mplayer and alsaplayer. > aplay play it but give garbage at the output. mplayer sound is the > best, but it never stop the playing. Alsaplayer sound is a little bit > choppy and the duration display is lost. > > And when I quit the wavegenerator, the file is still here, but its > content is erased and give a 0 bit file. I googled a lot, but didn't > find nothing that helped. > > In the play/pause function, I try to replace > $hPlayer.Pause > by > $hPlayer.Stop > but the issue remain the same. > > When quitting, $hPlayer.Quit is called, and that's what reinitialize > the file to a 0 length file. Another issue is it look like to be no > duration information in the file before its reinitialization to 0. > > I googled a lot, but didn't find nothing that helped. > > Dominique > > > > > > 2014-02-14 16:33 GMT+01:00 Dominique Michel > > : > > > Le Fri, 14 Feb 2014 11:51:08 +0100, > > > Dominique Michel a ?crit : > > > > > >> I am adding a preference system to the WaveGenerator for the > > >> audio sink. It work for all sinks I try but one, the filesink. > > >> > > >> It is something like > > >> > > >> $hPlayer = New MediaPipeline > > >> $hAudio = New MediaControl($hPlayer, "audiotestsrc") > > >> $hConv = New MediaControl($hPlayer, "audioconvert") > > >> ' Set the output sink > > >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > > >> "autoaudiosink"]) > > >> ' Set the pipeline > > >> $hAudio.LinkTo($hConv) > > >> $hConv.LinkTo($hOutput) > > >> > > >> When the output sink is filesink, the preference key look like > > >> OutputSink="filesink location=/home/dom/wavegenerator.ogg" > > >> > > >> And when running it, it fail with > > >> Unable to create mediacontrol dans FMain:50 > > >> > > >> which is > > >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > > >> "autoaudiosink"]) > > >> > > >> I try without the location=.., or without the path with just > > >> location=wavegenerator.ogg, and get the same result. > > >> > > >> Is it something I can do to get this to work? > > > > > > Never mind, I find it. > > > > > >> > > >> Dominique > > >> > > >> ------------------------------------------------------------------------------ > > >> Android apps run on BlackBerry 10 > > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > > >> Get your Android app in front of a whole new audience. Start > > >> now. > > >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > >> _______________________________________________ Gambas-user > > >> mailing list Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > > Android apps run on BlackBerry 10 > > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Sat Feb 15 00:20:34 2014 From: taboege at ...626... (Tobias Boege) Date: Sat, 15 Feb 2014 00:20:34 +0100 Subject: [Gambas-user] gb.gsl: pseudo-complex Vectors make different cross product In-Reply-To: <52FE4C1E.1020901@...1...> References: <20140211201510.GC650@...2774...> <52FE4C1E.1020901@...1...> Message-ID: <20140214232034.GT583@...2774...> On Fri, 14 Feb 2014, Beno?t Minisini wrote: > Le 11/02/2014 21:15, Tobias Boege a ?crit : > > Hi Benoit, > > > > a strange thing this time. Using gb.gsl, we noticed that there is a way to > > compute the cross product of two Vector objects in "complex" mode - but > > without any complex numbers in them - which yields a different result than > > other methods to compute it. Attached is a project that shows what I mean. > > > > Note that everything is fine if we don't force the Vector to be complex and > > also everything is fine if we don't insist on computing the components in > > separate Float variables, as said in the comments. > > > > Oh, and for the record, the Y component is wrong. It should be -18 every > > time but using that special method above, we get +18. The vectors are > > immediately taken from an application, seemingly nothing special about them. > > > > I also noticed that wrapping each product of components into a CFloat() call > > yields the correct result again... I tried that because even the debugger > > didn't seem to get the type of hA[iIndex] figured out... > > > > What may be going on there? > > > > Regards, > > Tobi > > > > Arf... This is because Complex to Float conversion takes the modulus > value, so -18 as a complex becomes +18. > > Mmm... that was a weird choice. We can even call that a bug. > > I must leave now, but I think I will replace that by taking the real > part of the complex number if the imaginary part is zero, and raising a > conversion error instead. > Works with #6156. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From dominique.michel at ...3298... Sat Feb 15 02:23:47 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 15 Feb 2014 02:23:47 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <20140215003843.4d34fa2c@...3299...> References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> <20140214234251.00c3bd2c@...3299...> <20140215003843.4d34fa2c@...3299...> Message-ID: <20140215022347.1634044c@...3299...> Le Sat, 15 Feb 2014 00:38:43 +0100, Dominique Michel a ?crit : > Le Fri, 14 Feb 2014 23:42:51 +0100, > Dominique Michel a ?crit : > > > Le Fri, 14 Feb 2014 19:37:53 +0100, > > Fabien Bodard a ?crit : > > > > > and ? it's? > > > > It's to add > > $hOutput["location"] = "wavegenerator.flac" > > > > > > $hPlayer = New MediaPipeline > > $hAudio = New MediaControl($hPlayer, "audiotestsrc") > > That solve the duration issue with mplayer and alsaplayer: > $hAudio["is-live"] = "1" > but not the 0 length file issue. That solve it only partly. Both players play it with the wanted duration, but they display a file length of 0 seconde. I get the same problem with the following command line: gst-launch-1.0 audiotestsrc is-live=1 ! flacenc ! filesink location=generated.flac But I get the correct duration display with: gst-launch-1.0 -e audiotestsrc is-live=1 ! flacenc ! filesink location=generated.flac Another issue is that ideally, I want to be able to use such a pipeline with gambas: gst-launch-1.0 -e audiotestsrc is-live=1 ! audio/x-raw,channels=2,rate=48000 ! flacenc ! filesink location=generated.flac and if I try something like: $hAudio["is-live"] = "1" $hRaw = New MediaControl($hPlayer, "audio/x-raw") $hConv = New MediaControl($hPlayer, "flacenc") $hOutput["location"] = "wavegenerator.flac" $hOutput["append"] = "1" $hAudio.LinkTo($hRaw) $hRaw.LinkTo($hConv) $hConv.LinkTo($hOutput) it fail at $hRaw = New MediaControl($hPlayer, "audio/x-raw") How I can get it to work? If I comment out $hRaw = New MediaControl($hPlayer, "audio/x-raw"), the line '$hOutput["append"] = "1"' make the content of the generated file to survive when quitting the program, but as alsaplayer still display a duration of 0, I am not sure it is the right fix. It look more like a workaround. Dominique > > > $hConv = New MediaControl($hPlayer, "flacenc") > > $hOutput = New MediaControl($hPlayer, "filesink"]) > > $hOutput["location"] = "wavegenerator.flac" > > ' Set the pipeline > > $hAudio.LinkTo($hConv) > > $hConv.LinkTo($hOutput) > > > > > > > > But I get another issue now. MediaPipeline have 4 methods: Play, > > Pause, Stop and Quit. > > > > Play is used to start the playing, and when I click on > > the Play button, I get the file. > > > > When I click on the Play button a second time, GStreamer pause and > > the file is still here and I can play it with mplayer and > > alsaplayer. aplay play it but give garbage at the output. mplayer > > sound is the best, but it never stop the playing. Alsaplayer sound > > is a little bit choppy and the duration display is lost. > > > > And when I quit the wavegenerator, the file is still here, but its > > content is erased and give a 0 bit file. I googled a lot, but didn't > > find nothing that helped. > > > > In the play/pause function, I try to replace > > $hPlayer.Pause > > by > > $hPlayer.Stop > > but the issue remain the same. > > > > When quitting, $hPlayer.Quit is called, and that's what reinitialize > > the file to a 0 length file. Another issue is it look like to be no > > duration information in the file before its reinitialization to 0. > > > > I googled a lot, but didn't find nothing that helped. > > > > Dominique > > > > > > > > > > 2014-02-14 16:33 GMT+01:00 Dominique Michel > > > : > > > > Le Fri, 14 Feb 2014 11:51:08 +0100, > > > > Dominique Michel a ?crit : > > > > > > > >> I am adding a preference system to the WaveGenerator for the > > > >> audio sink. It work for all sinks I try but one, the filesink. > > > >> > > > >> It is something like > > > >> > > > >> $hPlayer = New MediaPipeline > > > >> $hAudio = New MediaControl($hPlayer, "audiotestsrc") > > > >> $hConv = New MediaControl($hPlayer, "audioconvert") > > > >> ' Set the output sink > > > >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > > > >> "autoaudiosink"]) > > > >> ' Set the pipeline > > > >> $hAudio.LinkTo($hConv) > > > >> $hConv.LinkTo($hOutput) > > > >> > > > >> When the output sink is filesink, the preference key look like > > > >> OutputSink="filesink location=/home/dom/wavegenerator.ogg" > > > >> > > > >> And when running it, it fail with > > > >> Unable to create mediacontrol dans FMain:50 > > > >> > > > >> which is > > > >> $hOutput = New MediaControl($hPlayer, Settings["OutputSink", > > > >> "autoaudiosink"]) > > > >> > > > >> I try without the location=.., or without the path with just > > > >> location=wavegenerator.ogg, and get the same result. > > > >> > > > >> Is it something I can do to get this to work? > > > > > > > > Never mind, I find it. > > > > > > > >> > > > >> Dominique > > > >> > > > >> ------------------------------------------------------------------------------ > > > >> Android apps run on BlackBerry 10 > > > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > > > >> Get your Android app in front of a whole new audience. Start > > > >> now. > > > >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > > >> _______________________________________________ Gambas-user > > > >> mailing list Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > > > Android apps run on BlackBerry 10 > > > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > > > Get your Android app in front of a whole new audience. Start > > > > now. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > > > _______________________________________________ Gambas-user > > > > mailing list Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Android apps run on BlackBerry 10 > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Feb 15 02:49:14 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 15 Feb 2014 02:49:14 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <20140215022347.1634044c@...3299...> References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> <20140214234251.00c3bd2c@...3299...> <20140215003843.4d34fa2c@...3299...> <20140215022347.1634044c@...3299...> Message-ID: <52FEC79A.6090100@...1...> Le 15/02/2014 02:23, Dominique Michel a ?crit : >> >> That solve the duration issue with mplayer and alsaplayer: >> $hAudio["is-live"] = "1" >> but not the 0 length file issue. > > That solve it only partly. Both players play it with the wanted > duration, but they display a file length of 0 seconde. > > I get the same problem with the following command line: > gst-launch-1.0 audiotestsrc is-live=1 ! flacenc ! filesink > location=generated.flac > > But I get the correct duration display with: > gst-launch-1.0 -e audiotestsrc is-live=1 ! flacenc ! filesink > location=generated.flac I think I can add the same trick to gb.media. I will tell you. > > Another issue is that ideally, I want to be able to use such a pipeline > with gambas: > > gst-launch-1.0 -e audiotestsrc is-live=1 ! > audio/x-raw,channels=2,rate=48000 ! flacenc ! filesink > location=generated.flac > > and if I try something like: > > $hAudio["is-live"] = "1" > $hRaw = New MediaControl($hPlayer, "audio/x-raw") > $hConv = New MediaControl($hPlayer, "flacenc") > $hOutput["location"] = "wavegenerator.flac" > $hOutput["append"] = "1" > $hAudio.LinkTo($hRaw) > $hRaw.LinkTo($hConv) > $hConv.LinkTo($hOutput) > > it fail at $hRaw = New MediaControl($hPlayer, "audio/x-raw") > > How I can get it to work? 'audio/x-raw' is actually a special syntax for the 'capsfilter' GStreamer plugin. It is handled by the MediaFilter object, not just the MediaControl object: $hRaw = New MediaFilter($hPlayer, "audio/x-raw,channels=2,rate=48000") That should work. You will tell me. -- Beno?t Minisini From taboege at ...626... Sat Feb 15 02:54:44 2014 From: taboege at ...626... (Tobias Boege) Date: Sat, 15 Feb 2014 02:54:44 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <52FEC79A.6090100@...1...> References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> <20140214234251.00c3bd2c@...3299...> <20140215003843.4d34fa2c@...3299...> <20140215022347.1634044c@...3299...> <52FEC79A.6090100@...1...> Message-ID: <20140215015444.GV583@...2774...> On Sat, 15 Feb 2014, Beno?t Minisini wrote: > Le 15/02/2014 02:23, Dominique Michel a ?crit : > >> > >> That solve the duration issue with mplayer and alsaplayer: > >> $hAudio["is-live"] = "1" > >> but not the 0 length file issue. > > > > That solve it only partly. Both players play it with the wanted > > duration, but they display a file length of 0 seconde. > > > > I get the same problem with the following command line: > > gst-launch-1.0 audiotestsrc is-live=1 ! flacenc ! filesink > > location=generated.flac > > > > But I get the correct duration display with: > > gst-launch-1.0 -e audiotestsrc is-live=1 ! flacenc ! filesink > > location=generated.flac > > I think I can add the same trick to gb.media. I will tell you. > > > > > Another issue is that ideally, I want to be able to use such a pipeline > > with gambas: > > > > gst-launch-1.0 -e audiotestsrc is-live=1 ! > > audio/x-raw,channels=2,rate=48000 ! flacenc ! filesink > > location=generated.flac > > > > and if I try something like: > > > > $hAudio["is-live"] = "1" > > $hRaw = New MediaControl($hPlayer, "audio/x-raw") > > $hConv = New MediaControl($hPlayer, "flacenc") > > $hOutput["location"] = "wavegenerator.flac" > > $hOutput["append"] = "1" > > $hAudio.LinkTo($hRaw) > > $hRaw.LinkTo($hConv) > > $hConv.LinkTo($hOutput) > > > > it fail at $hRaw = New MediaControl($hPlayer, "audio/x-raw") > > > > How I can get it to work? > > 'audio/x-raw' is actually a special syntax for the 'capsfilter' > GStreamer plugin. > > It is handled by the MediaFilter object, not just the MediaControl object: > > $hRaw = New MediaFilter($hPlayer, "audio/x-raw,channels=2,rate=48000") > > That should work. You will tell me. > Very sorry to step in (especially since I can say absolutely nothing about the topic) but this mail has been the 10,000th I received from this list! Congratulating myself and trying to finish the work as now I could theoretically go to bed :-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bbruen at ...2308... Sat Feb 15 04:56:38 2014 From: bbruen at ...2308... (Bruce) Date: Sat, 15 Feb 2014 14:26:38 +1030 Subject: [Gambas-user] ComboBox: Detect if the button was clicked Message-ID: <1392436598.3995.28.camel@...2688...> I have tried a couple of ways to determine if the user has clicked on the button that opens the list in a combobox with no great success. (I am trying to discern whether they selected a list item or typed a new string in the textbox.) It looks like I have to use the Mouse.X and Mouse.Y values to see if they are inside the button, but this is extrememly fragile and painful. Does anyone have a better idea. tia Bruce From dominique.michel at ...3298... Sat Feb 15 09:06:33 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 15 Feb 2014 09:06:33 +0100 Subject: [Gambas-user] media component syntax and the gstreamer filesink In-Reply-To: <52FEC79A.6090100@...1...> References: <20140214115108.418a0939@...3299...> <20140214163328.341d3c67@...3299...> <20140214234251.00c3bd2c@...3299...> <20140215003843.4d34fa2c@...3299...> <20140215022347.1634044c@...3299...> <52FEC79A.6090100@...1...> Message-ID: <20140215090633.1f062f68@...3299...> Le Sat, 15 Feb 2014 02:49:14 +0100, Beno?t Minisini a ?crit : > Le 15/02/2014 02:23, Dominique Michel a ?crit : > >> > >> That solve the duration issue with mplayer and alsaplayer: > >> $hAudio["is-live"] = "1" > >> but not the 0 length file issue. > > > > That solve it only partly. Both players play it with the wanted > > duration, but they display a file length of 0 seconde. > > > > I get the same problem with the following command line: > > gst-launch-1.0 audiotestsrc is-live=1 ! flacenc ! filesink > > location=generated.flac > > > > But I get the correct duration display with: > > gst-launch-1.0 -e audiotestsrc is-live=1 ! flacenc ! filesink > > location=generated.flac > > I think I can add the same trick to gb.media. I will tell you. Thank you. > > > > > Another issue is that ideally, I want to be able to use such a > > pipeline with gambas: > > > > gst-launch-1.0 -e audiotestsrc is-live=1 ! > > audio/x-raw,channels=2,rate=48000 ! flacenc ! filesink > > location=generated.flac > > > > and if I try something like: > > > > $hAudio["is-live"] = "1" > > $hRaw = New MediaControl($hPlayer, "audio/x-raw") > > $hConv = New MediaControl($hPlayer, "flacenc") > > $hOutput["location"] = "wavegenerator.flac" > > $hOutput["append"] = "1" > > $hAudio.LinkTo($hRaw) > > $hRaw.LinkTo($hConv) > > $hConv.LinkTo($hOutput) > > > > it fail at $hRaw = New MediaControl($hPlayer, "audio/x-raw") > > > > How I can get it to work? > > 'audio/x-raw' is actually a special syntax for the 'capsfilter' > GStreamer plugin. > > It is handled by the MediaFilter object, not just the MediaControl > object: > > $hRaw = New MediaFilter($hPlayer, "audio/x-raw,channels=2,rate=48000") > > That should work. You will tell me. > Gambas fail with this. The following work but do nothing: $hRaw = New MediaFilter($hPlayer) $hRaw["caps"] = "audio/x-raw, channels=2, rate=48000" Dominique From dominique.michel at ...3298... Sat Feb 15 09:13:57 2014 From: dominique.michel at ...3298... (Dominique Michel) Date: Sat, 15 Feb 2014 09:13:57 +0100 Subject: [Gambas-user] Bug in WaveGenerator 3.5.90 In-Reply-To: <20140212201931.595f5d87@...3299...> References: <52FAC3CB.4040306@...1...> <20140212071252.41cf9085@...3299...> <20140212201931.595f5d87@...3299...> Message-ID: <20140215091357.08be88fc@...3299...> Le Wed, 12 Feb 2014 20:19:31 +0100, Dominique Michel a ?crit : In gnome-media, it is gstreamer-properties that can be used to setup the default audio and video sinks. On my system, gconf is not installed, but it create the keys in ~/.config/gconf and is able to use them (if I close and restart it, I get my previous choice). Unfortunately, it doesn't work with the wavegenerator, even when the output sink is autoaudiosink. But maybe someone that have gconf on its system will get a different result, I don't know. > Le Wed, 12 Feb 2014 11:24:32 +0100, > Fabien Bodard a ?crit : > > > 2014-02-12 7:12 GMT+01:00 Dominique Michel > > : > > > Le Wed, 12 Feb 2014 02:57:10 +0200, > > > Jussi Lahtinen a ?crit : > > > > > >> OK, now it works. I'm getting these messages: > > >> Cannot connect to server socket err = No such file or directory > > >> Cannot connect to server request channel > > >> jack server is not running or cannot be started > > >> > > >> I really don't have jack installed, why it looks for it? > > >> > > >> > > >> Jussi > > > > > > This have nothing to do with Gambas and all with Gstreamer. Here I > > > have jack running all the time, and if I use the autoaudiosink, > > > gstreamer connect to alsa... > > > > But you need to this anybody... it is an example ... it is not > > only for your use. > > I know that. That was just to say Jussi is not the only one that have > an issue with that auto sink, even if it work. > > On my system, alsa and jack are interconnected with the jack pcm > plugin in my .asoundrc, so I get the sound of both sound systems in > jack. > > > > > > > > > > Dominique > > > > > >> > > >> > > >> On Wed, Feb 12, 2014 at 2:43 AM, Beno?t Minisini < > > >> gambas at ...1...> wrote: > > >> > > >> > Le 12/02/2014 01:37, Jussi Lahtinen a ?crit : > > >> > > See attached pic. No further error messages, or warnings. > > >> > > > > >> > > Gambas 3 rev 6147 @ Xubuntu 13.10 64bit > > >> > > > > >> > > Jussi > > >> > > > > >> > > > >> > Replace "alsasink" with "autoaudiosink". I will commit that fix > > >> > later. > > >> > > > >> > -- > > >> > Beno?t Minisini > > >> > > > >> > > > >> > ------------------------------------------------------------------------------ > > >> > Android apps run on BlackBerry 10 > > >> > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > >> > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > >> > Get your Android app in front of a whole new audience. Start > > >> > now. > > >> > > > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> ------------------------------------------------------------------------------ > > >> Android apps run on BlackBerry 10 > > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > > >> Get your Android app in front of a whole new audience. Start > > >> now. > > >> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > >> _______________________________________________ Gambas-user > > >> mailing list Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > > Android apps run on BlackBerry 10 > > > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > > > Now with support for Jelly Bean, Bluetooth, Mapview and more. > > > Get your Android app in front of a whole new audience. Start now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Sat Feb 15 15:11:48 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 16 Feb 2014 00:41:48 +1030 Subject: [Gambas-user] Where does the application default font come from? Message-ID: <1392473508.27336.8.camel@...2688...> Probably more correctly, where does the runtime get Application.Font from? I have changed my system font settings to better suit my new glasses but couldn't see any better when I ran a Gambas app. So I stuck a display of Application.Font.ToString() in a form. It's showing DejaVu Sans,9 but my system font is Nimbus Sans,10. None of the fonts in the IDE are DejaVu. (If the answer is "It just uses the users system default font" then I re-phrase the question to "Approximately where in the gbx source code does Application.Font get set?". Because if so, then this is a(nother) LXDE issue and I'll have to sort it out from the source.) tia Bruce From bbruen at ...2308... Sat Feb 15 15:21:12 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 16 Feb 2014 00:51:12 +1030 Subject: [Gambas-user] Where does the application default font come from? In-Reply-To: <1392473508.27336.8.camel@...2688...> References: <1392473508.27336.8.camel@...2688...> Message-ID: <1392474072.27336.9.camel@...2688...> On Sun, 2014-02-16 at 00:41 +1030, Bruce wrote: > Probably more correctly, where does the runtime get Application.Font > from? > > I have changed my system font settings to better suit my new glasses but > couldn't see any better when I ran a Gambas app. So I stuck a display of > Application.Font.ToString() in a form. > > It's showing DejaVu Sans,9 but my system font is Nimbus Sans,10. None of > the fonts in the IDE are DejaVu. > > (If the answer is "It just uses the users system default font" then I > re-phrase the question to "Approximately where in the gbx source code > does Application.Font get set?". Because if so, then this is a(nother) > LXDE issue and I'll have to sort it out from the source.) > > tia > Bruce Forget it, I found it. It is in the D****d Qt configuration. (Sorry for the noise again.) Bruce From matti.eber at ...3240... Sat Feb 15 20:56:48 2014 From: matti.eber at ...3240... (Matti) Date: Sat, 15 Feb 2014 20:56:48 +0100 Subject: [Gambas-user] CheckBox In-Reply-To: <52FE4653.7080103@...1...> References: <52FBB5BB.3060403@...3240...> <52FE4653.7080103@...1...> Message-ID: <52FFC680.1040205@...3240...> Yes, of course. But I was talking about action groups. To find out if the user has changed anything on a form, you can't use the MyActionGroup_Change() event if there are CheckBoxes on the form. They don't react on 'Change', and you need a separate MyCheckBoxesGroup_Click() event. So, a 'Change' synonymous for 'Click' would be nice to catch them all in one event. Am 14.02.2014 17:37, schrieb Beno?t Minisini: > Le 12/02/2014 18:56, Matti a ?crit : >> Why doesn't have the CheckBox a 'Change' event? >> Would be very handy to use in an action group with other controls, to catch if the user made changes. >> Now, the 'Click' events for CheckBoxes have to be handled separately. >> Regards >> Matti >> > I don't understand: the Click event *is* your Change event. > From matti.eber at ...3240... Sat Feb 15 22:18:18 2014 From: matti.eber at ...3240... (Matti) Date: Sat, 15 Feb 2014 22:18:18 +0100 Subject: [Gambas-user] ComboBox: Detect if the button was clicked In-Reply-To: <1392436598.3995.28.camel@...2688...> References: <1392436598.3995.28.camel@...2688...> Message-ID: <52FFD99A.4060409@...3240...> Having a similar problem here. My first thoughts are: Public Sub MyComboBox_Change() Dim i As Integer Dim bFound As Boolean = False For i = 0 To MyComboBox.List.Count - 1 If MyComboBox.Text = Left(MyComboBox.List[i], Len(MyComboBox.Text)) Then bFound = True Exit Else bFound = False Endif Next If bFound = False Then Print "User typed something that is not in the list." Endif End But that fires with the first character (and every other) that is not in the list. I guess it can't be done without the ComboBox_Leave() event? If anyone has a better approach - please. If I remember right, there was something like a 'NotInList' event for ComboBoxes in VB, that's what I was looking for. Am 15.02.2014 04:56, schrieb Bruce: > I have tried a couple of ways to determine if the user has clicked on > the button that opens the list in a combobox with no great success. (I > am trying to discern whether they selected a list item or typed a new > string in the textbox.) > It looks like I have to use the Mouse.X and Mouse.Y values to see if > they are inside the button, but this is extrememly fragile and painful. > Does anyone have a better idea. > > tia > Bruce > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...3301... Sat Feb 15 23:09:14 2014 From: sbungay at ...3301... (Stephen) Date: Sat, 15 Feb 2014 17:09:14 -0500 Subject: [Gambas-user] Frames don't have visually persistent borders at design time. Message-ID: <52FFE58A.7020502@...3301...> Frame borders do not visually persist at design time, showing themselves only when the mouse enters the frame area. Contrast this with the behaviour in GAMBAS 2 which visually persists the frame, showing exactly how the container will look at run-time. Is there something preventing the frame from being shown at design time? Gambas 3.5.2 GNOME 2.X -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site From horechuk at ...981... Sat Feb 15 23:24:47 2014 From: horechuk at ...981... (Paul Horechuk) Date: Sat, 15 Feb 2014 17:24:47 -0500 Subject: [Gambas-user] Gambas3 component Docs Message-ID: <52FFE92F.3010500@...981...> I've been to gambasdoc.org and it works reasonably well, except if you dig through deep enough, it starts to ask you to log in. I think what I'm really looking for is a list of the end objects, methods, classes, and properties, what they provide, and then what component is required for its use. Sort of like: Point(x, y) Reads or writes the value at the specified coordinates. Class is part of the gb.qt4 or gb.gtk depending on desktop used Usage: Point(x, y) or value = Point(x, y) Static method. Part of Draw in gb.qt4, deprecated by Paint since Gambas 3.4 Usage: Draw.Point(x,y) N.B. Paint does not include Point Has anyone seen anything like this? -- Think Free... Use OpenSource Software From bbruen at ...2308... Sun Feb 16 04:41:17 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 16 Feb 2014 14:11:17 +1030 Subject: [Gambas-user] Moving elements in ListView In-Reply-To: <20140214231254.GS583@...2774...> References: <20140214160149.GD583@...2774...> <1392415281.3995.23.camel@...2688...> <20140214231254.GS583@...2774...> Message-ID: <1392522077.22354.14.camel@...2688...> On Sat, 2014-02-15 at 00:12 +0100, Tobias Boege wrote: > On Sat, 15 Feb 2014, Bruce wrote: > > On Fri, 2014-02-14 at 17:01 +0100, Tobias Boege wrote: > > > Hi all, > > > > > > can someone please help me moving elements in a ListView or tell me that's > > > impossible? I have tried the same three things or so for the last hour and > > > always thought "this time it's gonna work!" but it didn't... > > > > > > Say I have a list of four elements (#0..#3) and want to move #1 to position > > > #2 so that #2 goes to position #1. A source archive would be enough. > > > > > > Regards, > > > Tobi > > > > > > > Something like this? > > http://paddys-hill.net/wp/gambas/gambas-components/gb-listmgr/ > > > > Bruce > > > > If I understood the code correctly, you implement moving (btnMoveUp -> > MoveItem, LoadList) by managing an internal array which is modified and > then used to generate ColumnView contents from scratch? Nice idea but > this ranks among "workaround" because of two reasons: > > 1) it's a ColumnView, not a ListView; we want to operate with ListView only; > 2) we want to use the ListView properties and methods (if at all possible) > to do the move, not repopulate the ListView with changed data (we have a > purely theoretical goal here). > > I should have said that... > > Regards, > Tobi > (I should have read between the lines!) It was a quick reply and as you said based on the ColumnView. The "purely theoretical goal" we have here is to ultimately produce a set of "data aware" controls similar but very different to the gb.report ideas. Hence the internal array, but very early days yet. It was a custom control I threw together in a few hours to solve a problem we have here of the user managing a "small" list of items where re-ordering them is a priority. For example, we have a set of sql jobs that must be run every day with some user interaction to select a subset of those jobs, run them and maybe change the order and re-run them depending on some outcomes of the queries. There are currently 66 of these jobs and some are frequently added or removed as the auction houses change their d*****d advertising formats. Anyway I believe I recall that I tried that listview reordering idea some time ago but was never really satisfied with the results. I have found that code and it is a mess and uses a data collection to manage the ordering (and it doesn't work). I think that from looking at it you would need to Remove the item you are moving and re-Add it after the next (or previous.previous) item somehow. Anyway doesn't matter. Bruce From gambas at ...2524... Sun Feb 16 20:46:35 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Feb 2014 19:46:35 +0000 Subject: [Gambas-user] Issue 509 in gambas: Bugs in gambas ide with RTL languages In-Reply-To: <0-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version-3.5.2 Version-3.5.0 Comment #1 on issue 509 by benoit.m... at ...626...: Bugs in gambas ide with RTL languages http://code.google.com/p/gambas/issues/detail?id=509 Can you try the development version? There are a lot of RTL fixes in it. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Feb 16 20:48:04 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Feb 2014 19:48:04 +0000 Subject: [Gambas-user] Issue 478 in gambas: Right-to-left language support In-Reply-To: <2-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> <0-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> Comment #3 on issue 478 by benoit.m... at ...626...: Right-to-left language support http://code.google.com/p/gambas/issues/detail?id=478 Issue 509 has been merged into this issue. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Feb 16 20:49:04 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 16 Feb 2014 19:49:04 +0000 Subject: [Gambas-user] Issue 509 in gambas: Bugs in gambas ide with RTL languages In-Reply-To: <1-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> <0-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12875765495933467157-gambas=googlecode.com@...2524...> Updates: Status: Duplicate Mergedinto: 478 Comment #2 on issue 509 by benoit.m... at ...626...: Bugs in gambas ide with RTL languages http://code.google.com/p/gambas/issues/detail?id=509 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...3307... Mon Feb 17 07:22:52 2014 From: gambas at ...3307... (Jona) Date: Mon, 17 Feb 2014 07:22:52 +0100 Subject: [Gambas-user] Gambas crashes when opening form In-Reply-To: <5301A7C7.9040104@...3307...> References: <5301A7C7.9040104@...3307...> Message-ID: <5301AABC.2080400@...3307...> On 17.02.2014 07:10, Jona wrote: > I have a Project, which can be compiled, but one form in it... Sorry, forgot to mention, which form: FMailPicture.form From gambas at ...3307... Mon Feb 17 07:10:15 2014 From: gambas at ...3307... (Jona) Date: Mon, 17 Feb 2014 07:10:15 +0100 Subject: [Gambas-user] Gambas crashes when opening form Message-ID: <5301A7C7.9040104@...3307...> Hello I have a Project, which can be compiled, but one form in it, can't be edited any more, because Gambas crashes as soon as I try to open it: ################################################ $ gambas3 Could not add child element to parent element because the types are incorrect. Could not resolve property : pattern8279 [xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. gbr3: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed. Aborted ################################################ The project files can be found here: https://ps-ssl.de/engelberg2003.de/copyshop.zip Has anybody a suggestion, what might be the error? Greetings Jona ################################################ [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.8.0-19-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=MATE Theme=QGtk Language=de_DE.UTF-8 Memory=7986M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 From shordi at ...626... Mon Feb 17 09:42:52 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 17 Feb 2014 09:42:52 +0100 Subject: [Gambas-user] Gambas crashes when opening form In-Reply-To: <5301A7C7.9040104@...3307...> References: <5301A7C7.9040104@...3307...> Message-ID: It works fine for me. Just some warnings about /tmp/name_of_file.jpg not been founded. I'm using LinuxMint with Cinnamon, Perhaps something about Mate? 2014-02-17 7:10 GMT+01:00 Jona : > Hello > > I have a Project, which can be compiled, but one form in it, can't be > edited any more, because Gambas crashes as soon as I try to open it: > > ################################################ > $ gambas3 > Could not add child element to parent element because the types are > incorrect. > Could not resolve property : pattern8279 > [xcb] Unknown sequence number while processing queue > [xcb] Most likely this is a multi-threaded client and XInitThreads has > not been called > [xcb] Aborting, sorry about that. > gbr3: ../../src/xcb_io.c:274: poll_for_event: Assertion > `!xcb_xlib_threads_sequence_lost' failed. > Aborted > ################################################ > > The project files can be found here: > https://ps-ssl.de/engelberg2003.de/copyshop.zip > > Has anybody a suggestion, what might be the error? > > Greetings Jona > > > ################################################ > [System] > Gambas=3.5.2 > OperatingSystem=Linux > Kernel=3.8.0-19-generic > Architecture=x86_64 > Distribution=Linux Mint 15 Olivia > Desktop=MATE > Theme=QGtk > Language=de_DE.UTF-8 > Memory=7986M > [Libraries] > Cairo=libcairo.so.2.11200.14 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.2 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.6.0 > GTK+=libgtk-x11-2.0.so.0.2400.17 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sotema at ...626... Tue Feb 18 12:46:00 2014 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 18 Feb 2014 12:46:00 +0100 Subject: [Gambas-user] Rev. 6164 unable to compile gb.report Message-ID: <530347F8.2050100@...626...> Hi to all, with last trunk revision i got this error in make install phase. Seems that gb.report is missing gb.map, but this one is compiled later. Attached the configure, make and install logs. Thanks. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.0-15-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=7836M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.800.6 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: gbreport.gz Type: application/x-gzip Size: 25294 bytes Desc: not available URL: From sotema at ...626... Tue Feb 18 12:58:53 2014 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 18 Feb 2014 12:58:53 +0100 Subject: [Gambas-user] Wrong behaviour of logger.level Message-ID: <53034AFD.3050803@...626...> Maybe I misunderstood the rule, but following the wiki: Property Level As Integer Sets or returns the minimum logging level for the Logger object. but seems operating contrariwise. See the attached project. [System] Gambas=3.5.90 (rev. 6164) OperatingSystem=Linux Kernel=3.11.0-15-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=7836M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.800.6 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: logger-0.0.1.tar.gz Type: application/x-gzip Size: 4672 bytes Desc: not available URL: From gambas.fr at ...626... Tue Feb 18 13:12:28 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 18 Feb 2014 13:12:28 +0100 Subject: [Gambas-user] Rev. 6164 unable to compile gb.report In-Reply-To: <530347F8.2050100@...626...> References: <530347F8.2050100@...626...> Message-ID: I will correct That this evening.. it is just used in a debug test report. I will remove it Le 18 f?vr. 2014 12:47, "Emanuele Sottocorno" a ?crit : > Hi to all, > with last trunk revision i got this error in make install phase. Seems > that gb.report is missing gb.map, but this one is compiled later. > Attached the configure, make and install logs. > > Thanks. > > [System] > Gambas=3.5.90 > OperatingSystem=Linux > Kernel=3.11.0-15-generic > Architecture=x86_64 > Distribution=Ubuntu 13.10 > Desktop=GNOME > Theme=QGtk > Language=it_IT.UTF-8 > Memory=7836M > > [Libraries] > Cairo=libcairo.so.2.11200.16 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.4 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.200.0 > GTK+3=libgtk-3.so.0.800.6 > GTK+=libgtk-x11-2.0.so.0.2400.20 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.43.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From willy at ...2734... Tue Feb 18 17:18:34 2014 From: willy at ...2734... (Willy Raets) Date: Tue, 18 Feb 2014 17:18:34 +0100 Subject: [Gambas-user] How to group on reports using gb.report? Message-ID: <1392740314.2396.24.camel@...3024...> Hi All, I have been working with reports now for a while. The examples and some help from Fabien proved to be very useful. I managed porting the most simple reports made in Ms Access to gb.report. But at the moment I'm stuck with something I can't figure out. Since the project is big and data confidential I'll try and explain using some sample data. Imagine I have following data Code Description Amount 103 Table 0 103 Table 20 103 Table 12 105 Chair 46 105 Chair 34 106 Bed 0 106 Bed 0 106 Bed 9 203 Pool table 2 203 Pool table 3 I'm trying to group by code and make a total for each group. In Ms Access I based the report on a query that filters out the Amount fields equal to 0. The grouping on the Code field could be done in the report design. With gb.report I have tried all kinds of different combinations of controls and property settings and never managed to get the desired result. I would like the report to like this: Articles produced <-- header of the report (only on page 1) Code Description Amount ------------------------------ 103 Table 20 103 Table 12 Total: 32 Code Description Amount ------------------------------ 105 Chair 46 105 Chair 34 Total: 80 Code Description Amount ------------------------------ 106 Bed 9 Total: 9 Code Description Amount ------------------------------ 203 Pool table 2 203 Pool table 3 Total: 5 The number of groups is no fixed number, meaning there can be more groups than shown above. In the reports I need this grouping we are talking multi paged reports. An example doing this would be very helpful and help me get quite some of the left over Ms Access reports ported to Gambas. P.S. Using Gambas 3.5.2 -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From LouisWAdamsJr at ...3300... Wed Feb 19 02:09:22 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Tue, 18 Feb 2014 17:09:22 -0800 (PST) Subject: [Gambas-user] Submitting "Example" Candidates Message-ID: <1392772162308-45773.post@...3046...> What is the best way to submit a GAMBAS program to be considered as an example for beginner programmers? I have a simple program to offer, which shows how to do a few basic things that I struggled with while learning GAMBAS. (I'm still learning.) It generates random colors and sorts them by hue on a 2D color chart, and is based on my color science research. Here is a sample output image: test.png The program also demonstrates the speed of GAMBUS programs. The above image was created from over 32,000 colors in a fraction of a second. The main lesson of the example is how to construct a picture using graphics commands, display the picture in a display area control, and export the picture to a file. Another lesson is how to split up the construction of one picture into several subroutines. Most of the other examples I've seen that did these things were too complicated for me as a beginner to follow! Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Submitting-Example-Candidates-tp45773.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Feb 19 02:18:09 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 19 Feb 2014 02:18:09 +0100 Subject: [Gambas-user] Submitting "Example" Candidates In-Reply-To: <1392772162308-45773.post@...3046...> References: <1392772162308-45773.post@...3046...> Message-ID: <53040651.1040906@...1...> Le 19/02/2014 02:09, Louis W. Adams, Jr. a ?crit : > What is the best way to submit a GAMBAS program to be considered as an > example for beginner programmers? I have a simple program to offer, which > shows how to do a few basic things that I struggled with while learning > GAMBAS. (I'm still learning.) It generates random colors and sorts them by > hue on a 2D color chart, and is based on my color science research. Here is > a sample output image: test.png > > > The program also demonstrates the speed of GAMBUS programs. The above image > was created from over 32,000 colors in a fraction of a second. > > The main lesson of the example is how to construct a picture using graphics > commands, display the picture in a display area control, and export the > picture to a file. Another lesson is how to split up the construction of > one picture into several subroutines. Most of the other examples I've seen > that did these things were too complicated for me as a beginner to follow! > > Lou > Hi, A good example should be well written, and all identifiers and comments should be in english. (Alas I'm not sure this is the case for all current examples). You should provide an icon for your project, and put somewhere your name. Just send the program, and I will add it to the sources. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Wed Feb 19 03:11:15 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 18 Feb 2014 21:11:15 -0500 Subject: [Gambas-user] feature suggestions: detach and rearrange tabs Message-ID: <530412C3.4090300@...1887...> I don't know how difficult this would be, but if detachable tabs could be implemented (think Chrome browser), that would be awesome. Tangential to that would be the ability to rearrange tabs by dragging and dropping, or perhaps doing a right-click "Sort by Name". Having them detachable would allow productive use of a multi-head setup. Often I find myself switching back and forth between two procedures in a very long module, or needing to use one code block as a reference as I'm writing code elsewhere. I often resort to pasting the code in a text editor on my right monitor. I know there is a split pane option, but sometimes a program gets a little crazy and you have 10000 lines of code in a module with some 300-character-long lines; that is difficult to work with even in a non-split view. Perhaps for GAMBAS 4? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From tom at ...3139... Wed Feb 19 04:17:31 2014 From: tom at ...3139... (Tom) Date: Tue, 18 Feb 2014 22:17:31 -0500 Subject: [Gambas-user] Submitting "Example" Candidates In-Reply-To: <53040651.1040906@...1...> References: <1392772162308-45773.post@...3046...> <53040651.1040906@...1...> Message-ID: <5304224B.5090808@...3139...> Please let us know the name of the program when it is added to the examples. I could learn a lot from it. great job. On 2/18/2014 8:18 PM, Beno?t Minisini wrote: > Le 19/02/2014 02:09, Louis W. Adams, Jr. a ?crit : >> What is the best way to submit a GAMBAS program to be considered as an >> example for beginner programmers? I have a simple program to offer, which >> shows how to do a few basic things that I struggled with while learning >> GAMBAS. (I'm still learning.) It generates random colors and sorts them by >> hue on a 2D color chart, and is based on my color science research. Here is >> a sample output image: test.png >> >> >> The program also demonstrates the speed of GAMBUS programs. The above image >> was created from over 32,000 colors in a fraction of a second. >> >> The main lesson of the example is how to construct a picture using graphics >> commands, display the picture in a display area control, and export the >> picture to a file. Another lesson is how to split up the construction of >> one picture into several subroutines. Most of the other examples I've seen >> that did these things were too complicated for me as a beginner to follow! >> >> Lou >> > Hi, > > A good example should be well written, and all identifiers and comments > should be in english. (Alas I'm not sure this is the case for all > current examples). > > You should provide an icon for your project, and put somewhere your name. > > Just send the program, and I will add it to the sources. > > Regards, > From mckaygerhard at ...626... Wed Feb 19 13:45:18 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 19 Feb 2014 08:15:18 -0430 Subject: [Gambas-user] How to group on reports using gb.report? Message-ID: From: Willy Raets > I would like the report to like this: > > Articles produced <-- header of the report (only on page 1) > > Code Description Amount > ------------------------------ > 103 Table 20 > 103 Table 12 > Total: 32 > > Code Description Amount > ------------------------------ > 105 Chair 46 > 105 Chair 34 > Total: 80 > this groups must be done making custom object and putting in groups... each group have same structure, so make a class with some objects (by example a VBox containel, a line, and some labels) and populate with the data (first group will be 103 right?) and then paint the groups, and then popualte next group and paint, and so... its tedious and hard to do, but its obviously.. gambas its a programing languaje not a graphical tool like the garbage of access, that are focused in that.. the comparision was innecesary... From shordi at ...626... Wed Feb 19 13:48:14 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 19 Feb 2014 13:48:14 +0100 Subject: [Gambas-user] Thanks, Fabien Message-ID: I've been testing and using you gb.report component for first time. It's a fine work! It simplifies the printing and open great posibilities. Just a little effort in documentation and all will be perfect. Keep doing the good work. Regards. From gambas at ...1... Wed Feb 19 13:53:49 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 19 Feb 2014 13:53:49 +0100 Subject: [Gambas-user] How to group on reports using gb.report? In-Reply-To: References: Message-ID: <5304A95D.3000804@...1...> Le 19/02/2014 13:45, PICCORO McKAY Lenz a ?crit : > From: Willy Raets > >> I would like the report to like this: >> >> Articles produced <-- header of the report (only on page 1) >> >> Code Description Amount >> ------------------------------ >> 103 Table 20 >> 103 Table 12 >> Total: 32 >> >> Code Description Amount >> ------------------------------ >> 105 Chair 46 >> 105 Chair 34 >> Total: 80 >> > > this groups must be done making custom object and putting in groups... > each group have same structure, so make a class with some objects > (by example a VBox containel, a line, and some labels) > and populate with the data (first group will be 103 right?) > and then paint the groups, and then popualte next group and paint, and so... > > its tedious and hard to do, but its obviously.. gambas its a programing > languaje > not a graphical tool like the garbage of access, that are focused in that.. > the comparision was innecesary... Maybe one day Fabien will make sort of "ReportTable" object to help making simple tables without having to use a lot of ReportVBox, ReportHBox and ReportLabel? -- Beno?t Minisini From gambas at ...2524... Wed Feb 19 14:43:34 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 19 Feb 2014 13:43:34 +0000 Subject: [Gambas-user] Issue 512 in gambas: Chrome is not available as a Browser option in Preferences Message-ID: <0-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-2.23.0 Type-Bug Priority-Low OpSys-Linux Dist-Ubuntu Arch-X86-64 Desktop-Gnome GUI-GTK New issue 512 by rich.wei... at ...626...: Chrome is not available as a Browser option in Preferences http://code.google.com/p/gambas/issues/detail?id=512 1) Describe the problem. I would like the help files to open in Google Chrome. a. Chrome is not available as a Browser option in Preferences b. Selecting [default] does not invoke Chrome - Firefox opens the help My Ubuntu 12.04 has Chrome set as the default browser. Confirmed through System Settings as well as Nautilus default application. If I select [default] as a browser option in preferences, Firefox still opens up as the help browser. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: Gambas 2.23 Revision: Operating system: Linux Distribution: Ubuntu 12.04 Architecture: x86_64 GUI component: QT3 / QT4 / GTK+ <- not sure ?? Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Project is open. Press Help opens in Firefox 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 3) 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! ANOTHER NOTE: Don't create an issue if you have a compilation problem on the development version. Send a mail to the mailing-list instead, thanks. Thanks ... it's a minor issue ... but I prefer Chrome ! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Thu Feb 20 09:04:01 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 20 Feb 2014 09:04:01 +0100 Subject: [Gambas-user] feature suggestions: detach and rearrange tabs In-Reply-To: <530412C3.4090300@...1887...> References: <530412C3.4090300@...1887...> Message-ID: And adobe/gimp boxes too... It's an old dream Le 19 f?vr. 2014 03:12, "Kevin Fishburne" a ?crit : > I don't know how difficult this would be, but if detachable tabs could > be implemented (think Chrome browser), that would be awesome. Tangential > to that would be the ability to rearrange tabs by dragging and dropping, > or perhaps doing a right-click "Sort by Name". > > Having them detachable would allow productive use of a multi-head setup. > Often I find myself switching back and forth between two procedures in a > very long module, or needing to use one code block as a reference as I'm > writing code elsewhere. I often resort to pasting the code in a text > editor on my right monitor. > > I know there is a split pane option, but sometimes a program gets a > little crazy and you have 10000 lines of code in a module with some > 300-character-long lines; that is difficult to work with even in a > non-split view. Perhaps for GAMBAS 4? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Thu Feb 20 12:58:27 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 20 Feb 2014 12:58:27 +0100 Subject: [Gambas-user] Looking for icons Message-ID: <5305EDE3.6080007@...221...> There are two different places for icons to be included, "Project" and "Stock". Which path does Gambas take the Stock icons from? In other words, is there a standard link? Thanks for enlightenment :-) Rolf From taboege at ...626... Thu Feb 20 15:14:20 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 20 Feb 2014 15:14:20 +0100 Subject: [Gambas-user] Gambas3 component Docs In-Reply-To: <52FFE92F.3010500@...981...> References: <52FFE92F.3010500@...981...> Message-ID: <20140220141420.GA517@...2774...> On Sat, 15 Feb 2014, Paul Horechuk wrote: > I've been to gambasdoc.org and it works reasonably well, except if you > dig through deep enough, it starts to ask you to log in. > That's a feature to help creating pages. If you are not a docs writer it may annoy you but there is a rule of thumb to not get those prompts: don't click those italic links! > I think what I'm really looking for is a list of the end objects, > methods, classes, and properties, what they provide, and then what > component is required for its use. Sort of like: > > Point(x, y) Reads or writes the value at the specified coordinates. > Class is part of the gb.qt4 or gb.gtk depending on > desktop used > Usage: Point(x, y) or > value = Point(x, y) > Static method. Part of Draw in gb.qt4, deprecated > by Paint since Gambas 3.4 > Usage: Draw.Point(x,y) > N.B. Paint does not include Point > > Has anyone seen anything like this? That's not how the documentation is structured at present. But it shouldn't be too difficult to write a program which crawls gambasdoc.org and produces output similar to what you want. Hmm, but the last few lines seem to require a rather intelligent program... But, no, no such pages exist currently. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From eilert-sprachen at ...221... Thu Feb 20 15:32:47 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 20 Feb 2014 15:32:47 +0100 Subject: [Gambas-user] Looking for icons In-Reply-To: <5305EDE3.6080007@...221...> References: <5305EDE3.6080007@...221...> Message-ID: <5306120F.7080108@...221...> I found them, they are in the sources. Sorry for bothering you... Rolf Am 20.02.2014 12:58, schrieb Rolf-Werner Eilert: > There are two different places for icons to be included, "Project" and > "Stock". Which path does Gambas take the Stock icons from? In other > words, is there a standard link? > > Thanks for enlightenment :-) > > Rolf > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Thu Feb 20 16:11:38 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 20 Feb 2014 16:11:38 +0100 Subject: [Gambas-user] Norming official examples (reloaded); was: Submitting "Example" Candidates In-Reply-To: <53040651.1040906@...1...> References: <1392772162308-45773.post@...3046...> <53040651.1040906@...1...> Message-ID: <20140220151138.GB517@...2774...> On Wed, 19 Feb 2014, Beno?t Minisini wrote: > Le 19/02/2014 02:09, Louis W. Adams, Jr. a ?crit : > > What is the best way to submit a GAMBAS program to be considered as an > > example for beginner programmers? I have a simple program to offer, which > > shows how to do a few basic things that I struggled with while learning > > GAMBAS. (I'm still learning.) It generates random colors and sorts them by > > hue on a 2D color chart, and is based on my color science research. Here is > > a sample output image: test.png > > > > > > The program also demonstrates the speed of GAMBUS programs. The above image > > was created from over 32,000 colors in a fraction of a second. > > > > The main lesson of the example is how to construct a picture using graphics > > commands, display the picture in a display area control, and export the > > picture to a file. Another lesson is how to split up the construction of > > one picture into several subroutines. Most of the other examples I've seen > > that did these things were too complicated for me as a beginner to follow! > > > > Lou > > > > Hi, > > A good example should be well written, and all identifiers and comments > should be in english. (Alas I'm not sure this is the case for all > current examples). > Ok, ok... I get a worse conscience every time someone talks about examples. If you don't mind (do you, Benoit? - regarding your release schedule, etc.?), I'll commit my attempt at norming the current examples with respect to these four points: 1. adherence to the naming conventions and coding style; 2. proper formatting and usage of spaces [ IIRC, this is also a concern of Kevin :-) ]; 3. including commentary where and only where necessary and 4. concentrating on the educational purpose but it's not complete yet, also because I have no idea about some of the examples (like DBus or the no-at-all-so-simple MySQLExample). *Or does anyone have objections against norming examples?* For reference, my decisions for the points above were guided by: 1. http://gambasdoc.org/help/doc/naming?v3; 2. common sense with a little bit of MHO; 3. the "document *what*'s done and not how" and "as few as possible, as much as necessary" mantras and 4. MHO (don't worry about this point; IIRC, I haven't deleted any quality of any project but condensed and re-structured it *where possible*) I just write these down so I don't have to include them into the commit log. If these guidelines are accepted - you get a teaser with the Basic/Object example as an attachment - I'll write them down into an article on gambasdoc.org about code guidelines for submitting official examples. Regards, Tobi PS: Please don't repeat yourselves, as I'm aware of the opinions from http://sourceforge.net/mailarchive/message.php?msg_id=30780142. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: Object-3.3.90.tar.gz Type: application/octet-stream Size: 45 bytes Desc: not available URL: From tercoide at ...67... Thu Feb 20 17:11:49 2014 From: tercoide at ...67... (martin p cristia) Date: Thu, 20 Feb 2014 13:11:49 -0300 Subject: [Gambas-user] GambasGears FPS In-Reply-To: References: Message-ID: Is there a reason for GambasGears giving 60 FPS normally and 101 FPS when running in a VirtualBox with Lubuntu? I have an Acer laptop with i5 and 6GB. Also a Geforce 720m. [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.11.0-17-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=es_AR.UTF-8 Memory=5845M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 From sotema at ...626... Thu Feb 20 17:28:24 2014 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 20 Feb 2014 17:28:24 +0100 Subject: [Gambas-user] Wrong behaviour of logger.level In-Reply-To: <53034AFD.3050803@...626...> References: <53034AFD.3050803@...626...> Message-ID: <53062D28.4080603@...626...> Il 18/02/2014 12:58, Emanuele Sottocorno ha scritto: > Maybe I misunderstood the rule, but following the wiki: > > Property Level As Integer > > Sets or returns the minimum logging level for the Logger object. > > but seems operating contrariwise. See the attached project. > > [System] > Gambas=3.5.90 (rev. 6164) > OperatingSystem=Linux > Kernel=3.11.0-15-generic > Architecture=x86_64 > Distribution=Ubuntu 13.10 > Desktop=GNOME > Theme=QGtk > Language=it_IT.UTF-8 > Memory=7836M > > [Libraries] > Cairo=libcairo.so.2.11200.16 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.4 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.200.0 > GTK+3=libgtk-3.so.0.800.6 > GTK+=libgtk-x11-2.0.so.0.2400.20 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.43.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 Could someone answer it. Please. From sourceforge-raindog2 at ...94... Thu Feb 20 17:58:50 2014 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 20 Feb 2014 11:58:50 -0500 Subject: [Gambas-user] GambasGears FPS In-Reply-To: References: Message-ID: <5306344A.6030300@...94...> On 02/20/2014 11:11 AM, martin p cristia wrote: > Is there a reason for GambasGears giving 60 FPS normally and 101 FPS > when running in a VirtualBox with Lubuntu? Usually a result of 60 FPS indicates that OpenGL is locked to the vertical refresh rate of your video card or monitor. The 101 FPS indicates it isn't locked to vsync inside the VM, but is using software rendering while you're probably using direct rendering outside the VM which apparently does vsync by default now. If you run the "real" glxgears from a terminal window, do you get "Running synchronized to the vertical refresh" on standard error? Rob From mckaygerhard at ...626... Thu Feb 20 18:26:41 2014 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 20 Feb 2014 12:56:41 -0430 Subject: [Gambas-user] How to group on reports using gb.report? Message-ID: From: Beno?t Minisini > > this groups must be done making custom object and putting in groups... > > each group have same structure, so make a class with some objects > > (by example a VBox containel, a line, and some labels) > > and populate with the data (first group will be 103 right?) > > and then paint the groups, and then popualte next group and paint, and > so... > > gambas its a programing languaje > > not a graphical tool like the garbage of access, that are focused in > that.. > > the comparision was innecesary... > > Maybe one day Fabien will make sort of "ReportTable" object to help > making simple tables without having to use a lot of ReportVBox, > ReportHBox and ReportLabel? > its a good idea... +1; for now its fine as is From gambas at ...1... Thu Feb 20 18:44:19 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 20 Feb 2014 18:44:19 +0100 Subject: [Gambas-user] Norming official examples (reloaded); was: Submitting "Example" Candidates In-Reply-To: <20140220151138.GB517@...2774...> References: <1392772162308-45773.post@...3046...> <53040651.1040906@...1...> <20140220151138.GB517@...2774...> Message-ID: <53063EF3.3010003@...1...> Le 20/02/2014 16:11, Tobias Boege a ?crit : > On Wed, 19 Feb 2014, Beno?t Minisini wrote: >> Le 19/02/2014 02:09, Louis W. Adams, Jr. a ?crit : >>> What is the best way to submit a GAMBAS program to be considered as an >>> example for beginner programmers? I have a simple program to offer, which >>> shows how to do a few basic things that I struggled with while learning >>> GAMBAS. (I'm still learning.) It generates random colors and sorts them by >>> hue on a 2D color chart, and is based on my color science research. Here is >>> a sample output image: test.png >>> >>> >>> The program also demonstrates the speed of GAMBUS programs. The above image >>> was created from over 32,000 colors in a fraction of a second. >>> >>> The main lesson of the example is how to construct a picture using graphics >>> commands, display the picture in a display area control, and export the >>> picture to a file. Another lesson is how to split up the construction of >>> one picture into several subroutines. Most of the other examples I've seen >>> that did these things were too complicated for me as a beginner to follow! >>> >>> Lou >>> >> >> Hi, >> >> A good example should be well written, and all identifiers and comments >> should be in english. (Alas I'm not sure this is the case for all >> current examples). >> > > Ok, ok... I get a worse conscience every time someone talks about examples. > If you don't mind (do you, Benoit? - regarding your release schedule, etc.?), > I'll commit my attempt at norming the current examples with respect to these > four points: > > 1. adherence to the naming conventions and coding style; > 2. proper formatting and usage of spaces [ IIRC, this is also a concern of > Kevin :-) ]; > 3. including commentary where and only where necessary and > 4. concentrating on the educational purpose > > but it's not complete yet, also because I have no idea about some of the > examples (like DBus or the no-at-all-so-simple MySQLExample). > > *Or does anyone have objections against norming examples?* > > For reference, my decisions for the points above were guided by: > > 1. http://gambasdoc.org/help/doc/naming?v3; > 2. common sense with a little bit of MHO; > 3. the "document *what*'s done and not how" and "as few as possible, as > much as necessary" mantras and > 4. MHO (don't worry about this point; IIRC, I haven't deleted any quality > of any project but condensed and re-structured it *where possible*) > > I just write these down so I don't have to include them into the commit > log. If these guidelines are accepted - you get a teaser with the > Basic/Object example as an attachment - I'll write them down into an > article on gambasdoc.org about code guidelines for submitting official > examples. > > Regards, > Tobi > > PS: Please don't repeat yourselves, as I'm aware of the opinions from > http://sourceforge.net/mailarchive/message.php?msg_id=30780142. > I'm always happy when somebody else than me does the job. :-) I think there are two types of example: one that shows a specific feature (usually a small project), and the other that is almost a true program (for example a little notepad, or a game). Knowing how to write them is mainly a matter of common sense: they must be readable by everyone. So everything must be in english (no choice, sorry. Next century, everything will be in chinese, if humanity still exists), accurately commented. Identifier should be carefully chosen, so that the code is almost "auto"-commented... In other words, go on! -- Beno?t Minisini From gambas at ...1... Thu Feb 20 18:46:40 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 20 Feb 2014 18:46:40 +0100 Subject: [Gambas-user] GambasGears FPS In-Reply-To: <5306344A.6030300@...94...> References: <5306344A.6030300@...94...> Message-ID: <53063F80.2030409@...1...> Le 20/02/2014 17:58, Rob Kudla a ?crit : > On 02/20/2014 11:11 AM, martin p cristia wrote: >> Is there a reason for GambasGears giving 60 FPS normally and 101 FPS >> when running in a VirtualBox with Lubuntu? > > Usually a result of 60 FPS indicates that OpenGL is locked to the vertical > refresh rate of your video card or monitor. The 101 FPS indicates it isn't > locked to vsync inside the VM, but is using software rendering while you're > probably using direct rendering outside the VM which apparently does vsync > by default now. > > If you run the "real" glxgears from a terminal window, do you get "Running > synchronized to the vertical refresh" on standard error? > > Rob > Yes, I discovered that recently. Now that a lot of graphic things are centralized into the kernel, there is a tool (DRM configuration tool, something like that), that allows you to force a synchronized "vertical refresh" for every OpenGL program that limit the framerate. It was activated by default on my Ubuntu machine with an Intel video card. -- Beno?t Minisini From vuott at ...325... Thu Feb 20 19:37:18 2014 From: vuott at ...325... (Ru Vuott) Date: Thu, 20 Feb 2014 18:37:18 +0000 (GMT) Subject: [Gambas-user] Norming official examples (reloaded); was: Submitting "Example" Candidates In-Reply-To: <53063EF3.3010003@...1...> Message-ID: <1392921438.74873.YahooMailBasic@...3274...> > So everything must be in english (no choice, sorry. Next century, everything will be in chinese... But, be based on a single common language is laziness for the mind. vuott From taboege at ...626... Thu Feb 20 19:54:07 2014 From: taboege at ...626... (Tobias Boege) Date: Thu, 20 Feb 2014 19:54:07 +0100 Subject: [Gambas-user] Norming official examples (reloaded); was: Submitting "Example" Candidates In-Reply-To: <1392921438.74873.YahooMailBasic@...3274...> References: <53063EF3.3010003@...1...> <1392921438.74873.YahooMailBasic@...3274...> Message-ID: <20140220185407.GD9520@...2774...> On Thu, 20 Feb 2014, Ru Vuott wrote: > > So everything must be in english (no choice, sorry. Next century, everything will be in chinese... > > But, be based on a single common language is laziness for the mind. > I'd prefer to be called lazy over having to translate source code twice: once into a language I can read fluently and then into my understanding. But you are right: that's just laziness - and programmers are said to be lazy. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sebikul at ...626... Thu Feb 20 20:57:32 2014 From: sebikul at ...626... (Sebastian Kulesz) Date: Thu, 20 Feb 2014 16:57:32 -0300 Subject: [Gambas-user] Wrong behaviour of logger.level In-Reply-To: <53062D28.4080603@...626...> References: <53034AFD.3050803@...626...> <53062D28.4080603@...626...> Message-ID: Hi! I'm the author of the gb.logging component. I'm on vacations right now, so I can't review your issue. I've starred this email and will be taking a look when I get back home. Afaik the component is working correctly, so please review the documentation and the rfc on which it is based (you can find a link in the docs too) Sorry for my late response. On Feb 20, 2014 9:29 AM, "Emanuele Sottocorno" wrote: > > Il 18/02/2014 12:58, Emanuele Sottocorno ha scritto: > > Maybe I misunderstood the rule, but following the wiki: > > > > Property Level As Integer > > > > Sets or returns the minimum logging level for the Logger object. > > > > but seems operating contrariwise. See the attached project. > > > > [System] > > Gambas=3.5.90 (rev. 6164) > > OperatingSystem=Linux > > Kernel=3.11.0-15-generic > > Architecture=x86_64 > > Distribution=Ubuntu 13.10 > > Desktop=GNOME > > Theme=QGtk > > Language=it_IT.UTF-8 > > Memory=7836M > > > > [Libraries] > > Cairo=libcairo.so.2.11200.16 > > Curl=libcurl.so.4.3.0 > > DBus=libdbus-1.so.3.7.4 > > GStreamer=libgstreamer-0.10.so.0.30.0 > > GStreamer=libgstreamer-1.0.so.0.200.0 > > GTK+3=libgtk-3.so.0.800.6 > > GTK+=libgtk-x11-2.0.so.0.2400.20 > > OpenGL=libGL.so.1.2.0 > > Poppler=libpoppler.so.43.0.0 > > Qt4=libQtCore.so.4.8.4 > > SDL=libSDL-1.2.so.0.11.4 > Could someone answer it. Please. > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dquinter at ...626... Thu Feb 20 21:11:53 2014 From: dquinter at ...626... (Daniel Quintero) Date: Thu, 20 Feb 2014 14:11:53 -0600 Subject: [Gambas-user] Populate grid with generic query Message-ID: Hi all I've a beginer question: I have a simple query: select [list of fields] from [table] where [conditions] How can I populate a grid? My problem is that [list of fields], [table] and [conditions] can change depending on the values of various ComboBoxes Thanks in advance :) *_________________________* *Lic. Daniel Quintero Rojas* *?Saludos desde M?xico!________* From gambas.fr at ...626... Thu Feb 20 21:45:09 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 20 Feb 2014 21:45:09 +0100 Subject: [Gambas-user] Populate grid with generic query In-Reply-To: References: Message-ID: You must to store the query result as private on the form then ' Gambas class file Private hResult As Result Public Sub _new() Connections["Connection1"].Open ResultChange End Public Sub ResultChange() Dim hField As ResultField hResult = db.Find("tt") For Each hField In hResult.Fields Inc GridView1.Columns.Count GridView1.Columns[GridView1.Columns.Max].Text = hField.Name Next GridView1.Rows.Count = hResult.Count GridView1.Refresh End Public Sub GridView1_Data(Row As Integer, Column As Integer) 'for fun If Column = 0 Then Last.Data.Font.Bold = True 'The first column is bold If row Mod 2 = 1 Then Last.Data.Background = Color.LightGray 'one line on two is gray '** hResult.MoveTo(Row) Last.Data.Text = hResult[GridView1.Columns[Column].Text] End Public Sub ComboBox1_Click() 'do your stuf on query ResultChange End 2014-02-20 21:11 GMT+01:00 Daniel Quintero : > Hi all > > I've a beginer question: > > I have a simple query: > > select [list of fields] > from [table] > where [conditions] > > How can I populate a grid? > > My problem is that [list of fields], [table] and [conditions] can change > depending on the values of various ComboBoxes > > Thanks in advance > > :) > > *_________________________* > *Lic. Daniel Quintero Rojas* > > *?Saludos desde M?xico!________* > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From sotema at ...626... Thu Feb 20 21:45:35 2014 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 20 Feb 2014 21:45:35 +0100 Subject: [Gambas-user] Wrong behaviour of logger.level In-Reply-To: References: <53034AFD.3050803@...626...> <53062D28.4080603@...626...> Message-ID: <5306696F.7070908@...626...> Hi Sebastian, tanks for your reply. I think there is an error into logger component. The doc say: Dim hLoggerAs Logger hLogger= New Logger ( *[* _iMinLevel_ As Integer, _sOutput_ As String *]* ) Creates a new Logger object targeting the log file specified by _sOutput_. The minimum acceptable message level is specified by the _iMinLevel_ parameter. If _sOutput_ is not specified then log messages are sent to /stdout/. _Messages sent with a level lower than __iMinLevel__are ignored. _ try this: Public Sub Main() Dim hLog As Logger hLog = New Logger(Logger.Debug) Logger.Begin Logger.Log("this should not logged", Logger.Warning) End The log message will appear inside the Gambas Console The failing instruction, I suppose, is: Public Function isEnabledFor(iLevel As Integer) As Boolean Return (iLevel <= $iLevel) ---> should be Return (iLevel >= $iLevel) End Enjoy your vacations! Il 20/02/2014 20:57, Sebastian Kulesz ha scritto: > Hi! I'm the author of the gb.logging component. I'm on vacations right now, > so I can't review your issue. I've starred this email and will be taking a > look when I get back home. Afaik the component is working correctly, so > please review the documentation and the rfc on which it is based (you can > find a link in the docs too) > > Sorry for my late response. > On Feb 20, 2014 9:29 AM, "Emanuele Sottocorno" wrote: > >> Il 18/02/2014 12:58, Emanuele Sottocorno ha scritto: >>> Maybe I misunderstood the rule, but following the wiki: >>> >>> Property Level As Integer >>> >>> Sets or returns the minimum logging level for the Logger object. >>> >>> but seems operating contrariwise. See the attached project. >>> >>> [System] >>> Gambas=3.5.90 (rev. 6164) >>> OperatingSystem=Linux >>> Kernel=3.11.0-15-generic >>> Architecture=x86_64 >>> Distribution=Ubuntu 13.10 >>> Desktop=GNOME >>> Theme=QGtk >>> Language=it_IT.UTF-8 >>> Memory=7836M >>> >>> [Libraries] >>> Cairo=libcairo.so.2.11200.16 >>> Curl=libcurl.so.4.3.0 >>> DBus=libdbus-1.so.3.7.4 >>> GStreamer=libgstreamer-0.10.so.0.30.0 >>> GStreamer=libgstreamer-1.0.so.0.200.0 >>> GTK+3=libgtk-3.so.0.800.6 >>> GTK+=libgtk-x11-2.0.so.0.2400.20 >>> OpenGL=libGL.so.1.2.0 >>> Poppler=libpoppler.so.43.0.0 >>> Qt4=libQtCore.so.4.8.4 >>> SDL=libSDL-1.2.so.0.11.4 >> Could someone answer it. Please. >> >> >> ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dquinter at ...626... Thu Feb 20 22:47:15 2014 From: dquinter at ...626... (Daniel Quintero) Date: Thu, 20 Feb 2014 15:47:15 -0600 Subject: [Gambas-user] Populate grid with generic query In-Reply-To: References: Message-ID: Hi Fabien, thanks for answering :D I understood almost all code, except these two parts: Public Sub ResultChange() Dim hField As ResultField * hResult = db.Find("tt")* *"tt"* is my query? And this: Public Sub GridView1_Data(Row As Integer, Column As Integer) 'for fun If Column = 0 Then *Last*.Data.Font.Bold = True 'The first column is bold If row Mod 2 = 1 Then *Last*.Data.Background = Color.LightGray 'one line on two is gray '** hResult.MoveTo(Row) *Last*.Data.Text = hResult[GridView1.Columns[ Column].Text] End *Last* is a cell? Thanks, as always, you are a person willing to help :) *_________________________* *Lic. Daniel Quintero Rojas* *?Saludos desde M?xico!________* On Thu, Feb 20, 2014 at 2:45 PM, Fabien Bodard wrote: > You must to store the query result as private on the form > > > then > > ' Gambas class file > > Private hResult As Result > > Public Sub _new() > > Connections["Connection1"].Open > ResultChange > > End > > Public Sub ResultChange() > > Dim hField As ResultField > hResult = db.Find("tt") > > For Each hField In hResult.Fields > Inc GridView1.Columns.Count > GridView1.Columns[GridView1.Columns.Max].Text = hField.Name > Next > > GridView1.Rows.Count = hResult.Count > GridView1.Refresh > > End > > Public Sub GridView1_Data(Row As Integer, Column As Integer) > 'for fun > > If Column = 0 Then Last.Data.Font.Bold = True 'The first column is bold > If row Mod 2 = 1 Then Last.Data.Background = Color.LightGray 'one > line on two is gray > '** > > hResult.MoveTo(Row) > > Last.Data.Text = hResult[GridView1.Columns[Column].Text] > > End > > Public Sub ComboBox1_Click() > > 'do your stuf on query > ResultChange > End > > 2014-02-20 21:11 GMT+01:00 Daniel Quintero : > > Hi all > > > > I've a beginer question: > > > > I have a simple query: > > > > select [list of fields] > > from [table] > > where [conditions] > > > > How can I populate a grid? > > > > My problem is that [list of fields], [table] and [conditions] can change > > depending on the values of various ComboBoxes > > > > Thanks in advance > > > > :) > > > > *_________________________* > > *Lic. Daniel Quintero Rojas* > > > > *?Saludos desde M?xico!________* > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > > Read the Whitepaper. > > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Feb 20 22:55:52 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 20 Feb 2014 22:55:52 +0100 Subject: [Gambas-user] Populate grid with generic query In-Reply-To: References: Message-ID: 2014-02-20 22:47 GMT+01:00 Daniel Quintero : > Hi Fabien, thanks for answering :D > > I understood almost all code, except these two parts: > > Public Sub ResultChange() > > Dim hField As ResultField > * hResult = db.Find("tt")* > > *"tt"* is my query? no it's my table but you can use db.exec("SELECT * FROM tt") insteed > > And this: > > Public Sub GridView1_Data(Row As Integer, Column As Integer) > 'for fun > > If Column = 0 Then *Last*.Data.Font.Bold = True 'The first column is bold > If row Mod 2 = 1 Then *Last*.Data.Background = Color.LightGray 'one > line on two is gray > '** > > hResult.MoveTo(Row) > > *Last*.Data.Text = hResult[GridView1.Columns[ > Column].Text] > > End > > *Last* is a cell? No last is the widget that emit the event ... so the gridview in this case > > Thanks, as always, you are a person willing to help :) > *_________________________* > *Lic. Daniel Quintero Rojas* > > *?Saludos desde M?xico!________* > > > > On Thu, Feb 20, 2014 at 2:45 PM, Fabien Bodard wrote: > >> You must to store the query result as private on the form >> >> >> then >> >> ' Gambas class file >> >> Private hResult As Result >> >> Public Sub _new() >> >> Connections["Connection1"].Open >> ResultChange >> >> End >> >> Public Sub ResultChange() >> >> Dim hField As ResultField >> hResult = db.Find("tt") >> >> For Each hField In hResult.Fields >> Inc GridView1.Columns.Count >> GridView1.Columns[GridView1.Columns.Max].Text = hField.Name >> Next >> >> GridView1.Rows.Count = hResult.Count >> GridView1.Refresh >> >> End >> >> Public Sub GridView1_Data(Row As Integer, Column As Integer) >> 'for fun >> >> If Column = 0 Then Last.Data.Font.Bold = True 'The first column is bold >> If row Mod 2 = 1 Then Last.Data.Background = Color.LightGray 'one >> line on two is gray >> '** >> >> hResult.MoveTo(Row) >> >> Last.Data.Text = hResult[GridView1.Columns[Column].Text] >> >> End >> >> Public Sub ComboBox1_Click() >> >> 'do your stuf on query >> ResultChange >> End >> >> 2014-02-20 21:11 GMT+01:00 Daniel Quintero : >> > Hi all >> > >> > I've a beginer question: >> > >> > I have a simple query: >> > >> > select [list of fields] >> > from [table] >> > where [conditions] >> > >> > How can I populate a grid? >> > >> > My problem is that [list of fields], [table] and [conditions] can change >> > depending on the values of various ComboBoxes >> > >> > Thanks in advance >> > >> > :) >> > >> > *_________________________* >> > *Lic. Daniel Quintero Rojas* >> > >> > *?Saludos desde M?xico!________* >> > >> ------------------------------------------------------------------------------ >> > Managing the Performance of Cloud-Based Applications >> > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> > Read the Whitepaper. >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From dquinter at ...626... Thu Feb 20 22:58:17 2014 From: dquinter at ...626... (Daniel Quintero) Date: Thu, 20 Feb 2014 15:58:17 -0600 Subject: [Gambas-user] Tip of the day Message-ID: Hi all :) How can I print all the "Tips of the day" that appear when Gambas IDE starts? Regards *_________________________* *Lic. Daniel Quintero Rojas* *?Saludos desde M?xico!________* From gambas.fr at ...626... Thu Feb 20 23:04:39 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 20 Feb 2014 23:04:39 +0100 Subject: [Gambas-user] Tip of the day In-Reply-To: References: Message-ID: This is the tips files 2014-02-20 22:58 GMT+01:00 Daniel Quintero : > Hi all :) > > How can I print all the "Tips of the day" that appear when Gambas IDE > starts? > > Regards > > *_________________________* > *Lic. Daniel Quintero Rojas* > > *?Saludos desde M?xico!________* > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: tips.it Type: audio/x-it Size: 8433 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tips.es Type: application/ecmascript Size: 12599 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tips.en Type: application/octet-stream Size: 15806 bytes Desc: not available URL: From dquinter at ...626... Thu Feb 20 23:36:33 2014 From: dquinter at ...626... (Daniel Quintero) Date: Thu, 20 Feb 2014 16:36:33 -0600 Subject: [Gambas-user] Populate grid with generic query In-Reply-To: References: Message-ID: Ok, thanks :) *_________________________* *Lic. Daniel Quintero Rojas* *?Saludos desde M?xico!________* On Thu, Feb 20, 2014 at 3:55 PM, Fabien Bodard wrote: > 2014-02-20 22:47 GMT+01:00 Daniel Quintero : > > Hi Fabien, thanks for answering :D > > > > I understood almost all code, except these two parts: > > > > Public Sub ResultChange() > > > > Dim hField As ResultField > > * hResult = db.Find("tt")* > > > > *"tt"* is my query? > > no it's my table > > but you can use db.exec("SELECT * FROM tt") > > insteed > > > > > > And this: > > > > Public Sub GridView1_Data(Row As Integer, Column As Integer) > > 'for fun > > > > If Column = 0 Then *Last*.Data.Font.Bold = True 'The first column is > bold > > If row Mod 2 = 1 Then *Last*.Data.Background = Color.LightGray 'one > > line on two is gray > > '** > > > > hResult.MoveTo(Row) > > > > *Last*.Data.Text = hResult[GridView1.Columns[ > > Column].Text] > > > > End > > > > *Last* is a cell? > > No last is the widget that emit the event ... so the gridview in this case > > > > > > Thanks, as always, you are a person willing to help :) > > *_________________________* > > *Lic. Daniel Quintero Rojas* > > > > *?Saludos desde M?xico!________* > > > > > > > > On Thu, Feb 20, 2014 at 2:45 PM, Fabien Bodard > wrote: > > > >> You must to store the query result as private on the form > >> > >> > >> then > >> > >> ' Gambas class file > >> > >> Private hResult As Result > >> > >> Public Sub _new() > >> > >> Connections["Connection1"].Open > >> ResultChange > >> > >> End > >> > >> Public Sub ResultChange() > >> > >> Dim hField As ResultField > >> hResult = db.Find("tt") > >> > >> For Each hField In hResult.Fields > >> Inc GridView1.Columns.Count > >> GridView1.Columns[GridView1.Columns.Max].Text = hField.Name > >> Next > >> > >> GridView1.Rows.Count = hResult.Count > >> GridView1.Refresh > >> > >> End > >> > >> Public Sub GridView1_Data(Row As Integer, Column As Integer) > >> 'for fun > >> > >> If Column = 0 Then Last.Data.Font.Bold = True 'The first column is > bold > >> If row Mod 2 = 1 Then Last.Data.Background = Color.LightGray 'one > >> line on two is gray > >> '** > >> > >> hResult.MoveTo(Row) > >> > >> Last.Data.Text = hResult[GridView1.Columns[Column].Text] > >> > >> End > >> > >> Public Sub ComboBox1_Click() > >> > >> 'do your stuf on query > >> ResultChange > >> End > >> > >> 2014-02-20 21:11 GMT+01:00 Daniel Quintero : > >> > Hi all > >> > > >> > I've a beginer question: > >> > > >> > I have a simple query: > >> > > >> > select [list of fields] > >> > from [table] > >> > where [conditions] > >> > > >> > How can I populate a grid? > >> > > >> > My problem is that [list of fields], [table] and [conditions] can > change > >> > depending on the values of various ComboBoxes > >> > > >> > Thanks in advance > >> > > >> > :) > >> > > >> > *_________________________* > >> > *Lic. Daniel Quintero Rojas* > >> > > >> > *?Saludos desde M?xico!________* > >> > > >> > ------------------------------------------------------------------------------ > >> > Managing the Performance of Cloud-Based Applications > >> > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > >> > Read the Whitepaper. > >> > > >> > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> > >> > ------------------------------------------------------------------------------ > >> Managing the Performance of Cloud-Based Applications > >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > >> Read the Whitepaper. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > > Read the Whitepaper. > > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dquinter at ...626... Thu Feb 20 23:37:01 2014 From: dquinter at ...626... (Daniel Quintero) Date: Thu, 20 Feb 2014 16:37:01 -0600 Subject: [Gambas-user] Tip of the day In-Reply-To: References: Message-ID: Thanks again :) *_________________________* *Lic. Daniel Quintero Rojas* *?Saludos desde M?xico!________* On Thu, Feb 20, 2014 at 4:04 PM, Fabien Bodard wrote: > This is the tips files > > 2014-02-20 22:58 GMT+01:00 Daniel Quintero : > > Hi all :) > > > > How can I print all the "Tips of the day" that appear when Gambas IDE > > starts? > > > > Regards > > > > *_________________________* > > *Lic. Daniel Quintero Rojas* > > > > *?Saludos desde M?xico!________* > > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > > Read the Whitepaper. > > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sebikul at ...626... Fri Feb 21 00:07:56 2014 From: sebikul at ...626... (Sebastian Kulesz) Date: Thu, 20 Feb 2014 20:07:56 -0300 Subject: [Gambas-user] Wrong behaviour of logger.level In-Reply-To: <5306696F.7070908@...626...> References: <53034AFD.3050803@...626...> <53062D28.4080603@...626...> <5306696F.7070908@...626...> Message-ID: On Feb 20, 2014 1:46 PM, "Emanuele Sottocorno" wrote: > > Hi Sebastian, > tanks for your reply. I think there is an error into logger component. > The doc say: > > Dim hLoggerAs Logger < http://gambasdoc.org/help/comp/gb.logging/logger?v3> > > hLogger= New Logger < http://gambasdoc.org/help/comp/gb.logging/logger?v3> ( *[* _iMinLevel_ As Integer, _sOutput_ As String *]* ) > > Creates a new Logger > object > targeting the log file > specified by _sOutput_. The minimum acceptable message level is > specified by the _iMinLevel_ parameter. > > If _sOutput_ is not specified then log messages are sent to /stdout/. > > _Messages sent with a level lower than __iMinLevel__are ignored. _ > > try this: I believe you misunderstood the documentation. > > Public Sub Main() > Dim hLog As Logger > hLog = New Logger(Logger.Debug) This says: log anything more important than Debug > Logger.Begin > Logger.Log("this should not logged", Logger.Warning) Warning is far more important than debug, so it should be logged. I encourage you to read the rfc to get a better understanding on why this is the expected behaviour. > End > > The log message will appear inside the Gambas Console > > The failing instruction, I suppose, is: > > Public Function isEnabledFor(iLevel As Integer) As Boolean > > Return (iLevel <= $iLevel) ---> should be Return (iLevel >= $iLevel) > End Try to self compile and install the component with this line changed, you will see that it will appear to be broken, as it won't log almost anything! > > Enjoy your vacations! Thanks! ;) > > Il 20/02/2014 20:57, Sebastian Kulesz ha scritto: > > Hi! I'm the author of the gb.logging component. I'm on vacations right now, > > so I can't review your issue. I've starred this email and will be taking a > > look when I get back home. Afaik the component is working correctly, so > > please review the documentation and the rfc on which it is based (you can > > find a link in the docs too) > > > > Sorry for my late response. > > On Feb 20, 2014 9:29 AM, "Emanuele Sottocorno" wrote: > > > >> Il 18/02/2014 12:58, Emanuele Sottocorno ha scritto: > >>> Maybe I misunderstood the rule, but following the wiki: > >>> > >>> Property Level As Integer > >>> > >>> Sets or returns the minimum logging level for the Logger object. > >>> > >>> but seems operating contrariwise. See the attached project. > >>> > >>> [System] > >>> Gambas=3.5.90 (rev. 6164) > >>> OperatingSystem=Linux > >>> Kernel=3.11.0-15-generic > >>> Architecture=x86_64 > >>> Distribution=Ubuntu 13.10 > >>> Desktop=GNOME > >>> Theme=QGtk > >>> Language=it_IT.UTF-8 > >>> Memory=7836M > >>> > >>> [Libraries] > >>> Cairo=libcairo.so.2.11200.16 > >>> Curl=libcurl.so.4.3.0 > >>> DBus=libdbus-1.so.3.7.4 > >>> GStreamer=libgstreamer-0.10.so.0.30.0 > >>> GStreamer=libgstreamer-1.0.so.0.200.0 > >>> GTK+3=libgtk-3.so.0.800.6 > >>> GTK+=libgtk-x11-2.0.so.0.2400.20 > >>> OpenGL=libGL.so.1.2.0 > >>> Poppler=libpoppler.so.43.0.0 > >>> Qt4=libQtCore.so.4.8.4 > >>> SDL=libSDL-1.2.so.0.11.4 > >> Could someone answer it. Please. > >> > >> > >> ------------------------------------------------------------------------------ > >> Managing the Performance of Cloud-Based Applications > >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > >> Read the Whitepaper. > >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Feb 21 01:15:30 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 21 Feb 2014 02:15:30 +0200 Subject: [Gambas-user] Norming official examples (reloaded); was: Submitting "Example" Candidates In-Reply-To: <1392921438.74873.YahooMailBasic@...3274...> References: <53063EF3.3010003@...1...> <1392921438.74873.YahooMailBasic@...3274...> Message-ID: > > So everything must be in english (no choice, sorry. Next century, > everything will be in chinese... > > But, be based on a single common language is laziness for the mind. With most subjects, getting objective, factual, useful and easy to understand information seems to be hard enough with single common language! Just look around how little people know about the world they are living in. Sorry for off-topic. Jussi From LouisWAdamsJr at ...3300... Fri Feb 21 03:01:02 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Thu, 20 Feb 2014 18:01:02 -0800 (PST) Subject: [Gambas-user] Submitting "Example" Candidates In-Reply-To: <53040651.1040906@...1...> References: <1392772162308-45773.post@...3046...> <53040651.1040906@...1...> Message-ID: <5306B33C.2050705@...3300...> Beno?t: Attached is the archive file for my program. If you have any problems with it, or would like changes, please don't hesitate to contact me. Thanks for creating GAMBAS, a wonderful programming language, for Linux! Lou Thursday Night ------------------------------------------------------------------------ On 02/18/2014 08:18 PM, Beno?t Minisini [via Gambas] wrote: > Le 19/02/2014 02:09, Louis W. Adams, Jr. a ?crit : > > > What is the best way to submit a GAMBAS program to be considered as an > > example for beginner programmers? I have a simple program to offer, > which > > shows how to do a few basic things that I struggled with while learning > > GAMBAS. (I'm still learning.) It generates random colors and sorts > them by > > hue on a 2D color chart, and is based on my color science research. > Here is > > a sample output image: test.png > > > > > > The program also demonstrates the speed of GAMBUS programs. The > above image > > was created from over 32,000 colors in a fraction of a second. > > > > The main lesson of the example is how to construct a picture using > graphics > > commands, display the picture in a display area control, and export the > > picture to a file. Another lesson is how to split up the > construction of > > one picture into several subroutines. Most of the other examples > I've seen > > that did these things were too complicated for me as a beginner to > follow! > > > > Lou > > > > Hi, > > A good example should be well written, and all identifiers and comments > should be in english. (Alas I'm not sure this is the case for all > current examples). > > You should provide an icon for your project, and put somewhere your name. > > Just send the program, and I will add it to the sources. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://gambas.8142.n7.nabble.com/Submitting-Example-Candidates-tp45773p45774.html > > To unsubscribe from Submitting "Example" Candidates, click here > . > NAML > > RandomColorSort-0.0.9.tar.gz (26K) -- View this message in context: http://gambas.8142.n7.nabble.com/Submitting-Example-Candidates-tp45773p45806.html Sent from the gambas-user mailing list archive at Nabble.com. From LouisWAdamsJr at ...3300... Fri Feb 21 03:11:37 2014 From: LouisWAdamsJr at ...3300... (Louis W. Adams, Jr.) Date: Thu, 20 Feb 2014 18:11:37 -0800 (PST) Subject: [Gambas-user] Submitting "Example" Candidates In-Reply-To: <5304224B.5090808@...3139...> References: <1392772162308-45773.post@...3046...> <53040651.1040906@...1...> <5304224B.5090808@...3139...> Message-ID: <1392948697273-45807.post@...3046...> >>> Please let us know the name of the program when it is added to the examples. I could learn a lot from it. great job. Tom: I've sent Beno?t the source files, so look for RandomColorSort as the project name, with the descriptor "Random Colors, Sorted by Hue". I hope it's helpful to people learning GAMBAS, and educational for people interested in color. I still have a lot to learn about GAMBAS myself, and was still improving the code up until the last moment! Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Submitting-Example-Candidates-tp45773p45807.html Sent from the gambas-user mailing list archive at Nabble.com. From kevinfishburne at ...1887... Fri Feb 21 03:23:40 2014 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 20 Feb 2014 21:23:40 -0500 Subject: [Gambas-user] feature suggestions: detach and rearrange tabs In-Reply-To: References: <530412C3.4090300@...1887...> Message-ID: <5306B8AC.7050408@...1887...> On 02/20/2014 03:04 AM, Fabien Bodard wrote: > And adobe/gimp boxes too... It's an old dream Is that your way of telling me I need to start programming in my sleep? I guess I'll keep dreaming, then. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From sotema at ...626... Fri Feb 21 08:18:12 2014 From: sotema at ...626... (Emanuele Sottocorno) Date: Fri, 21 Feb 2014 08:18:12 +0100 Subject: [Gambas-user] Wrong behaviour of logger.level In-Reply-To: References: <53034AFD.3050803@...626...> <53062D28.4080603@...626...> <5306696F.7070908@...626...> Message-ID: <5306FDB4.9010403@...626...> I think it's time for vacation for me too. :-[ Thanks and sorry for the noise. Il 21/02/2014 00:07, Sebastian Kulesz ha scritto: > On Feb 20, 2014 1:46 PM, "Emanuele Sottocorno" wrote: >> Hi Sebastian, >> tanks for your reply. I think there is an error into logger component. >> The doc say: >> >> Dim hLoggerAs Logger < > http://gambasdoc.org/help/comp/gb.logging/logger?v3> >> hLogger= New Logger < > http://gambasdoc.org/help/comp/gb.logging/logger?v3> ( *[* _iMinLevel_ > As Integer, _sOutput_ As String *]* ) >> Creates a new Logger >> object >> targeting the log file >> specified by _sOutput_. The minimum acceptable message level is >> specified by the _iMinLevel_ parameter. >> >> If _sOutput_ is not specified then log messages are sent to /stdout/. >> >> _Messages sent with a level lower than __iMinLevel__are ignored. _ >> >> try this: > I believe you misunderstood the documentation. > >> Public Sub Main() >> Dim hLog As Logger >> hLog = New Logger(Logger.Debug) > This says: log anything more important than Debug > >> Logger.Begin >> Logger.Log("this should not logged", Logger.Warning) > Warning is far more important than debug, so it should be logged. > > I encourage you to read the rfc to get a better understanding on why this > is the expected behaviour. > >> End >> >> The log message will appear inside the Gambas Console >> >> The failing instruction, I suppose, is: >> >> Public Function isEnabledFor(iLevel As Integer) As Boolean >> >> Return (iLevel <= $iLevel) ---> should be Return (iLevel >= $iLevel) >> End > Try to self compile and install the component with this line changed, you > will see that it will appear to be broken, as it won't log almost anything! > >> Enjoy your vacations! > Thanks! ;) > >> Il 20/02/2014 20:57, Sebastian Kulesz ha scritto: >>> Hi! I'm the author of the gb.logging component. I'm on vacations right > now, >>> so I can't review your issue. I've starred this email and will be > taking a >>> look when I get back home. Afaik the component is working correctly, so >>> please review the documentation and the rfc on which it is based (you > can >>> find a link in the docs too) >>> >>> Sorry for my late response. >>> On Feb 20, 2014 9:29 AM, "Emanuele Sottocorno" wrote: >>> >>>> Il 18/02/2014 12:58, Emanuele Sottocorno ha scritto: >>>>> Maybe I misunderstood the rule, but following the wiki: >>>>> >>>>> Property Level As Integer >>>>> >>>>> Sets or returns the minimum logging level for the Logger object. >>>>> >>>>> but seems operating contrariwise. See the attached project. >>>>> >>>>> [System] >>>>> Gambas=3.5.90 (rev. 6164) >>>>> OperatingSystem=Linux >>>>> Kernel=3.11.0-15-generic >>>>> Architecture=x86_64 >>>>> Distribution=Ubuntu 13.10 >>>>> Desktop=GNOME >>>>> Theme=QGtk >>>>> Language=it_IT.UTF-8 >>>>> Memory=7836M >>>>> >>>>> [Libraries] >>>>> Cairo=libcairo.so.2.11200.16 >>>>> Curl=libcurl.so.4.3.0 >>>>> DBus=libdbus-1.so.3.7.4 >>>>> GStreamer=libgstreamer-0.10.so.0.30.0 >>>>> GStreamer=libgstreamer-1.0.so.0.200.0 >>>>> GTK+3=libgtk-3.so.0.800.6 >>>>> GTK+=libgtk-x11-2.0.so.0.2400.20 >>>>> OpenGL=libGL.so.1.2.0 >>>>> Poppler=libpoppler.so.43.0.0 >>>>> Qt4=libQtCore.so.4.8.4 >>>>> SDL=libSDL-1.2.so.0.11.4 >>>> Could someone answer it. Please. >>>> >>>> >>>> > ------------------------------------------------------------------------------ >>>> Managing the Performance of Cloud-Based Applications >>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >>>> Read the Whitepaper. >>>> >>>> > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > ------------------------------------------------------------------------------ >>> Managing the Performance of Cloud-Based Applications >>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >>> Read the Whitepaper. >>> > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Feb 21 09:56:58 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 21 Feb 2014 09:56:58 +0100 Subject: [Gambas-user] Fwd: Looking for icons In-Reply-To: References: <5305EDE3.6080007@...221...> <5306120F.7080108@...221...> <53062A89.6090001@...221...> Message-ID: ---------- Forwarded message ---------- From: Fabien Bodard Date: 2014-02-20 21:05 GMT+01:00 Subject: Re: [Gambas-user] Looking for icons To: "eilert-sprachen at ...221..." Stock is a library that take the picture on the system on 3 way First stock icon name is known in the stock list so there is a file that map the icon on defined known one : access apps/preferences-desktop-accessibility add actions/list-add apply actions/dialog-apply archive mimes/package-x-generic attach status/mail-attachment audio mimes/audio-x-generic battery devices/battery when you type "icon:/16/access" it search for "/usr/share/icons/theme/16x16/apps/preferences-desktop-accessibility.png" in fact it try to use scalable first and then the true required size and if not...the a size and stretch it if this icon is not found on the system on all inhrited themes for example oxygen>hicolor then it use internal stored icon. There is also a way to use an icon not registered in the icon list for example : picture["icon:/64/devices/scanner"] in this way you must to specify the icon category name and the icon name without the extention. the real path is "/usr/share/icons/oxygen/64x64/devices/scanner.png" I hope this help you to understand how stock work. Regards, -- Fabien Bodard -- Fabien Bodard -- Fabien Bodard From gambas.fr at ...626... Fri Feb 21 10:02:09 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 21 Feb 2014 10:02:09 +0100 Subject: [Gambas-user] feature suggestions: detach and rearrange tabs In-Reply-To: <5306B8AC.7050408@...1887...> References: <530412C3.4090300@...1887...> <5306B8AC.7050408@...1887...> Message-ID: No i've begin that project there is 8 years ... just between gambas1 and gambas2. The form.reparent function was done for that use. But in the past i was not as sharp as now.. I think there is something to do with TabPanel. I need to investigate but do nt disturb me too much i need to progress on reports :-) 2014-02-21 3:23 GMT+01:00 Kevin Fishburne : > On 02/20/2014 03:04 AM, Fabien Bodard wrote: >> And adobe/gimp boxes too... It's an old dream > > Is that your way of telling me I need to start programming in my sleep? > I guess I'll keep dreaming, then. :) > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bill-lancaster at ...2231... Fri Feb 21 14:34:02 2014 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 21 Feb 2014 05:34:02 -0800 (PST) Subject: [Gambas-user] FileChooser Filter Message-ID: <1392989642426-45812.post@...3046...> I have a list of files including some .jpg. Setting FileChooser1.filter to ["*.jpg;*.jpeg;", "Photo files"] is fine. But can I exclude certain files from the display i.e. those whose name start with "GPR" (GPR0098.jpeg for example)? -- View this message in context: http://gambas.8142.n7.nabble.com/FileChooser-Filter-tp45812.html Sent from the gambas-user mailing list archive at Nabble.com. From iss_boss at ...770... Fri Feb 21 15:19:29 2014 From: iss_boss at ...770... (ISS Boss) Date: Fri, 21 Feb 2014 09:19:29 -0500 Subject: [Gambas-user] FileChooser Filter In-Reply-To: <1392989642426-45812.post@...3046...> References: <1392989642426-45812.post@...3046...> Message-ID: <53076071.2040403@...770...> Never mind. Senior moment. I read "exclude" as "include". (Stupid trifocals) bill-lancaster wrote, On 02/21/2014 08:34: I have a list of files including some .jpg. Setting FileChooser1.filter to ["*.jpg;*.jpeg;", "Photo files"] is fine. But can I exclude certain files from the display i.e. those whose name start with "GPR" (GPR0098.jpeg for example)? -- View this message in context: [1]http://gambas.8142.n7.nabble.com/FileChooser-F ilter-tp45812.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. [2]http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://gambas.8142.n7.nabble.com/FileChooser-Filter-tp45812.html 2. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From iss_boss at ...770... Fri Feb 21 15:16:42 2014 From: iss_boss at ...770... (ISS Boss) Date: Fri, 21 Feb 2014 09:16:42 -0500 Subject: [Gambas-user] FileChooser Filter In-Reply-To: <1392989642426-45812.post@...3046...> References: <1392989642426-45812.post@...3046...> Message-ID: <53075FCA.9080606@...770...> Wouldn't that be just putting "GPR*.jpg; GPR*.jpeg", "Photo Files" in the filter box? bill-lancaster wrote, On 02/21/2014 08:34: I have a list of files including some .jpg. Setting FileChooser1.filter to ["*.jpg;*.jpeg;", "Photo files"] is fine. But can I exclude certain files from the display i.e. those whose name start with "GPR" (GPR0098.jpeg for example)? -- View this message in context: [1]http://gambas.8142.n7.nabble.com/FileChooser-F ilter-tp45812.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. [2]http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://gambas.8142.n7.nabble.com/FileChooser-Filter-tp45812.html 2. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From ongytenes at ...626... Fri Feb 21 19:49:19 2014 From: ongytenes at ...626... (Ongytenes) Date: Fri, 21 Feb 2014 10:49:19 -0800 (PST) Subject: [Gambas-user] Send a signal do a PID. Is it possible? In-Reply-To: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> References: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> Message-ID: <1393008559519-45815.post@...3046...> If you want to lock or check if another occurrence of the program is running, you can do the following. I use a simple text file with *Application.ID* stored in it. I normally place this file within the application's folder. I usually named the file with the application's name and *.lock* as an extension. When my application starts up I check for the existence of the file. If found then I grabbed the ID (the pid number) that is stored in it. I placed the ID in a string variable named PID I then used the following code. DIM PID as String DIM IDcheck as String SHELL "ps -f -p " & PID TO IDcheck IF InStr(IDcheck, "name of your application goes here") THEN 'code to react another occurance of your application is running here 'You can exit, kill the other occurrence, etc. Else File.Save(Application.Path &/ "application-name.lock", Application.Id) 'This creates/overwrites the lock file with current PID. This happens only if 'if no match is found for the PID that was stored in the lock file. EndIF The ps command is a bash command to check for running processes The -f tells it to display a full format listing. This is necessary to check against the name of your application. The -p tells it to display only the process that is running on the PID number you give it. When I perform a normal exit out of the application, I delete the application.lock text file. ----- Ongytenes -- View this message in context: http://gambas.8142.n7.nabble.com/Send-a-signal-do-a-PID-Is-it-possible-tp1017p45815.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Fri Feb 21 21:44:14 2014 From: taboege at ...626... (Tobias Boege) Date: Fri, 21 Feb 2014 21:44:14 +0100 Subject: [Gambas-user] Send a signal do a PID. Is it possible? In-Reply-To: <1393008559519-45815.post@...3046...> References: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> <1393008559519-45815.post@...3046...> Message-ID: <20140221204414.GH681@...2774...> On Fri, 21 Feb 2014, Ongytenes wrote: > If you want to lock or check if another occurrence of the program is running, > you can do the following. > > I use a simple text file with *Application.ID* stored in it. I normally > place this file within the application's folder. I usually named the file > with the application's name and *.lock* as an extension. > > When my application starts up I check for the existence of the file. If > found then I grabbed the ID (the pid number) that is stored in it. I placed > the ID in a string variable named PID I then used the following code. > > DIM PID as String > DIM IDcheck as String > > SHELL "ps -f -p " & PID TO IDcheck > IF InStr(IDcheck, "name of your application goes here") THEN > 'code to react another occurance of your application is running here > 'You can exit, kill the other occurrence, etc. > Else > File.Save(Application.Path &/ "application-name.lock", Application.Id) > 'This creates/overwrites the lock file with current PID. This happens > only if > 'if no match is found for the PID that was stored in the lock file. > EndIF > > The ps command is a bash command to check for running processes > The -f tells it to display a full format listing. This is necessary to check > against the name of your application. > The -p tells it to display only the process that is running on the PID > number you give it. > > When I perform a normal exit out of the application, I delete the > application.lock text file. > Is there a hidden question in this post or do you just want to tell us in case we didn't know? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bbruen at ...2308... Sun Feb 23 12:33:13 2014 From: bbruen at ...2308... (Bruce) Date: Sun, 23 Feb 2014 22:03:13 +1030 Subject: [Gambas-user] OT: Sometimes I wonder... Message-ID: <1393155193.4658.2.camel@...2688...> ... if I may be getting a little bit obsessive/compulsive. :-) B -------------- next part -------------- A non-text attachment was scrubbed... Name: pcmanfm_023.png Type: image/png Size: 99821 bytes Desc: not available URL: From taboege at ...626... Sun Feb 23 13:08:37 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 23 Feb 2014 13:08:37 +0100 Subject: [Gambas-user] OT: Sometimes I wonder... In-Reply-To: <1393155193.4658.2.camel@...2688...> References: <1393155193.4658.2.camel@...2688...> Message-ID: <20140223120837.GE513@...2774...> On Sun, 23 Feb 2014, Bruce wrote: > ... if I may be getting a little bit obsessive/compulsive. > > :-) > B Oh boy... $ find -name .project | xargs dirname | xargs du -hs | awk 'BEGIN{t=0;FS="K";} {t+=$1;} END{print t " KiB";}' 24355.3 KiB (Don't know if it counts correctly, though, but it feels correct...) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Feb 23 13:14:15 2014 From: taboege at ...626... (Tobias Boege) Date: Sun, 23 Feb 2014 13:14:15 +0100 Subject: [Gambas-user] OT: Sometimes I wonder... In-Reply-To: <20140223120837.GE513@...2774...> References: <1393155193.4658.2.camel@...2688...> <20140223120837.GE513@...2774...> Message-ID: <20140223121415.GF513@...2774...> On Sun, 23 Feb 2014, Tobias Boege wrote: > On Sun, 23 Feb 2014, Bruce wrote: > > ... if I may be getting a little bit obsessive/compulsive. > > > > :-) > > B > > Oh boy... > > $ find -name .project | xargs dirname | xargs du -hs | awk 'BEGIN{t=0;FS="K";} {t+=$1;} END{print t " KiB";}' > 24355.3 KiB > > (Don't know if it counts correctly, though, but it feels correct...) > Aha! I should practice the shell more often: $ find -name .project | xargs dirname | xargs du -hcs | tail -n1 55M total That's 1/20... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Feb 23 15:30:18 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 23 Feb 2014 15:30:18 +0100 Subject: [Gambas-user] OT: Sometimes I wonder... In-Reply-To: <1393155193.4658.2.camel@...2688...> References: <1393155193.4658.2.camel@...2688...> Message-ID: <530A05FA.3020308@...1...> Le 23/02/2014 12:33, Bruce a ?crit : > ... if I may be getting a little bit obsessive/compulsive. > > :-) > B > What's the problem? -- Beno?t Minisini From gambas.fr at ...626... Sun Feb 23 15:33:32 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 23 Feb 2014 15:33:32 +0100 Subject: [Gambas-user] OT: Sometimes I wonder... In-Reply-To: <530A05FA.3020308@...1...> References: <1393155193.4658.2.camel@...2688...> <530A05FA.3020308@...1...> Message-ID: ...????? too 2014-02-23 15:30 GMT+01:00 Beno?t Minisini : > Le 23/02/2014 12:33, Bruce a ?crit : >> ... if I may be getting a little bit obsessive/compulsive. >> >> :-) >> B >> > > What's the problem? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > 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 Feb 23 20:08:27 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 23 Feb 2014 19:08:27 +0000 Subject: [Gambas-user] Issue 511 in gambas: Datebox.ReadOnly doesn't appear to work In-Reply-To: <1-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> <0-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15517245964292203328-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-3.5.0 Comment #2 on issue 511 by benoit.m... at ...626...: Datebox.ReadOnly doesn't appear to work http://code.google.com/p/gambas/issues/detail?id=511 Fixed in revision #6169. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Feb 23 20:14:19 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 23 Feb 2014 19:14:19 +0000 Subject: [Gambas-user] Issue 512 in gambas: Chrome is not available as a Browser option in Preferences In-Reply-To: <0-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #1 on issue 512 by benoit.m... at ...626...: Chrome is not available as a Browser option in Preferences http://code.google.com/p/gambas/issues/detail?id=512 I suggest you use Gambas 3, because I don't make any change to Gambas 2 anymore. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Mon Feb 24 10:46:07 2014 From: vuott at ...325... (Ru Vuott) Date: Mon, 24 Feb 2014 09:46:07 +0000 (GMT) Subject: [Gambas-user] MediaPlayer 3.5.90 crashes... Message-ID: <1393235167.84338.YahooMailBasic@...3268...> Hello, when I load an audio file with MediaPlayer 3.5.90 Gambas example, the program crashes, and in console I obtain this notice: libvisual_bumpscope: Unable to create media control libvisual_corona: Unable to create media control libvisual_infinite: Unable to create media control libvisual_jakdaw: Unable to create media control libvisual_jess: Unable to create media control libvisual_oinksie: Unable to create media control libvisual_lv_analyzer: Unable to create media control libvisual_lv_scope: Unable to create media control Regards vuotttt My system: [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.0-12-generic Architecture=x86_64 Distribution=Linux Mint 16 Petra Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=1245M [Libraries] Cairo=libcairo.so.2.11200.16 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.803.4 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 From john.aaron.rose at ...626... Mon Feb 24 13:51:44 2014 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 24 Feb 2014 12:51:44 +0000 Subject: [Gambas-user] C Sharp conversion to a Gambas Library/Component Message-ID: <530B4060.6010402@...626...> I've asked this once before without my understanding what to do but I thought that I would try again. Someone has written a routine in C Sharp which is used as a library for the Android RAD Basic4android: I have successfully used this library with a Basic4android app that I have written. I would like to be able to use this library in Gambas. Is this possible with just a small amount of changes to the code (which I have attached)? If so, could someone give me the steps (which must be easy as I have no knowledge of C or how to 'integrate' a C 'program' into a Gambas app? -------------- next part -------------- A non-text attachment was scrubbed... Name: GPStoOSGB.cs Type: text/x-csharp Size: 19492 bytes Desc: not available URL: From gambas at ...1... Mon Feb 24 14:18:50 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 24 Feb 2014 14:18:50 +0100 Subject: [Gambas-user] C Sharp conversion to a Gambas Library/Component In-Reply-To: <530B4060.6010402@...626...> References: <530B4060.6010402@...626...> Message-ID: <530B46BA.6080904@...1...> Le 24/02/2014 13:51, John Rose a ?crit : > I've asked this once before without my understanding what to do but I > thought that I would try again. Someone has written a routine in C > Sharp which is used as a library for the Android RAD Basic4android: I > have successfully used this library with a Basic4android app that I have > written. I would like to be able to use this library in Gambas. Is this > possible with just a small amount of changes to the code (which I have > attached)? If so, could someone give me the steps (which must be easy as > I have no knowledge of C or how to 'integrate' a C 'program' into a > Gambas app? > You must convert the C Sharp syntax into Gambas syntax. I won't do that for you, but I can tell you that everything is convertible without any problem. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Feb 24 15:02:00 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 24 Feb 2014 14:02:00 +0000 Subject: [Gambas-user] Issue 512 in gambas: Chrome is not available as a Browser option in Preferences In-Reply-To: <1-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> <0-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3634964463143707949-gambas=googlecode.com@...2524...> Comment #2 on issue 512 by rich.wei... at ...626...: Chrome is not available as a Browser option in Preferences http://code.google.com/p/gambas/issues/detail?id=512 Thanks ... noted. I have installed Gambas 3 and I see it has its own help browser. I appreciate all of your hard work. Gambas is Great. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Mon Feb 24 17:07:31 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 24 Feb 2014 17:07:31 +0100 Subject: [Gambas-user] C Sharp conversion to a Gambas Library/Component In-Reply-To: <530B46BA.6080904@...1...> References: <530B4060.6010402@...626...> <530B46BA.6080904@...1...> Message-ID: Hi john, Install proj package then add my proj class to your project and my MapPointClass too And MapBound, if you don't use gb.map with all of that your code will look : Dim WGS As Proj = Proj("epsg:4326") Dim OBSG36 As Proj = Proj("epsg:27700") Dim hLatLon As MapPoint hLatLon = WGS.TransformMPoint(OBSG36, MapPoint(Val(TextBox1.Text), Val(TextBox2.Text))) Message(hLatLon.Lat & " / " & hLatLon.Lon) wel i can do more shorter hLatLon = Proj("epsg:4326").TransformMPoint(Proj("epsg:27700"),MapPoint(Val(TextBox1.Text), Val(TextBox2.Text))) I've made a test for Edinburg... it look to be quite precise 2014-02-24 14:18 GMT+01:00 Beno?t Minisini : > Le 24/02/2014 13:51, John Rose a ?crit : >> I've asked this once before without my understanding what to do but I >> thought that I would try again. Someone has written a routine in C >> Sharp which is used as a library for the Android RAD Basic4android: I >> have successfully used this library with a Basic4android app that I have >> written. I would like to be able to use this library in Gambas. Is this >> possible with just a small amount of changes to the code (which I have >> attached)? If so, could someone give me the steps (which must be easy as >> I have no knowledge of C or how to 'integrate' a C 'program' into a >> Gambas app? >> > > You must convert the C Sharp syntax into Gambas syntax. I won't do that > for you, but I can tell you that everything is convertible without any > problem. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: democonvert-0.0.1.tar.gz Type: application/x-gzip Size: 7889 bytes Desc: not available URL: From gambas.fr at ...626... Mon Feb 24 23:01:38 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 24 Feb 2014 23:01:38 +0100 Subject: [Gambas-user] Complex report Message-ID: Hey all this is a complex report... -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: test.pdf Type: application/pdf Size: 339392 bytes Desc: not available URL: From Karl.Reinl at ...2345... Tue Feb 25 00:02:48 2014 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 25 Feb 2014 00:02:48 +0100 Subject: [Gambas-user] Complex report In-Reply-To: References: Message-ID: <1393282968.2529.1.camel@...40...> Am Montag, den 24.02.2014, 23:01 +0100 schrieb Fabien Bodard: > Hey all > > this is a complex report... with wrong Sums -- Amicalement Charlie From gambas at ...1... Tue Feb 25 00:25:55 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 25 Feb 2014 00:25:55 +0100 Subject: [Gambas-user] MediaPlayer 3.5.90 crashes... In-Reply-To: <1393235167.84338.YahooMailBasic@...3268...> References: <1393235167.84338.YahooMailBasic@...3268...> Message-ID: <530BD503.8040107@...1...> Le 24/02/2014 10:46, Ru Vuott a ?crit : > Hello, > > when I load an audio file with MediaPlayer 3.5.90 Gambas example, the program crashes, and in console I obtain this notice: > > libvisual_bumpscope: Unable to create media control > libvisual_corona: Unable to create media control > libvisual_infinite: Unable to create media control > libvisual_jakdaw: Unable to create media control > libvisual_jess: Unable to create media control > libvisual_oinksie: Unable to create media control > libvisual_lv_analyzer: Unable to create media control > libvisual_lv_scope: Unable to create media control > > > Regards > vuotttt > Fixed in revision #6186. The warning messages are for missing GStreamer visualisation plugins. Search for extra GStreamer plugin packages. Regards, -- Beno?t Minisini From bespalov.alexey at ...2736... Tue Feb 25 05:17:10 2014 From: bespalov.alexey at ...2736... (=?koi8-r?B?4sXT0MHMz9cg4czFy9PFyg==?=) Date: Tue, 25 Feb 2014 11:17:10 +0700 Subject: [Gambas-user] Work with Open Office from Gambas Message-ID: <79801393301830@...3309...> Hi! Can I work with the template Open Office (Writer, Calc) from Gambas? Or is it not possible? _________ ?? ??????????????????, ???????????????? ??????????????. From shordi at ...626... Tue Feb 25 09:44:29 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 25 Feb 2014 09:44:29 +0100 Subject: [Gambas-user] Complex report In-Reply-To: References: Message-ID: Thanks Fabien. Studing mode in progress... 2014-02-24 23:01 GMT+01:00 Fabien Bodard : > Hey all > > this is a complex report... > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From shordi at ...626... Tue Feb 25 09:46:00 2014 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 25 Feb 2014 09:46:00 +0100 Subject: [Gambas-user] Complex report In-Reply-To: References: Message-ID: Oh. its a pdf... I suppouse the file as the source proyect... 2014-02-24 23:01 GMT+01:00 Fabien Bodard : > Hey all > > this is a complex report... > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From vuott at ...325... Tue Feb 25 09:57:43 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 25 Feb 2014 08:57:43 +0000 (GMT) Subject: [Gambas-user] MediaPlayer 3.5.90 crashes... In-Reply-To: <530BD503.8040107@...1...> Message-ID: <1393318663.65438.YahooMailBasic@...3275...> > > Fixed in revision #6186. Yes, now OK ! > The warning messages are for missing GStreamer visualisation plugins. > Search for extra GStreamer plugin packages. > > Regards, > > -- > Beno?t Minisini Well, thanks. Regards vuottt From eilert-sprachen at ...221... Tue Feb 25 10:37:57 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 25 Feb 2014 10:37:57 +0100 Subject: [Gambas-user] GridView changing Columns[].Width Message-ID: <530C6475.5000009@...221...> When I have a GridView with several Columns and I set "automatic" for the Column Width (gridview.Columns[x].Width = -1), it seems I cannot change back to a defined width programmatically later. So if I set gridview.Columns[x].Width = 10, nothing happens. The user, however, can drag the column lines by hand. It will then not switch to automatic again. Any idea if that's wanted? Rolf From vuott at ...325... Tue Feb 25 11:21:20 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 25 Feb 2014 10:21:20 +0000 (GMT) Subject: [Gambas-user] Text of RadioButton doesn't become colorized Message-ID: <1393323680.12982.YahooMailBasic@...3269...> Hello, by using QT4 if I set a color in "Foreground" property of RadioButton object, when I run the application the text does not become colorized. regards vuott From gambas at ...1... Tue Feb 25 11:51:10 2014 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 25 Feb 2014 11:51:10 +0100 Subject: [Gambas-user] Text of RadioButton doesn't become colorized In-Reply-To: <1393323680.12982.YahooMailBasic@...3269...> References: <1393323680.12982.YahooMailBasic@...3269...> Message-ID: <530C759E.2090900@...1...> Le 25/02/2014 11:21, Ru Vuott a ?crit : > Hello, > > by using QT4 if I set a color in "Foreground" property of RadioButton object, when I run the application the text does not become colorized. > > regards > vuott > It depends on the widget theme you are using. -- Beno?t Minisini From gambas.fr at ...626... Tue Feb 25 12:20:26 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 12:20:26 +0100 Subject: [Gambas-user] Complex report In-Reply-To: References: Message-ID: yes charlie ... and no... For my job and to simplify i use nearfive round. But for not be too far from the reallity i use real value for the sum and do the nearfive at the priniting time only. I can't share the sources... well i can but not the datas. remembert it's for svn version as i built it for my needs too 2014-02-25 9:46 GMT+01:00 Jorge Carri?n : > Oh. its a pdf... I suppouse the file as the source proyect... > > > 2014-02-24 23:01 GMT+01:00 Fabien Bodard : > >> Hey all >> >> this is a complex report... >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Report5.report Type: application/octet-stream Size: 5438 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Report5.class Type: application/octet-stream Size: 5187 bytes Desc: not available URL: From eilert-sprachen at ...221... Tue Feb 25 12:28:06 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 25 Feb 2014 12:28:06 +0100 Subject: [Gambas-user] GridView changing Columns[].Width In-Reply-To: <530C6475.5000009@...221...> References: <530C6475.5000009@...221...> Message-ID: <530C7E46.4030900@...221...> Sorry, there was another reason: I forgot to set the flag for controlling the column width in the function - now everything works as expected. Didn't mean to bother you with this Regards Rolf Am 25.02.2014 10:37, schrieb Rolf-Werner Eilert: > When I have a GridView with several Columns and I set "automatic" for > the Column Width (gridview.Columns[x].Width = -1), it seems I cannot > change back to a defined width programmatically later. > > So if I set gridview.Columns[x].Width = 10, nothing happens. The user, > however, can drag the column lines by hand. It will then not switch to > automatic again. > > Any idea if that's wanted? > > Rolf > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Tue Feb 25 12:33:44 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 25 Feb 2014 11:33:44 +0000 (GMT) Subject: [Gambas-user] Text of RadioButton doesn't become colorized In-Reply-To: <530C759E.2090900@...1...> Message-ID: <1393328024.16744.YahooMailBasic@...3275...> Well, thank you, Beno?t. vuott -------------------------------------------- Mar 25/2/14, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Text of RadioButton doesn't become colorized A: "mailing list for gambas users" Data: Marted? 25 febbraio 2014, 11:51 Le 25/02/2014 11:21, Ru Vuott a ?crit : > Hello, > > by using QT4 if I set a color in "Foreground" property of RadioButton object, when I run the application the text does not become colorized. > > regards > vuott > It depends on the widget theme you are using. -- Beno?t Minisini ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nigelverity at ...67... Tue Feb 25 12:55:53 2014 From: nigelverity at ...67... (Nigel Verity) Date: Tue, 25 Feb 2014 11:55:53 +0000 Subject: [Gambas-user] Work with Open Office from Gambas In-Reply-To: References: Message-ID: Hi Alexey It depends what you want to do. You can open the OpenOffice/LibreOffice GUI using the Shell command with the appropriate parameter for the module you wish to use e.g: libreoffice4.1 --writer You can also call some OO/LO functions using the Shell command, which do not open the OO/LO user interface. For example you can convert document formats. The OO/LO documentation will explain the options and the syntax - use Google to find. You can create template documents using OO/LO. If you save them in .fodt format (a derivative of XML) your Gambas program can scan the template for identifiers of your choice and then make substitutions. The result is a very professional-looking document, generated dynamically by Gambas. Hope this is helpful. Nige From bbruen at ...2308... Tue Feb 25 13:29:45 2014 From: bbruen at ...2308... (Bruce) Date: Tue, 25 Feb 2014 22:59:45 +1030 Subject: [Gambas-user] Complex report In-Reply-To: References: Message-ID: <1393331385.4658.5.camel@...2688...> On Tue, 2014-02-25 at 12:20 +0100, Fabien Bodard wrote: > yes charlie ... and no... For my job and to simplify i use nearfive > round. But for not be too far from the reallity i use real value for > the sum and do the nearfive at the priniting time only. > > I can't share the sources... well i can but not the datas. > Actually Fabien, Just the .report file would be a help to get some insight into how _you_ are using the new controls. ... and a feature request! Would you consider using gb.settings to save the preview geometry. I am getting rsi jumping back and forth from design mode to preview and having to resize the preview and zoom all the time. cheers Bruce From gambas.fr at ...626... Tue Feb 25 14:11:09 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 14:11:09 +0100 Subject: [Gambas-user] Complex report In-Reply-To: <1393331385.4658.5.camel@...2688...> References: <1393331385.4658.5.camel@...2688...> Message-ID: Il will do Bruce. 2014-02-25 13:29 GMT+01:00 Bruce : > On Tue, 2014-02-25 at 12:20 +0100, Fabien Bodard wrote: >> yes charlie ... and no... For my job and to simplify i use nearfive >> round. But for not be too far from the reallity i use real value for >> the sum and do the nearfive at the priniting time only. >> >> I can't share the sources... well i can but not the datas. >> > Actually Fabien, > Just the .report file would be a help to get some insight into how _you_ > are using the new controls. > > ... and a feature request! Would you consider using gb.settings to save > the preview geometry. I am getting rsi jumping back and forth from > design mode to preview and having to resize the preview and zoom all the > time. > > cheers > Bruce > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Tue Feb 25 14:12:09 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 14:12:09 +0100 Subject: [Gambas-user] Complex report In-Reply-To: References: <1393331385.4658.5.camel@...2688...> Message-ID: And for this report you need both the report and class as 70 % of the report is composed by code. 2014-02-25 14:11 GMT+01:00 Fabien Bodard : > Il will do Bruce. > > 2014-02-25 13:29 GMT+01:00 Bruce : >> On Tue, 2014-02-25 at 12:20 +0100, Fabien Bodard wrote: >>> yes charlie ... and no... For my job and to simplify i use nearfive >>> round. But for not be too far from the reallity i use real value for >>> the sum and do the nearfive at the priniting time only. >>> >>> I can't share the sources... well i can but not the datas. >>> >> Actually Fabien, >> Just the .report file would be a help to get some insight into how _you_ >> are using the new controls. >> >> ... and a feature request! Would you consider using gb.settings to save >> the preview geometry. I am getting rsi jumping back and forth from >> design mode to preview and having to resize the preview and zoom all the >> time. >> >> cheers >> Bruce >> >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> 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... Tue Feb 25 15:33:36 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 25 Feb 2014 15:33:36 +0100 Subject: [Gambas-user] Work with Open Office from Gambas In-Reply-To: References: Message-ID: <530CA9C0.4030107@...221...> Hi Nigel, > You can also call some OO/LO functions using the Shell command, which do not open the OO/LO user interface. For example you can convert document formats. The OO/LO documentation will explain the options and the syntax - use Google to find. > > You can create template documents using OO/LO. If you save them in .fodt format (a derivative of XML) your Gambas program can scan the template for identifiers of your choice and then make substitutions. The result is a very professional-looking document, generated dynamically by Gambas. > Never knew about this... Great! Do you know if it's possible to have such a document printed by OO/LO via the shell without opening its GUI? Rolf From gambas.fr at ...626... Tue Feb 25 16:01:23 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 16:01:23 +0100 Subject: [Gambas-user] Complex report In-Reply-To: References: <1393331385.4658.5.camel@...2688...> Message-ID: Bruce ... done in last rev 6187. 2014-02-25 14:12 GMT+01:00 Fabien Bodard : > And for this report you need both the report and class > as 70 % of the report is composed by code. > > 2014-02-25 14:11 GMT+01:00 Fabien Bodard : >> Il will do Bruce. >> >> 2014-02-25 13:29 GMT+01:00 Bruce : >>> On Tue, 2014-02-25 at 12:20 +0100, Fabien Bodard wrote: >>>> yes charlie ... and no... For my job and to simplify i use nearfive >>>> round. But for not be too far from the reallity i use real value for >>>> the sum and do the nearfive at the priniting time only. >>>> >>>> I can't share the sources... well i can but not the datas. >>>> >>> Actually Fabien, >>> Just the .report file would be a help to get some insight into how _you_ >>> are using the new controls. >>> >>> ... and a feature request! Would you consider using gb.settings to save >>> the preview geometry. I am getting rsi jumping back and forth from >>> design mode to preview and having to resize the preview and zoom all the >>> time. >>> >>> cheers >>> Bruce >>> >>> >>> ------------------------------------------------------------------------------ >>> Flow-based real-time traffic analytics software. Cisco certified tool. >>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >>> Customize your own dashboards, set traffic alerts and generate reports. >>> Network behavioral analysis & security monitoring. All-in-one tool. >>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard > > > > -- > Fabien Bodard -- Fabien Bodard From gambas.fr at ...626... Tue Feb 25 16:09:57 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 16:09:57 +0100 Subject: [Gambas-user] Work with Open Office from Gambas In-Reply-To: <530CA9C0.4030107@...221...> References: <530CA9C0.4030107@...221...> Message-ID: yes libreoffice -p myfile... 2014-02-25 15:33 GMT+01:00 Rolf-Werner Eilert : > Hi Nigel, > >> You can also call some OO/LO functions using the Shell command, which do not open the OO/LO user interface. For example you can convert document formats. The OO/LO documentation will explain the options and the syntax - use Google to find. >> >> You can create template documents using OO/LO. If you save them in .fodt format (a derivative of XML) your Gambas program can scan the template for identifiers of your choice and then make substitutions. The result is a very professional-looking document, generated dynamically by Gambas. >> > > Never knew about this... Great! Do you know if it's possible to have > such a document printed by OO/LO via the shell without opening its GUI? > > Rolf > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From vuott at ...325... Tue Feb 25 16:33:18 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 25 Feb 2014 15:33:18 +0000 (GMT) Subject: [Gambas-user] revision 6187: Unable to compile gb.report Message-ID: <1393342398.39447.YahooMailBasic@...3275...> > Bruce ... done in last rev 6187. uhmmmmmmm Hello, by updating (revision 6187) now my Gambas, I obtained this problem: Compiling gb.report... FPreview.class:27: error: Unknown identifier: Settings and at the end: || || Unable to compile gb.report || Regards vuott From eilert-sprachen at ...221... Tue Feb 25 16:36:53 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 25 Feb 2014 16:36:53 +0100 Subject: [Gambas-user] Work with Open Office from Gambas In-Reply-To: References: <530CA9C0.4030107@...221...> Message-ID: <530CB895.2040401@...221...> Great! Runs flawlessly and prints a single copy to my standard printer, but do you know if there are options to set the printer, number of copies, duplex print etc.? Maybe a link? Rolf Am 25.02.2014 16:09, schrieb Fabien Bodard: > yes > > libreoffice -p myfile... > > > > 2014-02-25 15:33 GMT+01:00 Rolf-Werner Eilert : >> Hi Nigel, >> >>> You can also call some OO/LO functions using the Shell command, which do not open the OO/LO user interface. For example you can convert document formats. The OO/LO documentation will explain the options and the syntax - use Google to find. >>> >>> You can create template documents using OO/LO. If you save them in .fodt format (a derivative of XML) your Gambas program can scan the template for identifiers of your choice and then make substitutions. The result is a very professional-looking document, generated dynamically by Gambas. >>> >> >> Never knew about this... Great! Do you know if it's possible to have >> such a document printed by OO/LO via the shell without opening its GUI? >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas.fr at ...626... Tue Feb 25 16:56:32 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 16:56:32 +0100 Subject: [Gambas-user] revision 6187: Unable to compile gb.report In-Reply-To: <1393342398.39447.YahooMailBasic@...3275...> References: <1393342398.39447.YahooMailBasic@...3275...> Message-ID: arf 2014-02-25 16:33 GMT+01:00 Ru Vuott : >> Bruce ... done in last rev 6187. > > uhmmmmmmm > > > > Hello, > > by updating (revision 6187) now my Gambas, I obtained this problem: > > > Compiling gb.report... > FPreview.class:27: error: Unknown identifier: Settings > > and at the end: > > || > || Unable to compile gb.report > || > > > > Regards > vuott > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Tue Feb 25 17:00:28 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 17:00:28 +0100 Subject: [Gambas-user] revision 6187: Unable to compile gb.report In-Reply-To: References: <1393342398.39447.YahooMailBasic@...3275...> Message-ID: it will be ok now 2014-02-25 16:56 GMT+01:00 Fabien Bodard : > arf > > > 2014-02-25 16:33 GMT+01:00 Ru Vuott : >>> Bruce ... done in last rev 6187. >> >> uhmmmmmmm >> >> >> >> Hello, >> >> by updating (revision 6187) now my Gambas, I obtained this problem: >> >> >> Compiling gb.report... >> FPreview.class:27: error: Unknown identifier: Settings >> >> and at the end: >> >> || >> || Unable to compile gb.report >> || >> >> >> >> Regards >> vuott >> >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From john.aaron.rose at ...626... Tue Feb 25 18:41:01 2014 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 25 Feb 2014 17:41:01 +0000 Subject: [Gambas-user] C Sharp conversion to a Gambas Library/Component Message-ID: <530CD5AD.5040209@...626...> Fabien, The C# routine that I previously attached has Subs to do conversions between any of OSGBGridmapReference, OSGBEastingNorthing, OSGB36 & WGS84. An example point is: OSGBGridmapReference: Map=SO, Across=91370, Up=95550 OSGBEastingNorthing: Easting=391370, Northing=295550 OSGB36: Latitude=52.557346, Longitude=-2.127308 WGS84: Latitude=52.557704, Longitude=-2.128725 Would the software you suggest be capable of all these calculations? Re your suggestions: 1. Do you mean the Ubuntu proj package? 2. Where do I obtain these classes? proj, MapPointClass, MapBound (what is gb.map?) 3. What are epsg numbers in code below? Dim WGS As Proj = Proj("epsg:4326") Dim OBSG36 As Proj = Proj("epsg:27700") Dim hLatLon As MapPoint hLatLon = WGS.TransformMPoint(OBSG36, MapPoint(Val(TextBox1.Text), Val(TextBox2.Text))) Message(hLatLon.Lat & " / " & hLatLon.Lon) From vuott at ...325... Tue Feb 25 19:11:04 2014 From: vuott at ...325... (Ru Vuott) Date: Tue, 25 Feb 2014 18:11:04 +0000 (GMT) Subject: [Gambas-user] revision 6187: Unable to compile gb.report In-Reply-To: Message-ID: <1393351864.33057.YahooMailBasic@...3275...> Yes, Fabien, it is. bye vuott > it will be ok now 2014-02-25 16:56 GMT+01:00 Fabien Bodard : > arf > > > 2014-02-25 16:33 GMT+01:00 Ru Vuott : >>> Bruce ... done in last rev 6187. >> >> uhmmmmmmm >> >> >> >> Hello, >> >> by updating (revision 6187) now my Gambas, I obtained this problem: >> >> >>? ???Compiling gb.report... >>? ???FPreview.class:27: error: Unknown identifier: Settings >> >> and at the end: >> >>? ???|| >>? ???|| Unable to compile gb.report >>? ???|| >> >> >> >> Regards >> vuott >> >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Tue Feb 25 23:38:13 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 23:38:13 +0100 Subject: [Gambas-user] C Sharp conversion to a Gambas Library/Component In-Reply-To: <530CD5AD.5040209@...626...> References: <530CD5AD.5040209@...626...> Message-ID: The class proj, mapointclass and mapbound are in the project i've sent to you the C# class you have is very specific... they are some tools that are able to do that without rewriting the wheel. libproj of the proj project is one of these tool. It used in every map displayer in it's js version. here my proj class is just a frontend class to the cs2cs command line tool provided with Proj http://packages.ubuntu.com/saucy/libproj0 gb.map is a tiled map viewer... it's like googlemap or other, it can display many sort of source for maps ans some shape layers But for your use you need to study cs2cs and for more ease you can use my classes. but i don't know if my choosen epsg are the good ones. epsg are g?n?ric definition for transformation points. for example WGS84 is epsg:4326 : +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs OSGB36 is epsg:27700 : +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs http://spatialreference.org/ref/epsg/27700/ You need also to investigate by yourself. We are doing tools for our use, but it can't be perfect for every body. 2014-02-25 18:41 GMT+01:00 John Rose : > Fabien, > > The C# routine that I previously attached has Subs to do conversions > between any of OSGBGridmapReference, OSGBEastingNorthing, OSGB36 & > WGS84. An example point is: > OSGBGridmapReference: Map=SO, Across=91370, Up=95550 > OSGBEastingNorthing: Easting=391370, Northing=295550 > OSGB36: Latitude=52.557346, Longitude=-2.127308 > WGS84: Latitude=52.557704, Longitude=-2.128725 > Would the software you suggest be capable of all these calculations? > > Re your suggestions: > > 1. Do you mean the Ubuntu proj package? > > 2. Where do I obtain these classes? > proj, MapPointClass, MapBound (what is gb.map?) > > 3. What are epsg numbers in code below? > Dim WGS As Proj = Proj("epsg:4326") > Dim OBSG36 As Proj = Proj("epsg:27700") > > Dim hLatLon As MapPoint > > hLatLon = WGS.TransformMPoint(OBSG36, MapPoint(Val(TextBox1.Text), > Val(TextBox2.Text))) > Message(hLatLon.Lat & " / " & hLatLon.Lon) > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Tue Feb 25 23:40:48 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Feb 2014 23:40:48 +0100 Subject: [Gambas-user] Work with Open Office from Gambas In-Reply-To: <530CB895.2040401@...221...> References: <530CA9C0.4030107@...221...> <530CB895.2040401@...221...> Message-ID: yes : $man libreoffice then for duplex and all of that , i suggest you to create a pdf first and open it with a pdfviewer. It seem to be only able to choose the printer. it's not gb.report ;-) 2014-02-25 16:36 GMT+01:00 Rolf-Werner Eilert : > Great! Runs flawlessly and prints a single copy to my standard printer, > but do you know if there are options to set the printer, number of > copies, duplex print etc.? Maybe a link? > > Rolf > > > Am 25.02.2014 16:09, schrieb Fabien Bodard: >> yes >> >> libreoffice -p myfile... >> >> >> >> 2014-02-25 15:33 GMT+01:00 Rolf-Werner Eilert : >>> Hi Nigel, >>> >>>> You can also call some OO/LO functions using the Shell command, which do not open the OO/LO user interface. For example you can convert document formats. The OO/LO documentation will explain the options and the syntax - use Google to find. >>>> >>>> You can create template documents using OO/LO. If you save them in .fodt format (a derivative of XML) your Gambas program can scan the template for identifiers of your choice and then make substitutions. The result is a very professional-looking document, generated dynamically by Gambas. >>>> >>> >>> Never knew about this... Great! Do you know if it's possible to have >>> such a document printed by OO/LO via the shell without opening its GUI? >>> >>> Rolf >>> >>> ------------------------------------------------------------------------------ >>> Flow-based real-time traffic analytics software. Cisco certified tool. >>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >>> Customize your own dashboards, set traffic alerts and generate reports. >>> Network behavioral analysis & security monitoring. All-in-one tool. >>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > 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 Feb 25 23:46:01 2014 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 25 Feb 2014 22:46:01 +0000 Subject: [Gambas-user] Issue 513 in gambas: Bad display of SwitchButton Message-ID: <0-6813199134517018827-915249054816125330-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 513 by ea7... at ...626...: Bad display of SwitchButton http://code.google.com/p/gambas/issues/detail?id=513 1) Describe the problem. SwitchButton does not show properly on QT4 and GTK3. In qt4 when value=True, there is no text "ON" and bg is white. In GTK3, it seems like if the control were bigger than its container. Pics attached. (Tested in Mint 16 with Cinnamon and Lubuntu with LXDE, standard themes in both) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.0-12-generic Architecture=x86_64 Distribution=Linux Mint 16 Petra Desktop=GNOME Theme=QGtk Language=es_ES.UTF-8 Memory=16033M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.803.4 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Attachments: swbtn.jpg 13.5 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From mmcg29440 at ...3163... Wed Feb 26 05:04:05 2014 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Tue, 25 Feb 2014 23:04:05 -0500 Subject: [Gambas-user] How do I access "Complex Repotr.pdf"? Message-ID: Fabien, I have the same problem as Willy. I need to write the same type of report. Have tried all the combinations he reported. I have read your suggestion to him but, I do not know how to begin to write the code. An example would be of great help. Thanks, Marty From eilert-sprachen at ...221... Wed Feb 26 12:23:31 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 26 Feb 2014 12:23:31 +0100 Subject: [Gambas-user] Richtext-Area alignment Message-ID: <530DCEB3.9050306@...221...> For a Richtext-Area ("txt") I have a Toggle-Button for center alignment ("btnZentriert") and try this: Public Sub btnZentriert_Click() If btnZentriert.Value = True Then txt.Format.Alignment = Align.Center End It doesn't have an effect, but I don't see how to do else. Please enlighten me :-) Rolf From gambas.fr at ...626... Wed Feb 26 13:16:20 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 26 Feb 2014 13:16:20 +0100 Subject: [Gambas-user] How do I access "Complex Repotr.pdf"? In-Reply-To: References: Message-ID: Well, to begin now, i think it will be better to install the svn version of Gambas. Simply because i've been working on the component continuously since one month now, and i have changed many little things, that will help a lot to understand how it work. For example, now a reportcontrol with no height and no width is autosized in function of it's content. Tips of the day : A Report is a VBox, that is a ReportContainer, that is a ReportControl. 2014-02-26 5:04 GMT+01:00 Martin McGlensey : > Fabien, > > > > I have the same problem as Willy. I need to write the same type of report. > Have tried all the combinations he reported. I have read your suggestion to > him but, I do not know how to begin to write the code. An example would be > of great help. > > > > Thanks, > > Marty > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodardk From nigelverity at ...67... Wed Feb 26 18:20:39 2014 From: nigelverity at ...67... (Nigel Verity) Date: Wed, 26 Feb 2014 17:20:39 +0000 Subject: [Gambas-user] SMTP Component Message-ID: Hi I am planning to use the SMTP component in a new Gambas project. I am happy with the basic functionality but the documentation states that if the "Host" property is left blank the messages are sent to "localhost" instead of a designated SMTP server. Does anybody know where on my local machine those messages will be saved? Is the localhost option just intended to be used for testing, or does it act as an "outbox" meaning the messages can be subsequently forwarded to an SMTP server? Thanks Nige From Gambas at ...1950... Wed Feb 26 18:31:30 2014 From: Gambas at ...1950... (Caveat) Date: Wed, 26 Feb 2014 18:31:30 +0100 Subject: [Gambas-user] SMTP Component In-Reply-To: References: Message-ID: <530E24F2.2090500@...1950...> Try looking in /var/mail/{your-user} You can, for example, install postfix in 'local only' mode... and mail will go to your local system. Kind regards, Caveat On 26/02/14 18:20, Nigel Verity wrote: > Hi > > I am planning to use the SMTP component in a new Gambas project. I am happy with the basic functionality but the documentation states that if the "Host" property is left blank the messages are sent to "localhost" instead of a designated SMTP server. > > Does anybody know where on my local machine those messages will be saved? Is the localhost option just intended to be used for testing, or does it act as an "outbox" meaning the messages can be subsequently forwarded to an SMTP server? > > Thanks > > Nige > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Feb 26 18:52:40 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 26 Feb 2014 19:52:40 +0200 Subject: [Gambas-user] Richtext-Area alignment In-Reply-To: <530DCEB3.9050306@...221...> References: <530DCEB3.9050306@...221...> Message-ID: Just quickly from hat, but maybe you need call "txt.Refresh" also. Jussi On Wed, Feb 26, 2014 at 1:23 PM, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > For a Richtext-Area ("txt") I have a Toggle-Button for center alignment > ("btnZentriert") and try this: > > Public Sub btnZentriert_Click() > > If btnZentriert.Value = True Then txt.Format.Alignment = Align.Center > > End > > It doesn't have an effect, but I don't see how to do else. > > Please enlighten me :-) > > Rolf > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Feb 26 20:37:47 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 26 Feb 2014 20:37:47 +0100 Subject: [Gambas-user] Richtext-Area alignment In-Reply-To: References: <530DCEB3.9050306@...221...> Message-ID: What is richtext area ? Le 26 f?vr. 2014 18:53, "Jussi Lahtinen" a ?crit : > Just quickly from hat, but maybe you need call "txt.Refresh" also. > > Jussi > > > On Wed, Feb 26, 2014 at 1:23 PM, Rolf-Werner Eilert < > eilert-sprachen at ...221...> wrote: > > > For a Richtext-Area ("txt") I have a Toggle-Button for center alignment > > ("btnZentriert") and try this: > > > > Public Sub btnZentriert_Click() > > > > If btnZentriert.Value = True Then txt.Format.Alignment = Align.Center > > > > End > > > > It doesn't have an effect, but I don't see how to do else. > > > > Please enlighten me :-) > > > > Rolf > > > > > > > ------------------------------------------------------------------------------ > > Flow-based real-time traffic analytics software. Cisco certified tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Feb 26 21:28:36 2014 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 26 Feb 2014 22:28:36 +0200 Subject: [Gambas-user] Richtext-Area alignment In-Reply-To: References: <530DCEB3.9050306@...221...> Message-ID: I believe he means TextArea. Jussi On Wed, Feb 26, 2014 at 9:37 PM, Fabien Bodard wrote: > What is richtext area ? > Le 26 f?vr. 2014 18:53, "Jussi Lahtinen" a > ?crit > : > > > Just quickly from hat, but maybe you need call "txt.Refresh" also. > > > > Jussi > > > > > > On Wed, Feb 26, 2014 at 1:23 PM, Rolf-Werner Eilert < > > eilert-sprachen at ...221...> wrote: > > > > > For a Richtext-Area ("txt") I have a Toggle-Button for center alignment > > > ("btnZentriert") and try this: > > > > > > Public Sub btnZentriert_Click() > > > > > > If btnZentriert.Value = True Then txt.Format.Alignment = > Align.Center > > > > > > End > > > > > > It doesn't have an effect, but I don't see how to do else. > > > > > > Please enlighten me :-) > > > > > > Rolf > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Flow-based real-time traffic analytics software. Cisco certified tool. > > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > > Customize your own dashboards, set traffic alerts and generate reports. > > > Network behavioral analysis & security monitoring. All-in-one tool. > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Flow-based real-time traffic analytics software. Cisco certified tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Wed Feb 26 22:17:36 2014 From: ea7dfh at ...2382... (Jesus) Date: Wed, 26 Feb 2014 22:17:36 +0100 Subject: [Gambas-user] SMTP Component In-Reply-To: References: Message-ID: <530E59F0.6010403@...2382...> El 26/02/14 18:20, Nigel Verity escribi?: > Hi > > I am planning to use the SMTP component in a new Gambas project. I am happy with the basic functionality but the documentation states that if the "Host" property is left blank the messages are sent to "localhost" instead of a designated SMTP server. > > Does anybody know where on my local machine those messages will be saved? Is the localhost option just intended to be used for testing, or does it act as an "outbox" meaning the messages can be subsequently forwarded to an SMTP server? > > Thanks > > Nige > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Just out of curiosity, I've found this great article/explanation about setting up Thunderbird to read local mail using postfix. http://askubuntu.com/questions/192572/how-read-local-email-in-thunderbird Regards -- Jesus Guardon From vuott at ...325... Wed Feb 26 22:35:31 2014 From: vuott at ...325... (Ru Vuott) Date: Wed, 26 Feb 2014 21:35:31 +0000 (GMT) Subject: [Gambas-user] Richtext-Area alignment In-Reply-To: Message-ID: <1393450531.42466.YahooMailBasic@...3274...> ...I believe "TextEdit". vuott -------------------------------------------- Mer 26/2/14, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Richtext-Area alignment A: "mailing list for gambas users" Data: Mercoled? 26 febbraio 2014, 21:28 I believe he means TextArea. Jussi On Wed, Feb 26, 2014 at 9:37 PM, Fabien Bodard wrote: > What is richtext area ? > Le 26 f?vr. 2014 18:53, "Jussi Lahtinen" a > ?crit > : > > > Just quickly from hat, but maybe you need call "txt.Refresh" also. > > > > Jussi > > > > > > On Wed, Feb 26, 2014 at 1:23 PM, Rolf-Werner Eilert < > > eilert-sprachen at ...221...> wrote: > > > > > For a Richtext-Area ("txt") I have a Toggle-Button for center alignment > > > ("btnZentriert") and try this: > > > > > > Public Sub btnZentriert_Click() > > > > > >? ? If btnZentriert.Value = True Then txt.Format.Alignment = > Align.Center > > > > > > End > > > > > > It doesn't have an effect, but I don't see how to do else. > > > > > > Please enlighten me :-) > > > > > > Rolf > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Flow-based real-time traffic analytics software. Cisco certified tool. > > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > > Customize your own dashboards, set traffic alerts and generate reports. > > > Network behavioral analysis & security monitoring. All-in-one tool. > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Flow-based real-time traffic analytics software. Cisco certified tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Wed Feb 26 23:12:28 2014 From: vuott at ...325... (Ru Vuott) Date: Wed, 26 Feb 2014 22:12:28 +0000 (GMT) Subject: [Gambas-user] R: Richtext-Area alignment In-Reply-To: <530DCEB3.9050306@...221...> Message-ID: <1393452748.10402.YahooMailBasic@...3271...> Hello, by using ".Format.Alignment" property it "seems" it only works in this way.... Public Sub Form_Open() TextEdit1.RichText = "

arma virumque cano" End Public Sub Button1_Click() TextEdit1.Format.Alignment = Align.Center ' but if in "Form_Open()" routine is set "

ha scritto: Oggetto: [Gambas-user] Richtext-Area alignment A: "mailing list for gambas users" Data: Mercoled? 26 febbraio 2014, 12:23 For a Richtext-Area ("txt") I have a Toggle-Button for center alignment ("btnZentriert") and try this: Public Sub btnZentriert_Click() ???If btnZentriert.Value = True Then txt.Format.Alignment = Align.Center End It doesn't have an effect, but I don't see how to do else. Please enlighten me :-) Rolf ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Thu Feb 27 08:07:41 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Feb 2014 08:07:41 +0100 Subject: [Gambas-user] R: Richtext-Area alignment In-Reply-To: <1393452748.10402.YahooMailBasic@...3271...> References: <530DCEB3.9050306@...221...> <1393452748.10402.YahooMailBasic@...3271...> Message-ID: Yes ... because richtext have it's how embedded format instructions 2014-02-26 23:12 GMT+01:00 Ru Vuott : > Hello, > > by using ".Format.Alignment" property it "seems" it only works in this way.... > > > Public Sub Form_Open() > > TextEdit1.RichText = "

arma virumque cano" > > End > > > Public Sub Button1_Click() > > TextEdit1.Format.Alignment = Align.Center > > ' but if in "Form_Open()" routine is set "

' here this ".Format.Alignment = Align.Center" doesn't works ! > > End > > > Regards > vuott > > > > > -------------------------------------------- > Mer 26/2/14, Rolf-Werner Eilert ha scritto: > > Oggetto: [Gambas-user] Richtext-Area alignment > A: "mailing list for gambas users" > Data: Mercoled? 26 febbraio 2014, 12:23 > > For a Richtext-Area ("txt") I have a > Toggle-Button for center alignment > ("btnZentriert") and try this: > > Public Sub btnZentriert_Click() > > If btnZentriert.Value = True Then > txt.Format.Alignment = Align.Center > > End > > It doesn't have an effect, but I don't see how to do else. > > Please enlighten me :-) > > Rolf > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco > certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow > Analyzer > Customize your own dashboards, set traffic alerts and > generate reports. > Network behavioral analysis & security monitoring. > All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > 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... Thu Feb 27 08:07:50 2014 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Feb 2014 08:07:50 +0100 Subject: [Gambas-user] R: Richtext-Area alignment In-Reply-To: References: <530DCEB3.9050306@...221...> <1393452748.10402.YahooMailBasic@...3271...> Message-ID: how-> own 2014-02-27 8:07 GMT+01:00 Fabien Bodard : > Yes ... because richtext have it's how embedded format instructions > > 2014-02-26 23:12 GMT+01:00 Ru Vuott : >> Hello, >> >> by using ".Format.Alignment" property it "seems" it only works in this way.... >> >> >> Public Sub Form_Open() >> >> TextEdit1.RichText = "

arma virumque cano" >> >> End >> >> >> Public Sub Button1_Click() >> >> TextEdit1.Format.Alignment = Align.Center >> >> ' but if in "Form_Open()" routine is set "

> ' here this ".Format.Alignment = Align.Center" doesn't works ! >> >> End >> >> >> Regards >> vuott >> >> >> >> >> -------------------------------------------- >> Mer 26/2/14, Rolf-Werner Eilert ha scritto: >> >> Oggetto: [Gambas-user] Richtext-Area alignment >> A: "mailing list for gambas users" >> Data: Mercoled? 26 febbraio 2014, 12:23 >> >> For a Richtext-Area ("txt") I have a >> Toggle-Button for center alignment >> ("btnZentriert") and try this: >> >> Public Sub btnZentriert_Click() >> >> If btnZentriert.Value = True Then >> txt.Format.Alignment = Align.Center >> >> End >> >> It doesn't have an effect, but I don't see how to do else. >> >> Please enlighten me :-) >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco >> certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow >> Analyzer >> Customize your own dashboards, set traffic alerts and >> generate reports. >> Network behavioral analysis & security monitoring. >> All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> 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... Thu Feb 27 08:14:09 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 27 Feb 2014 08:14:09 +0100 Subject: [Gambas-user] R: Richtext-Area alignment In-Reply-To: <1393452748.10402.YahooMailBasic@...3271...> References: <1393452748.10402.YahooMailBasic@...3271...> Message-ID: <530EE5C1.5010709@...221...> Am 26.02.2014 23:12, schrieb Ru Vuott: > Hello, > > by using ".Format.Alignment" property it "seems" it only works in this way.... > > > Public Sub Form_Open() > > TextEdit1.RichText = "

arma virumque cano" > > End > > > Public Sub Button1_Click() > > TextEdit1.Format.Alignment = Align.Center > > ' but if in "Form_Open()" routine is set "

' here this ".Format.Alignment = Align.Center" doesn't works ! > > End > > > Regards > vuott Either we just use it in a wrong way, or there is a hidden "feature" ;) For bold, italics etc., this runs flawlessly. My code for bold: Public Sub btnFett_Click() txt.Format.Font.Bold = btnFett.Value txt.SetFocus End Somewhat strange though, when you use one of these for the first time after starting the program, it takes quite some seconds before the cursor returns. Maybe it's loading all fonts in the background or something like that. Anyway I was thinking about setting Mouse.Wait for it. Can you confirm that? Regards Rolf From eilert-sprachen at ...221... Thu Feb 27 08:15:35 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 27 Feb 2014 08:15:35 +0100 Subject: [Gambas-user] R: Richtext-Area alignment In-Reply-To: References: <530DCEB3.9050306@...221...> <1393452748.10402.YahooMailBasic@...3271...> Message-ID: <530EE617.90603@...221...> But what is .Format.Alignment good for if not for switching alignment? Am 27.02.2014 08:07, schrieb Fabien Bodard: > Yes ... because richtext have it's how embedded format instructions > > 2014-02-26 23:12 GMT+01:00 Ru Vuott : >> Hello, >> >> by using ".Format.Alignment" property it "seems" it only works in this way.... >> >> >> Public Sub Form_Open() >> >> TextEdit1.RichText = "

arma virumque cano" >> >> End >> >> >> Public Sub Button1_Click() >> >> TextEdit1.Format.Alignment = Align.Center >> >> ' but if in "Form_Open()" routine is set "

> ' here this ".Format.Alignment = Align.Center" doesn't works ! >> >> End >> >> >> Regards >> vuott >> >> >> >> >> -------------------------------------------- >> Mer 26/2/14, Rolf-Werner Eilert ha scritto: >> >> Oggetto: [Gambas-user] Richtext-Area alignment >> A: "mailing list for gambas users" >> Data: Mercoled? 26 febbraio 2014, 12:23 >> >> For a Richtext-Area ("txt") I have a >> Toggle-Button for center alignment >> ("btnZentriert") and try this: >> >> Public Sub btnZentriert_Click() >> >> If btnZentriert.Value = True Then >> txt.Format.Alignment = Align.Center >> >> End >> >> It doesn't have an effect, but I don't see how to do else. >> >> Please enlighten me :-) >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco >> certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow >> Analyzer >> Customize your own dashboards, set traffic alerts and >> generate reports. >> Network behavioral analysis & security monitoring. >> All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From eilert-sprachen at ...221... Thu Feb 27 09:28:45 2014 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 27 Feb 2014 09:28:45 +0100 Subject: [Gambas-user] R: Richtext-Area alignment In-Reply-To: <530EE811.3080907@...17...> References: <530DCEB3.9050306@...221...> <1393452748.10402.YahooMailBasic@...3271...> <530EE617.90603@...221...> <530EE811.3080907@...17...> Message-ID: <530EF73D.8050005@...221...> Yes, that's for the plain display. But when in the editor, there is a .Format.Alignment property which should serve as a switch without setting the html tags directly in the string. Am 27.02.2014 08:24, schrieb Wolfgang: > As I understood that (and as it works here) you define some "starting > elements" (like Fontsize) before writing the text. The text itself is > like html and can switch its alignment where ever needed back and forward. > (E.g.: I use it to show a frequency where the last 3 digits are smaller > than the other digits for a better read out.) > > Wolfgang > > Am 27.02.2014 08:15, schrieb Rolf-Werner Eilert: >> But what is .Format.Alignment good for if not for switching alignment? >> >> Am 27.02.2014 08:07, schrieb Fabien Bodard: >>> Yes ... because richtext have it's how embedded format instructions >>> >>> 2014-02-26 23:12 GMT+01:00 Ru Vuott : >>>> Hello, >>>> >>>> by using ".Format.Alignment" property it "seems" it only works in >>>> this way.... >>>> >>>> >>>> Public Sub Form_Open() >>>> >>>> TextEdit1.RichText = "

arma virumque cano" >>>> >>>> End >>>> >>>> >>>> Public Sub Button1_Click() >>>> >>>> TextEdit1.Format.Alignment = Align.Center >>>> >>>> ' but if in "Form_Open()" routine is set "

>>> ' here this ".Format.Alignment = Align.Center" doesn't works ! >>>> >>>> End >>>> >>>> >>>> Regards >>>> vuott >>>> >>>> >>>> >>>> >>>> -------------------------------------------- >>>> Mer 26/2/14, Rolf-Werner Eilert ha >>>> scritto: >>>> >>>> Oggetto: [Gambas-user] Richtext-Area alignment >>>> A: "mailing list for gambas users" >>>> >>>> Data: Mercoled? 26 febbraio 2014, 12:23 >>>> >>>> For a Richtext-Area ("txt") I have a >>>> Toggle-Button for center alignment >>>> ("btnZentriert") and try this: >>>> >>>> Public Sub btnZentriert_Click() >>>> >>>> If btnZentriert.Value = True Then >>>> txt.Format.Alignment = Align.Center >>>> >>>> End >>>> >>>> It doesn't have an effect, but I don't see how to do else. >>>> >>>> Please enlighten me :-) >>>> >>>> Rolf >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> Flow-based real-time traffic analytics software. Cisco >>>> certified tool. >>>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow >>>> Analyzer >>>> Customize your own dashboards, set traffic alerts and >>>> generate reports. >>>> Network behavioral analysis & security monitoring. >>>> All-in-one tool. >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> Flow-based real-time traffic analytics software. Cisco certified tool. >>>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >>>> Customize your own dashboards, set traffic alerts and generate reports. >>>> Network behavioral analysis & security monitoring. All-in-one tool. >>>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >>>> >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> ------------------------------------------------------------------------------ >> >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >