From prog at ...2177... Wed Jul 1 00:06:01 2009 From: prog at ...2177... (craf) Date: Tue, 30 Jun 2009 18:06:01 -0400 Subject: [Gambas-user] Example MoviePlayer in Black In-Reply-To: <200906302345.32504.rospolosco@...152...> References: <1246395020.3425.3.camel@...651...> <200906302345.32504.rospolosco@...152...> Message-ID: <1246399561.3425.4.camel@...651...> ?Was absolutely right!. Thank you very much Regards -----Mensaje original----- De: Stefano Palmeri Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Example MoviePlayer in Black Fecha: Tue, 30 Jun 2009 23:45:32 +0200 Il marted? 30 giugno 2009 22:50:20 craf ha scritto: > Hello. > > I'm trying the example that comes with Gambas, called movieplayer. When > the executive, control Movieplay stays black, and only appears sound. > > System to use: > > Ubuntu Jaunty Jackalope > Shrimp 2.14 > mplayer 2.1.0 > > any idea? > > Regards > --------------------------------------------------------------------------- >--- _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It seems to be a gb.gtk problem. Save the MoviePlayer example in your home directory, then open it again and switch from gb.gtk to gb.qt in Project-->Properties-->Components. Stefano ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From prog at ...2177... Wed Jul 1 00:08:56 2009 From: prog at ...2177... (craf) Date: Tue, 30 Jun 2009 18:08:56 -0400 Subject: [Gambas-user] TreeView example doesn't work In-Reply-To: <200906302347.04360.rospolosco@...152...> References: <200906302347.04360.rospolosco@...152...> Message-ID: <1246399736.3425.5.camel@...651...> Did you try with version 2.14?. It seems to have no problems -----Mensaje original----- De: Stefano Palmeri Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: [Gambas-user] TreeView example doesn't work Fecha: Tue, 30 Jun 2009 23:47:04 +0200 TreeView example doesn't work. It simply does nothing. Gambas 2.13.1. Stefano ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Wed Jul 1 00:34:25 2009 From: rterry at ...1946... (richard terry) Date: Wed, 1 Jul 2009 08:34:25 +1000 Subject: [Gambas-user] Side panel example?? In-Reply-To: <4A4A36B6.9090103@...981...> References: <4A4A36B6.9090103@...981...> Message-ID: <200907010834.25481.rterry@...1946...> On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote: > Using Gambas 2.1.2 on KUbuntu 8.04. > > Perhaps I've been away from Gambas for far too long, either that or > I'm just thick, but whichever it is I can't seem to get the side panel > working as 'I' think it should, and that is perhaps the problem. > Has anyone got a simple example of using the side panel that they > would be willing to share, or perhaps cook up a small sample app showing > it's usage? Nothing fancy, just the side panel hosting a push button > would do, because whenever I try to use the sidepanel, it slides around > just fine, but the control contained within it is not visible (kind of > useless then)... and it has me somewhat perplexed as to the proper > useage of this component. > > Being Thick.. perhaps needing some coffee... > Steve. > > --------------------------------------------------------------------------- >--- _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user You must have a bug in your system somewhere, as on my machine it looks like the pictures shown. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: steve-0.0.1.tar.gz Type: application/x-tgz Size: 7689 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sidepanel1.png Type: image/png Size: 5978 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sidepanel2.png Type: image/png Size: 4414 bytes Desc: not available URL: From gambas at ...1... Wed Jul 1 01:13:33 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 1 Jul 2009 01:13:33 +0200 Subject: [Gambas-user] Example MoviePlayer in Black In-Reply-To: <1246399561.3425.4.camel@...651...> References: <1246395020.3425.3.camel@...651...> <200906302345.32504.rospolosco@...152...> <1246399561.3425.4.camel@...651...> Message-ID: <200907010113.33421.gambas@...1...> > ?Was absolutely right!. > > Thank you very much > > Regards > Anyway, it should work with gb.gtk too. This needs some investigation... -- Beno?t From gambas at ...1... Wed Jul 1 01:15:18 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 1 Jul 2009 01:15:18 +0200 Subject: [Gambas-user] Bug in package creator? In-Reply-To: <200906302343.35063.lordheavym@...626...> References: <4A4371DF.6040408@...1237...> <4A4A82EE.6050500@...1237...> <200906302343.35063.lordheavym@...626...> Message-ID: <200907010115.18641.gambas@...1...> > Le mardi 30 juin 2009 23:26:06 Leonardo Miliani, vous avez ?crit : > > Beno?t Minisini ha scritto: > > > In revision #2044, you can now use any database driver as a component > > > and check it in the IDE project property dialog. This way, they can be > > > an explicit dependency when generating a package. > > > > > > So you will get it in the upcoming 2.14 version. > > > > Several users have confirmed me that the bug still persists... > > If they specify Connection.Type="sqlite3" inside their programs and then > > they compile them, on the destination computers the component > > gb.db.sqlite isn't marked as a dependency and so the application doesn't > > start/work. > > I guess you must add gb.db.sqlite3 in project property. > > project -> properties -> components tab > > ++ > Yes! There is no magic in dependencies. They are all explicit. Regards, -- Beno?t From sbungay at ...981... Wed Jul 1 04:19:36 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 30 Jun 2009 22:19:36 -0400 Subject: [Gambas-user] Side panel example?? In-Reply-To: <200907010834.25481.rterry@...1946...> References: <4A4A36B6.9090103@...981...> <200907010834.25481.rterry@...1946...> Message-ID: <4A4AC7B8.2050603@...981...> Hi Richard; Thanks for that, at least I was starting to think I was becoming thick-in-the-head. You're probably right, I hate second-guessing the tools, no error on run-time, but no button showing up either. I'm using the package from the KUbuntu 8.04 repo.. perhaps it has problems. richard terry wrote: > On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote: >> Using Gambas 2.1.2 on KUbuntu 8.04. >> >> Perhaps I've been away from Gambas for far too long, either that or >> I'm just thick, but whichever it is I can't seem to get the side panel >> working as 'I' think it should, and that is perhaps the problem. >> Has anyone got a simple example of using the side panel that they >> would be willing to share, or perhaps cook up a small sample app showing >> it's usage? Nothing fancy, just the side panel hosting a push button >> would do, because whenever I try to use the sidepanel, it slides around >> just fine, but the control contained within it is not visible (kind of >> useless then)... and it has me somewhat perplexed as to the proper >> useage of this component. >> >> Being Thick.. perhaps needing some coffee... >> Steve. >> >> --------------------------------------------------------------------------- >> --- _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > You must have a bug in your system somewhere, as on my machine it looks like > the pictures shown. > > Regards > > Richard > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jul 1 09:20:36 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 1 Jul 2009 09:20:36 +0200 Subject: [Gambas-user] Side panel example?? In-Reply-To: <4A4AC7B8.2050603@...981...> References: <4A4A36B6.9090103@...981...> <200907010834.25481.rterry@...1946...> <4A4AC7B8.2050603@...981...> Message-ID: <200907010920.37009.gambas@...1...> > Hi Richard; > > Thanks for that, at least I was starting to think I was becoming > thick-in-the-head. You're probably right, I hate second-guessing the > tools, no error on run-time, but no button showing up either. I'm using > the package from the KUbuntu 8.04 repo.. perhaps it has problems. > > richard terry wrote: > > On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote: > >> Using Gambas 2.1.2 on KUbuntu 8.04. > >> And I don't know which version of Gambas you really use, as Gambas 2.1.2 does not exist. There is just a 2.1.0 version and a 2.2.0 version. Regards, -- Beno?t From steven at ...2097... Wed Jul 1 14:03:19 2009 From: steven at ...2097... (Steven James Drinnan) Date: Wed, 01 Jul 2009 20:03:19 +0800 Subject: [Gambas-user] V4L2 backport do-able? In-Reply-To: <4A4A5727.9080307@...1740...> References: <4A4A5727.9080307@...1740...> Message-ID: <1246449799.2747.9.camel@...2011...> On Tue, 2009-06-30 at 20:19 +0200, Ron wrote: > Is it do-able to backport V4L2 to Gambas stable? > > I find a lot of video cams/devices using this version, and they do not > seem to work with the current component. > > It gets a bit useless as time goes by.... > > Anyone has taken a shot at this yet? > > Kind regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Basicly its a problem that gambas2 is v4l1 and now most distros use v4l2 So you need to have v4lcompat and preload it like this for 64bit LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so (application name) for _86 LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so (application name) In code you can try something like this Public Sub Main() DIM myname AS String DIM myarch AS String SHELL "uname -p" TO myarch 'frmMain.Show IF Application.Args.Count <> 2 THEN IF InStr(myarch, "64") <> 0 THEN myname = "LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so " & Application.Name & " v4l" PRINT "Launch program with 64 bit v4l1compat.so" ELSE myname = "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so " & Application.Name & " v4l" PRINT "Launch program with 32 bit v4l1compat.so" END IF PRINT myname SHELL myname WAIT QUIT ELSE IF Application.Args[1] <> "v4l" THEN QUIT 'else continue frmMain.Show 'this is the form to start. END IF End This will relaunch your program preloading v4lcompat Benniot said it is fixed in version 3 From rterry at ...1946... Wed Jul 1 14:12:16 2009 From: rterry at ...1946... (richard terry) Date: Wed, 1 Jul 2009 22:12:16 +1000 Subject: [Gambas-user] persisting bug with breakpoint button in IDE Message-ID: <200907012212.16943.rterry@...1946...> Currently using 2058, for many revisions this button seems to get switched off and then can't be set back on again without quitting the IDE. Regards Richard From ron at ...1740... Wed Jul 1 16:59:10 2009 From: ron at ...1740... (Ron) Date: Wed, 01 Jul 2009 16:59:10 +0200 Subject: [Gambas-user] V4L2 backport do-able? In-Reply-To: <1246449799.2747.9.camel@...2011...> References: <4A4A5727.9080307@...1740...> <1246449799.2747.9.camel@...2011...> Message-ID: <4A4B79BE.2090306@...1740...> Steven James Drinnan wrote: > On Tue, 2009-06-30 at 20:19 +0200, Ron wrote: > >> Is it do-able to backport V4L2 to Gambas stable? >> >> I find a lot of video cams/devices using this version, and they do not >> seem to work with the current component. >> >> It gets a bit useless as time goes by.... >> >> Anyone has taken a shot at this yet? >> >> Kind regards, >> Ron_2nd. >> >> >> > > Basicly its a problem that gambas2 is v4l1 and now most distros use v4l2 > > So you need to have v4lcompat and preload it like this > > for 64bit > > LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so (application name) > > for _86 > > LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so (application name) > > > > In code you can try something like this > > Public Sub Main() > DIM myname AS String > > End > This will relaunch your program preloading v4lcompat > > > Benniot said it is fixed in version 3 > > > Didn't know this approach thanks, will fiddle with this. Regards, Ron_2nd. From joshiggins at ...1601... Wed Jul 1 19:28:19 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Wed, 1 Jul 2009 18:28:19 +0100 Subject: [Gambas-user] Data from MIDI /dev/midi device example? Message-ID: <4247f5440907011028q322ac859n27769dc3396ec88e@...627...> Hi, I stumbled across a short example on retrieving data from a midi device, i.e. /dev/midi but can't find it anymore. Does anybody know where this is or have a link? Thanks -- joshua higgins >>>>>>------ From sbungay at ...981... Thu Jul 2 01:34:25 2009 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 01 Jul 2009 19:34:25 -0400 Subject: [Gambas-user] Side panel example?? In-Reply-To: <200907010920.37009.gambas@...1...> References: <4A4A36B6.9090103@...981...> <200907010834.25481.rterry@...1946...> <4A4AC7B8.2050603@...981...> <200907010920.37009.gambas@...1...> Message-ID: <4A4BF281.4060605@...981...> Hmmm... sorry... 2.12 (not 2.1.2). Came with 8.04 KUbuntu... I have never been able to get the source to compile under this distro... I think I prefer Fedora for compiling from source. Anyway, I uninstalled & reinstalled Gambas and everything seems to be working as it should. Go figure. I think I'll install Fedora and compile the latest Gambas development version. Steve. Beno?t Minisini wrote: >> Hi Richard; >> >> Thanks for that, at least I was starting to think I was becoming >> thick-in-the-head. You're probably right, I hate second-guessing the >> tools, no error on run-time, but no button showing up either. I'm using >> the package from the KUbuntu 8.04 repo.. perhaps it has problems. >> >> richard terry wrote: >>> On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote: >>>> Using Gambas 2.1.2 on KUbuntu 8.04. >>>> > > And I don't know which version of Gambas you really use, as Gambas 2.1.2 does > not exist. There is just a 2.1.0 version and a 2.2.0 version. > > Regards, > From kobolds at ...2041... Thu Jul 2 05:19:19 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 1 Jul 2009 20:19:19 -0700 (PDT) Subject: [Gambas-user] extend group property Message-ID: <24300454.post@...1379...> is it possible to extend the use of group property to not just share event between control ? I know some programming tools on windows that they allow a control to set multiple group . their group provide more function . group can be use to assign same property of controls . for example I have 3 button and 3 textbox with same group call gr_test . I can call the same property from these control using group . gr_test.visible = false or gr_test.enable = false this is very useful and safe alot of work . I hope to see this in future release -- View this message in context: http://www.nabble.com/extend-group-property-tp24300454p24300454.html Sent from the gambas-user mailing list archive at Nabble.com. From message at ...2228... Fri Jul 3 00:41:26 2009 From: message at ...2228... (Dan Sheffner) Date: Thu, 2 Jul 2009 17:41:26 -0500 Subject: [Gambas-user] GridView adjust column length In-Reply-To: References: Message-ID: I'm filling a very simple GridView with the below code but I cannot adjust the column length. I have resizable set to TRUE and I have also tried to do GridView1.resizable = TRUE after the grid is populated with the values. Am I missing something or using the wrong property? Also is there an auto length to make sure the whole column is visiable? Thanks in advance. FOR EACH sb IN arrayOfLines sb = Trim(sb) 'PRINT sb arrayOfSpaces = Split(sb, " ") GridView1[rowCount, 0].Text = arrayOfSpaces[0] GridView1[rowCount, 1].Text = arrayOfSpaces[1] at the bottom of the SUB: GridView1.Resizable = TRUE From message at ...2228... Fri Jul 3 00:14:33 2009 From: message at ...2228... (Dan Sheffner) Date: Thu, 2 Jul 2009 17:14:33 -0500 Subject: [Gambas-user] GridView adjust column length Message-ID: I'm filling a very simple GridView with the below code but I cannot adjust the column length. I have resizable set to TRUE and I have also tried to do GridView1.resizable = TRUE after the grid is populated with the values. Am I missing something or using the wrong property? Also is there an auto length to make sure the whole column is visiable? Thanks in advance. FOR EACH sb IN arrayOfLines sb = Trim(sb) 'PRINT sb arrayOfSpaces = Split(sb, " ") GridView1[rowCount, 0].Text = arrayOfSpaces[0] GridView1[rowCount, 1].Text = arrayOfSpaces[1] at the bottom of the SUB: GridView1.Resizable = TRUE From wspinto at ...1405... Fri Jul 3 01:14:41 2009 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Thu, 02 Jul 2009 20:14:41 -0300 Subject: [Gambas-user] gambas2 on opensuse 11.0 Message-ID: <1246576481.4a4d3f61419ee@...1547...> Any idea about instalaton on opensuse 11.0. I'm not sucess in find libqt-mt3.so and libpq. When i ./configure -C not found this library In repository not found. Reguards, PS; My english is not very well. --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From kazutaka802 at ...1907... Fri Jul 3 08:01:08 2009 From: kazutaka802 at ...1907... (Kazutaka Harada) Date: Fri, 3 Jul 2009 15:01:08 +0900 (JST) Subject: [Gambas-user] How to show a form with keyboard shortcut Message-ID: <20090703060108.11097.qmail@...2229...> Hi all, I'm developing a small app that always stays on the notification area (with trayicon). In this app, I'm trying to show a form with keyboard shortcut, like steps below. 1) Run application. (But don't show a form, Minimized in notification area) 2) Press keyboard shortcut (like Control+Space) 3) Then popup a form But I could't find a way to do it yet. Is it possible to show a form with keyboard shortcut eyen though there is no visible form? I'm using gambas2-2.14.0. Regards, --- Kazutaka HARADA -------------------------------------- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ From steven at ...1652... Fri Jul 3 10:16:21 2009 From: steven at ...1652... (Steven revimmo) Date: Fri, 03 Jul 2009 10:16:21 +0200 Subject: [Gambas-user] gambas2 on opensuse 11.0 In-Reply-To: <1246576481.4a4d3f61419ee@...1547...> References: <1246576481.4a4d3f61419ee@...1547...> Message-ID: <1246608981.4464.12.camel@...1936...> Hi, I use Suse 11.0 : No problems. I think this library is called libqt-mt.so.3 It's in the standard repository. If lib's are failing, I use some extra repositories like : http://ftp.skynet.be/pub/packman/suse/11.0/ or http://download.opensuse.org/repositories/X11:/XGL/openSUSE_11.0/ Good luck. Steven Le jeudi 02 juillet 2009 ? 20:14 -0300, Wellington de Souza Pinto a ?crit : > libqt-mt3.so From gambas at ...1... Fri Jul 3 12:04:25 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 3 Jul 2009 12:04:25 +0200 Subject: [Gambas-user] How to show a form with keyboard shortcut In-Reply-To: <20090703060108.11097.qmail@...2229...> References: <20090703060108.11097.qmail@...2229...> Message-ID: <200907031204.25265.gambas@...1...> > Hi all, > > I'm developing a small app that always stays on the notification > area (with trayicon). > > In this app, I'm trying to show a form with keyboard shortcut, > like steps below. > > 1) Run application. (But don't show a form, Minimized in > notification area) > 2) Press keyboard shortcut (like Control+Space) > 3) Then popup a form > > But I could't find a way to do it yet. > > Is it possible to show a form with keyboard shortcut eyen though > there is no visible form? > > I'm using gambas2-2.14.0. > > Regards, > > --- > Kazutaka HARADA > > -------------------------------------- > Power up the Internet with Yahoo! Toolbar. > http://pr.mail.yahoo.co.jp/toolbar/ > You can't if you don't have the focus. What you need is a global shortcut, which is managed by your desktop environment, or a special program. For example, in KDE, there is a control panel entry for configuring them. Regards, -- Beno?t From rterry at ...1946... Fri Jul 3 13:12:37 2009 From: rterry at ...1946... (richard terry) Date: Fri, 3 Jul 2009 21:12:37 +1000 Subject: [Gambas-user] Collection - destroying Message-ID: <200907032112.37740.rterry@...1946...> Is it possible to 'destroy' a collection, I don't mean just remove its members. What I mean is one does this to create one: mycollection = new collection. One may do something with it, but then want it to be 'gone' and non-existant. Any advice appreciated. Richard From gambas at ...1... Fri Jul 3 14:37:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 3 Jul 2009 14:37:14 +0200 Subject: [Gambas-user] Collection - destroying In-Reply-To: <200907032112.37740.rterry@...1946...> References: <200907032112.37740.rterry@...1946...> Message-ID: <200907031437.14873.gambas@...1...> > Is it possible to 'destroy' a collection, I don't mean just remove its > members. > > What I mean is one does this to create one: > > mycollection = new collection. > > One may do something with it, but then want it to be 'gone' and > non-existant. > > Any advice appreciated. > > Richard > This is done automatically by the interpreter as soon nothing has a reference on the collection. As all other objects. Regards, -- Beno?t From prog at ...2177... Fri Jul 3 16:55:50 2009 From: prog at ...2177... (craf) Date: Fri, 03 Jul 2009 10:55:50 -0400 Subject: [Gambas-user] Controls Message-ID: <1246632951.3494.3.camel@...651...> Hello. Does anyone know that these controls are used, which are enclosed in the color red? Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: image12.jpg Type: image/jpeg Size: 27689 bytes Desc: not available URL: From sbungay at ...981... Fri Jul 3 19:15:26 2009 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 03 Jul 2009 13:15:26 -0400 Subject: [Gambas-user] Collection - destroying In-Reply-To: <200907032112.37740.rterry@...1946...> References: <200907032112.37740.rterry@...1946...> Message-ID: <4A4E3CAE.7000704@...981...> Returning the favour... :) Collection = NULL Steve. richard terry wrote: > Is it possible to 'destroy' a collection, I don't mean just remove its > members. > > What I mean is one does this to create one: > > mycollection = new collection. > > One may do something with it, but then want it to be 'gone' and non-existant. > > Any advice appreciated. > > Richard > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Fri Jul 3 19:19:57 2009 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 03 Jul 2009 13:19:57 -0400 Subject: [Gambas-user] GridView adjust column length In-Reply-To: References: Message-ID: <4A4E3DBD.4000008@...981...> Try this (from my GridUtils Class.. can't believe that was written 3 years ago now!) '*********************************************************************** '* AdjustGridColumns '* Author: Stephen Bungay '* Date: July 26 2006 '* '* Parameters: '* GridView '* '* Calls: Nothing '* '* Adjusts the column sizes of the gridview being used for data '* presentation. Ensures that all of the data is visible. '* '************************************************************************** PUBLIC SUB AdjustGridColumns(pPassedGrid AS GridView) DIM $Row AS Integer DIM $Col AS Integer DIM MaxWidth AS Integer MaxWidth = 0 WITH pPassedGrid .Columns.Resizable = TRUE FOR $Col = 0 TO .Columns.Count - 1 .Row = 0 .Column = $Col MaxWidth = .Current.Width FOR $Row = 0 TO .Rows.Count - 1 .Row = $Row IF .Font.Width(.Current.Text) > MaxWidth THEN MaxWidth = .Font.Width(.Current.Text) + 10 END IF NEXT .Columns[$Col].Width = MaxWidth NEXT END WITH END Dan Sheffner wrote: > I'm filling a very simple GridView with the below code but I cannot adjust > the column length. I have resizable set to TRUE and I have also tried to do > GridView1.resizable = TRUE after the grid is populated with the values. Am > I missing something or using the wrong property? Also is there an auto > length to make sure the whole column is visiable? Thanks in advance. > > FOR EACH sb IN arrayOfLines > sb = Trim(sb) > 'PRINT sb > arrayOfSpaces = Split(sb, " ") > GridView1[rowCount, 0].Text = arrayOfSpaces[0] > GridView1[rowCount, 1].Text = arrayOfSpaces[1] > > > at the bottom of the SUB: > > GridView1.Resizable = TRUE > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jul 3 19:37:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 3 Jul 2009 19:37:37 +0200 Subject: [Gambas-user] extend group property In-Reply-To: <24300454.post@...1379...> References: <24300454.post@...1379...> Message-ID: <200907031937.37908.gambas@...1...> > is it possible to extend the use of group property to not just share event > between control ? > > I know some programming tools on windows that they allow a control to set > multiple group . their group provide more function . > > group can be use to assign same property of controls . > for example I have 3 button and 3 textbox with same group call gr_test . > > I can call the same property from these control using group . > > gr_test.visible = false > or > gr_test.enable = false > > this is very useful and safe alot of work . > > I hope to see this in future release This is not possible. The group notion does not exist in the interpreter. But you can do it yourself with Gambas code, by creating a class for that. This class would be a container of Controls, and will have most of the Control properties. When a property is read or write on the container class, it will be read or write on all of the controls put in it. Regards, -- Beno?t From sbungay at ...981... Fri Jul 3 19:42:53 2009 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 03 Jul 2009 13:42:53 -0400 Subject: [Gambas-user] Controls In-Reply-To: <1246632951.3494.3.camel@...651...> References: <1246632951.3494.3.camel@...651...> Message-ID: <4A4E431D.5090604@...981...> They are container objects that arrange their children in rows or columns. See http://gambasdoc.org/help/comp/gb.qt/hbox?en http://gambasdoc.org/help/comp/gb.qt/hpanel?en Steve craf wrote: > Hello. > > Does anyone know that these controls are used, which are enclosed in the > color red? > > Regards > > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From prog at ...2177... Fri Jul 3 20:12:19 2009 From: prog at ...2177... (craf) Date: Fri, 03 Jul 2009 14:12:19 -0400 Subject: [Gambas-user] Controls In-Reply-To: <4A4E431D.5090604@...981...> References: <1246632951.3494.3.camel@...651...> <4A4E431D.5090604@...981...> Message-ID: <1246644739.3494.10.camel@...651...> Hi Steve. Thanks for reply. Yeah, I knew to do, my question is because those icons appear, as I have tried to understand it serves. Regards -----Mensaje original----- De: Stephen Bungay Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Controls Fecha: Fri, 03 Jul 2009 13:42:53 -0400 They are container objects that arrange their children in rows or columns. See http://gambasdoc.org/help/comp/gb.qt/hbox?en http://gambasdoc.org/help/comp/gb.qt/hpanel?en Steve craf wrote: > Hello. > > Does anyone know that these controls are used, which are enclosed in the > color red? > > Regards > > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From prog at ...2177... Fri Jul 3 20:24:49 2009 From: prog at ...2177... (craf) Date: Fri, 03 Jul 2009 14:24:49 -0400 Subject: [Gambas-user] Text Frame in Bold Message-ID: <1246645489.3494.20.camel@...651...> Hello. I tried to put in bold the text of a frame, but only the changes at design time rather than execution. Does it have to be? Design time Execution time Ubuntu Jaunty Jackalope 9.04 Gambas 2.14 -------------- next part -------------- A non-text attachment was scrubbed... Name: execution time.png Type: image/png Size: 1636 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: design time.png Type: image/png Size: 1522 bytes Desc: not available URL: From prog at ...2177... Fri Jul 3 20:45:00 2009 From: prog at ...2177... (craf) Date: Fri, 03 Jul 2009 14:45:00 -0400 Subject: [Gambas-user] Text Frame in Bold In-Reply-To: <1246645489.3494.20.camel@...651...> References: <1246645489.3494.20.camel@...651...> Message-ID: <1246646700.3494.23.camel@...651...> Hello. Disable gb.gtk component and active component gb.qt and no problems. Is it a bug? -----Mensaje original----- De: craf Reply-to: mailing list for gambas users Para: Lista Gambas Ingles Asunto: [Gambas-user] Text Frame in Bold Fecha: Fri, 03 Jul 2009 14:24:49 -0400 Hello. I tried to put in bold the text of a frame, but only the changes at design time rather than execution. Does it have to be? Design time Execution time Ubuntu Jaunty Jackalope 9.04 Gambas 2.14 ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Jul 3 20:58:01 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 3 Jul 2009 21:58:01 +0300 Subject: [Gambas-user] Text Frame in Bold In-Reply-To: <1246646700.3494.23.camel@...651...> References: <1246645489.3494.20.camel@...651...> <1246646700.3494.23.camel@...651...> Message-ID: <384d3900907031158m77902b9ftbcc52664cf31600@...627...> Seems like bug. What version of Gambas you are runing? What is your operating system? Jussi On Fri, Jul 3, 2009 at 21:45, craf wrote: > Hello. > > Disable gb.gtk component and active component gb.qt and no problems. Is > it a bug? > > > -----Mensaje original----- > De: craf > Reply-to: mailing list for gambas users > > Para: Lista Gambas Ingles > Asunto: [Gambas-user] Text Frame in Bold > Fecha: Fri, 03 Jul 2009 14:24:49 -0400 > > > Hello. > > I tried to put in bold the text of a frame, but only the changes at > design time rather than execution. > > Does it have to be? > > Design time > > > Execution time > > > > Ubuntu Jaunty Jackalope 9.04 > Gambas 2.14 > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Fri Jul 3 21:09:01 2009 From: prog at ...2177... (craf) Date: Fri, 03 Jul 2009 15:09:01 -0400 Subject: [Gambas-user] Text Frame in Bold In-Reply-To: <384d3900907031158m77902b9ftbcc52664cf31600@...627...> References: <1246645489.3494.20.camel@...651...> <1246646700.3494.23.camel@...651...> <384d3900907031158m77902b9ftbcc52664cf31600@...627...> Message-ID: <1246648141.3494.24.camel@...651...> Hi. Ubuntu Jaunty Jackalope 9.04 Gambas 2.14 Gnome 2.6.28 Regards -----Mensaje original----- De: Jussi Lahtinen Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Text Frame in Bold Fecha: Fri, 3 Jul 2009 21:58:01 +0300 Seems like bug. What version of Gambas you are runing? What is your operating system? Jussi On Fri, Jul 3, 2009 at 21:45, craf wrote: > Hello. > > Disable gb.gtk component and active component gb.qt and no problems. Is > it a bug? > > > -----Mensaje original----- > De: craf > Reply-to: mailing list for gambas users > > Para: Lista Gambas Ingles > Asunto: [Gambas-user] Text Frame in Bold > Fecha: Fri, 03 Jul 2009 14:24:49 -0400 > > > Hello. > > I tried to put in bold the text of a frame, but only the changes at > design time rather than execution. > > Does it have to be? > > Design time > > > Execution time > > > > Ubuntu Jaunty Jackalope 9.04 > Gambas 2.14 > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jul 3 21:23:12 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 3 Jul 2009 21:23:12 +0200 Subject: [Gambas-user] Text Frame in Bold In-Reply-To: <1246646700.3494.23.camel@...651...> References: <1246645489.3494.20.camel@...651...> <1246646700.3494.23.camel@...651...> Message-ID: <200907032123.12488.gambas@...1...> > Hello. > > Disable gb.gtk component and active component gb.qt and no problems. Is > it a bug? > > Yep, fixed in revision #2062. -- Beno?t From prog at ...2177... Fri Jul 3 21:29:44 2009 From: prog at ...2177... (craf) Date: Fri, 03 Jul 2009 15:29:44 -0400 Subject: [Gambas-user] Text Frame in Bold In-Reply-To: <200907032123.12488.gambas@...1...> References: <1246645489.3494.20.camel@...651...> <1246646700.3494.23.camel@...651...> <200907032123.12488.gambas@...1...> Message-ID: <1246649384.3494.25.camel@...651...> Thanks, Benoit. Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Text Frame in Bold Fecha: Fri, 3 Jul 2009 21:23:12 +0200 > Hello. > > Disable gb.gtk component and active component gb.qt and no problems. Is > it a bug? > > Yep, fixed in revision #2062. From kobolds at ...2041... Sat Jul 4 00:08:41 2009 From: kobolds at ...2041... (kobolds) Date: Fri, 3 Jul 2009 15:08:41 -0700 (PDT) Subject: [Gambas-user] extend group property In-Reply-To: <200907031937.37908.gambas@...1...> References: <24300454.post@...1379...> <200907031937.37908.gambas@...1...> Message-ID: <24329383.post@...1379...> Beno?t Minisini wrote: > >> is it possible to extend the use of group property to not just share >> event >> between control ? >> >> I know some programming tools on windows that they allow a control to set >> multiple group . their group provide more function . >> >> group can be use to assign same property of controls . >> for example I have 3 button and 3 textbox with same group call gr_test . >> >> I can call the same property from these control using group . >> >> gr_test.visible = false >> or >> gr_test.enable = false >> >> this is very useful and safe alot of work . >> >> I hope to see this in future release > > This is not possible. The group notion does not exist in the interpreter. > > But you can do it yourself with Gambas code, by creating a class for that. > This class would be a container of Controls, and will have most of the > Control > properties. When a property is read or write on the container class, it > will > be read or write on all of the controls put in it. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > using container is not practical . for example a entry form with alot of textbox field . depend on user privilege , some I need to disable or hide or enable or change text colour. just imaging how much code will be save if group allow and also make code easy to read. -- View this message in context: http://www.nabble.com/extend-group-property-tp24300454p24329383.html Sent from the gambas-user mailing list archive at Nabble.com. From leonardo at ...1237... Sat Jul 4 11:05:33 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 04 Jul 2009 11:05:33 +0200 Subject: [Gambas-user] Bug in package creator? In-Reply-To: <200907010115.18641.gambas@...1...> References: <4A4371DF.6040408@...1237...> <4A4A82EE.6050500@...1237...> <200906302343.35063.lordheavym@...626...> <200907010115.18641.gambas@...1...> Message-ID: <4A4F1B5D.2050002@...1237...> Beno?t Minisini ha scritto: >> Yes! There is no magic in dependencies. They are all explicit. > > Regards, > Maybe because you didn't try to make Gambas on a Debian based distro... If you specify sqlite3 in the components of the project, then the Deb package will search for gambas2-db-sqlite3 as dependency, but this package doesn't exist in any of the repositories: the existing package is named gambas2-db-sqlite... It seems that someone has changed the name of a package so Gambas 2.14 is not compatible with the previous versions. -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From garulfounix at ...626... Sat Jul 4 15:35:55 2009 From: garulfounix at ...626... (=?ISO-8859-1?Q?Fran=E7ois_Gallo?=) Date: Sat, 4 Jul 2009 15:35:55 +0200 Subject: [Gambas-user] Gambas and 3d game engines In-Reply-To: <23381068.post@...1379...> References: <23381068.post@...1379...> Message-ID: <9D8545B3-B720-4B82-AACD-BB74984DA07F@...626...> Le 5 mai 09 ? 07:03, jbskaggs a ?crit : > > Are there any 3d game engines designed to work with Gambas? Or > rather are > there 3d game engines Gambas can use? No there is no 3D game engines for Gambas currently. > > JB SKaggs > -- > View this message in context: http://www.nabble.com/Gambas-and-3d-game-engines-tp23381068p23381068.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! > Your > production scanning environment may not be a perfect world - but > thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW > KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From guido.iodice at ...626... Sun Jul 5 07:33:10 2009 From: guido.iodice at ...626... (guiodic) Date: Sat, 4 Jul 2009 22:33:10 -0700 (PDT) Subject: [Gambas-user] Using gb.web in my own gambas web server In-Reply-To: <24269830.post@...1379...> References: <24266408.post@...1379...> <200906301148.22905.gambas@...1...> <24269316.post@...1379...> <200906301243.29145.gambas@...1...> <24269830.post@...1379...> Message-ID: <24340338.post@...1379...> Well, I wrote the parsing of multipart form. But I have another issue. I must read from the socket strem and write to a file stream. But I must insert a pause (a very long pause...). If not, the socket stream ends before the file is written. I must use SLEEP, not WAIT, because this read/write operation is into a socket_read sub. Then the GUI freeze. I think the solution is a separate process. I would like to use gb.web for it, but I have no idea how to use it in my own "mini-server". Best regards and thank you in advance. guiodic wrote: > > > > Beno?t Minisini wrote: >> >> It depends on what you will do with your CGI script. >> > > my CGI must save the file that browser send via the form. > > > -- View this message in context: http://www.nabble.com/Using-gb.web-in-my-own-gambas-web-server-tp24266408p24340338.html Sent from the gambas-user mailing list archive at Nabble.com. From message at ...2228... Sun Jul 5 08:24:16 2009 From: message at ...2228... (Dan Sheffner) Date: Sun, 5 Jul 2009 01:24:16 -0500 Subject: [Gambas-user] GridView adjust column length In-Reply-To: <4A4E3DBD.4000008@...981...> References: <4A4E3DBD.4000008@...981...> Message-ID: Wow thank you very much...this sub is great. On Fri, Jul 3, 2009 at 12:19 PM, Stephen Bungay wrote: > Try this (from my GridUtils Class.. can't believe that was written 3 > years ago now!) > > '*********************************************************************** > '* AdjustGridColumns > '* Author: Stephen Bungay > '* Date: July 26 2006 > '* > '* Parameters: > '* GridView > '* > '* Calls: Nothing > '* > '* Adjusts the column sizes of the gridview being used for data > '* presentation. Ensures that all of the data is visible. > '* > '************************************************************************** > PUBLIC SUB AdjustGridColumns(pPassedGrid AS GridView) > > DIM $Row AS Integer > DIM $Col AS Integer > DIM MaxWidth AS Integer > > MaxWidth = 0 > > WITH pPassedGrid > .Columns.Resizable = TRUE > FOR $Col = 0 TO .Columns.Count - 1 > .Row = 0 > .Column = $Col > MaxWidth = .Current.Width > > FOR $Row = 0 TO .Rows.Count - 1 > .Row = $Row > IF .Font.Width(.Current.Text) > MaxWidth THEN > MaxWidth = .Font.Width(.Current.Text) + 10 > END IF > > NEXT > .Columns[$Col].Width = MaxWidth > NEXT > > END WITH > END > > > Dan Sheffner wrote: > > I'm filling a very simple GridView with the below code but I cannot > adjust > > the column length. I have resizable set to TRUE and I have also tried to > do > > GridView1.resizable = TRUE after the grid is populated with the values. > Am > > I missing something or using the wrong property? Also is there an auto > > length to make sure the whole column is visiable? Thanks in advance. > > > > FOR EACH sb IN arrayOfLines > > sb = Trim(sb) > > 'PRINT sb > > arrayOfSpaces = Split(sb, " ") > > GridView1[rowCount, 0].Text = arrayOfSpaces[0] > > GridView1[rowCount, 1].Text = arrayOfSpaces[1] > > > > > > at the bottom of the SUB: > > > > GridView1.Resizable = TRUE > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Sun Jul 5 18:20:59 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 05 Jul 2009 18:20:59 +0200 Subject: [Gambas-user] gambas3 IDE , Update all Forms Message-ID: <1246810859.6537.51.camel@...40...> Salut Benoit, gambas3 IDE , Update all Forms seems to be broken. -- Amicalment Charlie From pinozollo at ...626... Sun Jul 5 23:16:20 2009 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 5 Jul 2009 17:16:20 -0400 Subject: [Gambas-user] Sticky, TopOnly Message-ID: <200907051716.21051.pinozollo@...626...> Hi ------------ ME.Sticky = TRUE ' does nothing DEBUG ME.Sticky ME.TopOnly = TRUE DEBUG ME.TopOnly ' Why is always false ? ----------- Any idea why I get alway FALSE by the two DEBUG statements and none of the effect is shown by the window ? Best regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Sun Jul 5 23:25:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 5 Jul 2009 23:25:21 +0200 Subject: [Gambas-user] Sticky, TopOnly In-Reply-To: <200907051716.21051.pinozollo@...626...> References: <200907051716.21051.pinozollo@...626...> Message-ID: <200907052325.21951.gambas@...1...> > Hi > > ------------ > ME.Sticky = TRUE ' does nothing > DEBUG ME.Sticky > ME.TopOnly = TRUE > DEBUG ME.TopOnly ' Why is always false ? > ----------- > Any idea why I get alway FALSE by the two DEBUG statements and none of the > effect is shown by the window ? > > Best regards > > Pino Please tell your version of Gambas and if you use gb.qt or gb.gtk. Regards, -- Beno?t From gambas at ...1... Sun Jul 5 23:25:40 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 5 Jul 2009 23:25:40 +0200 Subject: [Gambas-user] gambas3 IDE , Update all Forms In-Reply-To: <1246810859.6537.51.camel@...40...> References: <1246810859.6537.51.camel@...40...> Message-ID: <200907052325.40408.gambas@...1...> > Salut Benoit, > > gambas3 IDE , Update all Forms seems to be broken. Possible - But why did you use it? -- Beno?t From gambas at ...1... Mon Jul 6 00:45:46 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 6 Jul 2009 00:45:46 +0200 Subject: [Gambas-user] gambas3 IDE , Update all Forms In-Reply-To: <200907052325.40408.gambas@...1...> References: <1246810859.6537.51.camel@...40...> <200907052325.40408.gambas@...1...> Message-ID: <200907060045.46597.gambas@...1...> > > Salut Benoit, > > > > gambas3 IDE , Update all Forms seems to be broken. > > Possible - But why did you use it? It is fixed in revision #2076! -- Beno?t From gambas at ...1... Mon Jul 6 00:49:07 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 6 Jul 2009 00:49:07 +0200 Subject: [Gambas-user] Sticky, TopOnly In-Reply-To: <200907051716.21051.pinozollo@...626...> References: <200907051716.21051.pinozollo@...626...> Message-ID: <200907060049.07700.gambas@...1...> > Hi > > ------------ > ME.Sticky = TRUE ' does nothing > DEBUG ME.Sticky > ME.TopOnly = TRUE > DEBUG ME.TopOnly ' Why is always false ? > ----------- > Any idea why I get alway FALSE by the two DEBUG statements and none of the > effect is shown by the window ? > > Best regards > > Pino It works perfectly with the KWin window manager on KDE 4. Which window manager do you use? -- Beno?t From kobolds at ...2041... Mon Jul 6 10:13:10 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 6 Jul 2009 01:13:10 -0700 (PDT) Subject: [Gambas-user] found interesting bug Message-ID: <24351370.post@...1379...> I found very interesting bug . here how to emulate it (took me a while to trace it) 1 . create 2 module module Mtest1 public function test() as boolean error.raise("this is error 1") return true catch Mtest2.test2(error.text) return false end '__________________________________ module Mtest2 public function test2(arg_msg as string) message.error(arg_msg) end when you run you will notice message.error show nothing . the message ""this is error 1" lose . solution 1 module Mtest1 public function test() as boolean dim m_err as string error.raise("this is error 1") return true catch m_err = error.text Mtest2.test2(m_err) return false end '__________________________________ module Mtest2 public function test2(arg_msg as string) message.error(arg_msg) end solution 2 module Mtest1 public function test() as boolean dim m_err as string error.raise("this is error 1") return true catch m_err = error.text Mtest2.test2(m_err) return false end public function test2(arg_msg as string) message.error(arg_msg) end is this a bug or not ? -- View this message in context: http://www.nabble.com/found-interesting-bug-tp24351370p24351370.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 6 10:34:11 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 6 Jul 2009 10:34:11 +0200 Subject: [Gambas-user] found interesting bug In-Reply-To: <24351370.post@...1379...> References: <24351370.post@...1379...> Message-ID: <200907061034.11131.gambas@...1...> > I found very interesting bug . here how to emulate it (took me a while to > trace it) > > 1 . create 2 module > > module Mtest1 > > public function test() as boolean > > error.raise("this is error 1") > > return true > catch > Mtest2.test2(error.text) > return false > end > > '__________________________________ > module Mtest2 > > public function test2(arg_msg as string) > message.error(arg_msg) > end > > > when you run you will notice message.error show nothing . the message > ""this is error 1" lose . > solution 1 > > module Mtest1 > > public function test() as boolean > dim m_err as string > error.raise("this is error 1") > > return true > catch > m_err = error.text > Mtest2.test2(m_err) > return false > end > > '__________________________________ > module Mtest2 > > public function test2(arg_msg as string) > message.error(arg_msg) > end > > > solution 2 > > module Mtest1 > > public function test() as boolean > dim m_err as string > error.raise("this is error 1") > > return true > catch > m_err = error.text > Mtest2.test2(m_err) > return false > end > > public function test2(arg_msg as string) > message.error(arg_msg) > end > > > > > > > is this a bug or not ? Which version of Gambas do you use? Which GUI component do you use? -- Beno?t From kobolds at ...2041... Mon Jul 6 13:07:36 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 6 Jul 2009 04:07:36 -0700 (PDT) Subject: [Gambas-user] found interesting bug In-Reply-To: <200907061034.11131.gambas@...1...> References: <24351370.post@...1379...> <200907061034.11131.gambas@...1...> Message-ID: <24353562.post@...1379...> gambas 2.14 gui qt Beno?t Minisini wrote: > >> I found very interesting bug . here how to emulate it (took me a while >> to >> trace it) >> >> 1 . create 2 module >> >> module Mtest1 >> >> public function test() as boolean >> >> error.raise("this is error 1") >> >> return true >> catch >> Mtest2.test2(error.text) >> return false >> end >> >> '__________________________________ >> module Mtest2 >> >> public function test2(arg_msg as string) >> message.error(arg_msg) >> end >> >> >> when you run you will notice message.error show nothing . the message >> ""this is error 1" lose . >> solution 1 >> >> module Mtest1 >> >> public function test() as boolean >> dim m_err as string >> error.raise("this is error 1") >> >> return true >> catch >> m_err = error.text >> Mtest2.test2(m_err) >> return false >> end >> >> '__________________________________ >> module Mtest2 >> >> public function test2(arg_msg as string) >> message.error(arg_msg) >> end >> >> >> solution 2 >> >> module Mtest1 >> >> public function test() as boolean >> dim m_err as string >> error.raise("this is error 1") >> >> return true >> catch >> m_err = error.text >> Mtest2.test2(m_err) >> return false >> end >> >> public function test2(arg_msg as string) >> message.error(arg_msg) >> end >> >> >> >> >> >> >> is this a bug or not ? > > Which version of Gambas do you use? Which GUI component do you use? > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/found-interesting-bug-tp24351370p24353562.html Sent from the gambas-user mailing list archive at Nabble.com. From sevoir75 at ...626... Mon Jul 6 15:13:04 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Mon, 06 Jul 2009 15:13:04 +0200 Subject: [Gambas-user] 2 dimensional string[] Message-ID: <1246885984.6382.9.camel@...1964...> Hi, Can anyone help me? I would like use 2 dimensional string but i cant do it. String[x][y] If possible please send a sample. Thanks, Sevoir From sevoir75 at ...626... Mon Jul 6 15:15:06 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Mon, 06 Jul 2009 15:15:06 +0200 Subject: [Gambas-user] 2 dimensional string[] In-Reply-To: <1246885984.6382.9.camel@...1964...> References: <1246885984.6382.9.camel@...1964...> Message-ID: <1246886106.6382.11.camel@...1964...> 2009. 07. 6, h?tf? keltez?ssel 15.13-kor Szenogr?di Norbert ezt ?rta: > mailing list for gambas users I forgotten some info: I'm using: Gambas 2.8 Thanks.. From gambas at ...1... Mon Jul 6 15:19:02 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 6 Jul 2009 15:19:02 +0200 Subject: [Gambas-user] 2 dimensional string[] In-Reply-To: <1246885984.6382.9.camel@...1964...> References: <1246885984.6382.9.camel@...1964...> Message-ID: <200907061519.02218.gambas@...1...> > Hi, > > > Can anyone help me? > I would like use 2 dimensional string but i cant do it. > String[x][y] > > If possible please send a sample. > > Thanks, Sevoir > Dim Donuts As String[2, 8] Print Donuts[1, 2] -- Beno?t From kobolds at ...2041... Mon Jul 6 18:00:55 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 6 Jul 2009 09:00:55 -0700 (PDT) Subject: [Gambas-user] Bug in Database manager Message-ID: <24358215.post@...1379...> gambas 2.14 database sqlite I create table with 2 datetime fields (start_date , end_date) and default value current_timestamp . and 1 string field (stg_status) with default 'O' when I open using gambas database manager the 2 datetime field show , start_date --> default show --> 0 end_date---> default show --> 8980056 the string field stg_status --> default show --> 4.444578977261E-317 I also found very strange limitation in database manager . if you manual create a table from sqlite konsole . if you type like this : create table testtbl( std_id integer primary key autoincrement , std_name text); sqlite execute no problem but when you open using database manager , it give error no primary key you must type create table testtbl( 'std_id' INTEGER PRIMARY KEY AUTOINCREMENT , 'std_name' TEXT); why such weird limitation exist ? -- View this message in context: http://www.nabble.com/Bug-in-Database-manager-tp24358215p24358215.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 6 19:02:18 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 6 Jul 2009 19:02:18 +0200 Subject: [Gambas-user] Bug in Database manager In-Reply-To: <24358215.post@...1379...> References: <24358215.post@...1379...> Message-ID: <200907061902.18707.gambas@...1...> > gambas 2.14 > database sqlite > > I create table with 2 datetime fields (start_date , end_date) and default > value current_timestamp . and 1 string field (stg_status) with default 'O' > > when I open using gambas database manager > the 2 datetime field show , > start_date --> default show --> 0 > end_date---> default show --> 8980056 > > the string field stg_status --> default show --> 4.444578977261E-317 > > I also found very strange limitation in database manager . if you manual > create a table from sqlite konsole . if you type like this : > create table testtbl( std_id integer primary key autoincrement , std_name > text); > > sqlite execute no problem but when you open using database manager , it > give error no primary key > > you must type > create table testtbl( 'std_id' INTEGER PRIMARY KEY AUTOINCREMENT , > 'std_name' TEXT); > > why such weird limitation exist ? You must create your tables from the database manager if you want him to display them reliably. As there is no standard way in SQL to store metadata in a database, the gambas database component relies on specific database- dependant datatype to do its mapping with Gambas native datatypes. See http://gambasdoc.org/help/doc/db-type-mapping for more details. In your specific case, I think there is a case-sensitive comparison somewhere in the sqlite database driver that should be case-unsensitive. I will investigate and try to fix the problem. Regards, -- Beno?t From kobolds at ...2041... Mon Jul 6 21:36:57 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 6 Jul 2009 12:36:57 -0700 (PDT) Subject: [Gambas-user] Bug in Database manager In-Reply-To: <200907061902.18707.gambas@...1...> References: <24358215.post@...1379...> <200907061902.18707.gambas@...1...> Message-ID: <24361573.post@...1379...> Beno?t Minisini wrote: > >> gambas 2.14 >> database sqlite >> >> I create table with 2 datetime fields (start_date , end_date) and default >> value current_timestamp . and 1 string field (stg_status) with default >> 'O' >> >> when I open using gambas database manager >> the 2 datetime field show , >> start_date --> default show --> 0 >> end_date---> default show --> 8980056 >> >> the string field stg_status --> default show --> 4.444578977261E-317 >> >> I also found very strange limitation in database manager . if you manual >> create a table from sqlite konsole . if you type like this : >> create table testtbl( std_id integer primary key autoincrement , std_name >> text); >> >> sqlite execute no problem but when you open using database manager , it >> give error no primary key >> >> you must type >> create table testtbl( 'std_id' INTEGER PRIMARY KEY AUTOINCREMENT , >> 'std_name' TEXT); >> >> why such weird limitation exist ? > > You must create your tables from the database manager if you want him to > display them reliably. As there is no standard way in SQL to store > metadata in > a database, the gambas database component relies on specific database- > dependant datatype to do its mapping with Gambas native datatypes. > > See http://gambasdoc.org/help/doc/db-type-mapping for more details. > > In your specific case, I think there is a case-sensitive comparison > somewhere > in the sqlite database driver that should be case-unsensitive. I will > investigate and try to fix the problem. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > what I mention is also happen when you using the database manager to create the table and the default value . this happen if the field type is string . create a table (sqlite) using database manager . create a field type string . enter the default value 'O' .save . refresh /reload . the default value for the string change to number (the number change each time you open the database manager). if you check the schema of the table from sqlite konsole , it show correct the default 'O' . if you want to enter data into the table using database manager you will see default (random number) field into it rather than 'O' . -- View this message in context: http://www.nabble.com/Bug-in-Database-manager-tp24358215p24361573.html Sent from the gambas-user mailing list archive at Nabble.com. From guido.iodice at ...626... Tue Jul 7 01:07:42 2009 From: guido.iodice at ...626... (guiodic) Date: Mon, 6 Jul 2009 16:07:42 -0700 (PDT) Subject: [Gambas-user] one project, two executable. How to? Message-ID: <24364405.post@...1379...> hi to all, I need to make two ececutable in my project. Or in alternative, to execute a form like a separate process. Is it possible? -- View this message in context: http://www.nabble.com/one-project%2C-two-executable.-How-to--tp24364405p24364405.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jul 7 01:08:51 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 7 Jul 2009 01:08:51 +0200 Subject: [Gambas-user] Bug in Database manager In-Reply-To: <24361573.post@...1379...> References: <24358215.post@...1379...> <200907061902.18707.gambas@...1...> <24361573.post@...1379...> Message-ID: <200907070108.51318.gambas@...1...> > > what I mention is also happen when you using the database manager to create > the table and the default value . this happen if the field type is string > . create a table (sqlite) using database manager . create a field type > string . enter the default value 'O' .save . refresh /reload . the default > value for the string change to number (the number change each time you open > the database manager). > > if you check the schema of the table from sqlite konsole , it show correct > the default 'O' . > > if you want to enter data into the table using database manager you will > see default (random number) field into it rather than 'O' . Ah, okay! I will investigate... -- Beno?t From gambas at ...1... Tue Jul 7 09:58:43 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 7 Jul 2009 09:58:43 +0200 Subject: [Gambas-user] Bug in Database manager In-Reply-To: <200907070108.51318.gambas@...1...> References: <24358215.post@...1379...> <24361573.post@...1379...> <200907070108.51318.gambas@...1...> Message-ID: <200907070958.43153.gambas@...1...> > > what I mention is also happen when you using the database manager to > > create the table and the default value . this happen if the field type > > is string . create a table (sqlite) using database manager . create a > > field type string . enter the default value 'O' .save . refresh /reload . > > the default value for the string change to number (the number change each > > time you open the database manager). > > > > if you check the schema of the table from sqlite konsole , it show > > correct the default 'O' . > > > > if you want to enter data into the table using database manager you will > > see default (random number) field into it rather than 'O' . > > Ah, okay! I will investigate... Wow, two bugs mixed together! They should be fixed in revision #2083. If you can test it and confirm the fix, it would be cool. Regards, -- Beno?t From pinozollo at ...626... Tue Jul 7 16:04:09 2009 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 7 Jul 2009 10:04:09 -0400 Subject: [Gambas-user] Window not closable Message-ID: <200907071004.09896.pinozollo@...626...> Hi, Is there a way to make a window/form that can not be closed by the user ? (Without the X) Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From steven at ...1652... Tue Jul 7 18:57:11 2009 From: steven at ...1652... (Steven revimmo) Date: Tue, 07 Jul 2009 18:57:11 +0200 Subject: [Gambas-user] Window not closable In-Reply-To: <200907071004.09896.pinozollo@...626...> References: <200907071004.09896.pinozollo@...626...> Message-ID: <1246985831.6255.13.camel@...1936...> Hi, I think you can just cancel it in the onClose event of the window. I personally use windows without borders or anything that simply have no close button on them, it's nicer i think, but of course you are leaving the desktop look, which might not be acceptable. Steven Le mardi 07 juillet 2009 ? 10:04 -0400, Pino Zollo a ?crit : > Hi, > Is there a way to make a window/form that can not be closed by the user ? > (Without the X) > > Regards > > Pino From joshiggins at ...1601... Tue Jul 7 21:19:09 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Tue, 7 Jul 2009 20:19:09 +0100 Subject: [Gambas-user] one project, two executable. How to? In-Reply-To: <24364405.post@...1379...> References: <24364405.post@...1379...> Message-ID: <4247f5440907071219y679cfcedjb77a15aa7bf4fe2e@...627...> I tried to do this but never found a solution. Seemed easier to create two projects. 2009/7/7 guiodic > > hi to all, > > I need to make two ececutable in my project. > > Or in alternative, to execute a form like a separate process. > > Is it possible? > -- > View this message in context: > http://www.nabble.com/one-project%2C-two-executable.-How-to--tp24364405p24364405.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From pinozollo at ...626... Tue Jul 7 21:24:44 2009 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 7 Jul 2009 15:24:44 -0400 Subject: [Gambas-user] Window not closable In-Reply-To: <1246985831.6255.13.camel@...1936...> References: <200907071004.09896.pinozollo@...626...> <1246985831.6255.13.camel@...1936...> Message-ID: <200907071524.45020.pinozollo@...626...> Il marted? 7 luglio 2009 12:57:11 hai scritto: > I think you can just cancel it in the onClose event of the window. > I personally use windows without borders or anything that simply have no > close button on them, it's nicer > i think, but of course you are leaving the desktop look, which might not > be acceptable. Thanks Steven, I will do some experiment... Without border I guess that the user can not move around the window any more... Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From jguardon at ...2035... Tue Jul 7 21:29:54 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Tue, 07 Jul 2009 21:29:54 +0200 Subject: [Gambas-user] one project, two executable. How to? In-Reply-To: <4247f5440907071219y679cfcedjb77a15aa7bf4fe2e@...627...> References: <24364405.post@...1379...> <4247f5440907071219y679cfcedjb77a15aa7bf4fe2e@...627...> Message-ID: <4A53A232.3060800@...2035...> May be two separate projects and calling your executable (2nd program) from within main program? EXEC ["your2ndprogram.gambas"] Never tested, though. Regards Jesus Joshua Higgins escribi?: > I tried to do this but never found a solution. Seemed easier to create two > projects. > > 2009/7/7 guiodic > >> hi to all, >> >> I need to make two ececutable in my project. >> >> Or in alternative, to execute a form like a separate process. >> >> Is it possible? >> -- >> View this message in context: >> http://www.nabble.com/one-project%2C-two-executable.-How-to--tp24364405p24364405.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From rospolosco at ...152... Tue Jul 7 21:46:10 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 7 Jul 2009 21:46:10 +0200 Subject: [Gambas-user] Window not closable In-Reply-To: <200907071004.09896.pinozollo@...626...> References: <200907071004.09896.pinozollo@...626...> Message-ID: <200907072146.10592.rospolosco@...152...> Il marted? 7 luglio 2009 16:04:09 Pino Zollo ha scritto: > Hi, > Is there a way to make a window/form that can not be closed by the user ? > (Without the X) > > Regards > > Pino With this code: PUBLIC SUB Form_Close() STOP EVENT END Ciao, Stefano From gambas at ...1... Tue Jul 7 21:54:51 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 7 Jul 2009 21:54:51 +0200 Subject: [Gambas-user] one project, two executable. How to? In-Reply-To: <4A53A232.3060800@...2035...> References: <24364405.post@...1379...> <4247f5440907071219y679cfcedjb77a15aa7bf4fe2e@...627...> <4A53A232.3060800@...2035...> Message-ID: <200907072154.51265.gambas@...1...> > May be two separate projects and calling your executable (2nd program) > from within main program? > > EXEC ["your2ndprogram.gambas"] > > Never tested, though. > > Regards > > Jesus > Thanks to Unix, the name of the program is put in Application.Args[0]. So you can create a symbolic link on your program with another name, and then, you can decide which thing to do according to the contents of Application.Args[0]. Regards, -- Beno?t From kobolds at ...2041... Tue Jul 7 22:42:21 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 7 Jul 2009 13:42:21 -0700 (PDT) Subject: [Gambas-user] Bug in Database manager In-Reply-To: <200907070958.43153.gambas@...1...> References: <24358215.post@...1379...> <200907061902.18707.gambas@...1...> <24361573.post@...1379...> <200907070108.51318.gambas@...1...> <200907070958.43153.gambas@...1...> Message-ID: <24380963.post@...1379...> Beno?t Minisini wrote: > >> > what I mention is also happen when you using the database manager to >> > create the table and the default value . this happen if the field type >> > is string . create a table (sqlite) using database manager . create a >> > field type string . enter the default value 'O' .save . refresh /reload >> . >> > the default value for the string change to number (the number change >> each >> > time you open the database manager). >> > >> > if you check the schema of the table from sqlite konsole , it show >> > correct the default 'O' . >> > >> > if you want to enter data into the table using database manager you >> will >> > see default (random number) field into it rather than 'O' . >> >> Ah, okay! I will investigate... > > Wow, two bugs mixed together! They should be fixed in revision #2083. If > you > can test it and confirm the fix, it would be cool. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/blackberry > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > sorry I can't test cause I never success compile gambas on my machine before . I have to wait binary release. I using opensuse 11.1 (x64) using gambas (x64) (by Guillermo Ballester Valor ) -- View this message in context: http://www.nabble.com/Bug-in-Database-manager-tp24358215p24380963.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Tue Jul 7 23:03:28 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 7 Jul 2009 14:03:28 -0700 (PDT) Subject: [Gambas-user] something need to be done with the compiler Message-ID: <24381288.post@...1379...> I have been trying learn gambas for a month now , I quite happy with it other than the compiler . the compiler just too stupid . when I code a program and some time typo or forget the fill a parameter of a function , the compiler just ignore it . I spend more time to trace such stupid problem on run time . try to image you get weird exception from your program and the problem is some typo you made or made by others. the program you made will be full of unknown bugs that not yet discover this is really giving huge problem for anyone want to use gambas to develop a program . the compiler should check all these problem and show warning as what a normal compiler should do. -- View this message in context: http://www.nabble.com/something-need-to-be-done-with-the-compiler-tp24381288p24381288.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jul 7 23:17:09 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 7 Jul 2009 23:17:09 +0200 Subject: [Gambas-user] something need to be done with the compiler In-Reply-To: <24381288.post@...1379...> References: <24381288.post@...1379...> Message-ID: <200907072317.09514.gambas@...1...> > I have been trying learn gambas for a month now , I quite happy with it > other than the compiler . > the compiler just too stupid . when I code a program and some time typo or > forget the fill a parameter of a function , the compiler just ignore it . > > I spend more time to trace such stupid problem on run time . try to image > you get weird exception from your program and the problem is some typo you > made or made by others. the program you made will be full of unknown bugs > that not yet discover > > this is really giving huge problem for anyone want to use gambas to develop > a program . > > the compiler should check all these problem and show warning as what a > normal compiler should do. The compiler could warn only when calling a function in the same class. I may add that check. But, as I explained before, it cannot do anything for call between two different classes. But when you enter a function call, the IDE shows you the syntax of the function in a tooltip, so I don't understand how you could forget an argument too often. Regards, -- Beno?t From kobolds at ...2041... Tue Jul 7 23:58:39 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 7 Jul 2009 14:58:39 -0700 (PDT) Subject: [Gambas-user] something need to be done with the compiler In-Reply-To: <200907072317.09514.gambas@...1...> References: <24381288.post@...1379...> <200907072317.09514.gambas@...1...> Message-ID: <24382093.post@...1379...> Beno?t Minisini wrote: > >> I have been trying learn gambas for a month now , I quite happy with it >> other than the compiler . >> the compiler just too stupid . when I code a program and some time typo >> or >> forget the fill a parameter of a function , the compiler just ignore it . >> >> I spend more time to trace such stupid problem on run time . try to >> image >> you get weird exception from your program and the problem is some typo >> you >> made or made by others. the program you made will be full of unknown bugs >> that not yet discover >> >> this is really giving huge problem for anyone want to use gambas to >> develop >> a program . >> >> the compiler should check all these problem and show warning as what a >> normal compiler should do. > > The compiler could warn only when calling a function in the same class. I > may > add that check. > > But, as I explained before, it cannot do anything for call between two > different classes. > > But when you enter a function call, the IDE shows you the syntax of the > function in a tooltip, so I don't understand how you could forget an > argument > too often. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > checking the whole project will be the best . if those unable to find show as warning not error . even if slow down , I doubt anyone will mind . I'm a lazy programmer . sometime I change the parameter of a function in a class or module , sometime I remove or move some share variable or function . I usually left the checking to the compiler (as most programming language compiler will do) . the compiler will tell me where in the code that is effected to the change . gambas compile is the first compiler that I encounter that doesn't do what a standard compiler must do. i think this limitation is very bad to gambas . for example if you distribute some component . then at some version some function is remove . the people that using the component won't be able to know cause the compiler doesn't give them any warning . -- View this message in context: http://www.nabble.com/something-need-to-be-done-with-the-compiler-tp24381288p24382093.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Jul 8 00:17:42 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 8 Jul 2009 00:17:42 +0200 Subject: [Gambas-user] something need to be done with the compiler In-Reply-To: <24382093.post@...1379...> References: <24381288.post@...1379...> <200907072317.09514.gambas@...1...> <24382093.post@...1379...> Message-ID: <200907080017.42137.gambas@...1...> > Beno?t Minisini wrote: > >> I have been trying learn gambas for a month now , I quite happy with it > >> other than the compiler . > >> the compiler just too stupid . when I code a program and some time typo > >> or > >> forget the fill a parameter of a function , the compiler just ignore it > >> . > >> > >> I spend more time to trace such stupid problem on run time . try to > >> image > >> you get weird exception from your program and the problem is some typo > >> you > >> made or made by others. the program you made will be full of unknown > >> bugs that not yet discover > >> > >> this is really giving huge problem for anyone want to use gambas to > >> develop > >> a program . > >> > >> the compiler should check all these problem and show warning as what a > >> normal compiler should do. > > > > The compiler could warn only when calling a function in the same class. I > > may > > add that check. > > > > But, as I explained before, it cannot do anything for call between two > > different classes. > > > > But when you enter a function call, the IDE shows you the syntax of the > > function in a tooltip, so I don't understand how you could forget an > > argument > > too often. > > > > Regards, > > > > -- > > Beno?t > > > > ------------------------------------------------------------------------- > >----- Enter the BlackBerry Developer Challenge > > This is your chance to win up to $100,000 in prizes! For a limited time, > > vendors submitting new applications to BlackBerry App World(TM) will have > > the opportunity to enter the BlackBerry Developer Challenge. See full > > prize > > details at: http://p.sf.net/sfu/Challenge > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > checking the whole project will be the best . if those unable to find show > as warning not error . even if slow down , I doubt anyone will mind . > > I'm a lazy programmer . sometime I change the parameter of a function in a > class or module , sometime I remove or move some share variable or function > . > > I usually left the checking to the compiler (as most programming language > compiler will do) . the compiler will tell me where in the code that is > effected to the change . > > gambas compile is the first compiler that I encounter that doesn't do what > a standard compiler must do. > > i think this limitation is very bad to gambas . for example if you > distribute some component . then at some version some function is remove . > the people that using the component won't be able to know cause the > compiler doesn't give them any warning . What you see as a disadventage is exactly what I didn't find in other languages. I wanted a full dynamic linking and a very fast compiler. This is the reason why the compiler cannot check anything outside of the class it compiles. And if the interface of a component changes, you must change its version number. Of course Gambas does not force you to do so, but this is a common practice. As I said before, I can add the only possible check: inside the same class. But as the linking is entirely dynamic, only the interpreter, during execution, and the first time it calls the method, can know if the arguments of the caller and the called method match. Checking argument matching cannot be 100% reliable at compile time. I understand that it is disturbing for you and other people, but it is mainly a matter of habits. I don't want at the moment to break what I done to implement this kind of check in Gambas 3. It may be something for Gambas 4. Regards, -- Beno?t From doriano.blengino at ...1909... Wed Jul 8 06:47:51 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 08 Jul 2009 06:47:51 +0200 Subject: [Gambas-user] something need to be done with the compiler In-Reply-To: <200907080017.42137.gambas@...1...> References: <24381288.post@...1379...> <200907072317.09514.gambas@...1...> <24382093.post@...1379...> <200907080017.42137.gambas@...1...> Message-ID: <4A5424F7.6060208@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini wrote: >> >>>> I have been trying learn gambas for a month now , I quite happy with it >>>> other than the compiler . >>>> the compiler just too stupid . when I code a program and some time typo >>>> or >>>> forget the fill a parameter of a function , the compiler just ignore it >>>> . >>>> >>>> I spend more time to trace such stupid problem on run time . try to >>>> image >>>> you get weird exception from your program and the problem is some typo >>>> you >>>> made or made by others. the program you made will be full of unknown >>>> bugs that not yet discover >>>> >>>> this is really giving huge problem for anyone want to use gambas to >>>> develop >>>> a program . >>>> >>>> the compiler should check all these problem and show warning as what a >>>> normal compiler should do. >>>> >>> The compiler could warn only when calling a function in the same class. I >>> may >>> add that check. >>> >>> But, as I explained before, it cannot do anything for call between two >>> different classes. >>> >>> But when you enter a function call, the IDE shows you the syntax of the >>> function in a tooltip, so I don't understand how you could forget an >>> argument >>> too often. >>> >>> Regards, >>> >>> -- >>> Beno?t >>> >>> ------------------------------------------------------------------------- >>> ----- Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited time, >>> vendors submitting new applications to BlackBerry App World(TM) will have >>> the opportunity to enter the BlackBerry Developer Challenge. See full >>> prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> checking the whole project will be the best . if those unable to find show >> as warning not error . even if slow down , I doubt anyone will mind . >> >> I'm a lazy programmer . sometime I change the parameter of a function in a >> class or module , sometime I remove or move some share variable or function >> . >> >> I usually left the checking to the compiler (as most programming language >> compiler will do) . the compiler will tell me where in the code that is >> effected to the change . >> >> gambas compile is the first compiler that I encounter that doesn't do what >> a standard compiler must do. >> >> i think this limitation is very bad to gambas . for example if you >> distribute some component . then at some version some function is remove . >> the people that using the component won't be able to know cause the >> compiler doesn't give them any warning . >> > > What you see as a disadventage is exactly what I didn't find in other > languages. I wanted a full dynamic linking and a very fast compiler. This is > the reason why the compiler cannot check anything outside of the class it > compiles. > > And if the interface of a component changes, you must change its version > number. Of course Gambas does not force you to do so, but this is a common > practice. > > As I said before, I can add the only possible check: inside the same class. > > But as the linking is entirely dynamic, only the interpreter, during > execution, and the first time it calls the method, can know if the arguments > of the caller and the called method match. Checking argument matching cannot > be 100% reliable at compile time. > > I understand that it is disturbing for you and other people, but it is mainly > a matter of habits. I don't want at the moment to break what I done to > implement this kind of check in Gambas 3. It may be something for Gambas 4. > > Regards, > > Sorry for breaking in, I've read this thread and I must say that you both are right, 'til this point. But there is a thing I don't understand: if the IDE knows the footprint of all the procedures of all the classes, and in fact the IDE guides the user while he is writing, could'nt it be feasible to add a menu item to check for inconsistencies of this kind? One could invoke this function only when needed, so the two kinds of users could have what they want: people like me and Kobolds would have a solid check, others could have this light-fast compiler... I can understand that it is a hard work, but it could be important. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From ulusoyab at ...43... Wed Jul 8 10:04:52 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Wed, 8 Jul 2009 01:04:52 -0700 (PDT) Subject: [Gambas-user] drawingarea resize Message-ID: <75002.7615.qm@...2230...> hi when i ?resize to drawingarea gambas console show me this error. X Error: BadAlloc (insufficient resources for operation) 11 Major opcode: 53 Minor opcode: 0 Resource id: 0x7c X Error: BadDrawable (invalid Pixmap or Window parameter) 9 Major opcode: 70 Minor opcode: 0 Resource id: 0x3600fc2 X Error: BadDrawable (invalid Pixmap or Window parameter) 9 Major opcode: 62 Minor opcode: 0 Resource id: 0x3600fc2 X Error: BadPixmap (invalid Pixmap parameter) 4 Major opcode: 2 Minor opcode: 0 Resource id: 0x3600fc2 X Error: BadAlloc (insufficient resources for operation) 11 Major opcode: 53 Minor opcode: 0 Resource id: 0x7c X Error: BadDrawable (invalid Pixmap or Window parameter) 9 Major opcode: 70 Minor opcode: 0 Resource id: 0x3600fc3 X Error: BadDrawable (invalid Pixmap or Window parameter) 9 Major opcode: 62 Minor opcode: 0 Resource id: 0x3600fc3 X Error: BadPixmap (invalid Pixmap parameter) 4 Major opcode: 54 Minor opcode: 0 Resource id: 0x3600fc2 X Error: BadPixmap (invalid Pixmap parameter) 4 Major opcode: 2 Minor opcode: 0 ? Resource id: 0x3600fc3+ ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From sevoir75 at ...626... Wed Jul 8 12:02:11 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Wed, 08 Jul 2009 12:02:11 +0200 Subject: [Gambas-user] gridview header text? Message-ID: <1247047331.4980.4.camel@...1964...> Hi, Can I setup gridview header text? regards, Sevoir From gambas at ...1... Wed Jul 8 12:29:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 8 Jul 2009 12:29:14 +0200 Subject: [Gambas-user] something need to be done with the compiler In-Reply-To: <4A5424F7.6060208@...1909...> References: <24381288.post@...1379...> <200907080017.42137.gambas@...1...> <4A5424F7.6060208@...1909...> Message-ID: <200907081229.14335.gambas@...1...> > Beno?t Minisini ha scritto: > >> Beno?t Minisini wrote: > >>>> I have been trying learn gambas for a month now , I quite happy with > >>>> it other than the compiler . > >>>> the compiler just too stupid . when I code a program and some time > >>>> typo or > >>>> forget the fill a parameter of a function , the compiler just ignore > >>>> it . > >>>> > >>>> I spend more time to trace such stupid problem on run time . try to > >>>> image > >>>> you get weird exception from your program and the problem is some typo > >>>> you > >>>> made or made by others. the program you made will be full of unknown > >>>> bugs that not yet discover > >>>> > >>>> this is really giving huge problem for anyone want to use gambas to > >>>> develop > >>>> a program . > >>>> > >>>> the compiler should check all these problem and show warning as what a > >>>> normal compiler should do. > >>> > >>> The compiler could warn only when calling a function in the same class. > >>> I may > >>> add that check. > >>> > >>> But, as I explained before, it cannot do anything for call between two > >>> different classes. > >>> > >>> But when you enter a function call, the IDE shows you the syntax of the > >>> function in a tooltip, so I don't understand how you could forget an > >>> argument > >>> too often. > >>> > >>> Regards, > >>> > >>> -- > >>> Beno?t > >>> > >>> ----------------------------------------------------------------------- > >>>-- ----- Enter the BlackBerry Developer Challenge > >>> This is your chance to win up to $100,000 in prizes! For a limited > >>> time, vendors submitting new applications to BlackBerry App World(TM) > >>> will have the opportunity to enter the BlackBerry Developer Challenge. > >>> See full prize > >>> details at: http://p.sf.net/sfu/Challenge > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> checking the whole project will be the best . if those unable to find > >> show as warning not error . even if slow down , I doubt anyone will mind > >> . > >> > >> I'm a lazy programmer . sometime I change the parameter of a function > >> in a class or module , sometime I remove or move some share variable or > >> function . > >> > >> I usually left the checking to the compiler (as most programming > >> language compiler will do) . the compiler will tell me where in the > >> code that is effected to the change . > >> > >> gambas compile is the first compiler that I encounter that doesn't do > >> what a standard compiler must do. > >> > >> i think this limitation is very bad to gambas . for example if you > >> distribute some component . then at some version some function is remove > >> . the people that using the component won't be able to know cause the > >> compiler doesn't give them any warning . > > > > What you see as a disadventage is exactly what I didn't find in other > > languages. I wanted a full dynamic linking and a very fast compiler. This > > is the reason why the compiler cannot check anything outside of the class > > it compiles. > > > > And if the interface of a component changes, you must change its version > > number. Of course Gambas does not force you to do so, but this is a > > common practice. > > > > As I said before, I can add the only possible check: inside the same > > class. > > > > But as the linking is entirely dynamic, only the interpreter, during > > execution, and the first time it calls the method, can know if the > > arguments of the caller and the called method match. Checking argument > > matching cannot be 100% reliable at compile time. > > > > I understand that it is disturbing for you and other people, but it is > > mainly a matter of habits. I don't want at the moment to break what I > > done to implement this kind of check in Gambas 3. It may be something for > > Gambas 4. > > > > Regards, > > Sorry for breaking in, > > I've read this thread and I must say that you both are right, 'til this > point. But there is a thing I don't understand: if the IDE knows the > footprint of all the procedures of all the classes, and in fact the IDE > guides the user while he is writing, could'nt it be feasible to add a > menu item to check for inconsistencies of this kind? One could invoke > this function only when needed, so the two kinds of users could have > what they want: people like me and Kobolds would have a solid check, > others could have this light-fast compiler... > > I can understand that it is a hard work, but it could be important. > > Regards, The IDE is not a compiler. It only shows the function syntax, and as I explained above, it is sometimes not reliable on that because of the linking being fully dynamical. In other words, there is a lot of code in the IDE to load component description files, analyze all the global symbols declared in a source file, and the local ones. This is done on demand, in the context of the function where the cursor is, and it takes a lot of time. To check all function calls, the compiler would have to do the same thing, in C. It will slow him a lot, because it would have to do the same job for each function call, whereas the IDE has to do it only when you are typing it. And it will not be 100% reliable. Regards, -- Beno?t From jscops at ...11... Wed Jul 8 13:03:19 2009 From: jscops at ...11... (Jack) Date: Wed, 08 Jul 2009 13:03:19 +0200 Subject: [Gambas-user] gridview header text? In-Reply-To: <1247047331.4980.4.camel@...1964...> References: <1247047331.4980.4.camel@...1964...> Message-ID: <4A547CF7.8060803@...11...> Szenogr?di Norbert a ?crit : > Hi, > > > Can I setup gridview header text? > > > regards, Sevoir > gridview.Columns[0].Title = "text1" gridview.Columns[1].Title = "text2" Is it that you want ? Jack From sevoir75 at ...626... Wed Jul 8 13:12:12 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Wed, 08 Jul 2009 13:12:12 +0200 Subject: [Gambas-user] gridview header text? In-Reply-To: <4A547CF7.8060803@...11...> References: <1247047331.4980.4.camel@...1964...> <4A547CF7.8060803@...11...> Message-ID: <1247051532.4980.7.camel@...1964...> Hi, Sure! Thx a lot. regards, Sevoir 2009. 07. 8, szerda keltez?ssel 13.03-kor Jack ezt ?rta: > Szenogr?di Norbert a ?crit : > > Hi, > > > > > > Can I setup gridview header text? > > > > > > regards, Sevoir > > > > gridview.Columns[0].Title = "text1" > gridview.Columns[1].Title = "text2" > > Is it that you want ? > > Jack > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pinozollo at ...626... Wed Jul 8 15:20:07 2009 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 8 Jul 2009 09:20:07 -0400 Subject: [Gambas-user] How to close correctly an application ? Message-ID: <200907080920.07448.pinozollo@...626...> Hi, Please which is the correct way of closing the application ? While closing I have randomly some error about some activity which is still going on as writing to socket or timer activity... Besides, even if I close with "QUIT", at a following boot the application starts automatically as happens to the applications left open at shut down. (Debian 5.0.1, Gnome, QT, Gambas 2.14 locally compiled) Regards Pino ---------------- PUBLIC SUB mnuQUIT_Click() timer1.Enabled = FALSE LogServer.Close() Timer1.Enabled = FALSE ' Disable polling TRY CLOSE Sport IF Socket1.Status > 0 THEN CLOSE #Socket1 EXEC ["killall", "rigctld"] EXEC ["killall", "xplanet"] EXEC ["killall", "tail"] EXEC ["killall", "xdx"] mnuSTOP_Click() EXEC ["killall", "fldigi"] FQSOList.Close FMain.Close ' ME END ------------------ -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Wed Jul 8 18:23:27 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 8 Jul 2009 18:23:27 +0200 Subject: [Gambas-user] How to close correctly an application ? In-Reply-To: <200907080920.07448.pinozollo@...626...> References: <200907080920.07448.pinozollo@...626...> Message-ID: <200907081823.27265.gambas@...1...> > Hi, > > Please which is the correct way of closing the application ? > > While closing I have randomly some error about some activity which is still > going on as writing to socket or timer activity... Which messages *exactly* ? > > Besides, even if I close with "QUIT", at a following boot the application > starts automatically as happens to the applications left open at shut down. Don't use QUIT, and check your session contents with the Gnome control center. > > (Debian 5.0.1, Gnome, QT, Gambas 2.14 locally compiled) > > Regards > Pino > ---------------- > PUBLIC SUB mnuQUIT_Click() > timer1.Enabled = FALSE > LogServer.Close() > > Timer1.Enabled = FALSE ' Disable polling > TRY CLOSE Sport > IF Socket1.Status > 0 THEN CLOSE #Socket1 > EXEC ["killall", "rigctld"] You'd better add WAIT, otherwise all these kills are run in the background. > EXEC ["killall", "xplanet"] > EXEC ["killall", "tail"] > EXEC ["killall", "xdx"] > mnuSTOP_Click() > EXEC ["killall", "fldigi"] > FQSOList.Close > FMain.Close ' ME > END > ------------------ Regards, -- Beno?t From beachkid at ...634... Thu Jul 9 17:46:50 2009 From: beachkid at ...634... (Ken G.) Date: Thu, 09 Jul 2009 11:46:50 -0400 Subject: [Gambas-user] Making a Gambas File Message-ID: <4A5610EA.9070905@...634...> I just started using Gambas several weeks ago and I am learning it but ever slowly. Where can I find a tutorial on how to create, write, read, append and delete a file? Thanks, Ken From prog at ...2177... Thu Jul 9 19:06:30 2009 From: prog at ...2177... (craf) Date: Thu, 09 Jul 2009 13:06:30 -0400 Subject: [Gambas-user] Making a Gambas File In-Reply-To: <4A5610EA.9070905@...634...> References: <4A5610EA.9070905@...634...> Message-ID: <1247159190.3595.5.camel@...651...> Hi. http://vectorlinux.osuosl.org/Uelsk8s/ search: gambas-beginner-guide.pdf Regards -----Mensaje original----- De: Ken G. Reply-to: mailing list for gambas users Para: gambas-user at lists.sourceforge.net Asunto: [Gambas-user] Making a Gambas File Fecha: Thu, 09 Jul 2009 11:46:50 -0400 I just started using Gambas several weeks ago and I am learning it but ever slowly. Where can I find a tutorial on how to create, write, read, append and delete a file? Thanks, Ken ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From pinozollo at ...626... Thu Jul 9 19:30:48 2009 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 9 Jul 2009 13:30:48 -0400 Subject: [Gambas-user] GridView adjust column length In-Reply-To: <4A4E3DBD.4000008@...981...> References: <4A4E3DBD.4000008@...981...> Message-ID: <200907091330.49115.pinozollo@...626...> Il venerd? 3 luglio 2009 13:19:57 Stephen Bungay ha scritto: HI Stephen, Is there some special setup ? I always get .Font.Width(.Current.Text) = 0 so no change is done. I am on Debian 5.0.1, Gambas 2.14, QT and Gnome It is the same using TableView instead GridView Best regards Pino > '*********************************************************************** > '* AdjustGridColumns > '* Author: Stephen Bungay > '* Date: July 26 2006 > '* > '* Parameters: > '* ? GridView > '* > '* Calls: Nothing > '* > '* ? Adjusts the column sizes of the gridview being used for data > '* presentation. Ensures that all of the data is visible. > '* > '************************************************************************** > PUBLIC SUB AdjustGridColumns(pPassedGrid AS GridView) > > ? ?DIM $Row AS Integer > ? ?DIM $Col AS Integer > ? ?DIM MaxWidth AS Integer > > ? ?MaxWidth = 0 > > ? ?WITH pPassedGrid > ? ? ? ?.Columns.Resizable = TRUE > ? ? ? ?FOR $Col = 0 TO .Columns.Count - 1 > ? ? ? ? ? ?.Row = 0 > ? ? ? ? ? ?.Column = $Col > ? ? ? ? ? ?MaxWidth = .Current.Width > > ? ? ? ? ? ?FOR $Row = 0 TO .Rows.Count - 1 > ? ? ? ? ? ? ? ?.Row = $Row > ? ? ? ? ? ? ? ?IF .Font.Width(.Current.Text) > MaxWidth THEN ' <---always FALSE > ? ? ? ? ? ? ? ? ? MaxWidth = .Font.Width(.Current.Text) + 10 > ? ? ? ? ? ? ? ?END IF > > ? ? ? ? ? ?NEXT > ? ? ? ? ? ?.Columns[$Col].Width = MaxWidth > ? ? ? ?NEXT > > ? ?END WITH > END -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From beachkid at ...634... Thu Jul 9 19:54:58 2009 From: beachkid at ...634... (Ken G.) Date: Thu, 09 Jul 2009 13:54:58 -0400 Subject: [Gambas-user] Making a Gambas File In-Reply-To: <1247159190.3595.5.camel@...651...> References: <4A5610EA.9070905@...634...> <1247159190.3595.5.camel@...651...> Message-ID: <4A562EF2.6010200@...634...> Thank you. Ken craf wrote: > Hi. > > http://vectorlinux.osuosl.org/Uelsk8s/ > > search: > > gambas-beginner-guide.pdf > > Regards > > From gambas at ...1... Thu Jul 9 21:01:50 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 9 Jul 2009 21:01:50 +0200 Subject: [Gambas-user] Sticky, TopOnly In-Reply-To: <200907060141.13960.gambas@...1...> References: <200907051716.21051.pinozollo@...626...> <200907051934.34488.pinozollo@...626...> <200907060141.13960.gambas@...1...> Message-ID: <200907092101.50847.gambas@...1...> > > Il domenica 5 luglio 2009 18:49:07 hai scritto: > > > > Hi > > > > > > > > ------------ > > > > ME.Sticky = TRUE ' does nothing > > > > DEBUG ME.Sticky > > > > ME.TopOnly = TRUE > > > > DEBUG ME.TopOnly ' Why is always false ? > > > > ----------- > > > > Any idea why I get alway FALSE by the two DEBUG statements and none > > > > of the effect is shown by the window ? > > > > > > > > Best regards > > > > > > > > Pino > > > > > > It works perfectly with the KWin window manager on KDE 4. Which window > > > manager do you use? > > > > Gnome. ..on Debian 5.0.1 > > So it maybe a problem (again) with Metacity... I will check. > I changed the gb.qt component so that it behaves like gb.gtk. Now the returned value of these properties is always the last value you assigned. But, as usual with X11, it does not necessarily mean that the window manager followed your requests! Regards, -- Beno?t From sevoir75 at ...626... Fri Jul 10 10:09:00 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Fri, 10 Jul 2009 10:09:00 +0200 Subject: [Gambas-user] shell return parameter (text) Message-ID: <1247213340.4262.43.camel@...1964...> Hi, Can I build to Fmain window a textbox with shell return text ? AS: SHELL ("echo hello") and textbox.text will be: "hello" regards, Sevoir From doriano.blengino at ...1909... Fri Jul 10 10:25:31 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 10 Jul 2009 10:25:31 +0200 Subject: [Gambas-user] shell return parameter (text) In-Reply-To: <1247213340.4262.43.camel@...1964...> References: <1247213340.4262.43.camel@...1964...> Message-ID: <4A56FAFB.7090008@...1909...> Szenogr?di Norbert ha scritto: > Hi, > > > Can I build to Fmain window a textbox with shell return text ? > > AS: SHELL ("echo hello") > and textbox.text will be: "hello" > SHELL "echo hello" TO textbox.text Regards, From rospolosco at ...152... Fri Jul 10 11:24:11 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 10 Jul 2009 11:24:11 +0200 Subject: [Gambas-user] shell return parameter (text) In-Reply-To: <1247213340.4262.43.camel@...1964...> References: <1247213340.4262.43.camel@...1964...> Message-ID: <200907101124.12016.rospolosco@...152...> Il venerd? 10 luglio 2009 10:09:00 Szenogr?di Norbert ha scritto: > Hi, > > > Can I build to Fmain window a textbox with shell return text ? > > AS: SHELL ("echo hello") > and textbox.text will be: "hello" > DIM sShellOut AS String SHELL "echo -n hello" TO sShellOut TextBox.Text = sShellOut Ciao. > > regards, Sevoir > > > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kobolds at ...2041... Fri Jul 10 13:06:06 2009 From: kobolds at ...2041... (kobolds) Date: Fri, 10 Jul 2009 04:06:06 -0700 (PDT) Subject: [Gambas-user] change GridView title text alignment and font Message-ID: <24425430.post@...1379...> how do i change GridView title text alignment and font? -- View this message in context: http://www.nabble.com/change-GridView-title-text-alignment-and-font-tp24425430p24425430.html Sent from the gambas-user mailing list archive at Nabble.com. From gael.lehech at ...626... Fri Jul 10 14:44:14 2009 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Fri, 10 Jul 2009 14:44:14 +0200 Subject: [Gambas-user] IDE Improvement Suggestion Message-ID: In the project translation form, would it be possible to keep the selection of the string when switching from a language to an other. For the moment when you select an other language, it's always the first string which is selected. Regards Ga?l. From Karl.Reinl at ...9... Fri Jul 10 14:50:30 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 10 Jul 2009 14:50:30 +0200 Subject: [Gambas-user] gambas3 and no qt4 installed Message-ID: <1247230230.6994.11.camel@...40...> Salut, svn=2096 / gambas3 / Ubuntu 8.04.3 IDE compiled with qt (qt3) no qt4 installed Screen :Projekt Eigenschaften (project properties) always start like that. After a open another Tab all looks good. Screen :NewTest - Gambas 3 -.... sometime that happens. So Q: for gambas3 we need qt4 yes or no -- Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Projekt Eigenschaften - NewTest.png Type: image/png Size: 20898 bytes Desc: URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NewTest - Gambas 3 - ALPHA VERSION, USE AT YOUR OWN RISK! :-).png Type: image/png Size: 41283 bytes Desc: URL: From gambas at ...1... Fri Jul 10 15:38:41 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 10 Jul 2009 15:38:41 +0200 Subject: [Gambas-user] gambas3 and no qt4 installed In-Reply-To: <1247230230.6994.11.camel@...40...> References: <1247230230.6994.11.camel@...40...> Message-ID: <200907101538.41659.gambas@...1...> > Salut, > > svn=2096 / gambas3 / Ubuntu 8.04.3 IDE compiled with qt (qt3) > no qt4 installed > > Screen :Projekt Eigenschaften (project properties) always start like > that. After a open another Tab all looks good. > > Screen :NewTest - Gambas 3 -.... sometime that happens. > > So Q: for gambas3 we need qt4 yes or no Gambas 3 IDE now uses QT4. QT3 component will be removed soon. Regards, -- Beno?t From Karl.Reinl at ...9... Fri Jul 10 16:19:26 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 10 Jul 2009 16:19:26 +0200 Subject: [Gambas-user] gambas3 and no qt4 installed In-Reply-To: <200907101538.41659.gambas@...1...> References: <1247230230.6994.11.camel@...40...> <200907101538.41659.gambas@...1...> Message-ID: <1247235566.13410.2.camel@...40...> Am Freitag, den 10.07.2009, 15:38 +0200 schrieb Beno?t Minisini: > > Salut, > > > > svn=2096 / gambas3 / Ubuntu 8.04.3 IDE compiled with qt (qt3) > > no qt4 installed > > > > Screen :Projekt Eigenschaften (project properties) always start like > > that. After a open another Tab all looks good. > > > > Screen :NewTest - Gambas 3 -.... sometime that happens. > > > > So Q: for gambas3 we need qt4 yes or no > > Gambas 3 IDE now uses QT4. QT3 component will be removed soon. > > Regards, > Does anybody know the packages needed QT4 / KDE4 for Ubuntu 8.04.3 Thanks Charlie From gambas at ...1... Fri Jul 10 16:31:56 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 10 Jul 2009 16:31:56 +0200 Subject: [Gambas-user] IDE Improvement Suggestion In-Reply-To: References: Message-ID: <200907101631.56203.gambas@...1...> > In the project translation form, would it be possible to keep the selection > of the string when switching from a language to an other. > For the moment when you select an other language, it's always the first > string which is selected. > > Regards > > Ga?l. I put it in revision #2101. Regards, -- Beno?t From gambas at ...1... Fri Jul 10 16:37:49 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 10 Jul 2009 16:37:49 +0200 Subject: [Gambas-user] IDE Improvement Suggestion In-Reply-To: <200907101631.56203.gambas@...1...> References: <200907101631.56203.gambas@...1...> Message-ID: <200907101637.49640.gambas@...1...> > > In the project translation form, would it be possible to keep the > > selection of the string when switching from a language to an other. > > For the moment when you select an other language, it's always the first > > string which is selected. > > > > Regards > > > > Ga?l. > > I put it in revision #2101. > > Regards, And in revision #2102 for Gambas 2. -- Beno?t From Karl.Reinl at ...9... Fri Jul 10 16:44:42 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 10 Jul 2009 16:44:42 +0200 Subject: [Gambas-user] IDE Improvement Suggestion In-Reply-To: References: Message-ID: <1247237082.13410.10.camel@...40...> Am Freitag, den 10.07.2009, 14:44 +0200 schrieb Ga?l Le Hec'H: > In the project translation form, would it be possible to keep the selection > of the string when switching from a language to an other. > For the moment when you select an other language, it's always the first > string which is selected. > > Regards > > Ga?l. Salut, replace in FTranslate.class this function PUBLIC SUB cvwLang_Select() DIM sLang AS String = cvwLang.Item.Key DIM i1 AS Integer = cbxFileChoice.Index DIM s1 AS String = cvwTranslate.Current.Text DIM s2 AS String = txtFind.Text IF sLang = $sLang THEN RETURN 'sLang = vvwLang.ItemLanguage.FromName(cmbLang.Text) 'Project.Config.WriteString("/Language", sLang) SetLang(sLang) cbxFileChoice.Index = i1 txtFind.Text = s1 btnFind_Click txtFind.Text = s2 END works in gambas2 and gambas3 , gambas3 flickers a bit -- Amicalment Charlie From arosa at ...2015... Fri Jul 10 16:46:03 2009 From: arosa at ...2015... (Toni) Date: Fri, 10 Jul 2009 15:46:03 +0100 Subject: [Gambas-user] Ctrl+Click Message-ID: <4A57542B.2030509@...2015...> Hi, Is there a way to make the IDE browse trough the method definitions using Ctrl+"Mouse click", instead of having to rigth-click on the method name and selecting "Find definition"? Ctrl+Click is the way I am used to browse (and I guess many others's) trough the code in Eclipse and Visual Studio... Regards, From gambas at ...1... Fri Jul 10 17:07:36 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 10 Jul 2009 17:07:36 +0200 Subject: [Gambas-user] Ctrl+Click In-Reply-To: <4A57542B.2030509@...2015...> References: <4A57542B.2030509@...2015...> Message-ID: <200907101707.36990.gambas@...1...> > Hi, > Is there a way to make the IDE browse trough the method definitions > using Ctrl+"Mouse click", instead of having to rigth-click on the method > name and selecting "Find definition"? > Ctrl+Click is the way I am used to browse (and I guess many others's) > trough the code in Eclipse and Visual Studio... > Regards, > The current shortcut is F2 (and SHIFT+F2 to go back). Regards, -- Beno?t From lordheavym at ...626... Fri Jul 10 18:53:28 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 10 Jul 2009 18:53:28 +0200 Subject: [Gambas-user] gambas3 and no qt4 installed In-Reply-To: <1247235566.13410.2.camel@...40...> References: <1247230230.6994.11.camel@...40...> <200907101538.41659.gambas@...1...> <1247235566.13410.2.camel@...40...> Message-ID: <200907101853.29252.lordheavym@...626...> Le vendredi 10 juillet 2009 16:19:26 Charlie Reinl, vous avez ?crit : > Am Freitag, den 10.07.2009, 15:38 +0200 schrieb Beno?t Minisini: > > > Salut, > > > > > > svn=2096 / gambas3 / Ubuntu 8.04.3 IDE compiled with qt (qt3) > > > no qt4 installed > > > > > > Screen :Projekt Eigenschaften (project properties) always start like > > > that. After a open another Tab all looks good. > > > > > > Screen :NewTest - Gambas 3 -.... sometime that happens. > > > > > > So Q: for gambas3 we need qt4 yes or no > > > > Gambas 3 IDE now uses QT4. QT3 component will be removed soon. > > > > Regards, > > Does anybody know the packages needed QT4 / KDE4 for Ubuntu 8.04.3 > > Thanks Charlie > > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user you can find package list here: http://packages.ubuntu.com/search?suite=hardy&searchon=names&keywords=qt4 ++ From Karl.Reinl at ...9... Fri Jul 10 18:53:54 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 10 Jul 2009 18:53:54 +0200 Subject: [Gambas-user] gambas3 and no qt4 installed In-Reply-To: <200907101538.41659.gambas@...1...> References: <1247230230.6994.11.camel@...40...> <200907101538.41659.gambas@...1...> Message-ID: <1247244835.26739.1.camel@...40...> Am Freitag, den 10.07.2009, 15:38 +0200 schrieb Beno?t Minisini: > > Salut, > > > > svn=2096 / gambas3 / Ubuntu 8.04.3 IDE compiled with qt (qt3) > > no qt4 installed > > > > Screen :Projekt Eigenschaften (project properties) always start like > > that. After a open another Tab all looks good. > > > > Screen :NewTest - Gambas 3 -.... sometime that happens. > > > > So Q: for gambas3 we need qt4 yes or no > > Gambas 3 IDE now uses QT4. QT3 component will be removed soon. > > Regards, > I suppose that it is posssible, to compile and run gambas1 to gambas3 projects, is it? Charlie From gambas at ...1... Fri Jul 10 21:38:16 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 10 Jul 2009 21:38:16 +0200 Subject: [Gambas-user] Ctrl+Click In-Reply-To: <200907101707.36990.gambas@...1...> References: <4A57542B.2030509@...2015...> <200907101707.36990.gambas@...1...> Message-ID: <200907102138.16918.gambas@...1...> > > Hi, > > Is there a way to make the IDE browse trough the method definitions > > using Ctrl+"Mouse click", instead of having to rigth-click on the method > > name and selecting "Find definition"? > > Ctrl+Click is the way I am used to browse (and I guess many others's) > > trough the code in Eclipse and Visual Studio... > > Regards, > > The current shortcut is F2 (and SHIFT+F2 to go back). > > Regards, I implemented CTRL+Click in the Gambas 3 IDE editor. Regards, -- Beno?t From arosa at ...2015... Fri Jul 10 23:27:58 2009 From: arosa at ...2015... (Toni) Date: Fri, 10 Jul 2009 22:27:58 +0100 Subject: [Gambas-user] Ctrl+Click In-Reply-To: <200907102138.16918.gambas@...1...> References: <4A57542B.2030509@...2015...> <200907101707.36990.gambas@...1...> <200907102138.16918.gambas@...1...> Message-ID: <4A57B25E.6010205@...2015...> Hi, Thanks for the info and it's good to see it in the (hopefully) forthcoming Gambas3! I was wondering, is there a comprehensive list of what's coming new in Gambas3? I just did a quick search on the main webpage and couldn't find it, sorry in advance if it's there, in an obvious place that I didn't see... Cheers, En/na Beno?t Minisini ha escrit: >>> Hi, >>> Is there a way to make the IDE browse trough the method definitions >>> using Ctrl+"Mouse click", instead of having to rigth-click on the method >>> name and selecting "Find definition"? >>> Ctrl+Click is the way I am used to browse (and I guess many others's) >>> trough the code in Eclipse and Visual Studio... >>> Regards, >>> >> The current shortcut is F2 (and SHIFT+F2 to go back). >> >> Regards, >> > > I implemented CTRL+Click in the Gambas 3 IDE editor. > > Regards, > > From 12ukwn at ...626... Sat Jul 11 14:48:47 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 11 Jul 2009 14:48:47 +0200 Subject: [Gambas-user] database questions Message-ID: <4A588A2F.6030201@...626...> Hi, Based on Database example: * I've noticed that column sorting is only ascending, not descending, is it it normal (and if not, how can I recover the descending order?) * I'd like to have a zone under the databrowser, tied to the sorting column, where I could enter some characters and have either databrowser display beginning with these characters, or even display only data beginning with these characters; is it possible (and how?) JY -- "I am ecstatic that some moron re-invented a 1995 windows fuckup." -- Alan Cox From 12ukwn at ...626... Sat Jul 11 14:51:33 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 11 Jul 2009 14:51:33 +0200 Subject: [Gambas-user] graphic construction question Message-ID: <4A588AD5.3080505@...626...> Hi, When you have a complex form, some parts may be unseen (underneath); when you select this kinda part, the 1st click on top of the whole always reselect the top widget :(even a click on melted hedges does that) Is it possible to change this behaviour (i.e.: only reselect the top widget on second click)? Because otherwise you easily end up to a point where you have to restart your form from scratch. Or, is there already a solution?? JY -- Les choses ne sont pas toujours ce que l'on voudrait qu'elles soient qu'elles fussent - P. Dac From 12ukwn at ...626... Sat Jul 11 15:00:24 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 11 Jul 2009 15:00:24 +0200 Subject: [Gambas-user] database question Message-ID: <4A588CE8.4000706@...626...> Hi, Based on Database example, is there a possibility to send parms to another Form? (i.e. table's name & fields' names) JY -- Yes, but will I see the EASTER BUNNY in skintight leather at an IRON MAIDEN concert? From pinozollo at ...626... Sat Jul 11 15:30:37 2009 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 11 Jul 2009 09:30:37 -0400 Subject: [Gambas-user] Data Base Example updated Message-ID: <200907110930.38247.pinozollo@...626...> Hi, For who is interested... I have updated the example DataReprtExample that comes with GAMBAS . It is available in http:///www.qsl.net/zp4kfx/Linux/GAMBAS Now it works both with MySQL and PostgreSQL. The original can not work with PostgreSQL because in it the table 'user' is reserved. Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From wdahn at ...1000... Sat Jul 11 16:14:31 2009 From: wdahn at ...1000... (Werner) Date: Sat, 11 Jul 2009 22:14:31 +0800 Subject: [Gambas-user] database question In-Reply-To: <4A588CE8.4000706@...626...> References: <4A588CE8.4000706@...626...> Message-ID: <4A589E47.5050802@...1000...> Jean-Yves F. Barbier wrote: > Hi, > > Based on Database example, is there a possibility to send parms to another > Form? (i.e. table's name & fields' names) > > JY > If you want to access objects on a different form you need to set Menu Project-->Properties-->Options "Form controls are public" to Yes Regards Werner From 12ukwn at ...626... Sat Jul 11 17:58:04 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 11 Jul 2009 17:58:04 +0200 Subject: [Gambas-user] database question In-Reply-To: <4A589E47.5050802@...1000...> References: <4A588CE8.4000706@...626...> <4A589E47.5050802@...1000...> Message-ID: <4A58B68C.4010501@...626...> Werner a ?crit : > Jean-Yves F. Barbier wrote: >> Hi, >> >> Based on Database example, is there a possibility to send parms to another >> Form? (i.e. table's name & fields' names) >> >> JY >> > If you want to access objects on a different form you need to set > Menu Project-->Properties-->Options "Form controls are public" to Yes > > Regards > Werner YESSS that's cool, thanks JY -- The scene is dull. Tell him to put more life into his dying. -- Samuel Goldwyn From marc at ...2086... Sat Jul 11 23:58:03 2009 From: marc at ...2086... (Marc Carson) Date: Sat, 11 Jul 2009 14:58:03 -0700 Subject: [Gambas-user] Can I use the mousewheel to control system audio volume? Message-ID: <4A590AEB.3030601@...2086...> I would like to create a program that increments/decrements the system master audio volume if the mouse's mousewheel is scrolled up/down, in combination with a hotkey (like ctrl+shift+mousewheel). Is this possible in Gambas? I see that the mousewheel can be detected, but I don't see anything about up or down. I also see volume-related items in SDL but I'm not sure if this is necessary to use or if there's some better component for the task. Thank you, Marc From rospolosco at ...152... Sun Jul 12 01:30:26 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 12 Jul 2009 01:30:26 +0200 Subject: [Gambas-user] Can I use the mousewheel to control system audio volume? In-Reply-To: <4A590AEB.3030601@...2086...> References: <4A590AEB.3030601@...2086...> Message-ID: <200907120130.26930.rospolosco@...152...> Il sabato 11 luglio 2009 23:58:03 Marc Carson ha scritto: > I would like to create a program that increments/decrements the system > master audio volume if the mouse's mousewheel is scrolled up/down, in > combination with a hotkey (like ctrl+shift+mousewheel). > > Is this possible in Gambas? I see that the mousewheel can be detected, > but I don't see anything about up or down. I also see volume-related > items in SDL but I'm not sure if this is necessary to use or if there's > some better component for the task. > > Thank you, > > Marc PUBLIC SUB Form_MouseWheel() SELECT CASE Mouse.delta CASE 1 PRINT "mouse wheel up" CASE -1 PRINT "mouse wheel down" END SELECT END I don't know about sdl. You could use aumix. i.e SHELL "aumix -v +5" WAIT increase the current main volume by 5 points. SHELL "aumix -v -25" WAIT decrease the current main volume by 25 points. SHELL "aumix -v 100" WAIT set the volume to the maximum. Et cetera... See aumix --help and do some experiments. P.S. I'm not sure thet aumix is on all GNU/linux systems around ;-) Ciao. > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Sun Jul 12 00:41:51 2009 From: rterry at ...1946... (richard terry) Date: Sun, 12 Jul 2009 08:41:51 +1000 Subject: [Gambas-user] Simple code editor question Message-ID: <200907120841.51584.rterry@...1946...> Is it possible to have more than one command on a line using some syntax eg instead of do something if error then do_something_else return end if write this lik do something if error then do_somethingelse : return (or syntax works) Regards Richard From rospolosco at ...152... Sun Jul 12 01:36:42 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 12 Jul 2009 01:36:42 +0200 Subject: [Gambas-user] Can I use the mousewheel to control system audio volume? In-Reply-To: <200907120130.26930.rospolosco@...152...> References: <4A590AEB.3030601@...2086...> <200907120130.26930.rospolosco@...152...> Message-ID: <200907120136.42930.rospolosco@...152...> Il domenica 12 luglio 2009 01:30:26 Stefano Palmeri ha scritto: > PUBLIC SUB Form_MouseWheel() > ? > ? > ? SELECT CASE Mouse.delta > ? ? > ? ? CASE 1 > ? ? ? ? PRINT "mouse wheel up" > ? ? CASE -1 > ? ? ? ? ?PRINT "mouse wheel down" > ? > ? END SELECT ? > > END I forgot about SHIFT+CTRL: PUBLIC SUB Form_MouseWheel() IF Mouse.Control AND Mouse.Shift THEN SELECT CASE Mouse.delta CASE 1 PRINT "mouse wheel up" CASE -1 PRINT "mouse wheel down" END SELECT ENDIF END From rterry at ...1946... Sun Jul 12 03:23:57 2009 From: rterry at ...1946... (richard terry) Date: Sun, 12 Jul 2009 11:23:57 +1000 Subject: [Gambas-user] Comments on User Constructed Code Tree Message-ID: <200907121123.58044.rterry@...1946...> I'd recommend anyone using Gambas 2.99 to upgrade to the version allowing a user constructed directory tree. Builds 1990, 2105, 2106 see quite stable, I've been using the 2106 all morning (one gotcha - be careful what you delete - there is a bug in the delete key in the ide - it can sometime want to delete your entire file). This change to the heirachical structure of the files in my project, where I can group common modules/classes/forms has made a ***HUGE*** difference to the usablity of the gambas IDE. It saves me mega amounts of time having to scroll up and down the tree to find my files. i'm running svn on this and again, it works well, But be aware that the first time you upgrade your project to this ability it wll auto-change your existing directory structure. Thanks benoit - fabulous work. Regards Richard From kobolds at ...2041... Sun Jul 12 03:46:08 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 11 Jul 2009 18:46:08 -0700 (PDT) Subject: [Gambas-user] where is line ,rectangle , circle Message-ID: <24445252.post@...1379...> since I don't see it on default gambas control , I wonder had anyone wrote such control ? for example line --> can set the color ,thickness ,shape ,horizontal or vertical rectangle --> can set tickness ,the edge color , fill color and edge shape circle -->can set tickness , can set the edge color , fill color and diameter such control sometime pretty useful -- View this message in context: http://www.nabble.com/where-is-line-%2Crectangle-%2C-circle-tp24445252p24445252.html Sent from the gambas-user mailing list archive at Nabble.com. From marc at ...2086... Sun Jul 12 03:55:12 2009 From: marc at ...2086... (Marc Carson) Date: Sat, 11 Jul 2009 18:55:12 -0700 Subject: [Gambas-user] Can I use the mousewheel to control system audio volume? In-Reply-To: <200907120136.42930.rospolosco@...152...> References: <4A590AEB.3030601@...2086...> <200907120130.26930.rospolosco@...152...> <200907120136.42930.rospolosco@...152...> Message-ID: <4A594280.3040608@...2086...> Stefano Palmeri wrote: > Il domenica 12 luglio 2009 01:30:26 Stefano Palmeri ha scritto: > >> PUBLIC SUB Form_MouseWheel() >> >> >> SELECT CASE Mouse.delta >> >> CASE 1 >> PRINT "mouse wheel up" >> CASE -1 >> PRINT "mouse wheel down" >> >> END SELECT >> >> END >> > > I forgot about SHIFT+CTRL: > > PUBLIC SUB Form_MouseWheel() > > IF Mouse.Control AND Mouse.Shift THEN > > SELECT CASE Mouse.delta > > CASE 1 > PRINT "mouse wheel up" > CASE -1 > PRINT "mouse wheel down" > > END SELECT > > ENDIF > > END > > Thanks, Stefano. That part works for me. It seems to require the form to have focus, though. Is there a way to make it work globally, regardless of which application has focus? aumix doesn't work for me, unfortunately. Maybe it's because I use pulseaudio? I can execute the command, but the volume doesn't change. Marc From bill-lancaster at ...2231... Sun Jul 12 09:31:16 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 12 Jul 2009 00:31:16 -0700 (PDT) Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' Message-ID: <24406610.post@...1379...> When using SmtpClient to send email the email is often rejected ithe the error "SHOULD have Date: but does not" Have tried putting date in the body of the message - still get the same error SmtpClient has .Subject but doesn't have .Date field. Can any one help? Bill Lancaster -- View this message in context: http://www.nabble.com/SmtpClient%3A--error-550-%27Message-SHOULD-have-Date%3A-but-does-not%27-tp24406610p24406610.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Sun Jul 12 11:31:07 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 12 Jul 2009 11:31:07 +0200 Subject: [Gambas-user] Can I use the mousewheel to control system audio volume? In-Reply-To: <4A594280.3040608@...2086...> References: <4A590AEB.3030601@...2086...> <200907120136.42930.rospolosco@...152...> <4A594280.3040608@...2086...> Message-ID: <200907121131.07453.rospolosco@...152...> Il domenica 12 luglio 2009 03:55:12 Marc Carson ha scritto: > Stefano Palmeri wrote: > > Il domenica 12 luglio 2009 01:30:26 Stefano Palmeri ha scritto: > >> PUBLIC SUB Form_MouseWheel() > >> > >> > >> SELECT CASE Mouse.delta > >> > >> CASE 1 > >> PRINT "mouse wheel up" > >> CASE -1 > >> PRINT "mouse wheel down" > >> > >> END SELECT > >> > >> END > > > > I forgot about SHIFT+CTRL: > > > > PUBLIC SUB Form_MouseWheel() > > > > IF Mouse.Control AND Mouse.Shift THEN > > > > SELECT CASE Mouse.delta > > > > CASE 1 > > PRINT "mouse wheel up" > > CASE -1 > > PRINT "mouse wheel down" > > > > END SELECT > > > > ENDIF > > > > END > > Thanks, Stefano. That part works for me. It seems to require the form to > have focus, though. Is there a way to make it work globally, regardless > of which application has focus? > > aumix doesn't work for me, unfortunately. Maybe it's because I use > pulseaudio? I can execute the command, but the volume doesn't change. > > Marc > Yes, it only works if the app has the focus. I don't know how to make it work globally. Yes, it seems that aumix doesn't manage directly pulseaudio, but here: http://wiki.archlinux.org/index.php/PulseAudio they say that you can use aumix with a pulseaudio tool: padsp aumix so the command should be: SHELL "padsp aumix -v 100" WAIT Ciao, Stefano > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jul 12 11:33:28 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 12 Jul 2009 11:33:28 +0200 Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' In-Reply-To: <24406610.post@...1379...> References: <24406610.post@...1379...> Message-ID: <200907121133.28446.gambas@...1...> > When using SmtpClient to send email the email is often rejected ithe the > error "SHOULD have Date: but does not" > > Have tried putting date in the body of the message - still get the same > error > > SmtpClient has .Subject but doesn't have .Date field. > > Can any one help? > > Bill Lancaster Which kind of smtp server do you use? Can you send the exact code you use to send the mail? -- Beno?t From rsalas.match at ...626... Sun Jul 12 20:05:30 2009 From: rsalas.match at ...626... (Rafael Salas) Date: Sun, 12 Jul 2009 20:05:30 +0200 Subject: [Gambas-user] problem using SQLITE3 and string fields Message-ID: <72e8f6e60907121105m5d4816d6je9cb68355a8e7397@...627...> Hi all, I'm trying to read the f-spot database to add some tools to this program. I write few lines in gambas and everything worked fine but no the access to string fields. this is a part of the code: Con.Close() Con.Type = "sqlite" Con.Host = "/home/rsalas/.gnome2/f-spot/" Con.Name = "photos.db" TRY Con.Open() IF ERROR THEN Message.Error("Error al conectar a la base de datos.") Con = NULL ELSE TRY TablaFicheros = Con.Exec("SELECT photos. *, tags. * FROM (photos INNER JOIN photo_tags ON photos.Id = photo_tags.photo_id)INNER JOIN tags ON photo_tags.tag_id = tags.Id ") IF ERROR THEN Message.Error("Error al abrir hacer SELECT base de datos.") ELSE TablaFicheros.Movefirst() sFichero = TablaFicheros["uri"] txtFichero.text = sFichero ENDIF The line "sFichero = TablaFicheros["uri"]" gives the value "f" to sFichero but not the rest of the string. This doesn't happend with text fields. Can anyone help me on this? Thanks PS: Using gambas 2.8 on linux ubuntu 9.04 From gambas at ...1... Sun Jul 12 20:15:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 12 Jul 2009 20:15:29 +0200 Subject: [Gambas-user] problem using SQLITE3 and string fields In-Reply-To: <72e8f6e60907121105m5d4816d6je9cb68355a8e7397@...627...> References: <72e8f6e60907121105m5d4816d6je9cb68355a8e7397@...627...> Message-ID: <200907122015.29874.gambas@...1...> > Hi all, > > I'm trying to read the f-spot database to add some tools to this program. I > write few lines in gambas and everything worked fine but no the access to > string fields. this is a part of the code: > > Con.Close() > Con.Type = "sqlite" > Con.Host = "/home/rsalas/.gnome2/f-spot/" > Con.Name = "photos.db" > TRY Con.Open() > IF ERROR THEN > Message.Error("Error al conectar a la base de datos.") > Con = NULL > ELSE > TRY TablaFicheros = Con.Exec("SELECT photos. *, tags. * FROM (photos > INNER JOIN photo_tags ON photos.Id = photo_tags.photo_id)INNER JOIN tags ON > photo_tags.tag_id = tags.Id ") > IF ERROR THEN > Message.Error("Error al abrir hacer SELECT base de datos.") > ELSE > TablaFicheros.Movefirst() > sFichero = TablaFicheros["uri"] > txtFichero.text = sFichero > ENDIF > > The line "sFichero = TablaFicheros["uri"]" gives the value "f" to sFichero > but not the rest of the string. This doesn't happend with text fields. Can > anyone help me on this? > > Thanks > > PS: Using gambas 2.8 on linux ubuntu 9.04 Can you get the real sqlite datatype of this field? -- Beno?t From gambas at ...1... Sun Jul 12 20:16:01 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 12 Jul 2009 20:16:01 +0200 Subject: [Gambas-user] where is line ,rectangle , circle In-Reply-To: <24445252.post@...1379...> References: <24445252.post@...1379...> Message-ID: <200907122016.01555.gambas@...1...> > since I don't see it on default gambas control , I wonder had anyone wrote > such control ? > > for example > line --> can set the color ,thickness ,shape ,horizontal or vertical > rectangle --> can set tickness ,the edge color , fill color and edge shape > circle -->can set tickness , can set the edge color , fill color and > diameter > > such control sometime pretty useful These are VB things, don't they? -- Beno?t From gambas at ...1... Sun Jul 12 20:16:52 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 12 Jul 2009 20:16:52 +0200 Subject: [Gambas-user] Simple code editor question In-Reply-To: <200907120841.51584.rterry@...1946...> References: <200907120841.51584.rterry@...1946...> Message-ID: <200907122016.52152.gambas@...1...> > Is it possible to have more than one command on a line using some syntax > > eg instead of > > do something > if error then > do_something_else > return > end if > > write this lik > > do something > if error then do_somethingelse : return (or syntax works) > > Regards > > Richard > No, it is not possible. It makes the code less readable. -- Beno?t From kobolds at ...2041... Mon Jul 13 04:11:25 2009 From: kobolds at ...2041... (kobolds) Date: Sun, 12 Jul 2009 19:11:25 -0700 (PDT) Subject: [Gambas-user] where is line ,rectangle , circle In-Reply-To: <200907122016.01555.gambas@...1...> References: <24445252.post@...1379...> <200907122016.01555.gambas@...1...> Message-ID: <24455018.post@...1379...> Beno?t Minisini wrote: > >> since I don't see it on default gambas control , I wonder had anyone >> wrote >> such control ? >> >> for example >> line --> can set the color ,thickness ,shape ,horizontal or vertical >> rectangle --> can set tickness ,the edge color , fill color and edge >> shape >> circle -->can set tickness , can set the edge color , fill color and >> diameter >> >> such control sometime pretty useful > > These are VB things, don't they? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > not really . a lot of others programming languages IDE also provide such control . some also provide arrow . it's pretty common tools . most people think it's useless but at sometime you would wish to have it . you can use it to organize interface in your program easy to understand and look neat . -- View this message in context: http://www.nabble.com/where-is-line-%2Crectangle-%2C-circle-tp24445252p24455018.html Sent from the gambas-user mailing list archive at Nabble.com. From sbungay at ...981... Mon Jul 13 03:46:54 2009 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 12 Jul 2009 21:46:54 -0400 Subject: [Gambas-user] Editor Preferences bug? (V 2.12) Message-ID: <4A5A920E.50809@...981...> Set tab to any value (I like to set it to = 1 space) and it continues to = 2 spaces (i.e. highlight a blockof text, press the tab key, and everything moves 2 spaces to the right). The same is true if I set it to 3 or 4. KUBUNTU 8.04 Gambas 2.12 Steve. From sbungay at ...981... Mon Jul 13 03:57:08 2009 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 12 Jul 2009 21:57:08 -0400 Subject: [Gambas-user] Never mind.... Message-ID: <4A5A9474.8090501@...981...> I see there are TWO places to set the default tab size. One under Project->Properties->Options and the other under Tools->Preferences->Editor. A little confusing this, since one is using the editor to edit the project, it logically follows that the editor preferences are the item that needs setting. Quite strange but OK. Some to think of it I might have commented on this a few years ago when I initially asked for tabs to be able to be adjusted down to 1. Getting back in the saddle after a long absence. Steve. From rterry at ...1946... Mon Jul 13 05:42:23 2009 From: rterry at ...1946... (richard terry) Date: Mon, 13 Jul 2009 13:42:23 +1000 Subject: [Gambas-user] Directory naming in the IDE tree Message-ID: <200907131342.23590.rterry@...1946...> As you know my tree is in SVN If I try and rename a directory in the gambas IDE with anything other than ascii eg progress_notes (not progressnotes), then it won't allow it. However if I rename the directory outside of the tree then gambas loads it and shows it ok. Any solution. thanks Richard From rterry at ...1946... Mon Jul 13 05:50:00 2009 From: rterry at ...1946... (richard terry) Date: Mon, 13 Jul 2009 13:50:00 +1000 Subject: [Gambas-user] Question re Gambas when qt3 dropped Message-ID: <200907131350.00841.rterry@...1946...> I've a question as my project extensively used khtml, mainly for display and perhaps I could always use another control for display of my html, but I wondered if there were plans to have an alternate browser in-place before one can no longer access the khtml control. Regards Richard From doriano.blengino at ...1909... Mon Jul 13 08:02:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 13 Jul 2009 08:02:17 +0200 Subject: [Gambas-user] Never mind.... In-Reply-To: <4A5A9474.8090501@...981...> References: <4A5A9474.8090501@...981...> Message-ID: <4A5ACDE9.1060506@...1909...> Stephen Bungay ha scritto: > I see there are TWO places to set the default tab size. One under > Project->Properties->Options and the other under > Tools->Preferences->Editor. A little confusing this, since one is using > the editor to edit the project, it logically follows that the editor > preferences are the item that needs setting. Quite strange but OK. Some > to think of it I might have commented on this a few years ago when I > initially asked for tabs to be able to be adjusted down to 1. > It makes a lot of sense if the option in project is used when you open a project, maybe written by someone else. When you start a new project, the option is copied from the editor one. So you can use your preferences without messing the screen when opening someone else's work. I did not verify this, but it seems a good idea. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Mon Jul 13 09:15:47 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 09:15:47 +0200 Subject: [Gambas-user] Directory naming in the IDE tree In-Reply-To: <200907131342.23590.rterry@...1946...> References: <200907131342.23590.rterry@...1946...> Message-ID: <200907130915.48389.gambas@...1...> > As you know my tree is in SVN > > If I try and rename a directory in the gambas IDE with anything other than > ascii eg progress_notes (not progressnotes), then it won't allow it. > > However if I rename the directory outside of the tree then gambas loads it > and shows it ok. > > Any solution. > > thanks > > Richard > Mmm, at the moment the routine that checks names is the same for files and directories, and only allowing ASCII is actually required for source files only. So I think there is a solution there... Regards, -- Beno?t From gambas at ...1... Mon Jul 13 09:18:23 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 09:18:23 +0200 Subject: [Gambas-user] Question re Gambas when qt3 dropped In-Reply-To: <200907131350.00841.rterry@...1946...> References: <200907131350.00841.rterry@...1946...> Message-ID: <200907130918.23631.gambas@...1...> > I've a question as my project extensively used khtml, mainly for display > and perhaps I could always use another control for display of my html, but > I wondered if there were plans to have an alternate browser in-place before > one can no longer access the khtml control. > > Regards > > > Richard > Not yet, just because of the gb.kde.html problem. The Webkit component needs to be done, but I don't know when I have time to do. But now I won't develop gb.qt anymore, so maybe you may have some problem using it if I forgot to backport a new gb.qt4 feature to it. Please be indulgent! Regards, -- Beno?t From ron at ...1740... Mon Jul 13 09:41:12 2009 From: ron at ...1740... (Ron) Date: Mon, 13 Jul 2009 09:41:12 +0200 Subject: [Gambas-user] When does trunk become the stable release? Message-ID: <4A5AE518.4020307@...1740...> Beno?t, are there any plans to make a future trunk/development release the stable one? ie have a new feature freeze and work on bug fixes for a period. I'm using Gambas 2.x for some time now, but I want to have new v4l2 and other goodies, but it must be a stable version. One that compiles without problems on major distro's and has valid prerequisites. Maybe it was a better plan to make Gambas3 fork off to a stable one just before the major work was done on supporting qt4? Don't get me wrong, you are doing a hell of a job on getting the new gfx libs working, and it looks very very nice, but I think that the gap is becoming too big between stable and development version. What are your thoughts about this? And did anyone made a list about things you need to change in your code, when you want to switch over? Can you install/run both versions on a development system without getting into trouble somewhere? Regards, Ron_2nd. From gambas at ...1... Mon Jul 13 10:21:01 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 10:21:01 +0200 Subject: [Gambas-user] When does trunk become the stable release? In-Reply-To: <4A5AE518.4020307@...1740...> References: <4A5AE518.4020307@...1740...> Message-ID: <200907131021.01318.gambas@...1...> > Beno?t, > > are there any plans to make a future trunk/development release the > stable one? > ie have a new feature freeze and work on bug fixes for a period. > Yes, but at the moment it is "when it is ready". "When it is ready" means: - Qt4 component. - WebKit component. - DBUS component. - Database manager integration. - ASP-like web pages in the IDE. - Web application development in the IDE. - Structure support in the interpreter. - ...And many other little things for sure. Only the Qt 4 component is done at the moment, and the database manager integration has started. So there is a lot of things to do yet. I know this is a problem. I will try to do a feature freeze as soon as possible. But I don't know which feature I could remove from that list. Maybe the DBUS component, Structure support, and other little things can be done later... > I'm using Gambas 2.x for some time now, but I want to have new v4l2 and > other goodies, but it must be a stable version. > One that compiles without problems on major distro's and has valid > prerequisites. > Maybe it was a better plan to make Gambas3 fork off to a stable one just > before the major work was done on supporting qt4? It is always a chicken and egg problem... > > Don't get me wrong, you are doing a hell of a job on getting the new gfx > libs working, and it looks very very nice, but I think that the gap is > becoming too big between stable and development version. > > What are your thoughts about this? I don't think at the moment the gap is so greater between Gambas 3 and Gambas 2 than it was between Gambas 2 and Gambas 1. > > And did anyone made a list about things you need to change in your code, > when you want to switch over? > Can you install/run both versions on a development system without > getting into trouble somewhere? Of course, Gambas is designed so that you can run all different versions on the same OS (provided that they compiles with newer versions of the libraries). Regards, -- Beno?t From ron at ...1740... Mon Jul 13 10:50:05 2009 From: ron at ...1740... (Ron) Date: Mon, 13 Jul 2009 10:50:05 +0200 Subject: [Gambas-user] When does trunk become the stable release? In-Reply-To: <200907131021.01318.gambas@...1...> References: <4A5AE518.4020307@...1740...> <200907131021.01318.gambas@...1...> Message-ID: <4A5AF53D.5060902@...1740...> Beno?t Minisini wrote: >> Beno?t, >> >> are there any plans to make a future trunk/development release the >> stable one? >> ie have a new feature freeze and work on bug fixes for a period. >> - ASP-like web pages in the IDE. >> - Web application development in the IDE. >> These features look very nice! >> Don't get me wrong, you are doing a hell of a job on getting the new gfx >> libs working, and it looks very very nice, but I think that the gap is >> becoming too big between stable and development version. >> >> What are your thoughts about this? >> > > I don't think at the moment the gap is so greater between Gambas 3 and Gambas > 2 than it was between Gambas 2 and Gambas 1. > > I have never really worked with Gambas1 so cannot comment on this one. >> And did anyone made a list about things you need to change in your code, >> when you want to switch over? >> Can you install/run both versions on a development system without >> getting into trouble somewhere? >> > > Of course, Gambas is designed so that you can run all different versions on > the same OS (provided that they compiles with newer versions of the > libraries). > Ok I will install gambas3 too on my dev system then, and make a note of things I come across porting my software. I also will try to see if I still get that sig#11 on that touchscreen machine with Gambas3, haven't thought about this earlier. Maybe that bring some more light on this matter. Regards, Ron_2nd. From kobolds at ...2041... Mon Jul 13 11:45:54 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 13 Jul 2009 02:45:54 -0700 (PDT) Subject: [Gambas-user] Bug inTabStrip control Message-ID: <24458745.post@...1379...> follow my example to emulate the bug . 1 create a form 2. drag and drop a tabstrip control to the form 3. set the count to 3 , it will create 3 tab 4. add a button to tab1 5. at form _open() event add the following code ' only left tab1 visible , hide the rest tabstrip1[1].visible = true tabstrip1[2].visible = false 6. at button click event add the following code 'hide tab1 and tab3 tabstrip1[0].visible = false tabstrip1[1].visible = true tabstrip1[2].visible = false try to run on the form show only one tab (name tab1) with a button in it . click on the button . the tab change to tab2 but the button still showing . the button should not show up since button is belong to tab1 not tab2 . work around ? on the button click event , ' must set all tab visible first tabstrip1[0].visible = true tabstrip1[1].visible = true tabstrip1[2].visible = true tabstrip1.index = 1 tabstrip1[0].visible = false tabstrip1[1].visible = true tabstrip1[2].visible = false this way the button won't show up in tab2 . -- View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24458745.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 13 11:51:00 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 11:51:00 +0200 Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <24458745.post@...1379...> References: <24458745.post@...1379...> Message-ID: <200907131151.00916.gambas@...1...> > follow my example to emulate the bug . > > 1 create a form > 2. drag and drop a tabstrip control to the form > 3. set the count to 3 , it will create 3 tab > 4. add a button to tab1 > 5. at form _open() event add the following code > ' only left tab1 visible , hide the rest > > tabstrip1[1].visible = true > tabstrip1[2].visible = false > > > 6. at button click event add the following code > 'hide tab1 and tab3 > tabstrip1[0].visible = false > tabstrip1[1].visible = true > tabstrip1[2].visible = false > > try to run > on the form show only one tab (name tab1) with a button in it . click on > the button . the tab change to tab2 but the button still showing . > the button should not show up since button is belong to tab1 not tab2 . > > work around ? on the button click event , > ' must set all tab visible first > tabstrip1[0].visible = true > tabstrip1[1].visible = true > tabstrip1[2].visible = true > > tabstrip1.index = 1 > > tabstrip1[0].visible = false > tabstrip1[1].visible = true > tabstrip1[2].visible = false > > this way the button won't show up in tab2 . Which version of Gambas do you use? Do you use gb.qt or gb.gtk? -- Beno?t From gambas at ...1... Mon Jul 13 11:51:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 11:51:37 +0200 Subject: [Gambas-user] where is line ,rectangle , circle In-Reply-To: <24455018.post@...1379...> References: <24445252.post@...1379...> <200907122016.01555.gambas@...1...> <24455018.post@...1379...> Message-ID: <200907131151.37859.gambas@...1...> > Beno?t Minisini wrote: > >> since I don't see it on default gambas control , I wonder had anyone > >> wrote > >> such control ? > >> > >> for example > >> line --> can set the color ,thickness ,shape ,horizontal or vertical > >> rectangle --> can set tickness ,the edge color , fill color and edge > >> shape > >> circle -->can set tickness , can set the edge color , fill color and > >> diameter > >> > >> such control sometime pretty useful Alas they are not easy to done... Must think about it. -- Beno?t From kobolds at ...2041... Mon Jul 13 12:14:15 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 13 Jul 2009 03:14:15 -0700 (PDT) Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <200907131151.00916.gambas@...1...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> Message-ID: <24459038.post@...1379...> qt . version 2.14 using binary from Guillermo Ballester Valor. on opensuse 11.1 x64 kde 4.3 RC2 release 142 Beno?t Minisini wrote: > >> follow my example to emulate the bug . >> >> 1 create a form >> 2. drag and drop a tabstrip control to the form >> 3. set the count to 3 , it will create 3 tab >> 4. add a button to tab1 >> 5. at form _open() event add the following code >> ' only left tab1 visible , hide the rest >> >> tabstrip1[1].visible = true >> tabstrip1[2].visible = false >> >> >> 6. at button click event add the following code >> 'hide tab1 and tab3 >> tabstrip1[0].visible = false >> tabstrip1[1].visible = true >> tabstrip1[2].visible = false >> >> try to run >> on the form show only one tab (name tab1) with a button in it . click on >> the button . the tab change to tab2 but the button still showing . >> the button should not show up since button is belong to tab1 not tab2 . >> >> work around ? on the button click event , >> ' must set all tab visible first >> tabstrip1[0].visible = true >> tabstrip1[1].visible = true >> tabstrip1[2].visible = true >> >> tabstrip1.index = 1 >> >> tabstrip1[0].visible = false >> tabstrip1[1].visible = true >> tabstrip1[2].visible = false >> >> this way the button won't show up in tab2 . > > Which version of Gambas do you use? Do you use gb.qt or gb.gtk? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24459038.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 13 12:31:25 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 12:31:25 +0200 Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <24459038.post@...1379...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> Message-ID: <200907131231.25879.gambas@...1...> > qt . version 2.14 > > using binary from Guillermo Ballester Valor. > > > on opensuse 11.1 x64 kde 4.3 RC2 release 142 > OK, but please provide the real code (i.e. a project archive), as what you described is not coherent. Regards, -- Beno?t From kobolds at ...2041... Mon Jul 13 12:49:15 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 13 Jul 2009 03:49:15 -0700 (PDT) Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <200907131231.25879.gambas@...1...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> <200907131231.25879.gambas@...1...> Message-ID: <24459455.post@...1379...> the whole project I doing now still in very messy status . but I confirm the problem exist by create a new project to see if it happen or not . now that you said that , I also not sure whether the problem is because of kde 4.3 qt 4.5 . I guess this is why I unable to compile gambas3 on the yast the gambas version I using showing 2.14.0-2.2 Beno?t Minisini wrote: > >> qt . version 2.14 >> >> using binary from Guillermo Ballester Valor. >> >> >> on opensuse 11.1 x64 kde 4.3 RC2 release 142 >> > > OK, but please provide the real code (i.e. a project archive), as what you > described is not coherent. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24459455.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 13 13:06:10 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 13:06:10 +0200 Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <24459455.post@...1379...> References: <24458745.post@...1379...> <200907131231.25879.gambas@...1...> <24459455.post@...1379...> Message-ID: <200907131306.10945.gambas@...1...> > the whole project I doing now still in very messy status . but I confirm > the problem exist by create a new project to see if it happen or not . > > now that you said that , I also not sure whether the problem is because of > kde 4.3 qt 4.5 . > > I guess this is why I unable to compile gambas3 > > on the yast the gambas version I using showing 2.14.0-2.2 > I need the actual code, because the code you wrote in your e-mail is not coherent. Please read it again to see what I mean. Regards, -- Beno?t From kobolds at ...2041... Mon Jul 13 13:32:15 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 13 Jul 2009 04:32:15 -0700 (PDT) Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <200907131306.10945.gambas@...1...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> <200907131231.25879.gambas@...1...> <24459455.post@...1379...> <200907131306.10945.gambas@...1...> Message-ID: <24460070.post@...1379...> sorry here the code http://www.nabble.com/file/p24460070/test.zip test.zip Beno?t Minisini wrote: > >> the whole project I doing now still in very messy status . but I confirm >> the problem exist by create a new project to see if it happen or not . >> >> now that you said that , I also not sure whether the problem is because >> of >> kde 4.3 qt 4.5 . >> >> I guess this is why I unable to compile gambas3 >> >> on the yast the gambas version I using showing 2.14.0-2.2 >> > > I need the actual code, because the code you wrote in your e-mail is not > coherent. Please read it again to see what I mean. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24460070.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Mon Jul 13 14:19:40 2009 From: wdahn at ...1000... (Werner) Date: Mon, 13 Jul 2009 20:19:40 +0800 Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <24460070.post@...1379...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> <200907131231.25879.gambas@...1...> <24459455.post@...1379...> <200907131306.10945.gambas@...1...> <24460070.post@...1379...> Message-ID: <4A5B265C.3010500@...1000...> kobolds wrote: > sorry here the code > > http://www.nabble.com/file/p24460070/test.zip test.zip > > Beno?t Minisini wrote: > >>> the whole project I doing now still in very messy status . but I confirm >>> the problem exist by create a new project to see if it happen or not . >>> >>> now that you said that , I also not sure whether the problem is because >>> of >>> kde 4.3 qt 4.5 . >>> >>> I guess this is why I unable to compile gambas3 >>> >>> on the yast the gambas version I using showing 2.14.0-2.2 >>> >>> >> I need the actual code, because the code you wrote in your e-mail is not >> coherent. Please read it again to see what I mean. >> >> Regards, >> >> -- >> Beno?t >> I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5 What I see is when I single step through the Button_Click routine tabstrip1[0].visible = false 'Index becomes -1 tabstrip1[1].visible = true 'Index becomes 1 tabstrip1[2].visible = false but what is shown is still tab strip 0. Regards Werner From kobolds at ...2041... Mon Jul 13 14:23:48 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 13 Jul 2009 05:23:48 -0700 (PDT) Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <4A5B265C.3010500@...1000...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> <200907131231.25879.gambas@...1...> <24459455.post@...1379...> <200907131306.10945.gambas@...1...> <24460070.post@...1379...> <4A5B265C.3010500@...1000...> Message-ID: <24460761.post@...1379...> mine show tab strip 1 , but the button also show out Werner-9 wrote: > > kobolds wrote: >> sorry here the code >> >> http://www.nabble.com/file/p24460070/test.zip test.zip >> >> Beno?t Minisini wrote: >> >>>> the whole project I doing now still in very messy status . but I >>>> confirm >>>> the problem exist by create a new project to see if it happen or not . >>>> >>>> now that you said that , I also not sure whether the problem is because >>>> of >>>> kde 4.3 qt 4.5 . >>>> >>>> I guess this is why I unable to compile gambas3 >>>> >>>> on the yast the gambas version I using showing 2.14.0-2.2 >>>> >>>> >>> I need the actual code, because the code you wrote in your e-mail is not >>> coherent. Please read it again to see what I mean. >>> >>> Regards, >>> >>> -- >>> Beno?t >>> > I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5 > What I see is when I single step > through the Button_Click routine > > tabstrip1[0].visible = false 'Index becomes -1 > tabstrip1[1].visible = true 'Index becomes 1 > tabstrip1[2].visible = false > > but what is shown is still tab strip 0. > > Regards > Werner > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24460761.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Mon Jul 13 14:33:10 2009 From: wdahn at ...1000... (Werner) Date: Mon, 13 Jul 2009 20:33:10 +0800 Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <4A5B265C.3010500@...1000...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> <200907131231.25879.gambas@...1...> <24459455.post@...1379...> <200907131306.10945.gambas@...1...> <24460070.post@...1379...> <4A5B265C.3010500@...1000...> Message-ID: <4A5B2986.5020003@...1000...> Werner wrote: > kobolds wrote: > >> sorry here the code >> >> http://www.nabble.com/file/p24460070/test.zip test.zip >> >> Beno?t Minisini wrote: >> >> >>>> the whole project I doing now still in very messy status . but I confirm >>>> the problem exist by create a new project to see if it happen or not . >>>> >>>> now that you said that , I also not sure whether the problem is because >>>> of >>>> kde 4.3 qt 4.5 . >>>> >>>> I guess this is why I unable to compile gambas3 >>>> >>>> on the yast the gambas version I using showing 2.14.0-2.2 >>>> >>>> >>>> >>> I need the actual code, because the code you wrote in your e-mail is not >>> coherent. Please read it again to see what I mean. >>> >>> Regards, >>> >>> -- >>> Beno?t >>> >>> > I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5 > What I see is when I single step > through the Button_Click routine > > tabstrip1[0].visible = false 'Index becomes -1 > tabstrip1[1].visible = true 'Index becomes 1 > tabstrip1[2].visible = false > > but what is shown is still tab strip 0. > > Regards > Werner > ...whereas if I change the code a little tabstrip1[1].visible = true 'Index remains as it was tabstrip1[0].visible = false 'Index becomes 1 tabstrip1[2].visible = false and the result is as it should be. Regards Werner From kobolds at ...2041... Mon Jul 13 14:49:42 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 13 Jul 2009 05:49:42 -0700 (PDT) Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <4A5B2986.5020003@...1000...> References: <24458745.post@...1379...> <200907131151.00916.gambas@...1...> <24459038.post@...1379...> <200907131231.25879.gambas@...1...> <24459455.post@...1379...> <200907131306.10945.gambas@...1...> <24460070.post@...1379...> <4A5B265C.3010500@...1000...> <4A5B2986.5020003@...1000...> Message-ID: <24461127.post@...1379...> You're right . thanks Werner-9 wrote: > > Werner wrote: >> kobolds wrote: >> >>> sorry here the code >>> >>> http://www.nabble.com/file/p24460070/test.zip test.zip >>> >>> Beno?t Minisini wrote: >>> >>> >>>>> the whole project I doing now still in very messy status . but I >>>>> confirm >>>>> the problem exist by create a new project to see if it happen or not . >>>>> >>>>> now that you said that , I also not sure whether the problem is >>>>> because >>>>> of >>>>> kde 4.3 qt 4.5 . >>>>> >>>>> I guess this is why I unable to compile gambas3 >>>>> >>>>> on the yast the gambas version I using showing 2.14.0-2.2 >>>>> >>>>> >>>>> >>>> I need the actual code, because the code you wrote in your e-mail is >>>> not >>>> coherent. Please read it again to see what I mean. >>>> >>>> Regards, >>>> >>>> -- >>>> Beno?t >>>> >>>> >> I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5 >> What I see is when I single step >> through the Button_Click routine >> >> tabstrip1[0].visible = false 'Index becomes -1 >> tabstrip1[1].visible = true 'Index becomes 1 >> tabstrip1[2].visible = false >> >> but what is shown is still tab strip 0. >> >> Regards >> Werner >> > ...whereas if I change the code a little > > tabstrip1[1].visible = true 'Index remains as it was > tabstrip1[0].visible = false 'Index becomes 1 > tabstrip1[2].visible = false > > and the result is as it should be. > > Regards > Werner > > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24461127.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 13 15:47:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 15:47:44 +0200 Subject: [Gambas-user] Bug inTabStrip control In-Reply-To: <24460070.post@...1379...> References: <24458745.post@...1379...> <200907131306.10945.gambas@...1...> <24460070.post@...1379...> Message-ID: <200907131547.44797.gambas@...1...> > sorry here the code > > http://www.nabble.com/file/p24460070/test.zip test.zip > OK, got it! The gb.qt TabStrip should be fixed in revision #2111. Regards, -- Beno?t From 12ukwn at ...626... Mon Jul 13 15:53:11 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 15:53:11 +0200 Subject: [Gambas-user] comments Message-ID: <4A5B3C47.5080005@...626...> Hi, AFAIK ther's no possibility to comment a block of code; could you add this? (such as C comment for example). JY -- What happens if a big asteroid hits Earth? Judging from realistic simulations involving a sledge hammer and a common laboratory frog, we can assume it will be pretty bad. -- Dave Barry From gambas at ...1... Mon Jul 13 16:46:39 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 16:46:39 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5B3C47.5080005@...626...> References: <4A5B3C47.5080005@...626...> Message-ID: <200907131646.39121.gambas@...1...> > Hi, > > AFAIK ther's no possibility to comment a block of code; could you add this? > (such as C comment for example). > > JY If you find a syntax that I like and that does not interfer with an already existing one, why not? -- Beno?t From ron at ...1740... Mon Jul 13 16:51:00 2009 From: ron at ...1740... (Ron) Date: Mon, 13 Jul 2009 16:51:00 +0200 Subject: [Gambas-user] comments In-Reply-To: <200907131646.39121.gambas@...1...> References: <4A5B3C47.5080005@...626...> <200907131646.39121.gambas@...1...> Message-ID: <4A5B49D4.2030807@...1740...> Beno?t Minisini wrote: >> Hi, >> >> AFAIK ther's no possibility to comment a block of code; could you add this? >> (such as C comment for example). >> >> JY >> > If you find a syntax that I like and that does not interfer with an already > existing one, why not? > Sorry to barge in, but /* don't parse this! */ would be my favorite. Ron_2nd. From 12ukwn at ...626... Mon Jul 13 17:06:36 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 17:06:36 +0200 Subject: [Gambas-user] comments In-Reply-To: <200907131646.39121.gambas@...1...> References: <4A5B3C47.5080005@...626...> <200907131646.39121.gambas@...1...> Message-ID: <4A5B4D7C.7030308@...626...> Beno?t Minisini a ?crit : >> Hi, >> >> AFAIK ther's no possibility to comment a block of code; could you add this? >> (such as C comment for example). >> >> JY > > If you find a syntax that I like and that does not interfer with an already > existing one, why not? haaa, Saint-Taxes... priez pour nous ;-) I'd say just alike Ron: C comments /* comment */ would be good, and I don't think it would collide with anything else. But if you don't like it, may be (but might confuse): ''' comment ''' -- UH-OH!! We're out of AUTOMOBILE PARTS and RUBBER GOODS! From bill-lancaster at ...2231... Mon Jul 13 19:05:35 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Mon, 13 Jul 2009 10:05:35 -0700 (PDT) Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' In-Reply-To: <200907121133.28446.gambas@...1...> References: <24406610.post@...1379...> <200907121133.28446.gambas@...1...> Message-ID: <24465558.post@...1379...> Dear Beno?t here is the code: PUBLIC SUB Button4_Click() DIM hMsg AS NEW SmtpClient hMsg.To.Add("angi at ...2232...") hMsg.Subject = "Garethn" hMsg.Add("Angi, had Garry sent paper work to us?") hMsg.From = "bill-lancaster at ...2231..." hMsg.Host = "smtp.tiscali.co.uk" hMsg.Port = 25 '465 hMsg.Alternative = FALSE hMsg.Send() CATCH Message.Error(Error.Text) END I don't know what kind of server it is (as you can see its tiscali.co.uk) Here is the full error report: Reporting-MTA: dns; mk-filter-2-a-1.mail.uk.tiscali.com Final-Recipient: rfc822;angi at ...2233... Action: failed Status: 5.0.0 (permanent failure) Remote-MTA: dns; [193.22.244.114] Diagnostic-Code: smtp; 5.1.0 - Unknown address error 550-'Message SHOULD have Date: but does not' (delivery attempts: 1) Regards Bill Lancaster -- View this message in context: http://www.nabble.com/SmtpClient%3A--error-550-%27Message-SHOULD-have-Date%3A-but-does-not%27-tp24406610p24465558.html Sent from the gambas-user mailing list archive at Nabble.com. From 12ukwn at ...626... Mon Jul 13 19:24:21 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 19:24:21 +0200 Subject: [Gambas-user] pb search & replace Message-ID: <4A5B6DC5.5020000@...626...> Debian sid regular 2.13.1-1 =========================== Hi, The search & replace command has a weird behaviour: it don't replace text that is commented; can I override this? JY -- Where does it go when you flush? From 12ukwn at ...626... Mon Jul 13 20:48:26 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 20:48:26 +0200 Subject: [Gambas-user] ide Message-ID: <4A5B817A.6080801@...626...> Hi, One thing would be cool: the possibility for the auto-completion to replace the current word we're on. JY -- From gambas at ...1... Mon Jul 13 21:15:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 13 Jul 2009 21:15:21 +0200 Subject: [Gambas-user] pb search & replace In-Reply-To: <4A5B6DC5.5020000@...626...> References: <4A5B6DC5.5020000@...626...> Message-ID: <200907132115.21831.gambas@...1...> > Debian sid regular 2.13.1-1 > =========================== > > Hi, > > The search & replace command has a weird behaviour: it don't replace text > that is commented; can I override this? > > JY Toggle the button "search inside comments" in the find toolbar. -- Beno?t From sbungay at ...981... Mon Jul 13 21:25:32 2009 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 13 Jul 2009 15:25:32 -0400 Subject: [Gambas-user] Never mind.... In-Reply-To: <4A5ACDE9.1060506@...1909...> References: <4A5A9474.8090501@...981...> <4A5ACDE9.1060506@...1909...> Message-ID: <4A5B8A2C.8020104@...981...> Doriano Blengino wrote: > Stephen Bungay ha scritto: >> I see there are TWO places to set the default tab size. One under >> Project->Properties->Options and the other under >> Tools->Preferences->Editor. A little confusing this, since one is using >> the editor to edit the project, it logically follows that the editor >> preferences are the item that needs setting. Quite strange but OK. Some >> to think of it I might have commented on this a few years ago when I >> initially asked for tabs to be able to be adjusted down to 1. >> > It makes a lot of sense if the option in project is used when you open a > project, maybe written by someone else. When you start a new project, > the option is copied from the editor one. So you can use your > preferences without messing the screen when opening someone else's work. > I did not verify this, but it seems a good idea. > > Regards, > Having it (the settings) in one location is IMHO a better choice. I've been away from development with Gambas for a few years and I completely forgot about this nuance of the environment. If it happens to me (who has used the environment extensively in the past) then a newcomer may be even more perplexed. Anyway, it is usable as it is, once you know (or in my case remember) this little idiosyncrasy. I always accepted it as given that the environment, when opening an existing project, would inherit the IDE configuration settings of the environment in which the project was originally created. This also meant that logically when creating a new project the IDE would use it's own configuration settings. It never occurred to me for it to operate otherwise as it would not make sense for it to do so. Well, back to coding... :) Steve. From sbungay at ...981... Mon Jul 13 21:31:09 2009 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 13 Jul 2009 15:31:09 -0400 Subject: [Gambas-user] comments In-Reply-To: <4A5B3C47.5080005@...626...> References: <4A5B3C47.5080005@...626...> Message-ID: <4A5B8B7D.6080004@...981...> Highlight the block of code you want to comment out.... then click the little comment icon in the text-editor toolbar. Presto! The block of code is commented out. No fuss, no muss. Steve. Jean-Yves F. Barbier wrote: > Hi, > > AFAIK ther's no possibility to comment a block of code; could you add this? > (such as C comment for example). > > JY From 12ukwn at ...626... Mon Jul 13 22:09:54 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 22:09:54 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5B8B7D.6080004@...981...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> Message-ID: <4A5B9492.1070008@...626...> Stephen Bungay a ?crit : > Highlight the block of code you want to comment out.... then click > the little comment icon in the text-editor toolbar. Presto! The block of > code is commented out. No fuss, no muss. > > Steve. Yes but no: many times I have to comment/decomment many parts of a single block, with C comment you can see where you are instantly otherwise you must re-read each line. But thanks anyway :) JY -- Among all savage beasts, none is found so harmful as woman. -- St. John Chrysostom, 304-407. From Karl.Reinl at ...9... Mon Jul 13 22:21:17 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 13 Jul 2009 22:21:17 +0200 Subject: [Gambas-user] pb search & replace In-Reply-To: <200907132115.21831.gambas@...1...> References: <4A5B6DC5.5020000@...626...> <200907132115.21831.gambas@...1...> Message-ID: <1247516477.6379.12.camel@...40...> Am Montag, den 13.07.2009, 21:15 +0200 schrieb Beno?t Minisini: > > Debian sid regular 2.13.1-1 > > =========================== > > > > Hi, > > > > The search & replace command has a weird behaviour: it don't replace text > > that is commented; can I override this? > > > > JY > > Toggle the button "search inside comments" in the find toolbar. No, don't do what he promise From 12ukwn at ...626... Mon Jul 13 22:26:16 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 22:26:16 +0200 Subject: [Gambas-user] fields access pb Message-ID: <4A5B9868.2060003@...626...> Hi, Derived from Database example, I've got a DataBrowse with 2 visible fields (I guess I can't access the other without doing that?!) and 2 DataControls for input. My PB is I don't know how to set the values of the other 4 fields (shall I put hidden DataControls in order to do that?) One thing though: if the last field column width is set to 0, it doesn't work: the column's still here (in this case, it's not a PB as I have 2 visible columns, but I might have a case where there'll only one visible) JY -- Les choses ne sont pas toujours ce que l'on voudrait qu'elles soient qu'elles fussent - P. Dac From Karl.Reinl at ...9... Mon Jul 13 22:27:51 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 13 Jul 2009 22:27:51 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5B9492.1070008@...626...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> Message-ID: <1247516871.6379.15.camel@...40...> Am Montag, den 13.07.2009, 22:09 +0200 schrieb Jean-Yves F. Barbier: > But thanks anyway :) > > JY > -- > Among all savage beasts, none is found so harmful as woman. > -- St. John Chrysostom, 304-407. Oh my good, the church and woman. From 12ukwn at ...626... Mon Jul 13 22:36:24 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 22:36:24 +0200 Subject: [Gambas-user] comments In-Reply-To: <1247516871.6379.15.camel@...40...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <1247516871.6379.15.camel@...40...> Message-ID: <4A5B9AC8.6090108@...626...> Charlie Reinl a ?crit : > Am Montag, den 13.07.2009, 22:09 +0200 schrieb Jean-Yves F. Barbier: >> But thanks anyway :) >> >> JY >> -- >> Among all savage beasts, none is found so harmful as woman. >> -- St. John Chrysostom, 304-407. > > Oh my good, the church and woman. ^^ mispelled... or volontary? -- Like I said, love wouldn't be so blind if the braille weren't so damned great! -- Armistead Maupin From 12ukwn at ...626... Mon Jul 13 22:39:07 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 13 Jul 2009 22:39:07 +0200 Subject: [Gambas-user] pb search & replace In-Reply-To: <1247516477.6379.12.camel@...40...> References: <4A5B6DC5.5020000@...626...> <200907132115.21831.gambas@...1...> <1247516477.6379.12.camel@...40...> Message-ID: <4A5B9B6B.9060308@...626...> Charlie Reinl a ?crit : > Am Montag, den 13.07.2009, 21:15 +0200 schrieb Beno?t Minisini: >>> Debian sid regular 2.13.1-1 >>> =========================== >>> >>> Hi, >>> >>> The search & replace command has a weird behaviour: it don't replace text >>> that is commented; can I override this? >>> >>> JY >> Toggle the button "search inside comments" in the find toolbar. > > No, don't do what he promise YES it does (@ least in Debian sid), the lines are well commented|decommented and it also works on my Lenny compilation of 2.14.0. -- Always be sincere, even when you don't mean it. -Irene Peter From Karl.Reinl at ...9... Mon Jul 13 23:13:38 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 13 Jul 2009 23:13:38 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5B9AC8.6090108@...626...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <1247516871.6379.15.camel@...40...> <4A5B9AC8.6090108@...626...> Message-ID: <1247519618.6379.19.camel@...40...> Am Montag, den 13.07.2009, 22:36 +0200 schrieb Jean-Yves F. Barbier: > Charlie Reinl a ?crit : > > Am Montag, den 13.07.2009, 22:09 +0200 schrieb Jean-Yves F. Barbier: > >> But thanks anyway :) > >> > >> JY > >> -- > >> Among all savage beasts, none is found so harmful as woman. > >> -- St. John Chrysostom, 304-407. > > > > Oh my good, the church and woman. > ^^ > mispelled... or volontary? > No I didn't want to say : Oh my god, the church and women. From Karl.Reinl at ...9... Mon Jul 13 23:19:30 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 13 Jul 2009 23:19:30 +0200 Subject: [Gambas-user] pb search & replace In-Reply-To: <4A5B9B6B.9060308@...626...> References: <4A5B6DC5.5020000@...626...> <200907132115.21831.gambas@...1...> <1247516477.6379.12.camel@...40...> <4A5B9B6B.9060308@...626...> Message-ID: <1247519970.6379.21.camel@...40...> Am Montag, den 13.07.2009, 22:39 +0200 schrieb Jean-Yves F. Barbier: > Charlie Reinl a ?crit : > > Am Montag, den 13.07.2009, 21:15 +0200 schrieb Beno?t Minisini: > >>> Debian sid regular 2.13.1-1 > >>> =========================== > >>> > >>> Hi, > >>> > >>> The search & replace command has a weird behaviour: it don't replace text > >>> that is commented; can I override this? > >>> > >>> JY > >> Toggle the button "search inside comments" in the find toolbar. > > > > No, don't do what he promise > > YES it does (@ least in Debian sid), the lines are well commented|decommented > and it also works on my Lenny compilation of 2.14.0. > Yes, your right, don't know what I did before. Sorry -- Amicalment Charlie From ron at ...1740... Mon Jul 13 22:24:57 2009 From: ron at ...1740... (Ron) Date: Mon, 13 Jul 2009 22:24:57 +0200 Subject: [Gambas-user] comments In-Reply-To: <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> Message-ID: <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> But.. sometimes you want to paste some lines of text as comment into your code. If you do this your way the text gets parsed/changed as soon as you paste it. Before you get the change to mark it as comment.It would be nice if you can type /* and */ and paste the stuff between it so the editor leaves it untouched. That's my reason for having a more clever way of marking a comment block. Regards, Ron_2nd. --- this e-mail is sent with my android phone. On Jul 13, 2009 10:11 PM, "Jean-Yves F. Barbier" <12ukwn at ...626...> wrote: Stephen Bungay a ?crit : > Highlight the block of code you want to comment out.... then click > the little comment icon i... Yes but no: many times I have to comment/decomment many parts of a single block, with C comment you can see where you are instantly otherwise you must re-read each line. But thanks anyway :) JY -- Among all savage beasts, none is found so harmful as woman. -- St. John Chrysostom, 304-407. ------------------------------------------------------------------------------ Enter the BlackBerry... From 12ukwn at ...626... Tue Jul 14 01:04:23 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 14 Jul 2009 01:04:23 +0200 Subject: [Gambas-user] DataBrowser toolbar Message-ID: <4A5BBD77.8080302@...626...> Hi, How can I access the buttons of a DataBrowser ToolBar in order to forbid/modify some actions? JY -- From ronstk at ...239... Tue Jul 14 04:13:30 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 14 Jul 2009 04:13:30 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5B49D4.2030807@...1740...> References: <4A5B3C47.5080005@...626...> <200907131646.39121.gambas@...1...> <4A5B49D4.2030807@...1740...> Message-ID: <200907140413.31246.ronstk@...239...> On Monday 13 July 2009, Ron wrote: > Beno?t Minisini wrote: > >> Hi, > >> > >> AFAIK ther's no possibility to comment a block of code; could you add this? > >> (such as C comment for example). > >> > >> JY > >> > > If you find a syntax that I like and that does not interfer with an already > > existing one, why not? > > > Sorry to barge in, but > > /* > > don't parse this! > > */ > > would be my favorite. > > Ron_2nd. > my vote toooo Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 From gambas at ...1... Tue Jul 14 04:43:16 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 14 Jul 2009 04:43:16 +0200 Subject: [Gambas-user] comments In-Reply-To: <200907140413.31246.ronstk@...239...> References: <4A5B3C47.5080005@...626...> <4A5B49D4.2030807@...1740...> <200907140413.31246.ronstk@...239...> Message-ID: <200907140443.16183.gambas@...1...> > On Monday 13 July 2009, Ron wrote: > > Beno?t Minisini wrote: > > >> Hi, > > >> > > >> AFAIK ther's no possibility to comment a block of code; could you add > > >> this? (such as C comment for example). > > >> > > >> JY > > > > > > If you find a syntax that I like and that does not interfer with an > > > already existing one, why not? > > > > Sorry to barge in, but > > > > /* > > > > don't parse this! > > > > */ > > > > would be my favorite. > > > > Ron_2nd. > > my vote toooo > > > Best regards, > > Ron_1st I tried to implement it, but didn't succeed. Code is analyzed line by line by the IDE, so having such a syntax would need too much work at the moment. Regards, -- Beno?t From 12ukwn at ...626... Tue Jul 14 05:02:07 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 14 Jul 2009 05:02:07 +0200 Subject: [Gambas-user] comments In-Reply-To: <200907140413.31246.ronstk@...239...> References: <4A5B3C47.5080005@...626...> <200907131646.39121.gambas@...1...> <4A5B49D4.2030807@...1740...> <200907140413.31246.ronstk@...239...> Message-ID: <4A5BF52F.6020002@...626...> Ron_1st a ?crit : > On Monday 13 July 2009, Ron wrote: >> Beno?t Minisini wrote: >>>> Hi, >>>> >>>> AFAIK ther's no possibility to comment a block of code; could you add this? >>>> (such as C comment for example). >>>> >>>> JY >>>> >>> If you find a syntax that I like and that does not interfer with an already >>> existing one, why not? >>> >> Sorry to barge in, but >> >> /* >> >> don't parse this! >> >> */ >> >> would be my favorite. >> >> Ron_2nd. >> > > my vote toooo > > > Best regards, > > Ron_1st Damned, you're a whole dynasty or Rons! -- A vacuum is a hell of a lot better than some of the stuff that nature replaces it with. -- Tennessee Williams From sbungay at ...981... Tue Jul 14 05:41:00 2009 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 13 Jul 2009 23:41:00 -0400 Subject: [Gambas-user] comments In-Reply-To: <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> Message-ID: <4A5BFE4C.9020702@...981...> I made up a standard comment block a long time ago as a text file, I simply paste it in and modify/add to it as needed. Yes you have to put the ' at the start of every new comment line, but IMHO that is no big deal. Steve. Ron wrote: > But.. sometimes you want to paste some lines of text as comment into your > code. If you do this your way the text gets parsed/changed as soon as you > paste it. Before you get the change to mark it as comment.It would be nice > if you can type /* and */ and paste the stuff between it so the editor > leaves it untouched. That's my reason for having a more clever way of > marking a comment block. > Regards, > Ron_2nd. > > --- > this e-mail is sent with my android phone. > > On Jul 13, 2009 10:11 PM, "Jean-Yves F. Barbier" <12ukwn at ...626...> wrote: > > Stephen Bungay a ?crit : > >> Highlight the block of code you want to comment out.... then click > the > little comment icon i... > Yes but no: many times I have to comment/decomment many parts of a single > block, with C comment you can see where you are instantly otherwise you > must re-read each line. > > But thanks anyway :) > > JY > -- > Among all savage beasts, none is found so harmful as woman. > -- St. John Chrysostom, 304-407. > > ------------------------------------------------------------------------------ > Enter the BlackBerry... > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Tue Jul 14 07:34:30 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 14 Jul 2009 07:34:30 +0200 Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' In-Reply-To: <24465558.post@...1379...> References: <24406610.post@...1379...> <200907121133.28446.gambas@...1...> <24465558.post@...1379...> Message-ID: <4A5C18E6.2000506@...1909...> Bill-Lancaster ha scritto: > Dear Beno?t > > here is the code: > > PUBLIC SUB Button4_Click() > DIM hMsg AS NEW SmtpClient > > hMsg.To.Add("angi at ...2232...") > hMsg.Subject = "Garethn" > hMsg.Add("Angi, had Garry sent paper work to us?") > hMsg.From = "bill-lancaster at ...2231..." > hMsg.Host = "smtp.tiscali.co.uk" > hMsg.Port = 25 '465 > hMsg.Alternative = FALSE > > hMsg.Send() > CATCH > Message.Error(Error.Text) > END > > I don't know what kind of server it is (as you can see its tiscali.co.uk) > > Here is the full error report: > > Reporting-MTA: dns; mk-filter-2-a-1.mail.uk.tiscali.com > > Final-Recipient: rfc822;angi at ...2233... > Action: failed > Status: 5.0.0 (permanent failure) > Remote-MTA: dns; [193.22.244.114] > Diagnostic-Code: smtp; 5.1.0 - Unknown address error 550-'Message SHOULD > have Date: but does not' (delivery attempts: 1) > My two cents... "Message SHOULD have blah blah blah" is quite different from "Message MUST have blah blah blah"... and SHOULD not be an error. I think the guys at tiscali.co.uk don't respect the standard, perhaps in a temptative to reduce spamming. Perhaps they saw that ms-outlock always sends a "Date:" field, and so everyone has to do so... in spite of the philosophy of "be conservative when transmitting, and be liberal when receiving". -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From steven at ...2097... Tue Jul 14 07:43:49 2009 From: steven at ...2097... (Steven James Drinnan) Date: Tue, 14 Jul 2009 13:43:49 +0800 Subject: [Gambas-user] Fedora 10 and 11 packages should now be correctly packaged for 2.14.0 In-Reply-To: <24465558.post@...1379...> References: <24406610.post@...1379...> <200907121133.28446.gambas@...1...> <24465558.post@...1379...> Message-ID: <1247550230.8055.3.camel@...2011...> Good news, Just got a reply about the packaging issue, will download and test and keep an eye on it. So hopefully now fedora packages will be correct. Steven Drinnan From ron at ...1740... Tue Jul 14 08:28:41 2009 From: ron at ...1740... (Ron) Date: Tue, 14 Jul 2009 08:28:41 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5BFE4C.9020702@...981...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> <4A5BFE4C.9020702@...981...> Message-ID: <4A5C2599.1020104@...1740...> Stephen Bungay wrote: > I made up a standard comment block a long time ago as a text file, I > simply paste it in and modify/add to it as needed. Yes you have to put > the ' at the start of every new comment line, but IMHO that is no big deal. > > Steve. > > Yeah but the the damage is already done then. What I was trying to explain was, if you paste a text like this into the editor: --- This is some text with debug information and is just used to explain my point. And there should be a bunch more lines below this one with preserved words in them. --- It becomes this, even before you have a chance to comment it: --- This IS some text WITH DEBUG information AND IS just used TO explain my point. AND there should be a bunch more lines below this one WITH preserved words IN them. --- Even if you arrange enough blank lines with a ' in front before you paste it over them. You get this: --- 'This is some text with debug information AND IS just used TO explain my point. AND there should be a bunch more lines below this one WITH preserved words IN them. ' ' --- That wouldn't be the case if you can put an /* and */ and can paste between those. Can't explain it any more clearer than this. Too bad it's a lot of work to implement. Regards, Ron_2nd. > Ron wrote: > >> But.. sometimes you want to paste some lines of text as comment into your >> code. If you do this your way the text gets parsed/changed as soon as you >> paste it. Before you get the change to mark it as comment.It would be nice >> if you can type /* and */ and paste the stuff between it so the editor >> leaves it untouched. That's my reason for having a more clever way of >> marking a comment block. >> Regards, >> Ron_2nd. >> >> --- >> this e-mail is sent with my android phone. >> >> >>> Highlight the block of code you want to comment out.... then click > the >>> >> little comment icon i... >> Yes but no: many times I have to comment/decomment many parts of a single >> block, with C comment you can see where you are instantly otherwise you >> must re-read each line. >> >> But thanks anyway :) >> >> From dosida at ...626... Tue Jul 14 08:55:05 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 14 Jul 2009 00:55:05 -0600 Subject: [Gambas-user] comments In-Reply-To: <4A5C2599.1020104@...1740...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> <4A5BFE4C.9020702@...981...> <4A5C2599.1020104@...1740...> Message-ID: <82bffccf0907132355j21abcb2h2aa5807587a68cd4@...627...> Sorry if I'm butting in the conversation, but what if instead of /* don't parse this */ you add another paste function on the IDE called "Paste As Comments" and assign it a rather unique keyboard shortcut like Ctrl + Alt + \ and paste whatever is in the clipboard in text format, as comments (with the ' in front of them)? It might be a poor substitute but something like /* */ but IMHO, it beats doing all the extra work for just the block comments. Regards Dimitris On Tue, Jul 14, 2009 at 12:28 AM, Ron wrote: > Stephen Bungay wrote: > > I made up a standard comment block a long time ago as a text file, I > > simply paste it in and modify/add to it as needed. Yes you have to put > > the ' at the start of every new comment line, but IMHO that is no big > deal. > > > > Steve. > > > > > > Yeah but the the damage is already done then. > What I was trying to explain was, if you paste a text like this into the > editor: > > --- > This is some text with debug information > and is just used to explain my point. > And there should be a bunch more lines below this one with preserved > words in them. > --- > > It becomes this, even before you have a chance to comment it: > > --- > This IS some text WITH DEBUG information > AND IS just used TO explain my point. > AND there should be a bunch more lines below this one WITH preserved > words IN them. > --- > > Even if you arrange enough blank lines with a ' in front before you > paste it over them. You get this: > > --- > 'This is some text with debug information > AND IS just used TO explain my point. > AND there should be a bunch more lines below this one WITH preserved > words IN them. > ' > ' > --- > > That wouldn't be the case if you can put an /* > and */ and can paste between those. > Can't explain it any more clearer than this. > > Too bad it's a lot of work to implement. > > Regards, > Ron_2nd. > > Ron wrote: > > > >> But.. sometimes you want to paste some lines of text as comment into > your > >> code. If you do this your way the text gets parsed/changed as soon as > you > >> paste it. Before you get the change to mark it as comment.It would be > nice > >> if you can type /* and */ and paste the stuff between it so the editor > >> leaves it untouched. That's my reason for having a more clever way of > >> marking a comment block. > >> Regards, > >> Ron_2nd. > >> > >> --- > >> this e-mail is sent with my android phone. > >> > >> > >>> Highlight the block of code you want to comment out.... then click > > the > >>> > >> little comment icon i... > >> Yes but no: many times I have to comment/decomment many parts of a > single > >> block, with C comment you can see where you are instantly otherwise you > >> must re-read each line. > >> > >> But thanks anyway :) > >> > >> > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From arosa at ...2015... Tue Jul 14 10:39:47 2009 From: arosa at ...2015... (Toni) Date: Tue, 14 Jul 2009 09:39:47 +0100 Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' In-Reply-To: <24465558.post@...1379...> References: <24406610.post@...1379...> <200907121133.28446.gambas@...1...> <24465558.post@...1379...> Message-ID: <4A5C4453.2030003@...2015...> Hi Bill, I think that smtp error 550 indicates that you aren't allowed to relay without authentification. ( An yes, the rest of the message is either just a tip or an erroneous description) In the attached code I see that no credentails are sent, and so, this makes me think that effectively this could be the problem. Regards, En/na Bill-Lancaster ha escrit: > Dear Beno?t > > here is the code: > > PUBLIC SUB Button4_Click() > DIM hMsg AS NEW SmtpClient > > hMsg.To.Add("angi at ...2232...") > hMsg.Subject = "Garethn" > hMsg.Add("Angi, had Garry sent paper work to us?") > hMsg.From = "bill-lancaster at ...2231..." > hMsg.Host = "smtp.tiscali.co.uk" > hMsg.Port = 25 '465 > hMsg.Alternative = FALSE > > hMsg.Send() > CATCH > Message.Error(Error.Text) > END > > I don't know what kind of server it is (as you can see its tiscali.co.uk) > > Here is the full error report: > > Reporting-MTA: dns; mk-filter-2-a-1.mail.uk.tiscali.com > > Final-Recipient: rfc822;angi at ...2233... > Action: failed > Status: 5.0.0 (permanent failure) > Remote-MTA: dns; [193.22.244.114] > Diagnostic-Code: smtp; 5.1.0 - Unknown address error 550-'Message SHOULD > have Date: but does not' (delivery attempts: 1) > > Regards > > Bill Lancaster > From 12ukwn at ...626... Tue Jul 14 12:35:31 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 14 Jul 2009 12:35:31 +0200 Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' In-Reply-To: <24465558.post@...1379...> References: <24406610.post@...1379...> <200907121133.28446.gambas@...1...> <24465558.post@...1379...> Message-ID: <4A5C5F73.4070400@...626...> Bill-Lancaster a ?crit : ...... SHOULD is just a warning from tiscali smtp complaining because you SHOULD have a Date: Header (as it is not MUST, you can safely ignore this) > PUBLIC SUB Button4_Click() > DIM hMsg AS NEW SmtpClient > > hMsg.To.Add("angi at ...2232...") > hMsg.Subject = "Garethn" > hMsg.Add("Angi, had Garry sent paper work to us?") > hMsg.From = "bill-lancaster at ...2231..." > hMsg.Host = "smtp.tiscali.co.uk" > hMsg.Port = 25 '465 > hMsg.Alternative = FALSE > > hMsg.Send() > CATCH > Message.Error(Error.Text) > END > > I don't know what kind of server it is (as you can see its tiscali.co.uk) > > Here is the full error report: > > Reporting-MTA: dns; mk-filter-2-a-1.mail.uk.tiscali.com > > Final-Recipient: rfc822;angi at ...2233... > Action: failed > Status: 5.0.0 (permanent failure) > Remote-MTA: dns; [193.22.244.114] > Diagnostic-Code: smtp; 5.1.0 - Unknown address error 550-'Message SHOULD Error 550 is: Relay Denied, means tiscali smtp refuses to handle this email SMTP Diagnostic Code 510: Bad Email Address In general, that means you sent an e-mail that either didn't have had: * A valid recipient address, * A valid recipient address in one of the headers: TO: CC: BCC: But, there is also a less documented, dirty, sneaky, fucky possibility: if your ISP is authenticating you through its DNS researches and you use your own DNS, then the (legal) relay is denied because of that. orange, formerly known as france telecom used to do that in france: this is particularly a moronic way to do because, as it is not a "normal" error, you can't know it is it, unless somebody tells you... but you can't do nothing against that, except using another smtp provider - or being your own with all the limitations involved, such as being refused because you're not an "official" smtp. As I'm not a smtp god, I might have forgotten some'. First, change your DNS to the tiscali ones, resend an email and see what comes out. If you're still stuck, send the whole header of your email for analysis. > have Date: but does not' (delivery attempts: 1) Normal: you've been bounced at 1st attempt. JY -- Sex is just one damp thing after another. From 12ukwn at ...626... Tue Jul 14 12:42:38 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 14 Jul 2009 12:42:38 +0200 Subject: [Gambas-user] comments In-Reply-To: <82bffccf0907132355j21abcb2h2aa5807587a68cd4@...627...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> <4A5BFE4C.9020702@...981...> <4A5C2599.1020104@...1740...> <82bffccf0907132355j21abcb2h2aa5807587a68cd4@...627...> Message-ID: <4A5C611E.2060802@...626...> Dimitris Anogiatis a ?crit : ..... > you add another paste function on the IDE called "Paste As Comments" and > assign it a rather unique keyboard > shortcut like Ctrl + Alt + \ and paste whatever is in the clipboard in text > format, as comments (with the ' in front > of them)? ..... RTF whole thread and you'll see why this is a bad idea and moreover it still exists: this has been pointed out by Stephen Bungay. JY -- Eat shit -- billions of flies can't be wrong. From gambas at ...1... Tue Jul 14 14:07:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 14 Jul 2009 14:07:38 +0200 Subject: [Gambas-user] comments In-Reply-To: <82bffccf0907132355j21abcb2h2aa5807587a68cd4@...627...> References: <4A5B3C47.5080005@...626...> <4A5C2599.1020104@...1740...> <82bffccf0907132355j21abcb2h2aa5807587a68cd4@...627...> Message-ID: <200907141407.38401.gambas@...1...> > Sorry if I'm butting in the conversation, but what if instead of > > /* > > don't parse this > > */ > > you add another paste function on the IDE called "Paste As Comments" and > assign it a rather unique keyboard > shortcut like Ctrl + Alt + \ and paste whatever is in the clipboard in > text format, as comments (with the ' in front > of them)? > > It might be a poor substitute but something like /* */ but IMHO, it beats > doing all the extra work for just the block > comments. > > Regards > Dimitris > "Paste as comments" has been implemented in the development version since a while. With "Paste as string", "Paste as PRINT instruction"... Regards, -- Beno?t From gambas at ...1... Tue Jul 14 14:14:27 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 14 Jul 2009 14:14:27 +0200 Subject: [Gambas-user] Directory naming in the IDE tree In-Reply-To: <200907130915.48389.gambas@...1...> References: <200907131342.23590.rterry@...1946...> <200907130915.48389.gambas@...1...> Message-ID: <200907141414.28048.gambas@...1...> > > As you know my tree is in SVN > > > > If I try and rename a directory in the gambas IDE with anything other > > than ascii eg progress_notes (not progressnotes), then it won't allow > > it. > > > > However if I rename the directory outside of the tree then gambas loads > > it and shows it ok. > > > > Any solution. > > > > thanks > > > > Richard > > Mmm, at the moment the routine that checks names is the same for files and > directories, and only allowing ASCII is actually required for source files > only. So I think there is a solution there... > > Regards, Implemented in revision #2115. Regards, -- Beno?t From ronstk at ...239... Tue Jul 14 14:30:15 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 14 Jul 2009 14:30:15 +0200 Subject: [Gambas-user] comments In-Reply-To: <200907140443.16183.gambas@...1...> References: <4A5B3C47.5080005@...626...> <200907140413.31246.ronstk@...239...> <200907140443.16183.gambas@...1...> Message-ID: <200907141430.16142.ronstk@...239...> On Tuesday 14 July 2009, Beno?t Minisini wrote: > > On Monday 13 July 2009, Ron wrote: > > > Beno?t Minisini wrote: > > > >> Hi, > > > >> > > > >> AFAIK ther's no possibility to comment a block of code; could you add > > > >> this? (such as C comment for example). > > > >> > > > >> JY > > > > > > > > If you find a syntax that I like and that does not interfer with an > > > > already existing one, why not? > > > > > > Sorry to barge in, but > > > > > > /* > > > > > > don't parse this! > > > > > > */ > > > > > > would be my favorite. > > > > > > Ron_2nd. > > > > my vote toooo > > > > > > Best regards, > > > > Ron_1st > > I tried to implement it, but didn't succeed. Code is analyzed line by line by > the IDE, so having such a syntax would need too much work at the moment. > > Regards, > Understand, but some thinking here. IF bCOMMENT=true THEN ' /* our wonderfull comment just pasted here as charlie and I does ENDIF ' */ This does in effect the thing we wishes. so the /* */ is not the biggest problem. It is the analyze of every line done by IDE. We do have the cut/past of code already in the IDE. A 'Past as Comment' could solve. If the paste is done by insert in every line the remark single quote (and 2 spaces) before adding the line to the source code for us. We must now do it after the paste and the IDE makes garbage of it. :) BTW I like the C style as I use in Kate durring programming php. ------------------------ /* comment1 */ /** comment2 */ // comment3 /// comment4 attached:comment-php Here comment1 and comment3 are dimmed in color (light grey) Goeed for just some side informations as program flow i.e. Comment2 and comment4 are extra accented by bold middle blue color. These are nice to mark importand comments as how to use i.e. the function ------------------------ Maybe something like that is also possible by using 1 and 2 single quotes at the start of the comment ' simple information '' Importand Usage information attached:comment-gb ------------------------ Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -------------- next part -------------- A non-text attachment was scrubbed... Name: comment-gb.jpg Type: image/jpeg Size: 2315 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: comment-php.jpg Type: image/jpeg Size: 13139 bytes Desc: not available URL: From ronstk at ...239... Tue Jul 14 14:43:02 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 14 Jul 2009 14:43:02 +0200 Subject: [Gambas-user] comments In-Reply-To: <4A5C611E.2060802@...626...> References: <4A5B3C47.5080005@...626...> <82bffccf0907132355j21abcb2h2aa5807587a68cd4@...627...> <4A5C611E.2060802@...626...> Message-ID: <200907141443.02752.ronstk@...239...> On Tuesday 14 July 2009, Jean-Yves F. Barbier wrote: > Dimitris Anogiatis a ?crit : > ..... > > you add another paste function on the IDE called "Paste As Comments" and > > assign it a rather unique keyboard > > shortcut like Ctrl + Alt + \ and paste whatever is in the clipboard in text > > format, as comments (with the ' in front > > of them)? > ..... > RTF whole thread and you'll see why this is a bad idea and moreover > it still exists: this has been pointed out by Stephen Bungay. I did suggest just a few minutes ago the same with 'Paste as Comment'. Nothing wrong with it I for me. It works just instand. > JY > -- > Eat shit -- billions of flies can't be wrong. Good sign, but an emty line above it would be nice. I just did read it ( the "Eat shit") as part of your reply in first view. :( Best regards, Ron_1st -- Sing shit -- billions of kids can't be wrong. From sbungay at ...981... Tue Jul 14 16:54:36 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 14 Jul 2009 10:54:36 -0400 Subject: [Gambas-user] Listbox border misbehaviour... Message-ID: <4A5C9C2C.6010606@...981...> The RAISE method was called to bring the listbox to the foreground of its parent, but it seems the border surrounding the listbox is not getting the message. The result is a rather messy display. Have a look at the attached PNG file. GAMBAS 2.12 GB.FORM KUBUNTU 8.04 Is this fixed in newer versions? Steve. From sbungay at ...981... Tue Jul 14 17:07:12 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 14 Jul 2009 11:07:12 -0400 Subject: [Gambas-user] comments In-Reply-To: <4A5C2599.1020104@...1740...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> <4A5BFE4C.9020702@...981...> <4A5C2599.1020104@...1740...> Message-ID: <4A5C9F20.2030705@...981...> Yeah, I see what you mean, that would be handy for pasting blocks of text in without the IDE mangling it. I see your point. Ron wrote: > Stephen Bungay wrote: >> I made up a standard comment block a long time ago as a text file, I >> simply paste it in and modify/add to it as needed. Yes you have to put >> the ' at the start of every new comment line, but IMHO that is no big deal. >> >> Steve. >> >> > > Yeah but the the damage is already done then. > What I was trying to explain was, if you paste a text like this into the > editor: > > --- > This is some text with debug information > and is just used to explain my point. > And there should be a bunch more lines below this one with preserved > words in them. > --- > > It becomes this, even before you have a chance to comment it: > > --- > This IS some text WITH DEBUG information > AND IS just used TO explain my point. > AND there should be a bunch more lines below this one WITH preserved > words IN them. > --- > > Even if you arrange enough blank lines with a ' in front before you > paste it over them. You get this: > > --- > 'This is some text with debug information > AND IS just used TO explain my point. > AND there should be a bunch more lines below this one WITH preserved > words IN them. > ' > ' > --- > > That wouldn't be the case if you can put an /* > and */ and can paste between those. > Can't explain it any more clearer than this. > > Too bad it's a lot of work to implement. > > Regards, > Ron_2nd. >> Ron wrote: >> >>> But.. sometimes you want to paste some lines of text as comment into your >>> code. If you do this your way the text gets parsed/changed as soon as you >>> paste it. Before you get the change to mark it as comment.It would be nice >>> if you can type /* and */ and paste the stuff between it so the editor >>> leaves it untouched. That's my reason for having a more clever way of >>> marking a comment block. >>> Regards, >>> Ron_2nd. >>> >>> --- >>> this e-mail is sent with my android phone. >>> >>> >>>> Highlight the block of code you want to comment out.... then click > the >>>> >>> little comment icon i... >>> Yes but no: many times I have to comment/decomment many parts of a single >>> block, with C comment you can see where you are instantly otherwise you >>> must re-read each line. >>> >>> But thanks anyway :) >>> >>> > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Jul 14 17:12:41 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 14 Jul 2009 11:12:41 -0400 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... Message-ID: <4A5CA069.9050503@...981...> Forgot the darn attachment... I HATE when I do that. -------------- next part -------------- A non-text attachment was scrubbed... Name: ListBoxRaiseUncleanBorder.png Type: image/png Size: 10441 bytes Desc: not available URL: From gambas at ...1... Tue Jul 14 17:20:10 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 14 Jul 2009 17:20:10 +0200 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... In-Reply-To: <4A5CA069.9050503@...981...> References: <4A5CA069.9050503@...981...> Message-ID: <200907141720.11017.gambas@...1...> > Forgot the darn attachment... I HATE when I do that. Do you have some code to test? -- Beno?t From sevoir75 at ...626... Tue Jul 14 18:48:32 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Tue, 14 Jul 2009 18:48:32 +0200 Subject: [Gambas-user] how can I run my Shell script in a directory? Message-ID: <1247590112.6662.1.camel@...1964...> Hi, Can anyone help to me with subject? regards, Sevoir From 12ukwn at ...626... Tue Jul 14 19:20:41 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 14 Jul 2009 19:20:41 +0200 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... In-Reply-To: <4A5CA069.9050503@...981...> References: <4A5CA069.9050503@...981...> Message-ID: <4A5CBE69.1010107@...626...> Stephen Bungay a ?crit : > Forgot the darn attachment... I HATE when I do that. I hate you too, so now we are too ;-) Have you got a piece of code to test? jy -- From sbungay at ...981... Tue Jul 14 19:54:46 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 14 Jul 2009 13:54:46 -0400 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... In-Reply-To: <4A5CBE69.1010107@...626...> References: <4A5CA069.9050503@...981...> <4A5CBE69.1010107@...626...> Message-ID: <4A5CC666.6050905@...981...> LOL, Benoit asked first, so I sent a test project along to him (didn't forget the attachment this time :). I'll include it here for the perusal of anyone who is interested. Seems the problem is in gb,gtk (GTK+ toolkit). If I deselect that and use only gb.gui then everything works as it should. Jean-Yves F. Barbier wrote: > Stephen Bungay a ?crit : >> Forgot the darn attachment... I HATE when I do that. > > I hate you too, so now we are too ;-) > > Have you got a piece of code to test? > > jy > -------------- next part -------------- A non-text attachment was scrubbed... Name: Test3.tar.gz Type: application/gzip Size: 9518 bytes Desc: not available URL: From pinozollo at ...626... Tue Jul 14 20:07:28 2009 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 14 Jul 2009 14:07:28 -0400 Subject: [Gambas-user] PictureDatabase with PostgreSQL Message-ID: <200907141407.28352.pinozollo@...626...> Hi, I am trying to use the example "PictureDatabase" with PostgreSQL but I get the following error: "Invalid byte sequence for encoding UTF-8" when executes the instruction: newPicture.Update() in PUBLIC SUB Add(ImagePath AS String) The creation of the database structure seems correct: ----------- Tabella "public.pictures" Colonna | Tipo | Modificatori ------------------+--------+------------------------------------------------------- id | bigint | not null default nextval('pictures_id_seq'::regclass) thumb | bytea | image | bytea | description | text | Indici: "pictures_pkey" PRIMARY KEY, btree (id) ----------- I have tried also to create manually the database with the option -E UTF-8, but no change. (By the way how can this done in GAMBAS ? as databaseConnection.Databases.Add(DBName) does not permit other parameters) I do not understand if the problem is in PostgreSQL or in GAMBAS.... It seems that that picture is treated as a text string instead of a blob. Thanks for any idea. (PostgreSQL 8.3, GAMBAS 2.14, Debian 5.0.1, QT) Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From 12ukwn at ...626... Tue Jul 14 20:16:01 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 14 Jul 2009 20:16:01 +0200 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... In-Reply-To: <4A5CC666.6050905@...981...> References: <4A5CA069.9050503@...981...> <4A5CBE69.1010107@...626...> <4A5CC666.6050905@...981...> Message-ID: <4A5CCB61.3000902@...626...> Stephen Bungay a ?crit : > LOL, Benoit asked first, so I sent a test project along to him (didn't > forget the attachment this time :). I'll include it here for the > perusal of anyone who is interested. > Seems the problem is in gb,gtk (GTK+ toolkit). If I deselect that and > use only gb.gui then everything works as it should. I agree (2.13.1-1 under Debian sid): gb.gtk: Either buttons never give any crossed vertical edges gb.gui: d? above gb.qt : Only left edge (seems normal as listbox is sunken) This is weird... and I don't understand how, so I hate you much more now ;-) JY -- From gambas at ...1... Tue Jul 14 20:39:23 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 14 Jul 2009 20:39:23 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Forgot_the_attachment=2E=2E=2E_re=2E?= =?iso-8859-1?q?=3A=09Listbox=09Border=09Misbehaving=2E=2E=2E?= In-Reply-To: <4A5CCB61.3000902@...626...> References: <4A5CA069.9050503@...981...> <4A5CC666.6050905@...981...> <4A5CCB61.3000902@...626...> Message-ID: <200907142039.23848.gambas@...1...> > Stephen Bungay a ?crit : > > LOL, Benoit asked first, so I sent a test project along to him (didn't > > forget the attachment this time :). I'll include it here for the > > perusal of anyone who is interested. > > Seems the problem is in gb,gtk (GTK+ toolkit). If I deselect that and > > use only gb.gui then everything works as it should. > > I agree (2.13.1-1 under Debian sid): > > gb.gtk: Either buttons never give any crossed vertical edges > gb.gui: d? above > gb.qt : Only left edge (seems normal as listbox is sunken) > > This is weird... and I don't understand how, so I hate you much more now > ;-) > > JY Note that gb.gui is not a true component! It just loads gb.qt or gb.gtk according to the desktop you are using. -- Beno?t From dosida at ...626... Tue Jul 14 21:07:11 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 14 Jul 2009 13:07:11 -0600 Subject: [Gambas-user] comments In-Reply-To: <4A5C9F20.2030705@...981...> References: <4A5B3C47.5080005@...626...> <4A5B8B7D.6080004@...981...> <4A5B9492.1070008@...626...> <68696c50907131320y4bc99eam15b9cba28a4b5c67@...627...> <68696c50907131324u10b9d8fbvd861a000fd0d1cc@...627...> <4A5BFE4C.9020702@...981...> <4A5C2599.1020104@...1740...> <4A5C9F20.2030705@...981...> Message-ID: <82bffccf0907141207v4edd59d9x2295b785110517@...627...> Sorry guys didn't mean to upset anyone, I did read the whole thread and I was unaware of the feature being implemented on the development version as I use the stable 2.14 on my lenny distro. Regards, Dimitris On Tue, Jul 14, 2009 at 9:07 AM, Stephen Bungay wrote: > Yeah, I see what you mean, that would be handy for pasting blocks of > text in without the IDE mangling it. I see your point. > > Ron wrote: > > Stephen Bungay wrote: > >> I made up a standard comment block a long time ago as a text file, I > >> simply paste it in and modify/add to it as needed. Yes you have to put > >> the ' at the start of every new comment line, but IMHO that is no big > deal. > >> > >> Steve. > >> > >> > > > > Yeah but the the damage is already done then. > > What I was trying to explain was, if you paste a text like this into the > > editor: > > > > --- > > This is some text with debug information > > and is just used to explain my point. > > And there should be a bunch more lines below this one with preserved > > words in them. > > --- > > > > It becomes this, even before you have a chance to comment it: > > > > --- > > This IS some text WITH DEBUG information > > AND IS just used TO explain my point. > > AND there should be a bunch more lines below this one WITH preserved > > words IN them. > > --- > > > > Even if you arrange enough blank lines with a ' in front before you > > paste it over them. You get this: > > > > --- > > 'This is some text with debug information > > AND IS just used TO explain my point. > > AND there should be a bunch more lines below this one WITH preserved > > words IN them. > > ' > > ' > > --- > > > > That wouldn't be the case if you can put an /* > > and */ and can paste between those. > > Can't explain it any more clearer than this. > > > > Too bad it's a lot of work to implement. > > > > Regards, > > Ron_2nd. > >> Ron wrote: > >> > >>> But.. sometimes you want to paste some lines of text as comment into > your > >>> code. If you do this your way the text gets parsed/changed as soon as > you > >>> paste it. Before you get the change to mark it as comment.It would be > nice > >>> if you can type /* and */ and paste the stuff between it so the editor > >>> leaves it untouched. That's my reason for having a more clever way of > >>> marking a comment block. > >>> Regards, > >>> Ron_2nd. > >>> > >>> --- > >>> this e-mail is sent with my android phone. > >>> > >>> > >>>> Highlight the block of code you want to comment out.... then click > > the > >>>> > >>> little comment icon i... > >>> Yes but no: many times I have to comment/decomment many parts of a > single > >>> block, with C comment you can see where you are instantly otherwise you > >>> must re-read each line. > >>> > >>> But thanks anyway :) > >>> > >>> > > > > > > > ------------------------------------------------------------------------------ > > Enter the BlackBerry Developer Challenge > > This is your chance to win up to $100,000 in prizes! For a limited time, > > vendors submitting new applications to BlackBerry App World(TM) will have > > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > > details at: http://p.sf.net/sfu/Challenge > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Tue Jul 14 21:57:10 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 14 Jul 2009 21:57:10 +0200 Subject: [Gambas-user] about gb.gui Message-ID: <1247601430.7493.11.camel@...40...> > Note that gb.gui is not a true component! It just loads gb.qt or gb.gtk > according to the desktop you are using. > Whats about gb.gui and gb.qt.ext or gb.gtk.ext , need it for the printer. gambas2.14 -- Amicalment Charlie From sbungay at ...981... Tue Jul 14 22:00:16 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 14 Jul 2009 16:00:16 -0400 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... In-Reply-To: <200907142039.23848.gambas@...1...> References: <4A5CA069.9050503@...981...> <4A5CC666.6050905@...981...> <4A5CCB61.3000902@...626...> <200907142039.23848.gambas@...1...> Message-ID: <4A5CE3D0.5050505@...981...> Beno?t Minisini wrote: >> Stephen Bungay a ?crit : >>> LOL, Benoit asked first, so I sent a test project along to him (didn't >>> forget the attachment this time :). I'll include it here for the >>> perusal of anyone who is interested. >>> Seems the problem is in gb,gtk (GTK+ toolkit). If I deselect that and >>> use only gb.gui then everything works as it should. >> I agree (2.13.1-1 under Debian sid): >> >> gb.gtk: Either buttons never give any crossed vertical edges >> gb.gui: d? above >> gb.qt : Only left edge (seems normal as listbox is sunken) >> >> This is weird... and I don't understand how, so I hate you much more now >> ;-) >> >> JY > > Note that gb.gui is not a true component! It just loads gb.qt or gb.gtk > according to the desktop you are using. > Ahhh.. makes sense then, since I am using KDE 3.X (at the moment) the GTK+ toolkit has issues? I'll have to test in various environments to make sure things appear as they should regardless of the desktop GUI. Can't have things too graphically inconsistent. From rterry at ...1946... Tue Jul 14 23:56:49 2009 From: rterry at ...1946... (richard terry) Date: Wed, 15 Jul 2009 07:56:49 +1000 Subject: [Gambas-user] PictureDatabase with PostgreSQL In-Reply-To: <200907141407.28352.pinozollo@...626...> References: <200907141407.28352.pinozollo@...626...> Message-ID: <200907150756.49252.rterry@...1946...> On Wed, 15 Jul 2009 04:07:28 am Pino Zollo wrote: > Hi, > > I am trying to use the example "PictureDatabase" with PostgreSQL but I get > the following error: > > "Invalid byte sequence for encoding UTF-8" > > when executes the instruction: > > newPicture.Update() > > in PUBLIC SUB Add(ImagePath AS String) > > The creation of the database structure seems correct: > ----------- > Tabella "public.pictures" > Colonna | Tipo | Modificatori > ------------------+--------+----------------------------------------------- >-------- id | bigint | not null default > nextval('pictures_id_seq'::regclass) > thumb | bytea | > image | bytea | > description | text | > Indici: > "pictures_pkey" PRIMARY KEY, btree (id) > ----------- > > I have tried also to create manually the database with the option -E UTF-8, > but no change. (By the way how can this done in GAMBAS ? as > databaseConnection.Databases.Add(DBName) does not permit other parameters) > > I do not understand if the problem is in PostgreSQL or in GAMBAS.... > > It seems that that picture is treated as a text string instead of a blob. > > Thanks for any idea. (PostgreSQL 8.3, GAMBAS 2.14, Debian 5.0.1, QT) > > Pino Pino, I have the solution for this problem as I struggled with it for ages, but my dad just broke his hip (87yrs) and has been urgently tranferred to hospital, so I can't think to much about it now, so mail me again if this dosn't help. You'll need this sort of stuff: The first routine someone gave me, the second just shows how to take a temporary image and insert it into postgres. the code is pretty old and not too clever as it was my first attempt and once I got it working I didn't change it. I use it to save diagrams, photographs, Xrays etc into my medical program. CREATE TABLE clin_consult.images ( pk serial NOT NULL, image bytea, CONSTRAINT images_pkey PRIMARY KEY (pk) ) Private Function COct(num As Integer) As String Dim octnumber As New Integer[] Dim octstring As String octnumber.Add(Int(num / 64)) octnumber.Add(Int((num Mod 64) / 8)) octnumber.Add((num Mod 64) Mod 8) octstring = octnumber[0] & octnumber[1] & octnumber[2] Return octstring End Public Function Image_Save(ImagePath As String) As Integer '------------------------------------------------ 'Saves an image file to clin_consult.images table 'return its key '------------------------------------------------ Dim hFile As Stream Dim buffer As Byte Dim picText As String Dim img As Image Dim newPicture As Result Dim pictureData As String Dim scale As Float Dim sql As String Open ImagePath For Input As #hFile While Not Eof(hFile) Read #hFile, buffer, Lof(hFile) If buffer < 32 Or buffer > 126 Then picText = picText & "\\\\" & Coct(buffer) Else Select buffer Case 92 ' mask "|" char picText = picText & "\\\\134" Case 39 ' mask "'" char picText = picText & "\\'" Default picText = picText & Chr$(buffer) ' Print "was a default", Chr$(buffer) End Select End If Wend Close hFile '----------------------------------- 'Start transaction, insert the piccie '------------------------------------ sql = "insert into clin_consult.images(image)" sql &= "values(E'" & picText & "')" $Result = modDBConnect.exec_query(sql) sql = "SELECT currval( 'clin_consult.images_pk_seq') as pk" $Result = modDBConnect.exec_query(sql) Return $Result!pk End I think postgres now can auto-return fields so part of this code can be eliminated, so if you wanted the pk back: $Result= modDBConnect.exec_query("insert into clin_consult.images(image) returning pk) ModDobConnect.exect_query is our own internal postgres handling module you'll have to use your own. Hope this helps. Regards Richard From kobolds at ...2041... Wed Jul 15 05:07:18 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 14 Jul 2009 20:07:18 -0700 (PDT) Subject: [Gambas-user] Bugs in TextLabel Message-ID: <24491183.post@...1379...> gambas 2.14 qt 1. create a project 2. drag picturebox into the form and select a png picture (make sure at least 400x400) 3. drag a textlabel on top of the picture 4. test that you can select the picture box control or textlabel by click on them 5. change the transparent on textlabel to true notice that you now can't click on the textlabel any more , even if you try to send the picturebox to background . this problem only occur when you set the textlabel transparent to true -- View this message in context: http://www.nabble.com/Bugs-in-TextLabel-tp24491183p24491183.html Sent from the gambas-user mailing list archive at Nabble.com. From rolf.frogs at ...221... Wed Jul 15 09:33:08 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Wed, 15 Jul 2009 09:33:08 +0200 Subject: [Gambas-user] PictureDatabase with PostgreSQL In-Reply-To: <200907141407.28352.pinozollo@...626...> References: <200907141407.28352.pinozollo@...626...> Message-ID: <200907150933.11037.rolf.frogs@...221...> Hi Pino, > I am trying to use the example "PictureDatabase" with PostgreSQL but I get > the following error: > > "Invalid byte sequence for encoding UTF-8" > In Debian, the PostgreSQL database will created on install-time with the charset of the root, usually of the national language. I have had this problem as well. What I did was: as root of course - uninstall PostgreSQL - manually: unset LANGUAGE; unset LANG The environment varialbes will be setup correctly at the next login. - reinstall PostgrSQL. Now you can create Databases with PostgrSQL each in a different language, not only in utf-8. Hope this helps Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From rospolosco at ...152... Wed Jul 15 10:36:05 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 15 Jul 2009 10:36:05 +0200 Subject: [Gambas-user] how can I run my Shell script in a directory? In-Reply-To: <1247590112.6662.1.camel@...1964...> References: <1247590112.6662.1.camel@...1964...> Message-ID: <200907151036.06283.rospolosco@...152...> Il marted? 14 luglio 2009 18:48:32 Szenogr?di Norbert ha scritto: > Hi, > > > Can anyone help to me with subject? > > regards, Sevoir > Where is your script? Is it in your project folder? Let's say it's in your project folder and is called "thescript.sh" DIM sShellScript AS String 'Define the destination of your script sDestDirectory = "destinationdirectory" 'Copy the script to it's destination COPY "thescript.sh" TO sDestDirectory &/ "thescript.sh" 'Then run the script within the final directory SHELL "cd " & sDestDirectory & "; ./thescript.sh" WAIT > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Wed Jul 15 10:42:31 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 15 Jul 2009 10:42:31 +0200 Subject: [Gambas-user] how can I run my Shell script in a directory? In-Reply-To: <200907151036.06283.rospolosco@...152...> References: <1247590112.6662.1.camel@...1964...> <200907151036.06283.rospolosco@...152...> Message-ID: <200907151042.31603.rospolosco@...152...> Il mercoled? 15 luglio 2009 10:36:05 Stefano Palmeri ha scritto: > Il marted? 14 luglio 2009 18:48:32 Szenogr?di Norbert ha scritto: > > Hi, > > > > > > Can anyone help to me with subject? > > > > regards, Sevoir > > Where is your script? Is it in your project folder? > Let's say it's in your project folder and is called "thescript.sh" > > DIM sShellScript AS String > > 'Define the destination of your script > > sDestDirectory = "destinationdirectory" > > 'Copy the script to it's destination > > COPY "thescript.sh" TO sDestDirectory &/ "thescript.sh" > > 'Then run the script within the final directory > > SHELL "cd " & sDestDirectory & "; ./thescript.sh" WAIT > Errata corrige (first declaration): DIM sDestDirectory AS String 'Define the destination of your script sDestDirectory = "destinationdirectory" 'Copy the script to it's destination COPY "thescript.sh" TO sDestDirectory &/ "thescript.sh" 'Then run the script within the final directory SHELL "cd " & sDestDirectory & "; ./thescript.sh" WAIT > > ------------------------------------------------------------------------- > >-- --- Enter the BlackBerry Developer Challenge > > This is your chance to win up to $100,000 in prizes! For a limited time, > > vendors submitting new applications to BlackBerry App World(TM) will have > > the opportunity to enter the BlackBerry Developer Challenge. See full > > prize details at: http://p.sf.net/sfu/Challenge > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jul 15 10:47:40 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 15 Jul 2009 10:47:40 +0200 Subject: [Gambas-user] Bugs in TextLabel In-Reply-To: <24491183.post@...1379...> References: <24491183.post@...1379...> Message-ID: <200907151047.40663.gambas@...1...> > gambas 2.14 qt > > 1. create a project > 2. drag picturebox into the form and select a png picture (make sure at > least 400x400) > 3. drag a textlabel on top of the picture > 4. test that you can select the picture box control or textlabel by click > on them > 5. change the transparent on textlabel to true > > notice that you now can't click on the textlabel any more , even if you > try to send the picturebox to background . > this problem only occur when you set the textlabel transparent to true When a Label or TextLabel is set to transparent, it is assigned a window mask so that what is not approximatively the text is not hidden by the background. Consequently, you can only select the control by clicking exactly on the text. Regards, -- Beno?t From kobolds at ...2041... Wed Jul 15 11:21:46 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 15 Jul 2009 02:21:46 -0700 (PDT) Subject: [Gambas-user] How to specify action button at runtime Message-ID: <24494522.post@...1379...> Hi, I try create button at run time but I having trouble to set the click action. here my code DIM m_MaxCol AS Integer = 5 DIM m_button AS Button DIM m_MaxBut AS Integer = 18 DIM m_Colcnt AS Integer = 0 DIM m_Rowcnt AS Integer = 0 DIM m_butcnt AS Integer = 0 DIM m_Colgap AS Integer = 2 DIM m_Rowgap AS Integer = 2 DIM m_ButHeight AS Integer = 128 DIM m_ButWidth AS Integer = 128 WHILE m_butcnt < m_MaxBut FOR m_Colcnt = 0 TO m_MaxCol - 1 m_button = NEW Button(ScrollView1) WITH m_button .x = (m_Colcnt * (m_ButWidth + m_Colgap)) .y = (m_Rowcnt * (m_ButHeight + m_Rowgap)) .Height = m_ButHeight .Width = m_ButWidth .Text = m_Rowcnt & ", " & m_Colcnt END WITH m_butcnt += 1 IF m_butcnt >= m_MaxBut THEN BREAK ENDIF NEXT m_Rowcnt += 1 WEND my problem now is how to set the click action and how to know which button is clicking -- View this message in context: http://www.nabble.com/How-to-specify-action-button-at-runtime-tp24494522p24494522.html Sent from the gambas-user mailing list archive at Nabble.com. From sevoir75 at ...626... Wed Jul 15 11:25:48 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Wed, 15 Jul 2009 11:25:48 +0200 Subject: [Gambas-user] how can I run my Shell script in a directory? In-Reply-To: <200907151042.31603.rospolosco@...152...> References: <1247590112.6662.1.camel@...1964...> <200907151036.06283.rospolosco@...152...> <200907151042.31603.rospolosco@...152...> Message-ID: <1247649948.6835.1.camel@...1964...> Hi, thanks. regards, Sevoir 2009. 07. 15, szerda keltez?ssel 10.42-kor Stefano Palmeri ezt ?rta: > Il mercoled? 15 luglio 2009 10:36:05 Stefano Palmeri ha scritto: > > Il marted? 14 luglio 2009 18:48:32 Szenogr?di Norbert ha scritto: > > > Hi, > > > > > > > > > Can anyone help to me with subject? > > > > > > regards, Sevoir > > > > Where is your script? Is it in your project folder? > > Let's say it's in your project folder and is called "thescript.sh" > > > > DIM sShellScript AS String > > > > 'Define the destination of your script > > > > sDestDirectory = "destinationdirectory" > > > > 'Copy the script to it's destination > > > > COPY "thescript.sh" TO sDestDirectory &/ "thescript.sh" > > > > 'Then run the script within the final directory > > > > SHELL "cd " & sDestDirectory & "; ./thescript.sh" WAIT > > > > Errata corrige (first declaration): > > DIM sDestDirectory AS String > > 'Define the destination of your script > > sDestDirectory = "destinationdirectory" > > 'Copy the script to it's destination > > COPY "thescript.sh" TO sDestDirectory &/ "thescript.sh" > > 'Then run the script within the final directory > > SHELL "cd " & sDestDirectory & "; ./thescript.sh" WAIT > > > > > > > > > > > > ------------------------------------------------------------------------- > > >-- --- Enter the BlackBerry Developer Challenge > > > This is your chance to win up to $100,000 in prizes! For a limited time, > > > vendors submitting new applications to BlackBerry App World(TM) will have > > > the opportunity to enter the BlackBerry Developer Challenge. See full > > > prize details at: http://p.sf.net/sfu/Challenge > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > --------------------------------------------------------------------------- > >--- Enter the BlackBerry Developer Challenge > > This is your chance to win up to $100,000 in prizes! For a limited time, > > vendors submitting new applications to BlackBerry App World(TM) will have > > the opportunity to enter the BlackBerry Developer Challenge. See full prize > > details at: http://p.sf.net/sfu/Challenge > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Wed Jul 15 11:28:49 2009 From: ron at ...1740... (Ron) Date: Wed, 15 Jul 2009 11:28:49 +0200 Subject: [Gambas-user] How to specify action button at runtime In-Reply-To: <24494522.post@...1379...> References: <24494522.post@...1379...> Message-ID: <4A5DA151.7060306@...1740...> kobolds wrote: > Hi, > > I try create button at run time but I having trouble to set the click > action. > here my code > > DIM m_MaxCol AS Integer = 5 > DIM m_button AS Button > DIM m_MaxBut AS Integer = 18 > DIM m_Colcnt AS Integer = 0 > DIM m_Rowcnt AS Integer = 0 > DIM m_butcnt AS Integer = 0 > DIM m_Colgap AS Integer = 2 > DIM m_Rowgap AS Integer = 2 > DIM m_ButHeight AS Integer = 128 > DIM m_ButWidth AS Integer = 128 > > WHILE m_butcnt < m_MaxBut > > FOR m_Colcnt = 0 TO m_MaxCol - 1 > m_button = NEW Button(ScrollView1) > WITH m_button > .x = (m_Colcnt * (m_ButWidth + m_Colgap)) > .y = (m_Rowcnt * (m_ButHeight + m_Rowgap)) > .Height = m_ButHeight > .Width = m_ButWidth > .Text = m_Rowcnt & ", " & m_Colcnt > > END WITH > > > m_butcnt += 1 > IF m_butcnt >= m_MaxBut THEN > BREAK > ENDIF > NEXT > > m_Rowcnt += 1 > > WEND > > my problem now is how to set the click action and how to know which button > is clicking > > > > Use this instead: m_button = NEW Button(ScrollView1) AS "MyButton" Set the .Tag property to something unique: .Tag = iUnique And then catch the clicks with: PUBLIC SUB MyButton_Click() Message.Info("Clicked : " & LAST.tag) END Regards, Ron_2nd. From kobolds at ...2041... Wed Jul 15 11:36:57 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 15 Jul 2009 02:36:57 -0700 (PDT) Subject: [Gambas-user] Bugs in TextLabel In-Reply-To: <200907151047.40663.gambas@...1...> References: <24491183.post@...1379...> <200907151047.40663.gambas@...1...> Message-ID: <24494678.post@...1379...> Beno?t Minisini wrote: > >> gambas 2.14 qt >> >> 1. create a project >> 2. drag picturebox into the form and select a png picture (make sure at >> least 400x400) >> 3. drag a textlabel on top of the picture >> 4. test that you can select the picture box control or textlabel by click >> on them >> 5. change the transparent on textlabel to true >> >> notice that you now can't click on the textlabel any more , even if you >> try to send the picturebox to background . >> this problem only occur when you set the textlabel transparent to true > > When a Label or TextLabel is set to transparent, it is assigned a window > mask > so that what is not approximatively the text is not hidden by the > background. > Consequently, you can only select the control by clicking exactly on the > text. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > you're right . have to click exactly at the text . is it possible to improve this part cause it is difficult to do that . I have to click few times . -- View this message in context: http://www.nabble.com/Bugs-in-TextLabel-tp24491183p24494678.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Wed Jul 15 11:43:23 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 15 Jul 2009 02:43:23 -0700 (PDT) Subject: [Gambas-user] How to specify action button at runtime In-Reply-To: <4A5DA151.7060306@...1740...> References: <24494522.post@...1379...> <4A5DA151.7060306@...1740...> Message-ID: <24494789.post@...1379...> Ron Klinkien wrote: > > kobolds wrote: >> Hi, >> >> I try create button at run time but I having trouble to set the click >> action. >> here my code >> >> DIM m_MaxCol AS Integer = 5 >> DIM m_button AS Button >> DIM m_MaxBut AS Integer = 18 >> DIM m_Colcnt AS Integer = 0 >> DIM m_Rowcnt AS Integer = 0 >> DIM m_butcnt AS Integer = 0 >> DIM m_Colgap AS Integer = 2 >> DIM m_Rowgap AS Integer = 2 >> DIM m_ButHeight AS Integer = 128 >> DIM m_ButWidth AS Integer = 128 >> >> WHILE m_butcnt < m_MaxBut >> >> FOR m_Colcnt = 0 TO m_MaxCol - 1 >> m_button = NEW Button(ScrollView1) >> WITH m_button >> .x = (m_Colcnt * (m_ButWidth + m_Colgap)) >> .y = (m_Rowcnt * (m_ButHeight + m_Rowgap)) >> .Height = m_ButHeight >> .Width = m_ButWidth >> .Text = m_Rowcnt & ", " & m_Colcnt >> >> END WITH >> >> >> m_butcnt += 1 >> IF m_butcnt >= m_MaxBut THEN >> BREAK >> ENDIF >> NEXT >> >> m_Rowcnt += 1 >> >> WEND >> >> my problem now is how to set the click action and how to know which >> button >> is clicking >> >> >> >> > > Use this instead: > > m_button = NEW Button(ScrollView1) AS "MyButton" > > Set the .Tag property to something unique: > > .Tag = iUnique > > And then catch the clicks with: > > PUBLIC SUB MyButton_Click() > Message.Info("Clicked : " & LAST.tag) > END > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks so much -- View this message in context: http://www.nabble.com/How-to-specify-action-button-at-runtime-tp24494522p24494789.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Wed Jul 15 11:40:03 2009 From: ron at ...1740... (Ron) Date: Wed, 15 Jul 2009 11:40:03 +0200 Subject: [Gambas-user] Bugs in TextLabel In-Reply-To: <24494678.post@...1379...> References: <24491183.post@...1379...> <200907151047.40663.gambas@...1...> <24494678.post@...1379...> Message-ID: <4A5DA3F3.4090805@...1740...> kobolds wrote: > > Beno?t Minisini wrote: > >>> gambas 2.14 qt >>> >>> 1. create a project >>> 2. drag picturebox into the form and select a png picture (make sure at >>> least 400x400) >>> 3. drag a textlabel on top of the picture >>> 4. test that you can select the picture box control or textlabel by click >>> on them >>> 5. change the transparent on textlabel to true >>> >>> notice that you now can't click on the textlabel any more , even if you >>> try to send the picturebox to background . >>> this problem only occur when you set the textlabel transparent to true >>> >> When a Label or TextLabel is set to transparent, it is assigned a window >> mask >> so that what is not approximatively the text is not hidden by the >> background. >> Consequently, you can only select the control by clicking exactly on the >> text. >> >> Regards, >> >> -- >> Beno?t >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full >> prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > you're right . have to click exactly at the text . is it possible to > improve this part cause it is difficult to do that . I have to click few > times . > > > > You can always select a hidden item via the Hierarchy tab on the right. But you have to know its name, it helped me a few times. Regards, Ron_2nd. From kobolds at ...2041... Wed Jul 15 14:31:02 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 15 Jul 2009 05:31:02 -0700 (PDT) Subject: [Gambas-user] How to specify action button at runtime In-Reply-To: <4A5DA151.7060306@...1740...> References: <24494522.post@...1379...> <4A5DA151.7060306@...1740...> Message-ID: <24496913.post@...1379...> Ron Klinkien wrote: > > kobolds wrote: >> Hi, >> >> I try create button at run time but I having trouble to set the click >> action. >> here my code >> >> DIM m_MaxCol AS Integer = 5 >> DIM m_button AS Button >> DIM m_MaxBut AS Integer = 18 >> DIM m_Colcnt AS Integer = 0 >> DIM m_Rowcnt AS Integer = 0 >> DIM m_butcnt AS Integer = 0 >> DIM m_Colgap AS Integer = 2 >> DIM m_Rowgap AS Integer = 2 >> DIM m_ButHeight AS Integer = 128 >> DIM m_ButWidth AS Integer = 128 >> >> WHILE m_butcnt < m_MaxBut >> >> FOR m_Colcnt = 0 TO m_MaxCol - 1 >> m_button = NEW Button(ScrollView1) >> WITH m_button >> .x = (m_Colcnt * (m_ButWidth + m_Colgap)) >> .y = (m_Rowcnt * (m_ButHeight + m_Rowgap)) >> .Height = m_ButHeight >> .Width = m_ButWidth >> .Text = m_Rowcnt & ", " & m_Colcnt >> >> END WITH >> >> >> m_butcnt += 1 >> IF m_butcnt >= m_MaxBut THEN >> BREAK >> ENDIF >> NEXT >> >> m_Rowcnt += 1 >> >> WEND >> >> my problem now is how to set the click action and how to know which >> button >> is clicking >> >> >> >> > > Use this instead: > > m_button = NEW Button(ScrollView1) AS "MyButton" > > Set the .Tag property to something unique: > > .Tag = iUnique > > And then catch the clicks with: > > PUBLIC SUB MyButton_Click() > Message.Info("Clicked : " & LAST.tag) > END > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > By the way , how do I delete all the button in the scroll view. -- View this message in context: http://www.nabble.com/How-to-specify-action-button-at-runtime-tp24494522p24496913.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Wed Jul 15 15:17:23 2009 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 15 Jul 2009 09:17:23 -0400 Subject: [Gambas-user] PictureDatabase with PostgreSQL In-Reply-To: <200907150756.49252.rterry@...1946...> References: <200907141407.28352.pinozollo@...626...> <200907150756.49252.rterry@...1946...> Message-ID: <200907150917.23627.pinozollo@...626...> Il marted? 14 luglio 2009 17:56:49 richard terry ha scritto: > Hope this helps. > > Regards > > Richard Thanks Richard, yes it helps....now I am going to put it into the PictureDatabase program. So actually the stream of byte is converted to octal to avoid coding problem. Is there also some reversing function ? By the time I was reading the PosgreSQL documentation. There it explains a totally different way of handling blobs. They use the internal function pg_lo_import to import into the DB a large object. This returns a pointer OID that is actually written into the db table. I am going to experiments both ways...I will let you know how it goes. Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From ron at ...1740... Wed Jul 15 17:14:53 2009 From: ron at ...1740... (Ron) Date: Wed, 15 Jul 2009 17:14:53 +0200 Subject: [Gambas-user] How to specify action button at runtime In-Reply-To: <24496913.post@...1379...> References: <24494522.post@...1379...> <4A5DA151.7060306@...1740...> <24496913.post@...1379...> Message-ID: <4A5DF26D.7050907@...1740...> > >>> my problem now is how to set the click action and how to know which >>> button >>> is clicking >>> >>> >> Use this instead: >> >> m_button = NEW Button(ScrollView1) AS "MyButton" >> >> Set the .Tag property to something unique: >> >> .Tag = iUnique >> >> And then catch the clicks with: >> >> PUBLIC SUB MyButton_Click() >> Message.Info("Clicked : " & LAST.tag) >> END >> >> >> By the way , how do I delete all the button in the scroll view. >> Maybe with something like this: (note: this will delete all children so maybe also non button objects) DIM oObject AS Object FOR EACH oObject IN Scrollview1.Children oObject.Delete() NEXT Regards, Ron_2nd. From gambas at ...1... Wed Jul 15 17:55:18 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 15 Jul 2009 17:55:18 +0200 Subject: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving... In-Reply-To: <4A5CA069.9050503@...981...> References: <4A5CA069.9050503@...981...> Message-ID: <200907151755.18227.gambas@...1...> > Forgot the darn attachment... I HATE when I do that. Hi Stephen, The bug was fixed in revision #2125. Every control having scroll bars had the same problem. -- Beno?t From kobolds at ...2041... Wed Jul 15 23:57:55 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 15 Jul 2009 14:57:55 -0700 (PDT) Subject: [Gambas-user] How to specify action button at runtime In-Reply-To: <4A5DF26D.7050907@...1740...> References: <24494522.post@...1379...> <4A5DA151.7060306@...1740...> <24496913.post@...1379...> <4A5DF26D.7050907@...1740...> Message-ID: <24506680.post@...1379...> Ron Klinkien wrote: > > >> >>>> my problem now is how to set the click action and how to know which >>>> button >>>> is clicking >>>> >>>> >>> Use this instead: >>> >>> m_button = NEW Button(ScrollView1) AS "MyButton" >>> >>> Set the .Tag property to something unique: >>> >>> .Tag = iUnique >>> >>> And then catch the clicks with: >>> >>> PUBLIC SUB MyButton_Click() >>> Message.Info("Clicked : " & LAST.tag) >>> END >>> >>> > >>> By the way , how do I delete all the button in the scroll view. >>> > Maybe with something like this: (note: this will delete all children so > maybe also non button objects) > > DIM oObject AS Object > > FOR EACH oObject IN Scrollview1.Children > oObject.Delete() > NEXT > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > thanks -- View this message in context: http://www.nabble.com/How-to-specify-action-button-at-runtime-tp24494522p24506680.html Sent from the gambas-user mailing list archive at Nabble.com. From 12ukwn at ...626... Thu Jul 16 00:16:55 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 16 Jul 2009 00:16:55 +0200 Subject: [Gambas-user] PB in GTK Message-ID: <4A5E5557.50608@...626...> Hi, I've got a PB on display with GTK: on a DataBrowse some fields have a 0 width and thus are hidden, under Qt display is Ok, under Gtk I found all hidden fields' names in the header. The police isn't respected either. JY PS: Sorry for the attachment, but talking graphics... -- -------------- next part -------------- A non-text attachment was scrubbed... Name: form_qt.png Type: image/png Size: 5736 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: form_gtk.png Type: image/png Size: 7826 bytes Desc: not available URL: From pinozollo at ...626... Thu Jul 16 02:11:44 2009 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 15 Jul 2009 20:11:44 -0400 Subject: [Gambas-user] PictureDatabase with PostgreSQL In-Reply-To: <200907160809.51138.rterry@...1946...> References: <200907141407.28352.pinozollo@...626...> <200907150917.23627.pinozollo@...626...> <200907160809.51138.rterry@...1946...> Message-ID: <200907152011.45089.pinozollo@...626...> Il mercoled? 15 luglio 2009 18:09:51 richard terry ha scritto: > > By the time I was reading the PosgreSQL ?documentation. There it explains > > a totally different way of handling blobs. > > > > They use the internal function pg_lo_import to import into the DB a large > > object. > > This returns a pointer OID that is actually written into the db table. > > > > I am going to experiments both ways...I will let you know how it goes. > > Please do. Hi Richard... I made it ! ...it took me few hours but finally I could modify the example to work well also with PosgreSQL ! It is left just the 'Delete' function which, not only has to delete the data's from the table but also the images from their repository. I will polish a little bit and then put all on my site for general downloading... Just for your curiosity....only one SQL instruction is used for storing the image and the thumb one: ResultPictures = databaseConnection.Exec("INSERT INTO pictures (description, image, thumb) VALUES ('" & Descr & "', lo_import('" & ImagePath & "'), lo_import('" & tempFile & "') )") where image and thumb are of type 'oid' ...and for retrieving one per image ResultOID = ModuleDatabase.databaseConnection.Exec("SELECT lo_export(" & Str(oid_im) & ",'" & tempFile & "') ;") Best regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From kobolds at ...2041... Thu Jul 16 02:19:50 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 15 Jul 2009 17:19:50 -0700 (PDT) Subject: [Gambas-user] ButtonView Message-ID: <24508131.post@...1379...> I decide to share this with everyone . this will be useful for people develop program for touchscreen . let me know you opinion http://www.nabble.com/file/p24508131/snapshot2.png http://www.nabble.com/file/p24508131/test.zip test.zip -- View this message in context: http://www.nabble.com/ButtonView-tp24508131p24508131.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Jul 16 04:29:50 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 16 Jul 2009 04:29:50 +0200 Subject: [Gambas-user] PB in GTK In-Reply-To: <4A5E5557.50608@...626...> References: <4A5E5557.50608@...626...> Message-ID: <200907160429.50548.gambas@...1...> > Hi, > > I've got a PB on display with GTK: on a DataBrowse some fields have a 0 > width and thus are hidden, under Qt display is Ok, under Gtk I found all > hidden fields' names in the header. > > The police isn't respected either. > > JY > > PS: Sorry for the attachment, but talking graphics... Are you displaying a specific table? Can you send me the SQL definition of the table? How you created it and the database driver you used? -- Beno?t From 12ukwn at ...626... Thu Jul 16 04:52:00 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 16 Jul 2009 04:52:00 +0200 Subject: [Gambas-user] PB in GTK In-Reply-To: <200907160429.50548.gambas@...1...> References: <4A5E5557.50608@...626...> <200907160429.50548.gambas@...1...> Message-ID: <4A5E95D0.4020500@...626...> Beno?t Minisini a ?crit : >> Hi, >> >> I've got a PB on display with GTK: on a DataBrowse some fields have a 0 >> width and thus are hidden, under Qt display is Ok, under Gtk I found all >> hidden fields' names in the header. >> >> The police isn't respected either. >> >> JY >> >> PS: Sorry for the attachment, but talking graphics... > > Are you displaying a specific table? Yep > Can you send me the SQL definition of the table? CREATE DOMAIN DA_LABEL_S AS VARCHAR(6) NOT NULL CHECK(char_length(VALUE) > 0); CREATE TABLE civility ( id SERIAL UNIQUE PRIMARY KEY, label DA_LABEL_S UNIQUE, front BOOLEAN NOT NULL DEFAULT TRUE, date_cre DD_TS NOT NULL DEFAULT now(), date_mod DD_TS DEFAULT NULL, mri_user_cre INTEGER NOT NULL, mri_user_mod INTEGER DEFAULT NULL ) WITHOUT OIDS; > How you created it and the database driver you used? CREATED: sql text script (same syntax than above) DRV: postgresql PG VER.: 8.3.7-0lenny1 BROCHETTE VER.: 2.13.1-1 (package Debian sid) JY -- From gambas at ...1... Thu Jul 16 04:59:53 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 16 Jul 2009 04:59:53 +0200 Subject: [Gambas-user] PB in GTK In-Reply-To: <4A5E95D0.4020500@...626...> References: <4A5E5557.50608@...626...> <200907160429.50548.gambas@...1...> <4A5E95D0.4020500@...626...> Message-ID: <200907160459.54015.gambas@...1...> > Beno?t Minisini a ?crit : > >> Hi, > >> > >> I've got a PB on display with GTK: on a DataBrowse some fields have a 0 > >> width and thus are hidden, under Qt display is Ok, under Gtk I found all > >> hidden fields' names in the header. > >> > >> The police isn't respected either. > >> > >> JY > >> > >> PS: Sorry for the attachment, but talking graphics... > > > > Are you displaying a specific table? > > Yep > > > Can you send me the SQL definition of the table? > > CREATE DOMAIN DA_LABEL_S AS VARCHAR(6) > NOT NULL CHECK(char_length(VALUE) > 0); > > CREATE TABLE civility ( > id SERIAL UNIQUE PRIMARY KEY, > label DA_LABEL_S UNIQUE, > front BOOLEAN NOT NULL DEFAULT TRUE, > date_cre DD_TS NOT NULL DEFAULT now(), > date_mod DD_TS DEFAULT NULL, > mri_user_cre INTEGER NOT NULL, > mri_user_mod INTEGER DEFAULT NULL > ) WITHOUT OIDS; > > > How you created it and the database driver you used? > > CREATED: sql text script (same syntax than above) > DRV: postgresql > PG VER.: 8.3.7-0lenny1 > BROCHETTE VER.: 2.13.1-1 (package Debian sid) > > JY Can you provide me the code too ? -- Beno?t From 12ukwn at ...626... Thu Jul 16 05:34:36 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 16 Jul 2009 05:34:36 +0200 Subject: [Gambas-user] PB in GTK In-Reply-To: <200907160459.54015.gambas@...1...> References: <4A5E5557.50608@...626...> <200907160429.50548.gambas@...1...> <4A5E95D0.4020500@...626...> <200907160459.54015.gambas@...1...> Message-ID: <4A5E9FCC.9040509@...626...> Beno?t Minisini a ?crit : >> Beno?t Minisini a ?crit : >>>> Hi, >>>> >>>> I've got a PB on display with GTK: on a DataBrowse some fields have a 0 >>>> width and thus are hidden, under Qt display is Ok, under Gtk I found all >>>> hidden fields' names in the header. >>>> >>>> The police isn't respected either. >>>> >>>> JY >>>> >>>> PS: Sorry for the attachment, but talking graphics... >>> Are you displaying a specific table? >> Yep >> >>> Can you send me the SQL definition of the table? >> CREATE DOMAIN DA_LABEL_S AS VARCHAR(6) >> NOT NULL CHECK(char_length(VALUE) > 0); >> >> CREATE TABLE civility ( >> id SERIAL UNIQUE PRIMARY KEY, >> label DA_LABEL_S UNIQUE, >> front BOOLEAN NOT NULL DEFAULT TRUE, >> date_cre DD_TS NOT NULL DEFAULT now(), >> date_mod DD_TS DEFAULT NULL, >> mri_user_cre INTEGER NOT NULL, >> mri_user_mod INTEGER DEFAULT NULL >> ) WITHOUT OIDS; >> >>> How you created it and the database driver you used? >> CREATED: sql text script (same syntax than above) >> DRV: postgresql >> PG VER.: 8.3.7-0lenny1 >> BROCHETTE VER.: 2.13.1-1 (package Debian sid) >> >> JY > > Can you provide me the code too ? form & class attached -- -------------- next part -------------- # Gambas Form File 2.0 { Form Form MoveScaled(0,0,34,45) Text = ("") { datsrcCiv DataSource MoveScaled(0,0,34,44) Table = "civility" { datbroCiv DataBrowser MoveScaled(1,3,32,29) Font = Font["Courier 10 Pitch"] Expand = True Control = False Columns = ["id", "label", "date_cre", "date_mod", "mri_user_cre", "mri_user_mod", "front"] } { ToolButtonNew ToolButton MoveScaled(1,0,3,3) ToolTip = ("Nouveau") Text = ("") Picture = Picture["Icons/document-new.png"] } { ToolButtonModif ToolButton MoveScaled(5,0,3,3) ToolTip = ("Modification") Text = ("") Picture = Picture["Icons/document-properties.png"] } { ToolButtonDelete ToolButton MoveScaled(9,0,3,3) ToolTip = ("Supprimer") Text = ("") Picture = Picture["Icons/edit-delete.png"] } { HBox_Inputs HBox MoveScaled(2,33,31,10) Enabled = False { VBox1 VBox MoveScaled(1,0,13,10) { Label1 Label MoveScaled(1,0,12,3) Text = ("Libell\xC3\xA9") } { Label2 Label MoveScaled(1,4,12,3) Text = ("Devant ?") } { Button1 Button MoveScaled(1,7,12,3) Text = ("&Annuler") } } { VBox2 VBox MoveScaled(15,0,15,10) { DataControl_Label DataControl MoveScaled(1,0,13,3) Field = "label" } { DataControl2 DataControl MoveScaled(1,4,8,3) Field = "front" } { Button2 Button MoveScaled(1,7,13,3) Text = ("&Ok") } } } } } -------------- next part -------------- A non-text attachment was scrubbed... Name: FCivility.class Type: application/java-vm Size: 1679 bytes Desc: not available URL: From gambas at ...1... Thu Jul 16 09:43:04 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 16 Jul 2009 09:43:04 +0200 Subject: [Gambas-user] PB in GTK In-Reply-To: <4A5E9FCC.9040509@...626...> References: <4A5E5557.50608@...626...> <200907160459.54015.gambas@...1...> <4A5E9FCC.9040509@...626...> Message-ID: <200907160943.04638.gambas@...1...> > Beno?t Minisini a ?crit : > >> Beno?t Minisini a ?crit : > >>>> Hi, > >>>> > >>>> I've got a PB on display with GTK: on a DataBrowse some fields have a > >>>> 0 width and thus are hidden, under Qt display is Ok, under Gtk I found > >>>> all hidden fields' names in the header. > >>>> > >>>> The police isn't respected either. > >>>> > >>>> JY > >>>> > >>>> PS: Sorry for the attachment, but talking graphics... > >>> > >>> Are you displaying a specific table? > >> > >> Yep > >> > >>> Can you send me the SQL definition of the table? > >> > >> CREATE DOMAIN DA_LABEL_S AS VARCHAR(6) > >> NOT NULL CHECK(char_length(VALUE) > 0); > >> > >> CREATE TABLE civility ( > >> id SERIAL UNIQUE PRIMARY KEY, > >> label DA_LABEL_S UNIQUE, > >> front BOOLEAN NOT NULL DEFAULT TRUE, > >> date_cre DD_TS NOT NULL DEFAULT now(), > >> date_mod DD_TS DEFAULT NULL, > >> mri_user_cre INTEGER NOT NULL, > >> mri_user_mod INTEGER DEFAULT NULL > >> ) WITHOUT OIDS; > >> > >>> How you created it and the database driver you used? > >> > >> CREATED: sql text script (same syntax than above) > >> DRV: postgresql > >> PG VER.: 8.3.7-0lenny1 > >> BROCHETTE VER.: 2.13.1-1 (package Debian sid) > >> > >> JY > > > > Can you provide me the code too ? > > form & class attached Things should be fixed in revision #2127. Regards, -- Beno?t From prog at ...2177... Thu Jul 16 18:49:52 2009 From: prog at ...2177... (craf) Date: Thu, 16 Jul 2009 12:49:52 -0400 Subject: [Gambas-user] IDE gambas in GNOME Message-ID: <1247762992.3588.0.camel@...651...> Hello. Are there plans for the Gambas IDE GNOME? Regards From gambas at ...1... Thu Jul 16 19:42:13 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 16 Jul 2009 19:42:13 +0200 Subject: [Gambas-user] IDE gambas in GNOME In-Reply-To: <1247762992.3588.0.camel@...651...> References: <1247762992.3588.0.camel@...651...> Message-ID: <200907161942.13967.gambas@...1...> > Hello. > > Are there plans for the Gambas IDE GNOME? > > Regards > Doesn't it run under Gnome? -- Beno?t From ronstk at ...239... Thu Jul 16 19:42:42 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 16 Jul 2009 19:42:42 +0200 Subject: [Gambas-user] PB in GTK In-Reply-To: <200907160943.04638.gambas@...1...> References: <4A5E5557.50608@...626...> <4A5E9FCC.9040509@...626...> <200907160943.04638.gambas@...1...> Message-ID: <200907161942.42407.ronstk@...239...> On Thursday 16 July 2009, Beno?t Minisini wrote: > > Beno?t Minisini a ?crit : > > >> Beno?t Minisini a ?crit : > > >>>> Hi, > > >>>> > > >>>> I've got a PB on display with GTK: on a DataBrowse some fields have a > > >>>> 0 width and thus are hidden, under Qt display is Ok, under Gtk I found > > >>>> all hidden fields' names in the header. > > >>>> > > >>>> The police isn't respected either. > > >>>> > > >>>> JY > > >>>> > > >>>> PS: Sorry for the attachment, but talking graphics... > > >>> > > >>> Are you displaying a specific table? > > >> > > >> Yep > > >> > > >>> Can you send me the SQL definition of the table? > > >> > > >> CREATE DOMAIN DA_LABEL_S AS VARCHAR(6) > > >> NOT NULL CHECK(char_length(VALUE) > 0); > > >> > > >> CREATE TABLE civility ( > > >> id SERIAL UNIQUE PRIMARY KEY, > > >> label DA_LABEL_S UNIQUE, > > >> front BOOLEAN NOT NULL DEFAULT TRUE, > > >> date_cre DD_TS NOT NULL DEFAULT now(), > > >> date_mod DD_TS DEFAULT NULL, > > >> mri_user_cre INTEGER NOT NULL, > > >> mri_user_mod INTEGER DEFAULT NULL > > >> ) WITHOUT OIDS; > > >> > > >>> How you created it and the database driver you used? > > >> > > >> CREATED: sql text script (same syntax than above) > > >> DRV: postgresql > > >> PG VER.: 8.3.7-0lenny1 > > >> BROCHETTE VER.: 2.13.1-1 (package Debian sid) > > >> > > >> JY > > > > > > Can you provide me the code too ? > > > > form & class attached > > Things should be fixed in revision #2127. > > Regards, > I just did look at the time stamp for the mail with attachment and yours Your answer is from 9:43 so you did not sleep last night or you are amazing good in finding and solve the problems. For one time it could be just lucky but I see many times this happens. :) For me it is you are simply good. One other point to make this statement is true for me is your project. It is the first I see that is using the m4 system the same way as with macro assemblers, as I did with i.e. M80/L80 and deriviates in the CP/M time and my homebuild Z80 computer. Its a very good example what can be done in C sources with real source code aside the usual compile and make scripts. I just had to say this. :) Best regards, Ron_1st -- 111.111111 x 111.111111 = not NULL From prog at ...2177... Thu Jul 16 20:13:52 2009 From: prog at ...2177... (craf) Date: Thu, 16 Jul 2009 14:13:52 -0400 Subject: [Gambas-user] IDE gambas in GNOME In-Reply-To: <200907161942.13967.gambas@...1...> References: <1247762992.3588.0.camel@...651...> <200907161942.13967.gambas@...1...> Message-ID: <1247768032.3592.2.camel@...651...> Benoit apologized, I said because of my bad bad English. I mean look at the IDE. Why not take the look of GNOME?. Apologies again. Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] IDE gambas in GNOME Fecha: Thu, 16 Jul 2009 19:42:13 +0200 > Hello. > > Are there plans for the Gambas IDE GNOME? > > Regards > Doesn't it run under Gnome? From gambas at ...1... Thu Jul 16 20:35:53 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 16 Jul 2009 20:35:53 +0200 Subject: [Gambas-user] IDE gambas in GNOME In-Reply-To: <1247768032.3592.2.camel@...651...> References: <1247762992.3588.0.camel@...651...> <200907161942.13967.gambas@...1...> <1247768032.3592.2.camel@...651...> Message-ID: <200907162035.53479.gambas@...1...> > Benoit apologized, I said because of my bad bad English. > I mean look at the IDE. Why not take the look of GNOME?. > Apologies again. > > Regards > Qt 4 can be configured to use GTK+ styles, so the development version of Gambas follows the Gnome look. I don't know if you can do the same for the stable version that uses Qt 3. Regards, -- Beno?t From prog at ...2177... Thu Jul 16 21:50:59 2009 From: prog at ...2177... (craf) Date: Thu, 16 Jul 2009 15:50:59 -0400 Subject: [Gambas-user] IDE gambas in GNOME In-Reply-To: <200907162035.53479.gambas@...1...> References: <1247762992.3588.0.camel@...651...> <200907161942.13967.gambas@...1...> <1247768032.3592.2.camel@...651...> <200907162035.53479.gambas@...1...> Message-ID: <1247773859.3602.3.camel@...651...> Thanks for your answer. Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] IDE gambas in GNOME Fecha: Thu, 16 Jul 2009 20:35:53 +0200 > Benoit apologized, I said because of my bad bad English. > I mean look at the IDE. Why not take the look of GNOME?. > Apologies again. > > Regards > Qt 4 can be configured to use GTK+ styles, so the development version of Gambas follows the Gnome look. I don't know if you can do the same for the stable version that uses Qt 3. Regards, From kobolds at ...2041... Fri Jul 17 06:23:28 2009 From: kobolds at ...2041... (kobolds) Date: Thu, 16 Jul 2009 21:23:28 -0700 (PDT) Subject: [Gambas-user] question on running Gambas Executable on others distro Message-ID: <24528381.post@...1379...> I have question on how to run my application on other distro . I create a demo live linux cd that primary just run my program without any desktop program in it . my question is 1. install gambas run time 2. install user create components 3. what else that will be need ? any guide will be good . -- View this message in context: http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24528381.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Fri Jul 17 10:28:13 2009 From: rterry at ...1946... (richard terry) Date: Fri, 17 Jul 2009 18:28:13 +1000 Subject: [Gambas-user] Ubuntu debs ? Message-ID: <200907171828.13690.rterry@...1946...> I don't use ubuntu but have a friend needing to use gambas 2.99 preferably a realy recent (with the new tree) changes. Any idea's Richard From Karl.Reinl at ...9... Fri Jul 17 11:02:53 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 17 Jul 2009 11:02:53 +0200 Subject: [Gambas-user] Ubuntu debs ? In-Reply-To: <200907171828.13690.rterry@...1946...> References: <200907171828.13690.rterry@...1946...> Message-ID: <1247821373.6383.1.camel@...40...> Am Freitag, den 17.07.2009, 18:28 +1000 schrieb richard terry: > I don't use ubuntu but have a friend needing to use gambas 2.99 preferably a > realy recent (with the new tree) changes. > > Any idea's > > Richard > you find at : http://gambasdoc.org/help/install/ubuntu For Hardy I use $ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libgnorba-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-openssl-dev libcurl3-dev libgtkglext1-dev libqt3-mt-dev kdebase-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev build-essential libbonobo2-dev libcos4-dev libomniorb4-dev firebird2.0-dev librsvg2-dev libpoppler-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libartsc0-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libarts1-dev kdelibs4-dev libffi4-dev libxtst-dev gettext for adding QT4 sudo apt-get install build-essential libqt4-dev kdebase-dev -- Amicalment Charlie From rterry at ...1946... Fri Jul 17 14:13:10 2009 From: rterry at ...1946... (richard terry) Date: Fri, 17 Jul 2009 22:13:10 +1000 Subject: [Gambas-user] Project Tree Feature Request Message-ID: <200907172213.10187.rterry@...1946...> Benoit, Taking into consideration large projects with many branches, any chance of an option on the popup tree menu (like in the picture) * collapse tree To shrink the whole tree back to its core directories? Regards richard -------------- next part -------------- A non-text attachment was scrubbed... Name: project_tree_feature_request.png Type: image/png Size: 109773 bytes Desc: not available URL: From gambas at ...1... Fri Jul 17 14:35:52 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 17 Jul 2009 14:35:52 +0200 Subject: [Gambas-user] Project Tree Feature Request In-Reply-To: <200907172213.10187.rterry@...1946...> References: <200907172213.10187.rterry@...1946...> Message-ID: <200907171435.52573.gambas@...1...> > Benoit, > > Taking into consideration large projects with many branches, any chance of > an option on the popup tree menu (like in the picture) > > * collapse tree > > To shrink the whole tree back to its core directories? > > > Regards > > richard Did you try the "Refresh" button or menu entry? -- Beno?t From pinozollo at ...626... Fri Jul 17 15:36:27 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 17 Jul 2009 09:36:27 -0400 Subject: [Gambas-user] PictureDatabase with PostgreSQL In-Reply-To: <200907160809.51138.rterry@...1946...> References: <200907141407.28352.pinozollo@...626...> <200907150917.23627.pinozollo@...626...> <200907160809.51138.rterry@...1946...> Message-ID: <200907170936.27198.pinozollo@...626...> Il mercoled? 15 luglio 2009 18:09:51 richard terry ha scritto: > > By the time I was reading the PosgreSQL ?documentation. There it explains > > a totally different way of handling blobs. > > > > They use the internal function pg_lo_import to import into the DB a large > > object. > > This returns a pointer OID that is actually written into the db table. > > > > I am going to experiments both ways...I will let you know how it goes. > > Please do. Hi Richards and friends of the list, On http://www.qsl.net/zp4kfx/Linux/GAMBAS I have uploaded a version of the example PictureDatabase that works with PosgreSQL using its OID. The code is quick and dirty but works... Some good soul might wish to clean it and, maybe, let it use more GAMBAS DB functions. It just takes to change the hardcoded user and password. Best regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas.fr at ...626... Fri Jul 17 16:19:55 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 17 Jul 2009 16:19:55 +0200 Subject: [Gambas-user] question on running Gambas Executable on others distro In-Reply-To: <24528381.post@...1379...> References: <24528381.post@...1379...> Message-ID: <6324a42a0907170719r508bdc4bgb49df371990ef50e@...627...> qt or/and gtk, curl, database, poppler(pdf)... and anything else 2009/7/17 kobolds : > > I have question on how to run my application on other distro . I create a > demo live linux cd that primary just run my program without any desktop > program in it . > > my question is > 1. install gambas run time > 2. install user create components > 3. what else ?that will be need ? > > any guide will be good . > > > > > -- > View this message in context: http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24528381.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rsalas.match at ...626... Fri Jul 17 18:07:30 2009 From: rsalas.match at ...626... (Rafael Salas) Date: Fri, 17 Jul 2009 18:07:30 +0200 Subject: [Gambas-user] problem using SQLITE3 and string fields Message-ID: <72e8f6e60907170907o1d8a4fb5y367bbd6d7eada8b0@...627...> > Hi all, > > I'm trying to read the f-spot database to add some tools to this program. I > write few lines in gambas and everything worked fine but no the access to >> string fields. this is a part of the code: >> >> Con.Close() >> Con.Type = "sqlite" >> Con.Host = "/home/rsalas/.gnome2/f-spot/" >> Con.Name = "photos.db" >> TRY Con.Open() >> IF ERROR THEN >> Message.Error("Error al conectar a la base de datos.") >> Con = NULL >> ELSE >> TRY TablaFicheros = Con.Exec("SELECT photos. *, tags. * FROM (photos >> INNER JOIN photo_tags ON photos.Id = photo_tags.photo_id)INNER JOIN tags ON >> photo_tags.tag_id = tags.Id ") >> IF ERROR THEN >> Message.Error("Error al abrir hacer SELECT base de datos.") >> ELSE >> TablaFicheros.Movefirst() >> sFichero = TablaFicheros["uri"] >> txtFichero.text = sFichero >> ENDIF >> >> The line "sFichero = TablaFicheros["uri"]" gives the value "f" to sFichero >> but not the rest of the string. This doesn't happend with text fields. Can >> anyone help me on this? >> >> Thanks >> >> PS: Using gambas 2.8 on linux ubuntu 9.04 > >Can you get the real sqlite datatype of this field? > >-- >Beno?t sqlite> .schema photos CREATE TABLE photos ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, time INTEGER NOT NULL, uri STRING NOT NULL, description TEXT NOT NULL, roll_id INTEGER NOT NULL, default_version_id INTEGER NOT NULL, rating INTEGER NULL, md5_sum TEXT NULL ); CREATE INDEX idx_photos_roll_id ON photos(roll_id); sqlite> uri is a string with the path name of the file From gambas at ...1... Fri Jul 17 19:02:00 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 17 Jul 2009 19:02:00 +0200 Subject: [Gambas-user] problem using SQLITE3 and string fields In-Reply-To: <72e8f6e60907170907o1d8a4fb5y367bbd6d7eada8b0@...627...> References: <72e8f6e60907170907o1d8a4fb5y367bbd6d7eada8b0@...627...> Message-ID: <200907171902.00147.gambas@...1...> > > Hi all, > > > > I'm trying to read the f-spot database to add some tools to this program. > > I > > > write few lines in gambas and everything worked fine but no the access to > > > >> string fields. this is a part of the code: > >> > >> Con.Close() > >> Con.Type = "sqlite" > >> Con.Host = "/home/rsalas/.gnome2/f-spot/" > >> Con.Name = "photos.db" > >> TRY Con.Open() > >> IF ERROR THEN > >> Message.Error("Error al conectar a la base de datos.") > >> Con = NULL > >> ELSE > >> TRY TablaFicheros = Con.Exec("SELECT photos. *, tags. * FROM (photos > >> INNER JOIN photo_tags ON photos.Id = photo_tags.photo_id)INNER JOIN tags > > ON > > >> photo_tags.tag_id = tags.Id ") > >> IF ERROR THEN > >> Message.Error("Error al abrir hacer SELECT base de datos.") > >> ELSE > >> TablaFicheros.Movefirst() > >> sFichero = TablaFicheros["uri"] > >> txtFichero.text = sFichero > >> ENDIF > >> > >> The line "sFichero = TablaFicheros["uri"]" gives the value "f" to > > sFichero > > >> but not the rest of the string. This doesn't happend with text fields. > > Can > > >> anyone help me on this? > >> > >> Thanks > >> > >> PS: Using gambas 2.8 on linux ubuntu 9.04 > > > >Can you get the real sqlite datatype of this field? > > > >-- > >Beno?t > > sqlite> .schema photos > CREATE TABLE photos ( id INTEGER PRIMARY KEY > AUTOINCREMENT NOT NULL, time INTEGER NOT NULL, > uri STRING NOT NULL, description TEXT NOT > NULL, roll_id INTEGER NOT NULL, > default_version_id INTEGER NOT NULL, rating INTEGER > NULL, md5_sum TEXT NULL ); > CREATE INDEX idx_photos_roll_id ON photos(roll_id); > sqlite> > > > uri is a string with the path name of the file I can read the uri correctly with Gambas 3. I will check with Gambas 2... -- Beno?t From gambas at ...1... Fri Jul 17 19:06:34 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 17 Jul 2009 19:06:34 +0200 Subject: [Gambas-user] problem using SQLITE3 and string fields In-Reply-To: <200907171902.00147.gambas@...1...> References: <72e8f6e60907170907o1d8a4fb5y367bbd6d7eada8b0@...627...> <200907171902.00147.gambas@...1...> Message-ID: <200907171906.34591.gambas@...1...> > > > Hi all, > > > > > > I'm trying to read the f-spot database to add some tools to this > > > program. > > > > I > > > > > write few lines in gambas and everything worked fine but no the access > > > to > > > > > >> string fields. this is a part of the code: > > >> > > >> Con.Close() > > >> Con.Type = "sqlite" > > >> Con.Host = "/home/rsalas/.gnome2/f-spot/" > > >> Con.Name = "photos.db" > > >> TRY Con.Open() > > >> IF ERROR THEN > > >> Message.Error("Error al conectar a la base de datos.") > > >> Con = NULL > > >> ELSE > > >> TRY TablaFicheros = Con.Exec("SELECT photos. *, tags. * FROM (photos > > >> INNER JOIN photo_tags ON photos.Id = photo_tags.photo_id)INNER JOIN > > >> tags > > > > ON > > > > >> photo_tags.tag_id = tags.Id ") > > >> IF ERROR THEN > > >> Message.Error("Error al abrir hacer SELECT base de datos.") > > >> ELSE > > >> TablaFicheros.Movefirst() > > >> sFichero = TablaFicheros["uri"] > > >> txtFichero.text = sFichero > > >> ENDIF > > >> > > >> The line "sFichero = TablaFicheros["uri"]" gives the value "f" to > > > > sFichero > > > > >> but not the rest of the string. This doesn't happend with text fields. > > > > Can > > > > >> anyone help me on this? > > >> > > >> Thanks > > >> > > >> PS: Using gambas 2.8 on linux ubuntu 9.04 > > > > > >Can you get the real sqlite datatype of this field? > > > > > >-- > > >Beno?t > > > > sqlite> .schema photos > > CREATE TABLE photos ( id INTEGER PRIMARY KEY > > AUTOINCREMENT NOT NULL, time INTEGER NOT NULL, > > uri STRING NOT NULL, description TEXT > > NOT NULL, roll_id INTEGER NOT NULL, > > default_version_id INTEGER NOT NULL, rating > > INTEGER NULL, md5_sum TEXT NULL > > ); CREATE INDEX idx_photos_roll_id ON photos(roll_id); > > sqlite> > > > > > > uri is a string with the path name of the file > > I can read the uri correctly with Gambas 3. I will check with Gambas 2... I can read it with Gambas 2, so I think the bug has been fixed since. Try to upgrade to the latest release! Regards, -- Beno?t From kobolds at ...2041... Fri Jul 17 21:50:46 2009 From: kobolds at ...2041... (kobolds) Date: Fri, 17 Jul 2009 12:50:46 -0700 (PDT) Subject: [Gambas-user] question on running Gambas Executable on others distro In-Reply-To: <6324a42a0907170719r508bdc4bgb49df371990ef50e@...627...> References: <24528381.post@...1379...> <6324a42a0907170719r508bdc4bgb49df371990ef50e@...627...> Message-ID: <24540613.post@...1379...> Fabien Bodard-4 wrote: > > qt or/and gtk, curl, database, poppler(pdf)... and anything else > > 2009/7/17 kobolds : >> >> I have question on how to run my application on other distro . I create a >> demo live linux cd that primary just run my program without any desktop >> program in it . >> >> my question is >> 1. install gambas run time >> 2. install user create components >> 3. what else ?that will be need ? >> >> any guide will be good . >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24528381.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full >> prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > QT ,sqlite , pcre , xml , compress . . my plan is to create small linux live cd using puppy or dsl . my problem is with how to get gambas executable run . will it be easier if I compile install from source code ? is there clean way ? since I have no clue how todo that , any advice will be great. -- View this message in context: http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24540613.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Fri Jul 17 22:24:54 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 17 Jul 2009 16:24:54 -0400 Subject: [Gambas-user] How submit a project to Debian ? Message-ID: <200907171624.54559.pinozollo@...626...> Hi everybody, Did somebody submit a GAMBAS project to Debian distribution ? If yes which are the requisites ? Is it sufficient to send the Debian installation package produced by GAMBAS ? Thank you Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas.fr at ...626... Sat Jul 18 10:16:27 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 Jul 2009 10:16:27 +0200 Subject: [Gambas-user] question on running Gambas Executable on others distro In-Reply-To: <24540613.post@...1379...> References: <24528381.post@...1379...> <6324a42a0907170719r508bdc4bgb49df371990ef50e@...627...> <24540613.post@...1379...> Message-ID: <6324a42a0907180116vc23831al653e9dbcd3aedf9@...627...> http://www.gambasdoc.org/help/install 2009/7/17 kobolds : > > > > Fabien Bodard-4 wrote: >> >> qt or/and gtk, curl, database, poppler(pdf)... and anything else >> >> 2009/7/17 kobolds : >>> >>> I have question on how to run my application on other distro . I create a >>> demo live linux cd that primary just run my program without any desktop >>> program in it . >>> >>> my question is >>> 1. install gambas run time >>> 2. install user create components >>> 3. what else ?that will be need ? >>> >>> any guide will be good . >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24528381.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited time, >>> vendors submitting new applications to BlackBerry App World(TM) will have >>> the opportunity to enter the BlackBerry Developer Challenge. See full >>> prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full >> prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > QT ,sqlite , pcre , xml , compress . ?. > > my plan is to create small linux live cd using puppy or dsl ?. my problem is > with how to get gambas executable run . > > will it be easier if I compile install from source code ? is there clean way > ? > > since I have no clue how todo that , any advice will be great. > > -- > View this message in context: http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24540613.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kobolds at ...2041... Sat Jul 18 12:48:06 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 18 Jul 2009 03:48:06 -0700 (PDT) Subject: [Gambas-user] question on running Gambas Executable on others distro In-Reply-To: <6324a42a0907180116vc23831al653e9dbcd3aedf9@...627...> References: <24528381.post@...1379...> <6324a42a0907170719r508bdc4bgb49df371990ef50e@...627...> <24540613.post@...1379...> <6324a42a0907180116vc23831al653e9dbcd3aedf9@...627...> Message-ID: <24546661.post@...1379...> Fabien Bodard-4 wrote: > > http://www.gambasdoc.org/help/install > > 2009/7/17 kobolds : >> >> >> >> Fabien Bodard-4 wrote: >>> >>> qt or/and gtk, curl, database, poppler(pdf)... and anything else >>> >>> 2009/7/17 kobolds : >>>> >>>> I have question on how to run my application on other distro . I create >>>> a >>>> demo live linux cd that primary just run my program without any desktop >>>> program in it . >>>> >>>> my question is >>>> 1. install gambas run time >>>> 2. install user create components >>>> 3. what else ?that will be need ? >>>> >>>> any guide will be good . >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24528381.html >>>> Sent from the gambas-user mailing list archive at Nabble.com. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a limited >>>> time, >>>> vendors submitting new applications to BlackBerry App World(TM) will >>>> have >>>> the opportunity to enter the BlackBerry Developer Challenge. See full >>>> prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited time, >>> vendors submitting new applications to BlackBerry App World(TM) will >>> have >>> the opportunity to enter the BlackBerry Developer Challenge. See full >>> prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> >> QT ,sqlite , pcre , xml , compress . ?. >> >> my plan is to create small linux live cd using puppy or dsl ?. my problem >> is >> with how to get gambas executable run . >> >> will it be easier if I compile install from source code ? is there clean >> way >> ? >> >> since I have no clue how todo that , any advice will be great. >> >> -- >> View this message in context: >> http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24540613.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full >> prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I read that before but the distro is not on of those in the list . I think I have to explain my question more detail . how are we distribute our application written in gambas ? we can't expect that our target user know how to install gambas or compile it . shouldn't we have one gambas runtime rpm for all distro (something like java runtime) for N-users . -- View this message in context: http://www.nabble.com/question-on-running-Gambas-Executable-on-others-distro-tp24528381p24546661.html Sent from the gambas-user mailing list archive at Nabble.com. From joshiggins at ...1601... Sat Jul 18 13:47:43 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 18 Jul 2009 12:47:43 +0100 Subject: [Gambas-user] question on running Gambas Executable on others distro In-Reply-To: <24546661.post@...1379...> References: <24528381.post@...1379...> <6324a42a0907170719r508bdc4bgb49df371990ef50e@...627...> <24540613.post@...1379...> <6324a42a0907180116vc23831al653e9dbcd3aedf9@...627...> <24546661.post@...1379...> Message-ID: <4247f5440907180447g300c9971k15c1c58e9da84a9b@...627...> > > I think I have to explain my question more detail . how are we distribute > our application written in gambas ? we can't expect that our target user > know how to install gambas or compile it . The Gambas IDE can make packages for you for any distro. I create a > demo live linux cd that primary just run my program without any desktop > program in it . > I recommend using Ubuntu as a base for your live CD as the Gambas packages are easy to install, and the live CD is really easy to make. This page https://help.ubuntu.com/community/LiveCDCustomizationFromScratch details how to create a live cd using ubuntu from scratch, so it can be as minimal as you want. In short, you'll need xorg, openbox (or another window manager), and the gambas-runtime package. If you use the IDE to create a deb file, all the dependencies will be solved for you, so you just need to simply install it inside your live cd chroot. Hope this helps you. IMO its much easier than trying to remaster say damn small or puppy, and you won't end up with all the unwanted crap (like desktop environment). -- joshua higgins >>>>>>------ From rsalas.match at ...626... Sun Jul 19 10:10:31 2009 From: rsalas.match at ...626... (Rafael Salas) Date: Sun, 19 Jul 2009 10:10:31 +0200 Subject: [Gambas-user] problem using SQLITE3 and string fields Message-ID: <72e8f6e60907190110u693d5271hab0551312622b554@...627...> > > > Hi all, > > > > > > I'm trying to read the f-spot database to add some tools to this > > > program. > > > > I > > > > > write few lines in gambas and everything worked fine but no the access > > > to > > > > > >> string fields. this is a part of the code: > > >> > > >> Con.Close() > > >> Con.Type = "sqlite" > > >> Con.Host = "/home/rsalas/.gnome2/f-spot/" > > >> Con.Name = "photos.db" > > >> TRY Con.Open() > > >> IF ERROR THEN > > >> Message.Error("Error al conectar a la base de datos.") > > >> Con = NULL > > >> ELSE > > >> TRY TablaFicheros = Con.Exec("SELECT photos. *, tags. * FROM (photos > > >> INNER JOIN photo_tags ON photos.Id = photo_tags.photo_id)INNER JOIN > > >> tags > > > > ON > > > > >> photo_tags.tag_id = tags.Id ") > > >> IF ERROR THEN > > >> Message.Error("Error al abrir hacer SELECT base de datos.") > > >> ELSE > > >> TablaFicheros.Movefirst() > > >> sFichero = TablaFicheros["uri"] > > >> txtFichero.text = sFichero > > >> ENDIF > > >> > > >> The line "sFichero = TablaFicheros["uri"]" gives the value "f" to > > > > sFichero > > > > >> but not the rest of the string. This doesn't happend with text fields. > > > > Can > > > > >> anyone help me on this? > > >> > > >> Thanks > > >> > > >> PS: Using gambas 2.8 on linux ubuntu 9.04 > > > > > >Can you get the real sqlite datatype of this field? > > > > > >-- > > >Beno?t > > > > sqlite> .schema photos > > CREATE TABLE photos ( id INTEGER PRIMARY KEY > > AUTOINCREMENT NOT NULL, time INTEGER NOT NULL, > > uri STRING NOT NULL, description TEXT > > NOT NULL, roll_id INTEGER NOT NULL, > > default_version_id INTEGER NOT NULL, rating > > INTEGER NULL, md5_sum TEXT NULL > > ); CREATE INDEX idx_photos_roll_id ON photos(roll_id); > > sqlite> > > > > > > uri is a string with the path name of the file > > I can read the uri correctly with Gambas 3. I will check with Gambas 2... > >I can read it with Gambas 2, so I think the bug has been fixed since. Try to >upgrade to the latest release! > >Regards, Beno?t, thanks for your help 2.14 works 100% for that. Regards From rsalas.match at ...626... Sun Jul 19 10:40:32 2009 From: rsalas.match at ...626... (Rafael Salas) Date: Sun, 19 Jul 2009 10:40:32 +0200 Subject: [Gambas-user] Problem on compiling Gambas 3 from svn Message-ID: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> Hi all, I'm trying to compile Gambas 3 on linux Ubuntu 9.04. On make I have this error: ./reconf-all libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. libtoolize: You should add the contents of the following files to `aclocal.m4': make -j4 make all-recursive make[1]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk' Making all in main make[2]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk/main' make all-recursive make[3]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk/main' Making all in libltdl make[4]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk/main/libltdl' cd . && /bin/bash /home/rsalas/Projects/gambas/trunk/main/libltdl/missing --run autoheader rm -f stamp-h1 touch config-h.in cd . && /bin/bash ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make all-am make[5]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk/main/libltdl' /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -c -o ltdl.lo ltdl.c ./libtool: line 467: CDPATH: command not found ./libtool: line 1145: func_opt_split: command not found libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-1ubuntu1, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-1ubuntu1 libtool: and run autoconf again. make[5]: *** [ltdl.lo] Error 63 make[5]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main/libltdl' make[4]: *** [all] Error 2 make[4]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main/libltdl' make[3]: *** [all-recursive] Error 1 make[3]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' make[2]: *** [all] Error 2 make[2]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/home/rsalas/Projects/gambas/trunk' make: *** [all] Error 2 I don't know how to proceed now. It's like this library is not compatible... but how may I proceed? Thanks in advance From jussi.lahtinen at ...626... Sun Jul 19 15:01:52 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Jul 2009 16:01:52 +0300 Subject: [Gambas-user] Problem on compiling Gambas 3 from svn In-Reply-To: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> References: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> Message-ID: <384d3900907190601n4e42f7c0v28af46b3a930c6f0@...627...> Use libtool 1.5.12. More info; http://gambasdoc.org/help/readme?en&view Jussi On Sun, Jul 19, 2009 at 11:40, Rafael Salas wrote: > Hi all, > > ? I'm trying to compile Gambas 3 on linux Ubuntu 9.04. On make I have this > error: > > ./reconf-all > > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and > libtoolize: rerunning libtoolize, to keep the correct libtool macros > in-tree. > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > libtoolize: You should add the contents of the following files to > `aclocal.m4': > > make -j4 > > make ?all-recursive > make[1]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk' > Making all in main > make[2]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk/main' > make ?all-recursive > make[3]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk/main' > Making all in libltdl > make[4]: se ingresa al directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > cd . && /bin/bash /home/rsalas/Projects/gambas/trunk/main/libltdl/missing > --run autoheader > rm -f stamp-h1 > touch config-h.in > cd . && /bin/bash ./config.status config.h > config.status: creating config.h > config.status: config.h is unchanged > make ?all-am > make[5]: se ingresa al directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > /bin/bash ./libtool --tag=CC ? --mode=compile gcc -DHAVE_CONFIG_H -I. ? ? -g > -O2 -c -o ltdl.lo ltdl.c > ./libtool: line 467: CDPATH: command not found > ./libtool: line 1145: func_opt_split: command not found > libtool: Version mismatch error. ?This is libtool 2.2.6 > Debian-2.2.6a-1ubuntu1, but the > libtool: definition of this LT_INIT comes from an older release. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > Debian-2.2.6a-1ubuntu1 > libtool: and run autoconf again. > make[5]: *** [ltdl.lo] Error 63 > make[5]: se sale del directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > make[4]: *** [all] Error 2 > make[4]: se sale del directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > make[3]: *** [all-recursive] Error 1 > make[3]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' > make[2]: *** [all] Error 2 > make[2]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: se sale del directorio `/home/rsalas/Projects/gambas/trunk' > make: *** [all] Error 2 > > I don't know how to proceed now. It's like this library is not compatible... > but how may I proceed? > > Thanks in advance > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Sun Jul 19 21:44:36 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 19 Jul 2009 21:44:36 +0200 Subject: [Gambas-user] need some helping hand for crypting Message-ID: <1248032677.6389.31.camel@...40...> Salut, I have to store passwords in easy reading files (xml), and need fopr that crypting/uncrypting functions, gb.crypt I can crypt , but not restore them. Any hints? -- Amicalment Charlie From 12ukwn at ...626... Sun Jul 19 22:15:28 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sun, 19 Jul 2009 22:15:28 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <1248032677.6389.31.camel@...40...> References: <1248032677.6389.31.camel@...40...> Message-ID: <4A637EE0.8070502@...626...> Charlie Reinl a ?crit : > Salut, > > I have to store passwords in easy reading files (xml), and need fopr > that crypting/uncrypting functions, gb.crypt I can crypt , but not > restore them. > Any hints? what's exactly your needs (restore plain p/w or not?) I don't use this but I guess what it does is calculating a hash that is repeatable; so once you've stored th hash, you can input a p/w from user, hash it and compare hashes (to hashes :) to see if they match. This has the big advantage that in case of breaking in, nobody can trace back to the plain login. JY -- We are giving instruction to FBI agents in the various Chinese dialects ... to handle present and likely future contingencies. -- J. Edgar Hoover From gambas at ...1... Sun Jul 19 22:21:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 19 Jul 2009 22:21:21 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <4A637EE0.8070502@...626...> References: <1248032677.6389.31.camel@...40...> <4A637EE0.8070502@...626...> Message-ID: <200907192221.21283.gambas@...1...> > Charlie Reinl a ?crit : > > Salut, > > > > I have to store passwords in easy reading files (xml), and need fopr > > that crypting/uncrypting functions, gb.crypt I can crypt , but not > > restore them. > > Any hints? > > what's exactly your needs (restore plain p/w or not?) > > I don't use this but I guess what it does is calculating a hash > that is repeatable; so once you've stored th hash, you can input a p/w from > user, hash it and compare hashes (to hashes :) to see if they match. > > This has the big advantage that in case of breaking in, nobody can > trace back to the plain login. > > JY In Gambas 3, you can use the gb.desktop component to store and retrieve passwords: Desktop.Passwords["Key"] = "Password" ... Print Desktop.Passwords["Key"] The requirement is using Gnome, KDE 3 or KDE 4, because the passwords are stored in the Gnome keyring (on Gnome) and in the KDE wallet (on KDEs). I use that in the Gambas 3 IDE to store database passwords. Regards, -- Beno?t From Karl.Reinl at ...9... Sun Jul 19 23:02:43 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 19 Jul 2009 23:02:43 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <200907192221.21283.gambas@...1...> References: <1248032677.6389.31.camel@...40...> <4A637EE0.8070502@...626...> <200907192221.21283.gambas@...1...> Message-ID: <1248037363.6389.66.camel@...40...> Am Sonntag, den 19.07.2009, 22:21 +0200 schrieb Beno?t Minisini: > > Charlie Reinl a ?crit : > > > Salut, > > > > > > I have to store passwords in easy reading files (xml), and need fopr > > > that crypting/uncrypting functions, gb.crypt I can crypt , but not > > > restore them. > > > Any hints? > > > > what's exactly your needs (restore plain p/w or not?) > > > > I don't use this but I guess what it does is calculating a hash > > that is repeatable; so once you've stored th hash, you can input a p/w from > > user, hash it and compare hashes (to hashes :) to see if they match. > > > > This has the big advantage that in case of breaking in, nobody can > > trace back to the plain login. > > > > JY > > In Gambas 3, you can use the gb.desktop component to store and retrieve > passwords: > > Desktop.Passwords["Key"] = "Password" > ... > Print Desktop.Passwords["Key"] > > The requirement is using Gnome, KDE 3 or KDE 4, because the passwords are > stored in the Gnome keyring (on Gnome) and in the KDE wallet (on KDEs). > > I use that in the Gambas 3 IDE to store database passwords. Thanks, no what I need is for gambas2, I have to store Passwords in an XML-file, what means plain-text readable. So I need a crypting/uncrypting logic . I put my PW "TOPSECRET" to store Print crypting("TOPSECRET") >2sgbtf&& and get it back by Print uncrypting("2sgbtf&&") >TOPSECRET The uncrypted password is used for a database login. or in other words store pw in plain text encrypted, and restore encrypted pw to plain text. -- Amicalment Charlie From gambas at ...1... Sun Jul 19 23:13:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Jul 2009 23:13:24 +0200 Subject: [Gambas-user] SmtpClient: error 550-'Message SHOULD have Date: but does not' In-Reply-To: <24406610.post@...1379...> References: <24406610.post@...1379...> Message-ID: <200907192313.24055.gambas@...1...> > When using SmtpClient to send email the email is often rejected ithe the > error "SHOULD have Date: but does not" > > Have tried putting date in the body of the message - still get the same > error > > SmtpClient has .Subject but doesn't have .Date field. > > Can any one help? > > Bill Lancaster Hi, I modified the gb.net.smtp component in the revision #2136 (for Gambas 2) so that it always send the "Date" header. Maybe you can test it and tell me if it solves your problem. Regards, -- Beno?t From 12ukwn at ...626... Mon Jul 20 00:00:58 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 20 Jul 2009 00:00:58 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <1248037363.6389.66.camel@...40...> References: <1248032677.6389.31.camel@...40...> <4A637EE0.8070502@...626...> <200907192221.21283.gambas@...1...> <1248037363.6389.66.camel@...40...> Message-ID: <4A63979A.7060308@...626...> Charlie Reinl a ?crit : ....... > no what I need is for gambas2, I have to store Passwords in an XML-file, > what means plain-text readable. > So I need a crypting/uncrypting logic . > I put my PW "TOPSECRET" to store > Print crypting("TOPSECRET") > >2sgbtf&& > and get it back by > Print uncrypting("2sgbtf&&") > >TOPSECRET > The uncrypted password is used for a database login. > > or in other words > store pw in plain text encrypted, and > restore encrypted pw to plain text. This one's not easy: most of possibilities involve a file or a password or both :( May be you could try using 'ssss', it splits a msg (128 chars max) into some encoded strings (ascii) and is able to recover the msg from a certain amount of those strings. The only PB you'll encounter is I don't think there's an "expect" in Gambas, so you'll have to wait 1 sec and feed it char/char, CR inclued. encrypt: ======== $ ssss-split -t2 -n4 <=mean you output 4 strings, but only need 2 of'em WARNING: couldn't get memory lock (ENOMEM, try to adjust RLIMIT_MEMLOCK!). Generating shares using a (2,4) scheme with dynamic security level. Enter the secret, at most 128 ASCII characters: Using a 144 bit security level. 1-3b8c7024bab739bcfeb81a1ff96b0d8ddb43 2-18577a4a8ec859e6b717aaf392717de96b8a 3-06e183909d1d79d08f8d3aa84b78adcafbcf 4-5fe16e96e63699522448cb2b44459d200a06 and decrypt: ============ $ ssss-combine -t2 WARNING: couldn't get memory lock (ENOMEM, try to adjust RLIMIT_MEMLOCK!). Enter 2 shares separated by newlines: Share [1/2]: 1-3b8c7024bab739bcfeb81a1ff96b0d8ddb43 Share [2/2]: 4-5fe16e96e63699522448cb2b44459d200a06 Resulting secret: my loving password Of course, you can use the same trigger (-t) as the number of strings (-n), but in this example, you can afford to loose 2 strings out 4. JY -- Be frank and explicit with your lawyer ... it is his business to confuse the issue afterwards. From sbungay at ...981... Mon Jul 20 04:05:58 2009 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 19 Jul 2009 22:05:58 -0400 Subject: [Gambas-user] Gridview border text... Message-ID: <4A63D106.1020106@...981...> In the past I created a gridview utilities module to do this (and other things). Looking at the properties for the GridView tpday (three years later) is there still no way to put text in a border? Just wondering. my old utilities still work but it sure would be nice if the border could have text in it. Steve. From 12ukwn at ...626... Mon Jul 20 06:15:13 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 20 Jul 2009 06:15:13 +0200 Subject: [Gambas-user] ide switch Forms... Message-ID: <4A63EF51.4000600@...626...> Hi, Is it possible to have CTRL-PgUp & CTRL-PgDwn to respectively cycle backward & forward into opened Forms, Classes etc ? JY -- "I am ecstatic that some moron re-invented a 1995 windows fuckup." -- Alan Cox From girardhenri at ...67... Mon Jul 20 07:26:46 2009 From: girardhenri at ...67... (GH) Date: Mon, 20 Jul 2009 07:26:46 +0200 Subject: [Gambas-user] Problem on compiling Gambas 3 from svn In-Reply-To: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> References: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> Message-ID: did you read the gambas website info ? They say you have to downgrade lib... If you have done it sorry to lead you to an useless info regards -------------------------------------------------- From: "Rafael Salas" Sent: Sunday, July 19, 2009 10:40 AM To: Subject: [Gambas-user] Problem on compiling Gambas 3 from svn > Hi all, > > I'm trying to compile Gambas 3 on linux Ubuntu 9.04. On make I have this > error: > > ./reconf-all > > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac > and > libtoolize: rerunning libtoolize, to keep the correct libtool macros > in-tree. > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > libtoolize: You should add the contents of the following files to > `aclocal.m4': > > make -j4 > > make all-recursive > make[1]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk' > Making all in main > make[2]: se ingresa al directorio > `/home/rsalas/Projects/gambas/trunk/main' > make all-recursive > make[3]: se ingresa al directorio > `/home/rsalas/Projects/gambas/trunk/main' > Making all in libltdl > make[4]: se ingresa al directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > cd . && /bin/bash /home/rsalas/Projects/gambas/trunk/main/libltdl/missing > --run autoheader > rm -f stamp-h1 > touch config-h.in > cd . && /bin/bash ./config.status config.h > config.status: creating config.h > config.status: config.h is unchanged > make all-am > make[5]: se ingresa al directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > /bin/bash ./libtool --tag=CC --mode=compile > -DHAVE_CONFIG_H -I. -g > -O2 -c -o ltdl.lo ltdl.c > ./libtool: line 467: CDPATH: command not found > ./libtool: line 1145: func_opt_split: command not found > libtool: Version mismatch error. This is libtool 2.2.6 > Debian-2.2.6a-1ubuntu1, but the > libtool: definition of this LT_INIT comes from an older release. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > Debian-2.2.6a-1ubuntu1 > libtool: and run autoconf again. > make[5]: *** [ltdl.lo] Error 63 > make[5]: se sale del directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > make[4]: *** [all] Error 2 > make[4]: se sale del directorio > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > make[3]: *** [all-recursive] Error 1 > make[3]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' > make[2]: *** [all] Error 2 > make[2]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: se sale del directorio `/home/rsalas/Projects/gambas/trunk' > make: *** [all] Error 2 > > I don't know how to proceed now. It's like this library is not > compatible... > but how may I proceed? > > Thanks in advance > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Mon Jul 20 07:37:41 2009 From: rterry at ...1946... (richard terry) Date: Mon, 20 Jul 2009 15:37:41 +1000 Subject: [Gambas-user] Problem on compiling Gambas 3 from svn In-Reply-To: References: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> Message-ID: <200907201537.41775.rterry@...1946...> On Mon, 20 Jul 2009 03:26:46 pm GH wrote: > did you read the gambas website info ? > They say you have to downgrade lib... > If you have done it sorry to lead you to an useless info My gambas is compiled on this: libtool 2.2.6a-1 With no problems. (ARCH linux) regards Richard > regards > > > > -------------------------------------------------- > From: "Rafael Salas" > Sent: Sunday, July 19, 2009 10:40 AM > To: > Subject: [Gambas-user] Problem on compiling Gambas 3 from svn > > > Hi all, > > > > I'm trying to compile Gambas 3 on linux Ubuntu 9.04. On make I have > > this error: > > > > ./reconf-all > > > > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac > > and > > libtoolize: rerunning libtoolize, to keep the correct libtool macros > > in-tree. > > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > > libtoolize: You should add the contents of the following files to > > `aclocal.m4': > > > > make -j4 > > > > make all-recursive > > make[1]: se ingresa al directorio `/home/rsalas/Projects/gambas/trunk' > > Making all in main > > make[2]: se ingresa al directorio > > `/home/rsalas/Projects/gambas/trunk/main' > > make all-recursive > > make[3]: se ingresa al directorio > > `/home/rsalas/Projects/gambas/trunk/main' > > Making all in libltdl > > make[4]: se ingresa al directorio > > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > > cd . && /bin/bash /home/rsalas/Projects/gambas/trunk/main/libltdl/missing > > --run autoheader > > rm -f stamp-h1 > > touch config-h.in > > cd . && /bin/bash ./config.status config.h > > config.status: creating config.h > > config.status: config.h is unchanged > > make all-am > > make[5]: se ingresa al directorio > > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > > /bin/bash ./libtool --tag=CC --mode=compile > > -DHAVE_CONFIG_H -I. -g > > -O2 -c -o ltdl.lo ltdl.c > > ./libtool: line 467: CDPATH: command not found > > ./libtool: line 1145: func_opt_split: command not found > > libtool: Version mismatch error. This is libtool 2.2.6 > > Debian-2.2.6a-1ubuntu1, but the > > libtool: definition of this LT_INIT comes from an older release. > > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > > Debian-2.2.6a-1ubuntu1 > > libtool: and run autoconf again. > > make[5]: *** [ltdl.lo] Error 63 > > make[5]: se sale del directorio > > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > > make[4]: *** [all] Error 2 > > make[4]: se sale del directorio > > `/home/rsalas/Projects/gambas/trunk/main/libltdl' > > make[3]: *** [all-recursive] Error 1 > > make[3]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' > > make[2]: *** [all] Error 2 > > make[2]: se sale del directorio `/home/rsalas/Projects/gambas/trunk/main' > > make[1]: *** [all-recursive] Error 1 > > make[1]: se sale del directorio `/home/rsalas/Projects/gambas/trunk' > > make: *** [all] Error 2 > > > > I don't know how to proceed now. It's like this library is not > > compatible... > > but how may I proceed? > > > > Thanks in advance > > ------------------------------------------------------------------------- > >----- Enter the BlackBerry Developer Challenge > > This is your chance to win up to $100,000 in prizes! For a limited time, > > vendors submitting new applications to BlackBerry App World(TM) will have > > the opportunity to enter the BlackBerry Developer Challenge. See full > > prize > > details at: http://p.sf.net/sfu/Challenge > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jul 20 08:55:28 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 08:55:28 +0200 Subject: [Gambas-user] Problem on compiling Gambas 3 from svn In-Reply-To: <200907201537.41775.rterry@...1946...> References: <72e8f6e60907190140l1486ad6dg90daa451246ead9a@...627...> <200907201537.41775.rterry@...1946...> Message-ID: <200907200855.28965.gambas@...1...> > On Mon, 20 Jul 2009 03:26:46 pm GH wrote: > > did you read the gambas website info ? > > They say you have to downgrade lib... > > If you have done it sorry to lead you to an useless info > > My gambas is compiled on this: > > libtool 2.2.6a-1 > > With no problems. > > (ARCH linux) > > regards > > Richard > Yep. I compile Gambas with libtool 2.2.6 on Mandriva, with no problems at all. Only Ubuntu has that problem, and I don't know why yet. -- Beno?t From gambas at ...1... Mon Jul 20 09:14:18 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 09:14:18 +0200 Subject: [Gambas-user] How to report signal #11 In-Reply-To: <200906291721.23258.pinozollo@...626...> References: <200906291721.23258.pinozollo@...626...> Message-ID: <200907200914.18624.gambas@...1...> > Hi, > In certain circumstances my project ends with signal #11 Hi, Do you yet have these crashes with the latest revision? I fixed a bug in it that could lead to "random" crashes early in the program execution (i.e. you run your program, and sometimes it crashes early, sometimes it don't). > > I am trying to follow the following instructions but I am confused about > the complete sequence: > > -------------------------------------- > 3. Reporting a crash (a segmentation fault, or a signal #11) > If Gambas crashes, you can trace it and tell me where it crashed exactly. > It is very helpful for me. If you don't know how to do that, read the > following carefully: > > * Open a terminal, and go to the directory of the project that crashes. > If the IDE crashes, go to the IDE sources in the appsrcgambas2 directory of > the source package. For example: > > $ cd ~/gambas2-2.XX.Y/app/src/gambas2 > > * Then compile all the IDE. > > $ gbc2 -agt > > * Launch the GNU debugger. > > $ gdb gbx2 > GNU gdb 6.6-3mdv2008.0 (Mandriva Linux release 2008.0) > Copyright (C) 2006 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i586-mandriva-linux-gnu". > (gdb) > --------------------------------------- > > I get the following: > > ----------------------------- > > IK1CHE:/home/pino/GAMBAS/dblog# > IK1CHE:/usr/src/gambas2-2.13.1/app/src/gambas2# gbc2 -agt > OK > IK1CHE:/usr/src/gambas2-2.13.1/app/src/gambas2# gdb gbx2 > GNU gdb 6.8-debian > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to > change and redistribute it. There is NO WARRANTY, to the extent permitted > by law. Type "show copying" and "show warranty" for details. > This GDB was configured as "i486-linux-gnu"... > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx2 -p > [Thread debugging using libthread_db enabled] > > [2]+ Stopped gdb gbx2 > -------------------------- > and gdb ends. --> I am confused by that, gdb should not stop, unless you press CTRL+Z in the terminal... > > Please, how do I compile my project with debugging informations in ? > You don't have to for debugging with gdb. > Shell I also recompile the IDE ? Neither. -- Beno?t From gambas at ...1... Mon Jul 20 09:36:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 09:36:02 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A37F8E9.9070408@...1909...> References: <4A37AD7E.6080308@...221...> <4A37F8E9.9070408@...1909...> Message-ID: <200907200936.02914.gambas@...1...> > Rolf-Werner Eilert ha scritto: > > Could someone explain me why there are two different ways of executing > > shell commands and how they differ in practice? I mean, when do I want > > EXEC and when will I want SHELL? What's the idea behind them? > > > > Thanks for all hints :-) > > SHELL invokes /bin/sh and passes it a single command line. /bin/sh > parses this command line exactly the same way you do on a normal shell. So, > > SHELL "ls -l *.o >/tmp/list" > > will do exactly the same as you typed "ls -l *.o >/tmp/list" in a > terminal emulator under a shell. This is a lot of things, because the > shell has a tremendous power. This command does: > > 1. split the command line in several parts: executable to run, > parameters to pass it, other constructs... > 2. search for an executable named ls in the PATH environment. > 3. substitute "*.o" with all the ".o" files in the current directory > 4. prepare a redirection (the normal output of /bin/ls is redirected > in /tmp/list) > > To make it short, the shell can do a lot of things, and the gambas SHELL > command brings that power to you. > After /bin/sh has done with all this parsing/computing work, it invokes > an exec() system call, which loads and executes an executable, passing > it a number of parameters. > > The gambas EXEC instruction calls the exec() system call, bypassing the > shell (/bin/sh). This is faster and less memory hungry, because you > invoke an external command without invoking /bin/sh, but you loose all > the power the shell has. In fact, if you want to list all the ".o" files > in the current directory and put the result in /tmp/list without using > the powerful shell, you have to: > > 1. search by yourself the files > 2. create an array of the names of those files > 3. invoke /bin/ls and pass it an array which contains the "-l" and > all the files > 4. redirect its standard output in a file > > To conclude. If you run an EXEC in gambas, you must simply supply the > program name to execute and all its parameter. If you issue: > > EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] > > you will invoke /bin/ls passing it the above parameters. /bin/ls will > (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" > will be recognized as files to look for, and no files named "*.o" will > exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and > /bin/ls will look again to for file named ">/tmp/list". > > You can type "man sh" at the shell prompt; all of what you will read > there are shell capabilities, and none of them are available in EXEC. > The three most important things which are available in the shell, and > not available in EXEC are: > > 1. Pattern substitution. *.o and the like are shell construct. > 2. Redirections and pipes. ">/...", "&1 |some_command" > and so on. > 3. Variables like $HOME, $PATH and so on > > But exec has a good advantage over SHELL. If you have to invoke an > external command which has (or can have) unusual characters in the > command line, like "firefox > http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, > /bin/sh) will interpret characters like "?" and "&", whilst EXEC will not. > > The reply to your answer is: if you need some shell capability, use > SHELL; otherwise use EXEC. Using SHELL saves typing, on the other hand, > if you are sure that no strange characters ("?", "&", "$", spaces, and > others) can appear in the command you are constructing. > > Hope this is a good start - regards, I added this answer to the wiki, at http://gambasdoc.org/help/doc/shellexec. Regards, -- Beno?t From jfrank at ...2235... Mon Jul 20 10:23:14 2009 From: jfrank at ...2235... (Johannes Frank) Date: Mon, 20 Jul 2009 10:23:14 +0200 Subject: [Gambas-user] Constants Message-ID: <4A642972.10302@...2235...> Hello Beno?t, Hello Gambas user, I am currently learning Gambas. The following program gives me a syntax error. ' Gambas module file CONST C AS Integer = 10000 PUBLIC SUB Main() DIM A[C] AS Integer DIM B[C] AS Integer END Now obviously using a constant in an array does not work. My question now is: Is there a way around this. Or, could it be implemented? Or didn't I just get the point. In java it does work. Best Regards Johannes Frank From doriano.blengino at ...1909... Mon Jul 20 10:23:51 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 20 Jul 2009 10:23:51 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <200907200936.02914.gambas@...1...> References: <4A37AD7E.6080308@...221...> <4A37F8E9.9070408@...1909...> <200907200936.02914.gambas@...1...> Message-ID: <4A642997.5010702@...1909...> Beno?t Minisini ha scritto: >> Rolf-Werner Eilert ha scritto: >> >>> Could someone explain me why there are two different ways of executing >>> shell commands and how they differ in practice? I mean, when do I want >>> EXEC and when will I want SHELL? What's the idea behind them? >>> >>> Thanks for all hints :-) >>> >> SHELL invokes /bin/sh and passes it a single command line. /bin/sh >> parses this command line exactly the same way you do on a normal shell. So, >> >> SHELL "ls -l *.o >/tmp/list" >> >> will do exactly the same as you typed "ls -l *.o >/tmp/list" in a >> terminal emulator under a shell. This is a lot of things, because the >> shell has a tremendous power. This command does: >> >> 1. split the command line in several parts: executable to run, >> parameters to pass it, other constructs... >> 2. search for an executable named ls in the PATH environment. >> 3. substitute "*.o" with all the ".o" files in the current directory >> 4. prepare a redirection (the normal output of /bin/ls is redirected >> in /tmp/list) >> >> To make it short, the shell can do a lot of things, and the gambas SHELL >> command brings that power to you. >> After /bin/sh has done with all this parsing/computing work, it invokes >> an exec() system call, which loads and executes an executable, passing >> it a number of parameters. >> >> The gambas EXEC instruction calls the exec() system call, bypassing the >> shell (/bin/sh). This is faster and less memory hungry, because you >> invoke an external command without invoking /bin/sh, but you loose all >> the power the shell has. In fact, if you want to list all the ".o" files >> in the current directory and put the result in /tmp/list without using >> the powerful shell, you have to: >> >> 1. search by yourself the files >> 2. create an array of the names of those files >> 3. invoke /bin/ls and pass it an array which contains the "-l" and >> all the files >> 4. redirect its standard output in a file >> >> To conclude. If you run an EXEC in gambas, you must simply supply the >> program name to execute and all its parameter. If you issue: >> >> EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] >> >> you will invoke /bin/ls passing it the above parameters. /bin/ls will >> (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" >> will be recognized as files to look for, and no files named "*.o" will >> exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and >> /bin/ls will look again to for file named ">/tmp/list". >> >> You can type "man sh" at the shell prompt; all of what you will read >> there are shell capabilities, and none of them are available in EXEC. >> The three most important things which are available in the shell, and >> not available in EXEC are: >> >> 1. Pattern substitution. *.o and the like are shell construct. >> 2. Redirections and pipes. ">/...", "&1 |some_command" >> and so on. >> 3. Variables like $HOME, $PATH and so on >> >> But exec has a good advantage over SHELL. If you have to invoke an >> external command which has (or can have) unusual characters in the >> command line, like "firefox >> http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, >> /bin/sh) will interpret characters like "?" and "&", whilst EXEC will not. >> >> The reply to your answer is: if you need some shell capability, use >> SHELL; otherwise use EXEC. Using SHELL saves typing, on the other hand, >> if you are sure that no strange characters ("?", "&", "$", spaces, and >> others) can appear in the command you are constructing. >> >> Hope this is a good start - regards, >> > > I added this answer to the wiki, at http://gambasdoc.org/help/doc/shellexec. > I am proud of this; re-reading this text I would suggest the following corrections, if you don't mind: 1) Under the title "Exec", at point #3, replace '...array which contains the "-l" and all the files.' with 'array which contains the "-l" and all the filenames you found.' 2) In the section "But EXEC has a good advantage over SHELL...", the sample code box has an extraneous trailing quote: 'firefox http://someserver.com...reply=bar"' <-- trailing double quote. 3) May be some good-english-speaking-guy could revise the correctness... Thanks, and regards, Doriano Blengino From rolf.frogs at ...221... Mon Jul 20 10:27:41 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Mon, 20 Jul 2009 10:27:41 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <4A63979A.7060308@...626...> References: <1248032677.6389.31.camel@...40...> <1248037363.6389.66.camel@...40...> <4A63979A.7060308@...626...> Message-ID: <200907201027.43986.rolf.frogs@...221...> Hi Charlie > > no what I need is for gambas2, I have to store Passwords in an XML-file, > > what means plain-text readable. > > So I need a crypting/uncrypting logic . > > I put my PW "TOPSECRET" to store > > Print crypting("TOPSECRET") > > > > >2sgbtf&& > > > > and get it back by > > Print uncrypting("2sgbtf&&") > > > > >TOPSECRET > > > > The uncrypted password is used for a database login. Check, if the database is able to handle md5-sum based passwords for login - PostgreSQL can, perhaps mySQL and other DBMS's too. Then you can use the md5 sum of the password written in you xml file directly for the login without "decrypt". Bye Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gambas at ...1... Mon Jul 20 10:34:34 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 10:34:34 +0200 Subject: [Gambas-user] Constants In-Reply-To: <4A642972.10302@...2235...> References: <4A642972.10302@...2235...> Message-ID: <200907201034.34791.gambas@...1...> > Hello Beno?t, Hello Gambas user, > > I am currently learning Gambas. The following program gives me a syntax > error. > > ' Gambas module file > CONST C AS Integer = 10000 > PUBLIC SUB Main() > DIM A[C] AS Integer > DIM B[C] AS Integer > END > > Now obviously using a constant in an array does not work. My question > now is: Is there a way around this. > Or, could it be implemented? Or didn't I just get the point. In java it > does work. > > > Best Regards > > Johannes Frank > > You must do that in Gambas: Dim A As Integer[100] Dim B As Integer[100] Regards, -- Beno?t From Karl.Reinl at ...9... Mon Jul 20 11:47:52 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 20 Jul 2009 11:47:52 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <200907201027.43986.rolf.frogs@...221...> References: <1248032677.6389.31.camel@...40...> <1248037363.6389.66.camel@...40...> <4A63979A.7060308@...626...> <200907201027.43986.rolf.frogs@...221...> Message-ID: <1248083272.7813.4.camel@...40...> Am Montag, den 20.07.2009, 10:27 +0200 schrieb Rolf Schmidt: > Hi Charlie > > > > no what I need is for gambas2, I have to store Passwords in an XML-file, > > > what means plain-text readable. > > > So I need a crypting/uncrypting logic . > > > I put my PW "TOPSECRET" to store > > > Print crypting("TOPSECRET") > > > > > > >2sgbtf&& > > > > > > and get it back by > > > Print uncrypting("2sgbtf&&") > > > > > > >TOPSECRET > > > > > > The uncrypted password is used for a database login. > > Check, if the database is able to handle md5-sum based passwords for login - > PostgreSQL can, perhaps mySQL and other DBMS's too. > Then you can use the md5 sum of the password written in you xml file directly > for the login without "decrypt". > > Bye Rolf Hi Rolf, thanks, but that way, it is like an plain text password, ONE can login with. -- Amicalment Charlie From sbungay at ...981... Mon Jul 20 14:16:08 2009 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 20 Jul 2009 08:16:08 -0400 Subject: [Gambas-user] Border text and gridview... Message-ID: <4A646008.8070705@...981...> Never mind.. found it. I have GOT to stop working so late. Gridview.Columns[iIndex].Text = "Text Goes Here" Steve :0 <--Yawning From pinozollo at ...626... Mon Jul 20 14:23:12 2009 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 20 Jul 2009 08:23:12 -0400 Subject: [Gambas-user] Bug or Feature ? Message-ID: <200907200823.12484.pinozollo@...626...> Hi, I have discovered that in a TableView or in a GridView enabled to receive data's from a database ....PUBLIC SUB TabWB4_Data(Row AS Integer, Column AS Integer) and to react to a Click.... PUBLIC SUB TabWB4_Click() Clicking, not only it is executed the _Click() subprogram but also the _Data(...) again. This, my case, it did erase the table as the rData received from the database, had changed at the moment of the Click. Just a curiosity...how can Gambas know which _Data() to call for a certain query ? Best Regads Pino P.S. ( Gambas 2.14, QT, Debian 5.0.1, Gnome) -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From pinozollo at ...626... Mon Jul 20 14:32:12 2009 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 20 Jul 2009 08:32:12 -0400 Subject: [Gambas-user] TextBox and TextLabel do not respect the locale Message-ID: <200907200832.12340.pinozollo@...626...> Hi, I receive a date from a query to the database...let's say rData!x_date ... The database is set to rData = Mglobal.$hConn.Exec("SET SESSION datestyle TO DMY") DMY data style...the locale of the computer is Italian so DMY also. If I write rData!x_date into a GridView or into a string all goes OK, but if I write rData!x_date into a TextBox or into a TextLabel then I get MDY format..i.e. the month before the day. (Gambas 2.14, QT, Gnome, Debian 5.0.1) Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Mon Jul 20 14:39:48 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 14:39:48 +0200 Subject: [Gambas-user] ide switch Forms... In-Reply-To: <4A63EF51.4000600@...626...> References: <4A63EF51.4000600@...626...> Message-ID: <200907201439.48169.gambas@...1...> > Hi, > > Is it possible to have CTRL-PgUp & CTRL-PgDwn to respectively cycle > backward & forward into opened Forms, Classes etc ? > > JY It should be possible, as AFAIK nothing uses these shorcuts. -- Beno?t From gambas at ...1... Mon Jul 20 14:52:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 14:52:09 +0200 Subject: [Gambas-user] Bug or Feature ? In-Reply-To: <200907200823.12484.pinozollo@...626...> References: <200907200823.12484.pinozollo@...626...> Message-ID: <200907201452.09255.gambas@...1...> > Hi, > I have discovered that in a TableView or in a GridView enabled to receive > data's from a database > ....PUBLIC SUB TabWB4_Data(Row AS Integer, Column AS Integer) > > and to react to a Click.... PUBLIC SUB TabWB4_Click() > > Clicking, not only it is executed the _Click() subprogram but also the > _Data(...) again. > > This, my case, it did erase the table as the rData received from the > database, had changed at the moment of the Click. > > Just a curiosity...how can Gambas know which _Data() to call for a certain > query ? > Gambas does not decide, it is managed by the underlying toolkit. The Data event is called each time the control needs to know the contents of a cell, whatever the reason. And the data does not come necesarilly from a database: you decide. Regards, -- Beno?t From gambas at ...1... Mon Jul 20 14:53:40 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 14:53:40 +0200 Subject: [Gambas-user] TextBox and TextLabel do not respect the locale In-Reply-To: <200907200832.12340.pinozollo@...626...> References: <200907200832.12340.pinozollo@...626...> Message-ID: <200907201453.40077.gambas@...1...> > Hi, > > I receive a date from a query to the database...let's say rData!x_date ... > > The database is set to > rData = Mglobal.$hConn.Exec("SET SESSION datestyle TO DMY") > > DMY data style...the locale of the computer is Italian so DMY also. > > If I write rData!x_date into a GridView or into a string all goes OK, > but if I write rData!x_date into a TextBox or into a TextLabel then > I get MDY format..i.e. the month before the day. > > (Gambas 2.14, QT, Gnome, Debian 5.0.1) > > Regards > > Pino A date is a date, even if it comes from a database. If you put a date directly inside the Text property of a control, a automatic conversion is done by internally using CStr(), which is not locale aware. So you have to do: MyTextBox.Text = Str(rData!x_date) to use the locale data. Regards, -- Beno?t From 12ukwn at ...626... Mon Jul 20 16:46:46 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 20 Jul 2009 16:46:46 +0200 Subject: [Gambas-user] ide switch Forms... In-Reply-To: <200907201439.48169.gambas@...1...> References: <4A63EF51.4000600@...626...> <200907201439.48169.gambas@...1...> Message-ID: <4A648356.4070804@...626...> Beno?t Minisini a ?crit : >> Hi, >> >> Is it possible to have CTRL-PgUp & CTRL-PgDwn to respectively cycle >> backward & forward into opened Forms, Classes etc ? >> >> JY > > It should be possible, as AFAIK nothing uses these shorcuts. Although, there are some: Iceweasel (switch between tabs) => this one made it a reflex Terminal (under Xfce4 - switch between tabs) OpenOffice (switch between spreadsheet sheets) JY -- This Fortune Examined By INSPECTOR NO. 2-14 From rolf.frogs at ...221... Mon Jul 20 17:36:45 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Mon, 20 Jul 2009 17:36:45 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <1248083272.7813.4.camel@...40...> References: <1248032677.6389.31.camel@...40...> <200907201027.43986.rolf.frogs@...221...> <1248083272.7813.4.camel@...40...> Message-ID: <200907201736.48468.rolf.frogs@...221...> Hi Charlie > > > > > > no what I need is for gambas2, I have to store Passwords in an > > > > XML-file, what means plain-text readable. > > > > So I need a crypting/uncrypting logic . > > > > I put my PW "TOPSECRET" to store > > > > Print crypting("TOPSECRET") > > > > > > > > >2sgbtf&& > > > > > > > > and get it back by > > > > Print uncrypting("2sgbtf&&") > > > > > > > > >TOPSECRET > > > > > > > > The uncrypted password is used for a database login. > > > > Check, if the database is able to handle md5-sum based passwords for > > login - PostgreSQL can, perhaps mySQL and other DBMS's too. > > Then you can use the md5 sum of the password written in you xml file > > directly for the login without "decrypt". > thanks, > but that way, it is like an plain text password, > ONE can login with. Not realy, because the given password will be converted to a md5-sum, which then is the md5 sum of a md5 sum - so login is not possible. So it is with PostgreSQL. By Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From 12ukwn at ...626... Mon Jul 20 20:32:06 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 20 Jul 2009 20:32:06 +0200 Subject: [Gambas-user] break long lines Message-ID: <4A64B826.2070807@...626...> Hi, Is there a special character (such as \ under bash) to break a very long line? JY -- From sbungay at ...981... Mon Jul 20 20:42:48 2009 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 20 Jul 2009 14:42:48 -0400 Subject: [Gambas-user] break long lines In-Reply-To: <4A64B826.2070807@...626...> References: <4A64B826.2070807@...626...> Message-ID: <4A64BAA8.3020702@...981...> For String assignments you can put an & at the end of it... String = "ABCD " & "1234" Steve. Jean-Yves F. Barbier wrote: > Hi, > > Is there a special character (such as \ under bash) to break a very long line? > > JY From Karl.Reinl at ...9... Mon Jul 20 20:46:33 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 20 Jul 2009 20:46:33 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <200907201736.48468.rolf.frogs@...221...> References: <1248032677.6389.31.camel@...40...> <200907201027.43986.rolf.frogs@...221...> <1248083272.7813.4.camel@...40...> <200907201736.48468.rolf.frogs@...221...> Message-ID: <1248115593.7813.19.camel@...40...> Am Montag, den 20.07.2009, 17:36 +0200 schrieb Rolf Schmidt: > Hi Charlie > > > > > > > > no what I need is for gambas2, I have to store Passwords in an > > > > > XML-file, what means plain-text readable. > > > > > So I need a crypting/uncrypting logic . > > > > > I put my PW "TOPSECRET" to store > > > > > Print crypting("TOPSECRET") > > > > > > > > > > >2sgbtf&& > > > > > > > > > > and get it back by > > > > > Print uncrypting("2sgbtf&&") > > > > > > > > > > >TOPSECRET > > > > > > > > > > The uncrypted password is used for a database login. > > > > > > Check, if the database is able to handle md5-sum based passwords for > > > login - PostgreSQL can, perhaps mySQL and other DBMS's too. > > > Then you can use the md5 sum of the password written in you xml file > > > directly for the login without "decrypt". > > > thanks, > > but that way, it is like an plain text password, > > ONE can login with. > > Not realy, because the given password will be converted to a md5-sum, which > then is the md5 sum of a md5 sum - so login is not possible. > > So it is with PostgreSQL. > > By Rolf Salut Rolf, my problem is , the project should be able to deal with all possible DB's. And I don't want to force a possible user to install more then gambas. And I know, that while dealing with open source, anybody can have a look and debug that application, to find the pw. So what rest for me, is not to show the key user/pw in the first look to it. Think about, zipping the xml, crypting the pw by one of the easy and unsure ways to go away from plain text, or both? But thanks to all. -- Amicalment Charlie From gambas at ...1... Mon Jul 20 20:49:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 20 Jul 2009 20:49:39 +0200 Subject: [Gambas-user] break long lines In-Reply-To: <4A64BAA8.3020702@...981...> References: <4A64B826.2070807@...626...> <4A64BAA8.3020702@...981...> Message-ID: <200907202049.39406.gambas@...1...> > For String assignments you can put an & at the end of it... > > String = "ABCD " & > "1234" > > Steve. > > Jean-Yves F. Barbier wrote: > > Hi, > > > > Is there a special character (such as \ under bash) to break a very long > > line? > > > > JY There are two ways of spanning a long line on several ones: - Once a binary operator is read, its second operand can start on another line. This is Jean-Yves' example. - A string can be written in several parts with new lines between. String = "This " "is " "actually " "only " "one " "string " "in " "the " "compiled " "code!" Regards, -- Beno?t From 12ukwn at ...626... Mon Jul 20 20:59:34 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 20 Jul 2009 20:59:34 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <1248115593.7813.19.camel@...40...> References: <1248032677.6389.31.camel@...40...> <200907201027.43986.rolf.frogs@...221...> <1248083272.7813.4.camel@...40...> <200907201736.48468.rolf.frogs@...221...> <1248115593.7813.19.camel@...40...> Message-ID: <4A64BE96.10509@...626...> Charlie Reinl a ?crit : ...... > my problem is , the project should be able to deal with all possible > DB's. > And I don't want to force a possible user to install more then gambas. > > And I know, that while dealing with open source, anybody can have a look > and debug that application, to find the pw. > > So what rest for me, is not to show the key user/pw in the first look to > it. > > Think about, zipping the xml, crypting the pw by one of the easy and > unsure ways to go away from plain text, or both? or you can implement a ROT13 coding (not that strong, but very easy to achieve) -- It's possible that I'm just an idiot, and don't recognize a sleepy slavemaster when I see one. -- Larry Wall in <199708040319.UAA16213 at ...2236...> From Karl.Reinl at ...9... Mon Jul 20 21:52:52 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 20 Jul 2009 21:52:52 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <4A64BE96.10509@...626...> References: <1248032677.6389.31.camel@...40...> <200907201027.43986.rolf.frogs@...221...> <1248083272.7813.4.camel@...40...> <200907201736.48468.rolf.frogs@...221...> <1248115593.7813.19.camel@...40...> <4A64BE96.10509@...626...> Message-ID: <1248119572.7813.21.camel@...40...> Am Montag, den 20.07.2009, 20:59 +0200 schrieb Jean-Yves F. Barbier: > Charlie Reinl a ?crit : > ...... > > my problem is , the project should be able to deal with all possible > > DB's. > > And I don't want to force a possible user to install more then gambas. > > > > And I know, that while dealing with open source, anybody can have a look > > and debug that application, to find the pw. > > > > So what rest for me, is not to show the key user/pw in the first look to > > it. > > > > Think about, zipping the xml, crypting the pw by one of the easy and > > unsure ways to go away from plain text, or both? > > or you can implement a ROT13 coding (not that strong, but very easy to achieve) > Yes, thats what I mean , with a name on. And another idea cam up, to enclose it as an component. -- Amicalment Charlie From 12ukwn at ...626... Mon Jul 20 22:05:23 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 20 Jul 2009 22:05:23 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <1248119572.7813.21.camel@...40...> References: <1248032677.6389.31.camel@...40...> <200907201027.43986.rolf.frogs@...221...> <1248083272.7813.4.camel@...40...> <200907201736.48468.rolf.frogs@...221...> <1248115593.7813.19.camel@...40...> <4A64BE96.10509@...626...> <1248119572.7813.21.camel@...40...> Message-ID: <4A64CE03.1020501@...626...> Charlie Reinl a ?crit : > Am Montag, den 20.07.2009, 20:59 +0200 schrieb Jean-Yves F. Barbier: >> Charlie Reinl a ?crit : >> ...... >>> my problem is , the project should be able to deal with all possible >>> DB's. >>> And I don't want to force a possible user to install more then gambas. >>> >>> And I know, that while dealing with open source, anybody can have a look >>> and debug that application, to find the pw. >>> >>> So what rest for me, is not to show the key user/pw in the first look to >>> it. >>> >>> Think about, zipping the xml, crypting the pw by one of the easy and >>> unsure ways to go away from plain text, or both? >> or you can implement a ROT13 coding (not that strong, but very easy to achieve) >> > Yes, thats what I mean , with a name on. And another idea cam up, to > enclose it as an component. NO: it is not a crypto, it's just obfuscation. If you want to make a component, make it strong (i.e.: generate a non-password RSA key and use temporary files to encrypt/decrypt (AFAIK, openssl can't act on a string but only on files) -- I'm GLAD I remembered to XEROX all my UNDERSHIRTS!! From Karl.Reinl at ...9... Mon Jul 20 22:20:18 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 20 Jul 2009 22:20:18 +0200 Subject: [Gambas-user] need some helping hand for crypting In-Reply-To: <4A64CE03.1020501@...626...> References: <1248032677.6389.31.camel@...40...> <200907201027.43986.rolf.frogs@...221...> <1248083272.7813.4.camel@...40...> <200907201736.48468.rolf.frogs@...221...> <1248115593.7813.19.camel@...40...> <4A64BE96.10509@...626...> <1248119572.7813.21.camel@...40...> <4A64CE03.1020501@...626...> Message-ID: <1248121218.7813.30.camel@...40...> Am Montag, den 20.07.2009, 22:05 +0200 schrieb Jean-Yves F. Barbier: -------------------- 8< ------------------------------------------------ > > Yes, thats what I mean , with a name on. And another idea cam up, to > > enclose it as an component. > > NO: it is not a crypto, it's just obfuscation. > If you want to make a component, make it strong (i.e.: generate a > non-password > RSA key and use temporary files to encrypt/decrypt (AFAIK, openssl > can't act on > a string but only on files) > Ok, your right, component is not necessary, because if one use the debugger to find the pw, a gambas component is not really a limit. But perhaps I will do it as an component, so others can use it also. We will see. Thanks Charlie From rterry at ...1946... Tue Jul 21 00:55:43 2009 From: rterry at ...1946... (richard terry) Date: Tue, 21 Jul 2009 08:55:43 +1000 Subject: [Gambas-user] Icon/Path question. Message-ID: <200907210855.43963.rterry@...1946...> This will probably sound confused and vague but here goes. In my project directory I've an icons directory and subdirs I want to use one of these icons on an html form which I generate once the program is running, and to do that I have elected to substitute the %image% in this text with the path: "%accompanying_text%
" The icon exists in my code as this: "/home/richard/coding/trunk/icons/12/checkbox_checked.png" How do I deal with this using some sort of relative path and temporary file Hope that's not too confusing. Thanks for any help. Richard From 12ukwn at ...626... Tue Jul 21 01:46:48 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 01:46:48 +0200 Subject: [Gambas-user] signal 11 Message-ID: <4A6501E8.6000201@...626...> Debian sid Gambas V.2.13.1-1 ================== Hi, I try to start my app, but I can't even trace into it as it returns: (from fr) Program crashed triggering signal# 11 - Please send a bug report to I already had that, but at least I was able to trace until faulty line. JY -- You are a wish to be here wishing yourself. -- Philip Whalen From 12ukwn at ...626... Tue Jul 21 01:52:20 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 01:52:20 +0200 Subject: [Gambas-user] signal 11 In-Reply-To: <4A6501E8.6000201@...626...> References: <4A6501E8.6000201@...626...> Message-ID: <4A650334.3040509@...626...> Jean-Yves F. Barbier a ?crit : > Debian sid > Gambas V.2.13.1-1 > ================== > > Hi, > > I try to start my app, but I can't even trace into it as it returns: > (from fr) Program crashed triggering signal# 11 - Please send a bug report > to > > I already had that, but at least I was able to trace until faulty line. Ok found: it was this line (in a "global" class): STATIC arrayAllRights AS NEW String[3000, 3000, 3000, 3000, 3000, 3000] but I don't know why. -- From gambas at ...1... Tue Jul 21 02:04:22 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Jul 2009 02:04:22 +0200 Subject: [Gambas-user] signal 11 In-Reply-To: <4A650334.3040509@...626...> References: <4A6501E8.6000201@...626...> <4A650334.3040509@...626...> Message-ID: <200907210204.23204.gambas@...1...> > Jean-Yves F. Barbier a ?crit : > > Debian sid > > Gambas V.2.13.1-1 > > ================== > > > > Hi, > > > > I try to start my app, but I can't even trace into it as it returns: > > (from fr) Program crashed triggering signal# 11 - Please send a bug > > report to > > > > I already had that, but at least I was able to trace until faulty line. > > Ok found: it was this line (in a "global" class): > STATIC arrayAllRights AS NEW String[3000, 3000, 3000, 3000, 3000, 3000] > but I don't know why. 8-) !!! You are asking 2 916 000 000 000 000 000 000 bytes of memory to the system by doing that... I think there is less atoms in the universe than that. You should have a memory or overflow error anyway instead of a crash. -- Beno?t From 12ukwn at ...626... Tue Jul 21 02:28:51 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 02:28:51 +0200 Subject: [Gambas-user] signal 11 In-Reply-To: <200907210204.23204.gambas@...1...> References: <4A6501E8.6000201@...626...> <4A650334.3040509@...626...> <200907210204.23204.gambas@...1...> Message-ID: <4A650BC3.5060104@...626...> Beno?t Minisini a ?crit : >> Jean-Yves F. Barbier a ?crit : >>> Debian sid >>> Gambas V.2.13.1-1 >>> ================== >>> >>> Hi, >>> >>> I try to start my app, but I can't even trace into it as it returns: >>> (from fr) Program crashed triggering signal# 11 - Please send a bug >>> report to >>> >>> I already had that, but at least I was able to trace until faulty line. >> Ok found: it was this line (in a "global" class): >> STATIC arrayAllRights AS NEW String[3000, 3000, 3000, 3000, 3000, 3000] >> but I don't know why. > > 8-) !!! > > You are asking 2 916 000 000 000 000 000 000 bytes of memory to the system by > doing that... I think there is less atoms in the universe than that. > > You should have a memory or overflow error anyway instead of a crash. I may have a tiny bit misunderstood the array's internal functioning :-) (and your assertion about the univers' atoms number is directly drawn from the big bang theory, which is still... a theory, such as deciding that if calculation gives infinite energy from vacuum it must be reduced to a constant :P ) I've got to find out how to put Results from queries into variable arrays. Thanks JY -- Wonderful day. Your hangover just makes it seem terrible. From gambas at ...1... Tue Jul 21 02:29:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 21 Jul 2009 02:29:09 +0200 Subject: [Gambas-user] signal 11 In-Reply-To: <200907210204.23204.gambas@...1...> References: <4A6501E8.6000201@...626...> <4A650334.3040509@...626...> <200907210204.23204.gambas@...1...> Message-ID: <200907210229.09917.gambas@...1...> > > Jean-Yves F. Barbier a ?crit : > > > Debian sid > > > Gambas V.2.13.1-1 > > > ================== > > > > > > Hi, > > > > > > I try to start my app, but I can't even trace into it as it returns: > > > (from fr) Program crashed triggering signal# 11 - Please send a bug > > > report to > > > > > > I already had that, but at least I was able to trace until faulty line. > > > > Ok found: it was this line (in a "global" class): > > STATIC arrayAllRights AS NEW String[3000, 3000, 3000, 3000, 3000, 3000] > > but I don't know why. > > 8-) !!! > > You are asking 2 916 000 000 000 000 000 000 bytes of memory to the system > by doing that... I think there is less atoms in the universe than that. > > You should have a memory or overflow error anyway instead of a crash. I think we should vote for the best bug report of the year... :-) -- Beno?t From 12ukwn at ...626... Tue Jul 21 02:53:14 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 02:53:14 +0200 Subject: [Gambas-user] signal 11 In-Reply-To: <200907210229.09917.gambas@...1...> References: <4A6501E8.6000201@...626...> <4A650334.3040509@...626...> <200907210204.23204.gambas@...1...> <200907210229.09917.gambas@...1...> Message-ID: <4A65117A.9010303@...626...> Beno?t Minisini a ?crit : ... > I think we should vote for the best bug report of the year... :-) Yep, and with a special icon to draw for the winner in he's posts (until next) -- Religion is what keeps the poor from murdering the rich. -- Napoleon From 12ukwn at ...626... Tue Jul 21 03:59:23 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 03:59:23 +0200 Subject: [Gambas-user] close app & libs Message-ID: <4A6520FB.70902@...626...> Hi, I've got a control that display an error msg if false and I'd like to completly close the app when button its has been clicked, haw can I do so? Also, I noticed that I can put my PROCs into libraries, how shall I declare them? (as modules, or classes or?) JY -- From 12ukwn at ...626... Tue Jul 21 04:59:36 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 04:59:36 +0200 Subject: [Gambas-user] value of a field Message-ID: <4A652F18.8060802@...626...> Hi, I don't know how to recover the value from my field in: EXPORT CREATE STATIC ' "GLOBAL" VARIABLES STATIC PUBLIC $dbConnection AS NEW Connection STATIC PUBLIC dbLogin AS String STATIC PUBLIC dbLoginOid AS Integer PRIVATE SUB getAdminOid() DIM resQuery AS Result DIM refiField AS ResultField resQuery = $dbConnection.Exec("SELECT usesysid FROM pg_user WHERE usename = '" & dbLogin & "';") FOR EACH refiField IN resQuery.Fields ' Ok: refiField.Name = 'usesysid', I'm happy, but I would be happier with its value dbLoginOid = refiField.Result NEXT PRINT "OID de boss = " & dbLoginOid END WITH 'CATCH ' Message.Warning("Proc?dure 'getAdminOid'") END Even if I cast it to integer, I still have and error. -- The only way to get rid of a temptation is to yield to it. -- Oscar Wilde From 12ukwn at ...626... Tue Jul 21 05:12:43 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 05:12:43 +0200 Subject: [Gambas-user] [SOLVED] Re: value of a field In-Reply-To: <4A652F18.8060802@...626...> References: <4A652F18.8060802@...626...> Message-ID: <4A65322B.1070008@...626...> Jean-Yves F. Barbier a ?crit : .... Finding: ResultVAR!fieldname was a PITA :( -- From gambas.fr at ...626... Tue Jul 21 15:00:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 21 Jul 2009 15:00:06 +0200 Subject: [Gambas-user] [SOLVED] Re: value of a field In-Reply-To: <4A65322B.1070008@...626...> References: <4A652F18.8060802@...626...> <4A65322B.1070008@...626...> Message-ID: <6324a42a0907210600r5419f3e9k11e0fe55df5d140f@...627...> If i read your code ... you need some training on Gambas db management :/ 2009/7/21 Jean-Yves F. Barbier <12ukwn at ...626...>: > Jean-Yves F. Barbier a ?crit : > .... > > Finding: ResultVAR!fieldname was a PITA :( > > -- > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Tue Jul 21 15:20:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 21 Jul 2009 15:20:30 +0200 Subject: [Gambas-user] [SOLVED] Re: value of a field In-Reply-To: <6324a42a0907210600r5419f3e9k11e0fe55df5d140f@...627...> References: <4A652F18.8060802@...626...> <4A65322B.1070008@...626...> <6324a42a0907210600r5419f3e9k11e0fe55df5d140f@...627...> Message-ID: <4A65C09E.3030509@...626...> Fabien Bodard a ?crit : > If i read your code ... you need some training on Gambas db management :/ Those who are crossing the river shouldn't get a rise at those who draw. hubris -- From sevoir75 at ...626... Tue Jul 21 15:48:59 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Tue, 21 Jul 2009 15:48:59 +0200 Subject: [Gambas-user] transparent window Message-ID: <1248184139.5194.0.camel@...1964...> Hi, how can I create transparent Form? regards, Sevoir From pinozollo at ...626... Tue Jul 21 16:32:02 2009 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 21 Jul 2009 10:32:02 -0400 Subject: [Gambas-user] Fortran Message-ID: <200907211032.03186.pinozollo@...626...> Hi, Is it possible to call from Gambas FORTRAN subroutines ? ...something like in f2py of python. If yes...how ? Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas.fr at ...626... Tue Jul 21 17:37:17 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 21 Jul 2009 17:37:17 +0200 Subject: [Gambas-user] transparent window In-Reply-To: <1248184139.5194.0.camel@...1964...> References: <1248184139.5194.0.camel@...1964...> Message-ID: <6324a42a0907210837y54b4a0dbxd1e10b465fd14284@...627...> 2009/7/21 Szenogr?di Norbert : > Hi, > > how can I create transparent Form? http://gambasdoc.org/help/comp/gb.qt/window/mask > > regards, Sevoir > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Jul 21 19:04:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 21 Jul 2009 19:04:06 +0200 Subject: [Gambas-user] [SOLVED] Re: value of a field In-Reply-To: <4A65C09E.3030509@...626...> References: <4A652F18.8060802@...626...> <4A65322B.1070008@...626...> <6324a42a0907210600r5419f3e9k11e0fe55df5d140f@...627...> <4A65C09E.3030509@...626...> Message-ID: <6324a42a0907211004t5399a07fodb3b02c2f25ff34b@...627...> 2009/7/21 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : >> If i read your code ... you need some training on Gambas db management :/ > > Those who are crossing the river shouldn't get a rise at those who draw. > hubris > -- > exact :) mais bon ... c'est juste un clin d'oeuil :) > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Wed Jul 22 06:07:37 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 22 Jul 2009 06:07:37 +0200 Subject: [Gambas-user] buttons in hbox order PB Message-ID: <4A669089.1050605@...626...> Hi, I've got a small connection form with 2 buttons underneath; these buttons are included in a HBox. Even if I put the buttons in the same group as TextBoxes (grpInput), give everybody a tag and handle kdb events through a grpInput_KeyPress() proc, the left button is _always_ the one whose getting focus. How can I change that behaviour? JY -- From gambas.fr at ...626... Wed Jul 22 09:05:42 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 Jul 2009 09:05:42 +0200 Subject: [Gambas-user] buttons in hbox order PB In-Reply-To: <4A669089.1050605@...626...> References: <4A669089.1050605@...626...> Message-ID: <6324a42a0907220005h617c3f79o1f399b716a644d1a@...627...> the order of tab depend of the zorder of the control in the container.. You can use the hierarchy tab on the Rigth of the IDE to manage the position of the controls in each container. 2009/7/22 Jean-Yves F. Barbier <12ukwn at ...626...>: > Hi, > > I've got a small connection form with 2 buttons underneath; these buttons are > included in a HBox. > Even if I put the buttons in the same group as TextBoxes (grpInput), give > everybody a tag and handle kdb events through a grpInput_KeyPress() proc, the > left button is _always_ the one whose getting focus. > > How can I change that behaviour? > > JY > -- > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Wed Jul 22 15:55:12 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 22 Jul 2009 15:55:12 +0200 Subject: [Gambas-user] buttons in hbox order PB In-Reply-To: <6324a42a0907220005h617c3f79o1f399b716a644d1a@...627...> References: <4A669089.1050605@...626...> <6324a42a0907220005h617c3f79o1f399b716a644d1a@...627...> Message-ID: <4A671A40.7090609@...626...> Fabien Bodard a ?crit : I also tried that: either on 2.13.1-1 (debian sid) or 2.14.0 (lenny) it is NOT working: I have a right order with Arrow-Down (quite normal, as it moves in a "column"), but never with Tab; even having deleting the Quit button and recreated it in order to be sure it is to be the last object in the form's order. Furthermore: when I reorder buttons in hierarchy tab they take their former order back at app start - no matter if I've suppressed the quit button and recreated it (also tested with grpInput_KeyPress() proc disabled) > the order of tab depend of the zorder of the control in the > container.. You can use the hierarchy tab on the Rigth of the IDE to > manage the position of the controls in each container. > > > 2009/7/22 Jean-Yves F. Barbier <12ukwn at ...626...>: >> Hi, >> >> I've got a small connection form with 2 buttons underneath; these buttons are >> included in a HBox. >> Even if I put the buttons in the same group as TextBoxes (grpInput), give >> everybody a tag and handle kdb events through a grpInput_KeyPress() proc, the >> left button is _always_ the one whose getting focus. >> >> How can I change that behaviour? -- The white race is the cancer of history. -- Susan Sontag From gambas at ...1... Wed Jul 22 16:14:45 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Jul 2009 16:14:45 +0200 Subject: [Gambas-user] buttons in hbox order PB In-Reply-To: <4A671A40.7090609@...626...> References: <4A669089.1050605@...626...> <6324a42a0907220005h617c3f79o1f399b716a644d1a@...627...> <4A671A40.7090609@...626...> Message-ID: <200907221614.45658.gambas@...1...> > Fabien Bodard a ?crit : > > I also tried that: either on 2.13.1-1 (debian sid) or 2.14.0 (lenny) it is > NOT working: I have a right order with Arrow-Down (quite normal, as it > moves in a "column"), but never with Tab; even having deleting the Quit > button and recreated it in order to be sure it is to be the last object in > the form's order. > Furthermore: when I reorder buttons in hierarchy tab they take their former > order back at app start - no matter if I've suppressed the quit button and > recreated it (also tested with grpInput_KeyPress() proc disabled) > Because when a container arrange its contents, it sets the z-order too (this is the same thing). So, in the case of the HBox, the focus order will always be from left to right. Regards, -- Beno?t From 12ukwn at ...626... Wed Jul 22 17:04:44 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 22 Jul 2009 17:04:44 +0200 Subject: [Gambas-user] buttons in hbox order PB [SOLVED] In-Reply-To: <200907221614.45658.gambas@...1...> References: <4A669089.1050605@...626...> <6324a42a0907220005h617c3f79o1f399b716a644d1a@...627...> <4A671A40.7090609@...626...> <200907221614.45658.gambas@...1...> Message-ID: <4A672A8C.2000006@...626...> Beno?t Minisini a ?crit : ...... > Because when a container arrange its contents, it sets the z-order too (this > is the same thing). So, in the case of the HBox, the focus order will always > be from left to right. Yep, that's what I thought, so I solve this PB deleting the HBox and recreating one HBox for one button, rearrange HBoxes' hierarchy and it's working good :) -- ltd: Fine, go through life just pointing and grunting at what you mean. Works for Mac users. From prog at ...2177... Wed Jul 22 18:56:05 2009 From: prog at ...2177... (craf) Date: Wed, 22 Jul 2009 12:56:05 -0400 Subject: [Gambas-user] Firebird + Gambas Message-ID: <1248281765.3622.14.camel@...651...> Hi. Has anyone tried to connect to Firebird with Gambas, and was it?. Ideally, if there is no more support for a specific database, shall be removed from the examples. The author of the component can no longer be contacted by email. Regards From gambas at ...1... Wed Jul 22 20:08:38 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Jul 2009 20:08:38 +0200 Subject: [Gambas-user] Firebird + Gambas In-Reply-To: <1248281765.3622.14.camel@...651...> References: <1248281765.3622.14.camel@...651...> Message-ID: <200907222008.38963.gambas@...1...> > Hi. > > Has anyone tried to connect to Firebird with Gambas, and was it?. > Ideally, if there is no more support for a specific database, shall be > removed from the examples. > The author of the component can no longer be contacted by email. > > Regards I recently fixed things in the gb.db.firebird component, that was not compiled correctly. Did you try to connect to a Firebird database with the latest revision? -- Beno?t From gambas at ...1... Wed Jul 22 20:27:44 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Jul 2009 20:27:44 +0200 Subject: [Gambas-user] I made a big weird stupid mistake Message-ID: <200907222027.44847.gambas@...1...> Hi everyone, I accidently "rm -rf" the "web" directory of /home/gambas on the wiki server. :-( So the gambasdoc.org is not accessible for a unknown period. Sorry for the inconvenience! Now I hope Rob has saved something... -- Beno?t From prog at ...2177... Wed Jul 22 20:28:10 2009 From: prog at ...2177... (craf) Date: Wed, 22 Jul 2009 14:28:10 -0400 Subject: [Gambas-user] Firebird + Gambas In-Reply-To: <200907222008.38963.gambas@...1...> References: <1248281765.3622.14.camel@...651...> <200907222008.38963.gambas@...1...> Message-ID: <1248287291.3604.3.camel@...651...> Hi Benoit. I am using Ubuntu 9.04 and Gambas version 2.14.0. Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Firebird + Gambas Fecha: Wed, 22 Jul 2009 20:08:38 +0200 > Hi. > > Has anyone tried to connect to Firebird with Gambas, and was it?. > Ideally, if there is no more support for a specific database, shall be > removed from the examples. > The author of the component can no longer be contacted by email. > > Regards I recently fixed things in the gb.db.firebird component, that was not compiled correctly. Did you try to connect to a Firebird database with the latest revision? From gambas at ...1... Wed Jul 22 20:32:29 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Jul 2009 20:32:29 +0200 Subject: [Gambas-user] Firebird + Gambas In-Reply-To: <1248287291.3604.3.camel@...651...> References: <1248281765.3622.14.camel@...651...> <200907222008.38963.gambas@...1...> <1248287291.3604.3.camel@...651...> Message-ID: <200907222032.29956.gambas@...1...> > Hi Benoit. > > I am using Ubuntu 9.04 and Gambas version 2.14.0. > > Regards > So you are not using the latest "revision", but the latest "version". I will release a 2.15 soon with that fix. Regards, -- Beno?t From 12ukwn at ...626... Wed Jul 22 20:43:06 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 22 Jul 2009 20:43:06 +0200 Subject: [Gambas-user] I made a big weird stupid mistake In-Reply-To: <200907222027.44847.gambas@...1...> References: <200907222027.44847.gambas@...1...> Message-ID: <4A675DBA.7030407@...626...> Beno?t Minisini a ?crit : > Hi everyone, > > I accidently "rm -rf" the "web" directory of /home/gambas on the wiki server. > :-( > > So the gambasdoc.org is not accessible for a unknown period. > > Sorry for the inconvenience! > > Now I hope Rob has saved something... " I think we should vote for the best bug report of the year... :-) " " -- Beno?t " May be for admins too :) As it is not so big, you could have either a script that tar/compress it, chop it, and send it to you by email (~ once a week) or you could use backuppc which work natively through an SSH link and compress so efficiently (in bz2) that you can afford to do it every day without tremendous amounts of HD taken. You should also sleep a tiny bit more (I also sleep too few, and I'm obliged to re-read everything I type because I intervert letters when under 6Hrs of good sleep :( Anyway, you can solace yourself as the ones that does no mistakes doesn't do anything. JY -- The only time a dog gets complimented is when he doesn't do anything. -- C. Schulz From ron at ...1740... Wed Jul 22 20:45:00 2009 From: ron at ...1740... (Ron) Date: Wed, 22 Jul 2009 20:45:00 +0200 Subject: [Gambas-user] I made a big weird stupid mistake In-Reply-To: <200907222027.44847.gambas@...1...> References: <200907222027.44847.gambas@...1...> Message-ID: <4A675E2C.1060205@...1740...> Beno?t Minisini schreef: > Hi everyone, > > I accidently "rm -rf" the "web" directory of /home/gambas on the wiki server. > :-( > > So the gambasdoc.org is not accessible for a unknown period. > > Sorry for the inconvenience! > > Now I hope Rob has saved something... > > There are ways to undelete stuff from ext3 fs, but it's a bit of work. From prog at ...2177... Wed Jul 22 20:48:12 2009 From: prog at ...2177... (craf) Date: Wed, 22 Jul 2009 14:48:12 -0400 Subject: [Gambas-user] Firebird + Gambas In-Reply-To: <200907222032.29956.gambas@...1...> References: <1248281765.3622.14.camel@...651...> <200907222008.38963.gambas@...1...> <1248287291.3604.3.camel@...651...> <200907222032.29956.gambas@...1...> Message-ID: <1248288492.3604.4.camel@...651...> OK Benoit. Thanks. -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Firebird + Gambas Fecha: Wed, 22 Jul 2009 20:32:29 +0200 > Hi Benoit. > > I am using Ubuntu 9.04 and Gambas version 2.14.0. > > Regards > So you are not using the latest "revision", but the latest "version". I will release a 2.15 soon with that fix. Regards, From gambas at ...1... Wed Jul 22 20:50:31 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 22 Jul 2009 20:50:31 +0200 Subject: [Gambas-user] I made a big weird stupid mistake In-Reply-To: <4A675DBA.7030407@...626...> References: <200907222027.44847.gambas@...1...> <4A675DBA.7030407@...626...> Message-ID: <200907222050.31045.gambas@...1...> > Beno?t Minisini a ?crit : > > Hi everyone, > > > > I accidently "rm -rf" the "web" directory of /home/gambas on the wiki > > server. > > > > :-( > > > > So the gambasdoc.org is not accessible for a unknown period. > > > > Sorry for the inconvenience! > > > > Now I hope Rob has saved something... > > " I think we should vote for the best bug report of the year... :-) " > " -- Beno?t " > May be for admins too :) > > As it is not so big, you could have either a script that tar/compress it, > chop it, and send it to you by email (~ once a week) or you could use > backuppc which work natively through an SSH link and compress so > efficiently (in bz2) that you can afford to do it every day without > tremendous amounts of HD taken. > > You should also sleep a tiny bit more (I also sleep too few, and I'm > obliged to re-read everything I type because I intervert letters when under > 6Hrs of good sleep :( > > Anyway, you can solace yourself as the ones that does no mistakes doesn't > do anything. > > JY I actually just erased the web site, not the data that is stored in a mysql server. I could remade it by hand, but it would be far faster if Rob had a backup somewhere... -- Beno?t From sourceforge-raindog2 at ...94... Wed Jul 22 21:37:59 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 22 Jul 2009 15:37:59 -0400 Subject: [Gambas-user] I made a big weird stupid mistake In-Reply-To: <200907222027.44847.gambas@...1...> References: <200907222027.44847.gambas@...1...> Message-ID: <200907221537.59883.sourceforge-raindog2@...94...> On Wednesday 22 July 2009 02:27:44 pm Beno?t Minisini wrote: > So the gambasdoc.org is not accessible for a unknown period. > Sorry for the inconvenience! > Now I hope Rob has saved something... It's going again, thanks to a 10-month-old backup from the last time I tried to migrate our host to a new server ;) Rob From 12ukwn at ...626... Wed Jul 22 22:26:12 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 22 Jul 2009 22:26:12 +0200 Subject: [Gambas-user] ListView PB Message-ID: <4A6775E4.1080504@...626...> Hi, Base upon TreeView example, I made a popup appear when I left click a tree's leaf. It appears, but I can't have my 1st (or other) item automatically selected: ... ListView1.X = iX ListView1.Y = iY ListView1.Add("0", "Ajouter une feuille") ListView1.Add("1", "Enlever une feuille") ListView1.Add("3", "Aller boire un coup") 'ListView1.MoveFirst() ListView1.Visible = TRUE 'ListView1.MoveCurrent() ListView1.MoveFirst() ... doesn't work at all -- "The voters have spoken, the bastards ..." From 12ukwn at ...626... Thu Jul 23 02:34:48 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 02:34:48 +0200 Subject: [Gambas-user] use a string to make a call Message-ID: <4A67B028.8070702@...626...> Hi, I'd like to use the Key part of a ListView as the name of the proc to call when the corresponding item is clicked, is it possible? JY -- If you tell the truth you don't have to remember anything. -- Mark Twain From gambas at ...1... Thu Jul 23 03:40:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jul 2009 03:40:57 +0200 Subject: [Gambas-user] A screenshot of Qt 4 WebKit inside Gambas 3 Message-ID: <200907230340.57277.gambas@...1...> The quality of the jpeg is bad so that its size is lower than 256 Kb. This is the web application I develop for my job. Apparently there are some display bugs in WebKit when displaying underlined links... But hey, it seems to work quite reliably. -- Beno?t -------------- next part -------------- A non-text attachment was scrubbed... Name: webkit.jpeg Type: image/jpeg Size: 197816 bytes Desc: not available URL: From rterry at ...1946... Thu Jul 23 04:29:08 2009 From: rterry at ...1946... (richard terry) Date: Thu, 23 Jul 2009 12:29:08 +1000 Subject: [Gambas-user] A screenshot of Qt 4 WebKit inside Gambas 3 In-Reply-To: <200907230340.57277.gambas@...1...> References: <200907230340.57277.gambas@...1...> Message-ID: <200907231229.08220.rterry@...1946...> On Thu, 23 Jul 2009 11:40:57 am Beno?t Minisini wrote: > The quality of the jpeg is bad so that its size is lower than 256 Kb. This > is the web application I develop for my job. > > Apparently there are some display bugs in WebKit when displaying underlined > links... > > But hey, it seems to work quite reliably. Can we access web-kit now in Gambas? richard From 12ukwn at ...626... Thu Jul 23 04:44:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 04:44:30 +0200 Subject: [Gambas-user] listbox display selected item Message-ID: <4A67CE8E.3080508@...626...> Hi, is there a way to make an item appear selected when the mouse is hovering it? (just after ListBox activation) -- "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh) From dosida at ...626... Thu Jul 23 05:50:50 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 22 Jul 2009 21:50:50 -0600 Subject: [Gambas-user] use a string to make a call In-Reply-To: <4A67B028.8070702@...626...> References: <4A67B028.8070702@...626...> Message-ID: <82bffccf0907222050h117e12adyf2df0f8997f2d13a@...627...> JY, I don't know if there's a direct way but this workaround has worked for me in the past PUBLIC SUB Form_Open() 'populate the listview as an example. Listview1.Add("Blah","Hi there") Listview1.Add("Blah2","How are you") END PUBLIC SUB chooseSub(choice as String) SELECT CASE choice CASE "Blah" Message.Info("Key is Blah") CASE "Blah2" Message.Info("Key is Blah2") CASE ELSE END SELECT END PUBLIC SUB ListView1_Click() 'give the key of the selected item as a parameter 'to the chooseSub subroutine chooseSub(Listview1.Item.Key) END Hope I helped, Regards, Dimitris On Wed, Jul 22, 2009 at 6:34 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > Hi, > > I'd like to use the Key part of a ListView as the name of the proc to call > when the corresponding item is clicked, is it possible? > > JY > -- > If you tell the truth you don't have to remember anything. > -- Mark Twain > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Jul 23 06:09:34 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 06:09:34 +0200 Subject: [Gambas-user] use a string to make a call In-Reply-To: <82bffccf0907222050h117e12adyf2df0f8997f2d13a@...627...> References: <4A67B028.8070702@...626...> <82bffccf0907222050h117e12adyf2df0f8997f2d13a@...627...> Message-ID: <4A67E27E.5020809@...626...> Dimitris Anogiatis a ?crit : > JY, I don't know if there's a direct way but this workaround has worked for > me in the past > > PUBLIC SUB Form_Open() > 'populate the listview as an example. > Listview1.Add("Blah","Hi there") > Listview1.Add("Blah2","How are you") > END > > PUBLIC SUB chooseSub(choice as String) > > SELECT CASE choice > CASE "Blah" > Message.Info("Key is Blah") > CASE "Blah2" > Message.Info("Key is Blah2") > CASE ELSE > END SELECT > > END > > PUBLIC SUB ListView1_Click() > 'give the key of the selected item as a parameter > 'to the chooseSub subroutine > chooseSub(Listview1.Item.Key) > END > > Hope I helped, YES Dimitri: that's exactly what I wanted Thanks! JY -- You can't underestimate the power of fear. -- Tricia Nixon From dosida at ...626... Thu Jul 23 06:20:20 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 22 Jul 2009 22:20:20 -0600 Subject: [Gambas-user] use a string to make a call In-Reply-To: <4A67E27E.5020809@...626...> References: <4A67B028.8070702@...626...> <82bffccf0907222050h117e12adyf2df0f8997f2d13a@...627...> <4A67E27E.5020809@...626...> Message-ID: <82bffccf0907222120k6c66d298g38bf254ab653a1a0@...627...> You're welcome JY :) Keep up the good work :) On Wed, Jul 22, 2009 at 10:09 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > Dimitris Anogiatis a ?crit : > > JY, I don't know if there's a direct way but this workaround has worked > for > > me in the past > > > > PUBLIC SUB Form_Open() > > 'populate the listview as an example. > > Listview1.Add("Blah","Hi there") > > Listview1.Add("Blah2","How are you") > > END > > > > PUBLIC SUB chooseSub(choice as String) > > > > SELECT CASE choice > > CASE "Blah" > > Message.Info("Key is Blah") > > CASE "Blah2" > > Message.Info("Key is Blah2") > > CASE ELSE > > END SELECT > > > > END > > > > PUBLIC SUB ListView1_Click() > > 'give the key of the selected item as a parameter > > 'to the chooseSub subroutine > > chooseSub(Listview1.Item.Key) > > END > > > > Hope I helped, > > YES Dimitri: that's exactly what I wanted > Thanks! > > JY > -- > You can't underestimate the power of fear. > -- Tricia Nixon > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Thu Jul 23 06:27:31 2009 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 23 Jul 2009 00:27:31 -0400 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A67CE8E.3080508@...626...> References: <4A67CE8E.3080508@...626...> Message-ID: <4A67E6B3.6050904@...981...> I suppose one could use the MouseMove event, track the mouse position over the listbox and highlight the item that it is over... I seem to recall something about this... just it was a long time ago and now Iits fuzzy as to if it was in VB 6.0 or Gambas... Sorry, not much help but perhaps it will get the creative juices flowing. :) Steve. Jean-Yves F. Barbier wrote: > Hi, > > is there a way to make an item appear selected when the mouse is hovering it? > (just after ListBox activation) > From dosida at ...626... Thu Jul 23 06:30:57 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 22 Jul 2009 22:30:57 -0600 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A67CE8E.3080508@...626...> References: <4A67CE8E.3080508@...626...> Message-ID: <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> JY,to select a specific item in a listview you have to provide the item's key like this Listview1["Blah"].Selected = True if you want to automatically select the first item that is on the listview you try this IF Listview1.Count > 0 THEN Listview1.MoveFirst Listview1.Item.Selected = True ENDIF Hope that helps Regards, Dimitris On Wed, Jul 22, 2009 at 8:44 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > Hi, > > is there a way to make an item appear selected when the mouse is hovering > it? > (just after ListBox activation) > > -- > "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and > the Ugly)." (By Matt Welsh) > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Jul 23 06:37:49 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 06:37:49 +0200 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A67E6B3.6050904@...981...> References: <4A67CE8E.3080508@...626...> <4A67E6B3.6050904@...981...> Message-ID: <4A67E91D.7060703@...626...> Stephen Bungay a ?crit : > I suppose one could use the MouseMove event, track the mouse position > over the listbox and highlight the item that it is over... I seem to > recall something about this... just it was a long time ago and now Iits > fuzzy as to if it was in VB 6.0 or Gambas... > Sorry, not much help but perhaps it will get the creative juices > flowing. :) Thanks Stephen, but even if it could be fun I don't have time for it: that's too much work at this time for only a small visual effect (may be when my program will be in beta version) JY -- Objectivity is to a newspaper what virtue is to a woman. -- Joseph Pulitzer From sbungay at ...981... Thu Jul 23 06:58:55 2009 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 23 Jul 2009 00:58:55 -0400 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A67E91D.7060703@...626...> References: <4A67CE8E.3080508@...626...> <4A67E6B3.6050904@...981...> <4A67E91D.7060703@...626...> Message-ID: <4A67EE0F.9060509@...981...> It won't work anyway, for reasons which are known only to the implementor, the mousemove event fires only when the mouse button is down AND the mouse is moving within the confines of the listbox (so that would be a MouseMoveWithButtonDown event then). IMHO this is not as useful as simply having the event fire when the mouse is moving within the confines of the target control as it makes effects like the one you desire somewhat difficult, if not impossible, to implement. Steve. Jean-Yves F. Barbier wrote: > Stephen Bungay a ?crit : >> I suppose one could use the MouseMove event, track the mouse position >> over the listbox and highlight the item that it is over... I seem to >> recall something about this... just it was a long time ago and now Iits >> fuzzy as to if it was in VB 6.0 or Gambas... >> Sorry, not much help but perhaps it will get the creative juices >> flowing. :) > > Thanks Stephen, but even if it could be fun I don't have time for it: > that's too much work at this time for only a small visual effect (may be when > my program will be in beta version) > > JY From 12ukwn at ...626... Thu Jul 23 07:47:23 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 07:47:23 +0200 Subject: [Gambas-user] listbox display selected item In-Reply-To: <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> Message-ID: <4A67F96B.5030004@...626...> Dimitris Anogiatis a ?crit : > JY,to select a specific item in a listview you have to provide the item's > key like this > > Listview1["Blah"].Selected = True > > if you want to automatically select the first item that is on the listview > you try this > > IF Listview1.Count > 0 THEN > Listview1.MoveFirst > Listview1.Item.Selected = True > ENDIF Not this Time, Dimitri. I'm searching a behaviour as Stephen told about. In fact I expected the selection bar to automatically move, such as in a ComboBox (Beno?t, why ListBox & ListView don't act alike ComboBox??) I guess we should be more tyrannical toward Beno?t, so he won't loose time scratching his wiki's root, nor watching TV neither sleeping ;-) JY -- I read the newspaper avidly. It is my one form of continuous fiction. -- Aneurin Bevan From dosida at ...626... Thu Jul 23 09:06:05 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 23 Jul 2009 01:06:05 -0600 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A67F96B.5030004@...626...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> Message-ID: <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> JY, I think I got it working the way you want it... try my example with a new project with a listview and a timer. Set the timer for 10 miliseconds and enable it and paste this code in the class ----------------------------------------------------------------------------------------------------------------------------------------------------- ' Gambas class file PUBLIC SUB _new() END PUBLIC SUB Form_Open() Listview1.Add("Blah", "Hi there") Listview1.Add("Blah2", "How are you") Listview1.Add("Blah3", "I'm good") Listview1.Add("Blah4", "How about you?") END PUBLIC SUB chooseSub(choice AS String) SELECT CASE choice CASE "Blah" PRINT ("Key is Blah") CASE "Blah2" PRINT ("Key is Blah2") CASE "Blah3" PRINT ("Key is Blah3") CASE "Blah4" PRINT ("Key is Blah4") CASE ELSE END SELECT END PUBLIC SUB ListView1_Click() chooseSub(Listview1.Item.Key) END PUBLIC SUB Timer1_Timer() 'Listview1.Find(Mouse.ScreenX - fmain.ScreenX - Listview1.Left, Mouse.ScreenY - Fmain.ScreenY - Listview1.Top) IF Listview1.Count > 0 THEN SELECT CASE Listview1.Find(Mouse.ScreenX - Fmain.ScreenX - Listview1.Left, Mouse.ScreenY - Fmain.ScreenY - Listview1.Top) CASE FALSE Listview1[getKeyFromPosition(Listview1, (Mouse.ScreenY - Fmain.ScreenY - Listview1.Top) \ 25)].selected = TRUE CASE ELSE END SELECT ENDIF END PUBLIC FUNCTION getKeyFromPosition(lv AS ListView, pos AS Integer) AS String DIM iterator AS Integer DIM tmpCount AS Integer DIM res AS String IF pos <= 0 THEN tmpCount = 0 IF pos >= lv.Count THEN tmpCount = lv.Count - 1 ELSE tmpCount = pos ENDIF lv.MoveFirst FOR iterator = 0 TO tmpCount - 1 lv.MoveNext NEXT res = lv.Item.Key RETURN res END ----------------------------------------------------------------------------------------------------------------------------------------------------- be careful of all the events firing and the code executing... but I think I got it as close to what you want it to do, as possible hope this helps in your project Keep up the good work Regards, Dimitris On Wed, Jul 22, 2009 at 11:47 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > Dimitris Anogiatis a ?crit : > > JY,to select a specific item in a listview you have to provide the item's > > key like this > > > > Listview1["Blah"].Selected = True > > > > if you want to automatically select the first item that is on the > listview > > you try this > > > > IF Listview1.Count > 0 THEN > > Listview1.MoveFirst > > Listview1.Item.Selected = True > > ENDIF > > Not this Time, Dimitri. > I'm searching a behaviour as Stephen told about. > In fact I expected the selection bar to automatically move, such as in > a ComboBox (Beno?t, why ListBox & ListView don't act alike ComboBox??) > > I guess we should be more tyrannical toward Beno?t, so he won't loose time > scratching his wiki's root, nor watching TV neither sleeping ;-) > > JY > -- > I read the newspaper avidly. It is my one form of continuous fiction. > -- Aneurin Bevan > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Jul 23 10:11:06 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 10:11:06 +0200 Subject: [Gambas-user] listbox display selected item In-Reply-To: <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> Message-ID: <4A681B1A.8070506@...626...> Dimitris Anogiatis a ?crit : > JY, I think I got it working the way you want it... YES, thanks Dimitri its working almost exactly as I wanted! I said almost because I've got a weird behaviour: my arrow cursor is pointing ~30? up-left and it is not the arrow's tip that trigger the change, it is its middle!? I also tested with a cross cursor, that's worse: trigger point is at the bottom of the vertical blade. I'm working with a 19" CRT 4/3 1600x1200 On my other machine (22" LCD 16/9 1920x1080) it is even worse: the trigger point is located under the arrow and I can't hilight the last item! Corrections applied to Y calculation don't catch these differences :( JY -- Is something VIOLENT going to happen to a GARBAGE CAN? From 12ukwn at ...626... Thu Jul 23 10:20:44 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 10:20:44 +0200 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A681B1A.8070506@...626...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> <4A681B1A.8070506@...626...> Message-ID: <4A681D5C.9090509@...626...> Jean-Yves F. Barbier a ?crit : Stranger: if I changed the Mode property from Single to None, the not-selection (nevertheless displayed as a dotted line square) is working perfectly. -- From dosida at ...626... Thu Jul 23 10:29:13 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 23 Jul 2009 02:29:13 -0600 Subject: [Gambas-user] listbox display selected item In-Reply-To: <4A681D5C.9090509@...626...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> <4A681B1A.8070506@...626...> <4A681D5C.9090509@...626...> Message-ID: <82bffccf0907230129v405d32dfo4fee7eaf93a00cbe@...627...> True, I'm still working the kinks on it. It has to do with the code in the timer event... and the way the coordinates are interpreted. I'll keep working on it and update the post when I get it perfect (or as close to perfect as possible) Regards, Dimitris On Thu, Jul 23, 2009 at 2:20 AM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > Jean-Yves F. Barbier a ?crit : > > Stranger: if I changed the Mode property from Single to None, the > not-selection (nevertheless displayed as a dotted line square) is > working perfectly. > > -- > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Jul 23 12:25:03 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 23 Jul 2009 12:25:03 +0200 Subject: [Gambas-user] listbox display selected item [SOLVED] In-Reply-To: <82bffccf0907230129v405d32dfo4fee7eaf93a00cbe@...627...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> <4A681B1A.8070506@...626...> <4A681D5C.9090509@...626...> <82bffccf0907230129v405d32dfo4fee7eaf93a00cbe@...627...> Message-ID: <4A683A7F.201@...626...> Dimitris Anogiatis a ?crit : > True, I'm still working the kinks on it. It has to do with the code in the > timer event... and the way the coordinates are interpreted. > > I'll keep working on it and update the post when I get it perfect (or as > close to perfect as possible) I got it :) PUBLIC SUB Timer1_Timer() IF Listview1.Count > 0 THEN SELECT CASE Listview1.Find(Mouse.ScreenX - Listview1.ScreenX, Mouse.ScreenY - Listview1.ScreenY) CASE FALSE PRINT Mouse.ScreenY & " " & Int((Mouse.ScreenY - Listview1.ScreenY) / 20) Listview1[getKeyFromPosition(Listview1, (Mouse.ScreenY - Listview1.ScreenY) / 19)].selected = TRUE CASE ELSE ' rin de rin END SELECT ENDIF END Working good on both computers (quite normal, as the error was the same on each) Thanks again Dimitri, I would have take many time to succeed (if any) JY -- Beware of the man who denounces women writers; his penis is tiny and he cannot spell. -- Erica Jong From dosida at ...626... Thu Jul 23 12:40:58 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 23 Jul 2009 04:40:58 -0600 Subject: [Gambas-user] listbox display selected item [SOLVED] In-Reply-To: <4A683A7F.201@...626...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> <4A681B1A.8070506@...626...> <4A681D5C.9090509@...626...> <82bffccf0907230129v405d32dfo4fee7eaf93a00cbe@...627...> <4A683A7F.201@...626...> Message-ID: <82bffccf0907230340y24ab6db5u130603dea879481@...627...> You're welcome JY, I'm glad I could help :) Keep up the good work :) Regards Dimitris On Thu, Jul 23, 2009 at 4:25 AM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > Dimitris Anogiatis a ?crit : > > True, I'm still working the kinks on it. It has to do with the code in > the > > timer event... and the way the coordinates are interpreted. > > > > I'll keep working on it and update the post when I get it perfect (or as > > close to perfect as possible) > > I got it :) > > PUBLIC SUB Timer1_Timer() > IF Listview1.Count > 0 THEN > SELECT CASE Listview1.Find(Mouse.ScreenX - Listview1.ScreenX, > Mouse.ScreenY > - Listview1.ScreenY) > CASE FALSE > PRINT Mouse.ScreenY & " " & Int((Mouse.ScreenY - Listview1.ScreenY) > / 20) > Listview1[getKeyFromPosition(Listview1, (Mouse.ScreenY - > Listview1.ScreenY) / 19)].selected = TRUE > CASE ELSE > ' rin de rin > END SELECT > ENDIF > END > > Working good on both computers (quite normal, as the error was the same on > each) > > Thanks again Dimitri, I would have take many time to succeed (if any) > > JY > -- > Beware of the man who denounces women writers; his penis is tiny and he > cannot spell. -- Erica Jong > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jul 23 13:26:50 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jul 2009 13:26:50 +0200 Subject: [Gambas-user] A screenshot of Qt 4 WebKit inside Gambas 3 In-Reply-To: <200907231229.08220.rterry@...1946...> References: <200907230340.57277.gambas@...1...> <200907231229.08220.rterry@...1946...> Message-ID: <200907231326.50417.gambas@...1...> > On Thu, 23 Jul 2009 11:40:57 am Beno?t Minisini wrote: > > The quality of the jpeg is bad so that its size is lower than 256 Kb. > > This is the web application I develop for my job. > > > > Apparently there are some display bugs in WebKit when displaying > > underlined links... > > > > But hey, it seems to work quite reliably. > > Can we access web-kit now in Gambas? > > richard > Wait for the commit dude. :-) -- Beno?t From david_villalobos_c at ...43... Thu Jul 23 15:52:06 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 23 Jul 2009 06:52:06 -0700 (PDT) Subject: [Gambas-user] A screenshot of Qt 4 WebKit inside Gambas 3 In-Reply-To: <200907231326.50417.gambas@...1...> References: <200907230340.57277.gambas@...1...> <200907231229.08220.rterry@...1946...> <200907231326.50417.gambas@...1...> Message-ID: <808931.39935.qm@...1678...> It looks simply GREAT!!!! I can't wait to try it, Come on Benoit, make the commit ASAP :-) Regards -- David ----- Original Message ---- From: Beno?t Minisini To: richard terry ; mailing list for gambas users Sent: Thursday, July 23, 2009 5:26:50 AM Subject: Re: [Gambas-user] A screenshot of Qt 4 WebKit inside Gambas 3 > On Thu, 23 Jul 2009 11:40:57 am Beno?t Minisini wrote: > > The quality of the jpeg is bad so that its size is lower than 256 Kb. > > This is the web application I develop for my job. > > > > Apparently there are some display bugs in WebKit when displaying > > underlined links... > > > > But hey, it seems to work quite reliably. > > Can we access web-kit now in Gambas? > > richard > Wait for the commit dude. :-) -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mr_e at ...2237... Thu Jul 23 16:30:47 2009 From: mr_e at ...2237... (Fred Ellis) Date: 23 Jul 2009 14:30:47 -0000 Subject: [Gambas-user] Cannot compile Message-ID: <20090723143047.2599.qmail@...2238...> This is my first post here, and I'm new to programming. I saw Gambas and thought I'd investigate as something to try to learn. I'm using Gambas2 on Linux (PCLOS 2009.1), however Ive hit trouble right at the start. If I load Gambas2 and open the installed examples, I'm told they are read-only and when I click run, they compile and run as expected. However, if I move any of them to my home directory and try to compile and run them, all I see is a message in the bottom left saying "compiling project " but nothing runs. Similar if I try to make executable, it prompts for a name and I get a similar message to that above, but nothing happens. Nothing runs and no file appears to be created. However, If I make the folder in my home, my moved copy, effectively read only by changing the permissions of owner for the folder from 'can view and modify content' to 'can view content', I'm then told that the project is read only (expected) and then if I try to compile it seems to work OK. But now, I guess as its read only, there is no make executable option. I also tried the simple 'hello world' example entering it all from scratch, and the same thing happens. I cannot get it to compile and run. I guess I'm doing something daft as a new user, but, any ideas anyone? Thanks. From jarkko.harma at ...2239... Thu Jul 23 17:07:10 2009 From: jarkko.harma at ...2239... (=?ISO-8859-1?Q?Jarkko_H=E4rm=E4?=) Date: Thu, 23 Jul 2009 18:07:10 +0300 Subject: [Gambas-user] Reading email Message-ID: <4A687C9E.2080106@...2239...> Hello Is there any way of reading email from Gambas ? Jarkko From mohareve at ...626... Thu Jul 23 17:51:42 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 23 Jul 2009 17:51:42 +0200 Subject: [Gambas-user] Cannot compile In-Reply-To: <20090723143047.2599.qmail@...2238...> References: <20090723143047.2599.qmail@...2238...> Message-ID: If want to experimenting with Gambas examples, you should open them, and then make a Save As... with them, and you will have them as your own projects, and of course, they'll become writable. This is the normal way of behaviour, so don't worry! From sbungay at ...981... Thu Jul 23 18:09:58 2009 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 23 Jul 2009 12:09:58 -0400 Subject: [Gambas-user] listbox display selected item In-Reply-To: <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> References: <4A67CE8E.3080508@...626...> <82bffccf0907222130l590a3e46p4c403f69fcda00b5@...627...> <4A67F96B.5030004@...626...> <82bffccf0907230006v2959f943v5b2cee38712cad2e@...627...> Message-ID: <4A688B56.5090402@...981...> Good work-around Dimitris. Dimitris Anogiatis wrote: > JY, I think I got it working the way you want it... > > try my example with a new project with a listview and a timer. Set the timer > for 10 miliseconds and enable it > > and paste this code in the class > > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > ' Gambas class file > > PUBLIC SUB _new() > > END > > PUBLIC SUB Form_Open() > Listview1.Add("Blah", "Hi there") > Listview1.Add("Blah2", "How are you") > Listview1.Add("Blah3", "I'm good") > Listview1.Add("Blah4", "How about you?") > > END > > PUBLIC SUB chooseSub(choice AS String) > > SELECT CASE choice > CASE "Blah" > PRINT ("Key is Blah") > CASE "Blah2" > PRINT ("Key is Blah2") > CASE "Blah3" > PRINT ("Key is Blah3") > CASE "Blah4" > PRINT ("Key is Blah4") > CASE ELSE > END SELECT > > END > > PUBLIC SUB ListView1_Click() > > chooseSub(Listview1.Item.Key) > > END > > PUBLIC SUB Timer1_Timer() > > 'Listview1.Find(Mouse.ScreenX - fmain.ScreenX - Listview1.Left, > Mouse.ScreenY - Fmain.ScreenY - Listview1.Top) > IF Listview1.Count > 0 THEN > SELECT CASE Listview1.Find(Mouse.ScreenX - Fmain.ScreenX - > Listview1.Left, Mouse.ScreenY - Fmain.ScreenY - Listview1.Top) > CASE FALSE > Listview1[getKeyFromPosition(Listview1, (Mouse.ScreenY - > Fmain.ScreenY - Listview1.Top) \ 25)].selected = TRUE > > CASE ELSE > END SELECT > ENDIF > > END > > PUBLIC FUNCTION getKeyFromPosition(lv AS ListView, pos AS Integer) AS String > DIM iterator AS Integer > DIM tmpCount AS Integer > > DIM res AS String > > IF pos <= 0 THEN tmpCount = 0 > IF pos >= lv.Count THEN > tmpCount = lv.Count - 1 > ELSE > tmpCount = pos > ENDIF > > lv.MoveFirst > > FOR iterator = 0 TO tmpCount - 1 > lv.MoveNext > NEXT > > res = lv.Item.Key > > RETURN res > END > > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > be careful of all the events firing and the code executing... but I think I > got it as close to what you want it to do, as possible > > hope this helps in your project > > Keep up the good work > > Regards, > Dimitris > > > On Wed, Jul 22, 2009 at 11:47 PM, Jean-Yves F. Barbier <12ukwn at ...626...>wrote: > >> Dimitris Anogiatis a ?crit : >>> JY,to select a specific item in a listview you have to provide the item's >>> key like this >>> >>> Listview1["Blah"].Selected = True >>> >>> if you want to automatically select the first item that is on the >> listview >>> you try this >>> >>> IF Listview1.Count > 0 THEN >>> Listview1.MoveFirst >>> Listview1.Item.Selected = True >>> ENDIF >> Not this Time, Dimitri. >> I'm searching a behaviour as Stephen told about. >> In fact I expected the selection bar to automatically move, such as in >> a ComboBox (Beno?t, why ListBox & ListView don't act alike ComboBox??) >> >> I guess we should be more tyrannical toward Beno?t, so he won't loose time >> scratching his wiki's root, nor watching TV neither sleeping ;-) >> >> JY >> -- >> I read the newspaper avidly. It is my one form of continuous fiction. >> -- Aneurin Bevan >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Thu Jul 23 18:17:02 2009 From: prog at ...2177... (craf) Date: Thu, 23 Jul 2009 12:17:02 -0400 Subject: [Gambas-user] Cannot compile In-Reply-To: <20090723143047.2599.qmail@...2238...> References: <20090723143047.2599.qmail@...2238...> Message-ID: <1248365822.3610.4.camel@...651...> -----Mensaje original----- De: Fred Ellis Reply-to: mailing list for gambas users Para: gambas-user at lists.sourceforge.net Asunto: [Gambas-user] Cannot compile Fecha: 23 Jul 2009 14:30:47 -0000 This is my first post here, and I'm new to programming. I saw Gambas and thought I'd investigate as something to try to learn. I'm using Gambas2 on Linux (PCLOS 2009.1), however Ive hit trouble right at the start. If I load Gambas2 and open the installed examples, I'm told they are read-only and when I click run, they compile and run as expected. It is a permissions issue. Open the console and type what is in bold below: pepe at ...651...:~$ cd /usr/local/share/gambas2/ then enter the following: pepe at ...651...:~$ sudo chown -R username.username /usr/local/share/gambas2/examples/ The username should you have to enter linux.This changes the owner of the folder to your root user. However, if I move any of them to my home directory and try to compile and run them, all I see is a message in the bottom left saying "compiling project " but nothing runs. Similar if I try to make executable, it prompts for a name and I get a similar message to that above, but nothing happens. Nothing runs and no file appears to be created. However, If I make the folder in my home, my moved copy, effectively read only by changing the permissions of owner for the folder from 'can view and modify content' to 'can view content', I'm then told that the project is read only (expected) and then if I try to compile it seems to work OK. But now, I guess as its read only, there is no make executable option. I also tried the simple 'hello world' example entering it all from scratch, and the same thing happens. I cannot get it to compile and run. I guess I'm doing something daft as a new user, but, any ideas anyone? Thanks. ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sbungay at ...981... Thu Jul 23 19:05:44 2009 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 23 Jul 2009 13:05:44 -0400 Subject: [Gambas-user] break long lines In-Reply-To: <200907202049.39406.gambas@...1...> References: <4A64B826.2070807@...626...> <4A64BAA8.3020702@...981...> <200907202049.39406.gambas@...1...> Message-ID: <4A689868.7070906@...981...> Beno?t Minisini wrote: >> For String assignments you can put an & at the end of it... >> >> String = "ABCD " & >> "1234" >> >> Steve. >> >> Jean-Yves F. Barbier wrote: >>> Hi, >>> >>> Is there a special character (such as \ under bash) to break a very long >>> line? >>> >>> JY > > There are two ways of spanning a long line on several ones: > > - Once a binary operator is read, its second operand can start on another > line. > > This is Jean-Yves' example. > > - A string can be written in several parts with new lines between. > > String = "This " "is " "actually " > "only " "one " "string " "in " "the " "compiled " "code!" > > Regards, > A caveat when not using the ampersand to span long lines at least when building strings.. for example this; SQLString = "SELECT * " "FROM Table1 " "WHERE Field1 LIKE " & TextBox1.Text & ";" Will generate an "Unexpected &" error, whereas this SQLString = "SELECT * " & "FROM Table1 " & "WHERE Field1 LIKE " & TextBox1.Text & ";" will not. Regards Steve. From ronstk at ...239... Thu Jul 23 19:15:11 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 23 Jul 2009 19:15:11 +0200 Subject: [Gambas-user] Cannot compile In-Reply-To: <1248365822.3610.4.camel@...651...> References: <20090723143047.2599.qmail@...2238...> <1248365822.3610.4.camel@...651...> Message-ID: <200907231915.12234.ronstk@...239...> On Thursday 23 July 2009, craf wrote: > -----Mensaje original----- > De: Fred Ellis > Reply-to: mailing list for gambas users > > Para: gambas-user at lists.sourceforge.net > Asunto: [Gambas-user] Cannot compile > Fecha: 23 Jul 2009 14:30:47 -0000 > > > > This is my first post here, and I'm new to programming. > > > > I saw Gambas and thought I'd investigate as something to try to learn. > > > > I'm using Gambas2 on Linux (PCLOS 2009.1), however Ive hit trouble right at the start. > > > > If I load Gambas2 and open the installed examples, I'm told they are read-only and when I click run, they compile and run as expected. > > > > It is a permissions issue. > > Open the console and type what is in bold below: > > pepe at ...651...:~$ cd /usr/local/share/gambas2/ > > then enter the following: > > pepe at ...651...:~$ sudo chown -R > username.username /usr/local/share/gambas2/examples/ > > The username should you have to enter linux.This changes the owner of > the folder to your root user. One big note. Thats wrong to do this way. If you start edit the working examples you lose you valuable good information. More correct is to copy the examples directory to you home and then do chown and chmod > > > However, if I move any of them to my home directory and try to compile and run them, all I see is a message in the bottom left saying "compiling project " but nothing runs. Similar if I try to make executable, it prompts for a name and I get a similar message to that above, but nothing happens. Nothing runs and no file appears to be created. > > > > However, If I make the folder in my home, my moved copy, effectively read only by changing the permissions of owner for the folder from 'can view and modify content' to 'can view content', I'm then told that the project is read only (expected) and then if I try to compile it seems to work OK. > > > > But now, I guess as its read only, there is no make executable option. > > > > I also tried the simple 'hello world' example entering it all from scratch, and the same thing happens. I cannot get it to compile and run. > > > > I guess I'm doing something daft as a new user, but, any ideas anyone? > > > > Thanks. > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From peter.talken at ...1879... Thu Jul 23 21:13:15 2009 From: peter.talken at ...1879... (Peter Landgren) Date: Thu, 23 Jul 2009 21:13:15 +0200 Subject: [Gambas-user] Compiling Gambas3 Message-ID: <200907232113.16384.peter.talken@...1879...> Hi, I tried to compile gambas3 after svn up to night, but got this message during make: CDial_moc.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt." CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" I have Qt Meta Object Compiler version 61 (Qt 4.5.1) on Manriva 2009.0. /Peter From gambas at ...1... Thu Jul 23 21:15:37 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jul 2009 21:15:37 +0200 Subject: [Gambas-user] Compiling Gambas3 In-Reply-To: <200907232113.16384.peter.talken@...1879...> References: <200907232113.16384.peter.talken@...1879...> Message-ID: <200907232115.37383.gambas@...1...> > Hi, > I tried to compile gambas3 after svn up to night, but got this message > during make: CDial_moc.cpp:14:2: error: #error "This file was generated > using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot be > used with the include files from this version of Qt." > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > > I have > Qt Meta Object Compiler version 61 (Qt 4.5.1) > on Manriva 2009.0. > > /Peter > Do a "make clean" and recompile. Regards, -- Beno?t From mr_e at ...2237... Fri Jul 24 11:37:02 2009 From: mr_e at ...2237... (Fred Ellis) Date: 24 Jul 2009 09:37:02 -0000 Subject: [Gambas-user] Cannot compile Message-ID: <20090724093702.6510.qmail@...2238...> thanks for the info. I may not have explained the problem well enough - sorry. If I load the 'read only' examples I can compile them and run them. If I move the examples to my /home, I can load them, but when I click compile/run, I just get a message in the lower left corner saying "compiling project" but nothing happens, nothing runs. If I make my 'moved copy' folder read only (folder permissions) then it appears to compile and run OK. But I can't then save into that folder as its read only. If I type in the 'hello world' example, then I get the error as above. It reports 'compiling project' but nothing runs. Clearly I've missed something simple :-( So basically, after typing in some code, how do I test run it? Thanks From Karl.Reinl at ...9... Fri Jul 24 11:51:35 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 24 Jul 2009 11:51:35 +0200 Subject: [Gambas-user] Cannot compile In-Reply-To: <20090724093702.6510.qmail@...2238...> References: <20090724093702.6510.qmail@...2238...> Message-ID: <1248429095.6643.5.camel@...40...> Am Freitag, den 24.07.2009, 09:37 +0000 schrieb Fred Ellis: > thanks for the info. > > > > I may not have explained the problem well enough - sorry. > > > > If I load the 'read only' examples I can compile them and run them. If I move the examples to my /home, I can load them, but when I click compile/run, I just get a message in the lower left corner saying "compiling project" but nothing happens, nothing runs. > > > > If I make my 'moved copy' folder read only (folder permissions) then it appears to compile and run OK. But I can't then save into that folder as its read only. > > > > If I type in the 'hello world' example, then I get the error as above. It reports 'compiling project' but nothing runs. > > > > Clearly I've missed something simple :-( > > > > So basically, after typing in some code, how do I test run it? > > > > Thanks Salut , in IDE type F5 for run or F8 for debug -- Amicalment Charlie From peter.talken at ...1879... Fri Jul 24 20:32:49 2009 From: peter.talken at ...1879... (Peter Landgren) Date: Fri, 24 Jul 2009 20:32:49 +0200 Subject: [Gambas-user] Compiling Gambas3 In-Reply-To: <200907232115.37383.gambas@...1...> References: <200907232113.16384.peter.talken@...1879...> <200907232115.37383.gambas@...1...> Message-ID: <200907242032.49675.peter.talken@...1879...> Den Thursday 23 July 2009 21.15.37 skrev Beno?t Minisini: > > Hi, > > I tried to compile gambas3 after svn up to night, but got this message > > during make: CDial_moc.cpp:14:2: error: #error "This file was generated > > using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot > > be used with the include files from this version of Qt." > > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > > > > I have > > Qt Meta Object Compiler version 61 (Qt 4.5.1) > > on Manriva 2009.0. > > > > /Peter > > Do a "make clean" and recompile. Should have thought of that! Thanks! /Peter From pinozollo at ...626... Fri Jul 24 20:47:47 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 24 Jul 2009 14:47:47 -0400 Subject: [Gambas-user] gb.qt.kde.html Message-ID: <200907241447.47484.pinozollo@...626...> Hi, I have just added the components gb.qt.kde and gb.qt.kde.html ad all my project did change look like if QT were not present. How can I force the QT look ? Thank you Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From david_villalobos_c at ...43... Fri Jul 24 20:55:58 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 24 Jul 2009 11:55:58 -0700 (PDT) Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <200907241447.47484.pinozollo@...626...> References: <200907241447.47484.pinozollo@...626...> Message-ID: <748882.8303.qm@...1656...> Application.Theme = "qt" Regards -- David ----- Original Message ---- From: Pino Zollo To: mailing list for gambas users Sent: Friday, July 24, 2009 12:47:47 PM Subject: [Gambas-user] gb.qt.kde.html Hi, I have just added the components gb.qt.kde and gb.qt.kde.html ad all my project did change look like if QT were not present. How can I force the QT look ? Thank you Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From 12ukwn at ...626... Fri Jul 24 21:00:21 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 24 Jul 2009 21:00:21 +0200 Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <200907241447.47484.pinozollo@...626...> References: <200907241447.47484.pinozollo@...626...> Message-ID: <4A6A04C5.5070502@...626...> Pino Zollo a ?crit : > Hi, > I have just added the components gb.qt.kde and gb.qt.kde.html ad all my > project did change look like if QT were not present. > > How can I force the QT look ? Normally, this has kicked gb.gui out, so you must be in Qt. If under kde, you can conform Qt to the kde look (located in the kde's options form). Otherwise, use the qtconfig-qt3 to change your applications look. JY -- From mr_e at ...2237... Fri Jul 24 21:01:54 2009 From: mr_e at ...2237... (Fred Ellis) Date: 24 Jul 2009 19:01:54 -0000 Subject: [Gambas-user] Cannot compile Message-ID: <20090724190154.7764.qmail@...2240...> I tried f5 and f8, its the same and does not work for me. If I press f5 or f8 on my copy of the example (in my /home) I just get 'compiling project' in the bottom left corner of the screen, and nothing seems to happen. If I press f5 or f8 on the real example, it either starts as expected (f5), or starts the breakpoint/step run (f8) as it should. Somethings gone wrong somewhere? From Karl.Reinl at ...9... Fri Jul 24 21:11:50 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 24 Jul 2009 21:11:50 +0200 Subject: [Gambas-user] Cannot compile In-Reply-To: <20090724190154.7764.qmail@...2240...> References: <20090724190154.7764.qmail@...2240...> Message-ID: <1248462710.6643.12.camel@...40...> Am Freitag, den 24.07.2009, 19:01 +0000 schrieb Fred Ellis: > I tried f5 and f8, its the same and does not work for me. > > > > If I press f5 or f8 on my copy of the example (in my /home) I just get 'compiling project' in the bottom left corner of the screen, and nothing seems to happen. > > > > If I press f5 or f8 on the real example, it either starts as expected (f5), or starts the breakpoint/step run (f8) as it should. > > > > Somethings gone wrong somewhere? Salut, what kind of project you made (don't remember) Can you post you 'hello world' project ? in IDE make Ctrl+Alt+A = Project/make/source archiv and send that. -- Amicalment Charlie From david_villalobos_c at ...43... Fri Jul 24 22:01:19 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 24 Jul 2009 13:01:19 -0700 (PDT) Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <200907241552.12531.pinozollo@...626...> References: <200907241447.47484.pinozollo@...626...> <200907241524.59766.pinozollo@...626...> <308640.148.qm@...1670...> <200907241552.12531.pinozollo@...626...> Message-ID: <332216.88300.qm@...1670...> Really don't know Regards -- David ----- Original Message ---- From: Pino Zollo To: David Villalobos Cambronero Sent: Friday, July 24, 2009 1:52:12 PM Subject: Re: [Gambas-user] gb.qt.kde.html Il venerd? 24 luglio 2009 15:40:32 hai scritto: > if you set it to qt4? > > Regards Just done but no change...seems inactive. Ciao Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From pinozollo at ...626... Fri Jul 24 22:07:37 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 24 Jul 2009 16:07:37 -0400 Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <332216.88300.qm@...1670...> References: <200907241447.47484.pinozollo@...626...> <200907241552.12531.pinozollo@...626...> <332216.88300.qm@...1670...> Message-ID: <200907241607.37904.pinozollo@...626...> Il venerd? 24 luglio 2009 16:01:19 David Villalobos Cambronero ha scritto: > Really don't know > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Pino Zollo > To: David Villalobos Cambronero > Sent: Friday, July 24, 2009 1:52:12 PM > Subject: Re: [Gambas-user] gb.qt.kde.html > > Il venerd? 24 luglio 2009 15:40:32 hai scritto: > > if you set it to qt4? > > > > Regards > > Just done but no change...seems inactive. > > Ciao > > Pino Maybe Il Maestro Beno?t knows... Gracias de todo modo.. Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From dosida at ...626... Fri Jul 24 23:39:16 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 24 Jul 2009 15:39:16 -0600 Subject: [Gambas-user] Cannot compile In-Reply-To: <1248462710.6643.12.camel@...40...> References: <20090724190154.7764.qmail@...2240...> <1248462710.6643.12.camel@...40...> Message-ID: <82bffccf0907241439w59c44ecs4d275c3a2c20a6d4@...627...> Hey Fred, Here's what I tried on my Debian Lenny. I installed gnome-commander and run it Gnome Commander is a program that looks like the old Norton Commander (http://en.wikipedia.org/wiki/Norton_Commander) Went on my home directory, made a folder called GambasProjects went into /usr/share/gambas2/examples/Misc and copied PDFViewer (one of the examples) into my GambasProjects folder. Then run Gambas2 and selected Open Project clicked on the GambasProjects and then on the PDFViewer folder in it and then the OK button and that loaded the pdfviewer normally. Press the run button and that should be it. The application should run normally which means you can also do debugging. Let me know if this worked for you Regards, Dimitris On Fri, Jul 24, 2009 at 1:11 PM, Charlie Reinl wrote: > Am Freitag, den 24.07.2009, 19:01 +0000 schrieb Fred Ellis: > > I tried f5 and f8, its the same and does not work for me. > > > > > > > > If I press f5 or f8 on my copy of the example (in my /home) I just get > 'compiling project' in the bottom left corner of the screen, and nothing > seems to happen. > > > > > > > > If I press f5 or f8 on the real example, it either starts as expected > (f5), or starts the breakpoint/step run (f8) as it should. > > > > > > > > Somethings gone wrong somewhere? > Salut, > > what kind of project you made (don't remember) > Can you post you 'hello world' project ? > > in IDE make Ctrl+Alt+A = Project/make/source archiv > > and send that. > > -- > Amicalment > Charlie > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jul 25 00:13:31 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jul 2009 00:13:31 +0200 Subject: [Gambas-user] Cannot compile In-Reply-To: <20090724190154.7764.qmail@...2240...> References: <20090724190154.7764.qmail@...2240...> Message-ID: <200907250013.31856.gambas@...1...> > I tried f5 and f8, its the same and does not work for me. > > > > If I press f5 or f8 on my copy of the example (in my /home) I just get > 'compiling project' in the bottom left corner of the screen, and nothing > seems to happen. > > > > If I press f5 or f8 on the real example, it either starts as expected (f5), > or starts the breakpoint/step run (f8) as it should. > > > > Somethings gone wrong somewhere? Why don't use the "Save as" menu of the IDE ? It will copy the read-only example project where you want (usually in your home directory) so that you can work on it if you need. -- Beno?t From gambas at ...1... Sat Jul 25 00:18:20 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jul 2009 00:18:20 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A642997.5010702@...1909...> References: <4A37AD7E.6080308@...221...> <200907200936.02914.gambas@...1...> <4A642997.5010702@...1909...> Message-ID: <200907250018.20201.gambas@...1...> > Beno?t Minisini ha scritto: > >> Rolf-Werner Eilert ha scritto: > >>> Could someone explain me why there are two different ways of executing > >>> shell commands and how they differ in practice? I mean, when do I want > >>> EXEC and when will I want SHELL? What's the idea behind them? > >>> > >>> Thanks for all hints :-) > >> > >> SHELL invokes /bin/sh and passes it a single command line. /bin/sh > >> parses this command line exactly the same way you do on a normal shell. > >> So, > >> > >> SHELL "ls -l *.o >/tmp/list" > >> > >> will do exactly the same as you typed "ls -l *.o >/tmp/list" in a > >> terminal emulator under a shell. This is a lot of things, because the > >> shell has a tremendous power. This command does: > >> > >> 1. split the command line in several parts: executable to run, > >> parameters to pass it, other constructs... > >> 2. search for an executable named ls in the PATH environment. > >> 3. substitute "*.o" with all the ".o" files in the current directory > >> 4. prepare a redirection (the normal output of /bin/ls is redirected > >> in /tmp/list) > >> > >> To make it short, the shell can do a lot of things, and the gambas SHELL > >> command brings that power to you. > >> After /bin/sh has done with all this parsing/computing work, it invokes > >> an exec() system call, which loads and executes an executable, passing > >> it a number of parameters. > >> > >> The gambas EXEC instruction calls the exec() system call, bypassing the > >> shell (/bin/sh). This is faster and less memory hungry, because you > >> invoke an external command without invoking /bin/sh, but you loose all > >> the power the shell has. In fact, if you want to list all the ".o" files > >> in the current directory and put the result in /tmp/list without using > >> the powerful shell, you have to: > >> > >> 1. search by yourself the files > >> 2. create an array of the names of those files > >> 3. invoke /bin/ls and pass it an array which contains the "-l" and > >> all the files > >> 4. redirect its standard output in a file > >> > >> To conclude. If you run an EXEC in gambas, you must simply supply the > >> program name to execute and all its parameter. If you issue: > >> > >> EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] > >> > >> you will invoke /bin/ls passing it the above parameters. /bin/ls will > >> (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" > >> will be recognized as files to look for, and no files named "*.o" will > >> exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and > >> /bin/ls will look again to for file named ">/tmp/list". > >> > >> You can type "man sh" at the shell prompt; all of what you will read > >> there are shell capabilities, and none of them are available in EXEC. > >> The three most important things which are available in the shell, and > >> not available in EXEC are: > >> > >> 1. Pattern substitution. *.o and the like are shell construct. > >> 2. Redirections and pipes. ">/...", "&1 |some_command" > >> and so on. > >> 3. Variables like $HOME, $PATH and so on > >> > >> But exec has a good advantage over SHELL. If you have to invoke an > >> external command which has (or can have) unusual characters in the > >> command line, like "firefox > >> http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, > >> /bin/sh) will interpret characters like "?" and "&", whilst EXEC will > >> not. > >> > >> The reply to your answer is: if you need some shell capability, use > >> SHELL; otherwise use EXEC. Using SHELL saves typing, on the other hand, > >> if you are sure that no strange characters ("?", "&", "$", spaces, and > >> others) can appear in the command you are constructing. > >> > >> Hope this is a good start - regards, > > > > I added this answer to the wiki, at > > http://gambasdoc.org/help/doc/shellexec. > > I am proud of this; re-reading this text I would suggest the following > corrections, if you don't mind: > > 1) Under the title "Exec", at point #3, replace '...array which contains > the "-l" and all the files.' with 'array which contains the "-l" and all > the filenames you found.' > > 2) In the section "But EXEC has a good advantage over SHELL...", the > sample code box has an extraneous trailing quote: 'firefox > http://someserver.com...reply=bar"' <-- trailing double quote. > > 3) May be some good-english-speaking-guy could revise the correctness... > > Thanks, and regards, > > Doriano Blengino > Fixed. -- Beno?t From pinozollo at ...626... Sat Jul 25 01:16:10 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 24 Jul 2009 19:16:10 -0400 Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <4A6A2DE4.5050906@...626...> References: <200907241447.47484.pinozollo@...626...> <200907241542.05096.pinozollo@...626...> <4A6A2DE4.5050906@...626...> Message-ID: <200907241916.10770.pinozollo@...626...> Il venerd? 24 luglio 2009 17:55:48 hai scritto: > Pino Zollo a ?crit : > ... > > > Merc? Jean-Yves, > > > > It seems that gb.gui is incompatible with gb.qt and gb.qt.ext ...so I am > > in a dead lock... > > Yes it is, but you have the choice: > > gb.gui => Gambas is choosing GTK||Qt, depending on your desktop settings, > gb.gtk => Forces GTK use > gb.qt => " Qt " > gb.dos => " MSDOS " > gb.gem => " GEM " > > > I just wanted to add to my application the Web browser to read the manual > > from my Internet site... > > don't know, I'm not creating anything for the web > > > Maybe there is an other way without having to use the gb.qt.kde.html ... > > I don't think it is possible to mix style, otherwise you would be allowed > to check them both in projects props; so if you want to use gb.qt.kde.html, > you _must_ use the Qt environment (which is really not a PITA:) > Furthermore the Qt licences have evolved, if you don't build a commercial > software you don't need a licence (GPL version) > > JY Thanks Jean-Yves, I have found a piece of code into Gambas source that fits my need... the PUBLIC SUB OpenWebPage(sLink AS String) in Project.module So I do not need anymore the Web browser as done in the example which comes with Gambas....which uses gb.qt.kde.html ... ...yes QT look nicer and my project is GNU GPL. Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From rterry at ...1946... Sat Jul 25 01:26:06 2009 From: rterry at ...1946... (richard terry) Date: Sat, 25 Jul 2009 09:26:06 +1000 Subject: [Gambas-user] Menu question Message-ID: <200907250926.06089.rterry@...1946...> Each menu has 'children' menu[0] = child 0 etc (I think) is there any way to return the child menu item collection simply ie with list you can read an listindex, no such thing in the menu? regards richard From 12ukwn at ...626... Sat Jul 25 01:41:37 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 25 Jul 2009 01:41:37 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <200907250018.20201.gambas@...1...> References: <4A37AD7E.6080308@...221...> <200907200936.02914.gambas@...1...> <4A642997.5010702@...1909...> <200907250018.20201.gambas@...1...> Message-ID: <4A6A46B1.2000009@...626...> >>>> SHELL invokes /bin/sh and passes it a single command line. /bin/sh >>>> parses this command line exactly the same way you do on a normal shell. >>>> So, SHELL invoke /bin/sh and pass it a single command line. /bin/sh parse this command line the same way it does on a regular shell, thus >>>> SHELL "ls -l *.o >/tmp/list" >>>> >>>> will do exactly the same as you typed "ls -l *.o >/tmp/list" in a >>>> terminal emulator under a shell. This is a lot of things, because the >>>> shell has a tremendous power. This command does: will do the same as if you typed: "ls -l *.o >/tmp/list" in a terminal emulator. This is very useful because the SHELL command is powerful. This simple line do: >>>> 1. split the command line in several parts: executable to run, >>>> parameters to pass it, other constructs... >>>> 2. search for an executable named ls in the PATH environment. >>>> 3. substitute "*.o" with all the ".o" files in the current directory >>>> 4. prepare a redirection (the normal output of /bin/ls is redirected >>>> in /tmp/list) 1. split command line in several parts: executable, parameters, other stuffs... 2. search for "ls" executable in environment PATH, 3. substitute "*.o" with all ".o" files in current directory, 4. prepare a redirection (the normal /bin/ls output (stdouput) is redirected to /tmp/list) >>>> To make it short, the shell can do a lot of things, and the gambas SHELL >>>> command brings that power to you. >>>> After /bin/sh has done with all this parsing/computing work, it invokes >>>> an exec() system call, which loads and executes an executable, passing >>>> it a number of parameters. To make it short, the shell can do a lot of things, and the gambas SHELL command brings that power to you. After /bin/sh is done with parsing & computing work, it invokes an exec() system call which load and run a program, passing it parameters. >>>> The gambas EXEC instruction calls the exec() system call, bypassing the >>>> shell (/bin/sh). This is faster and less memory hungry, because you >>>> invoke an external command without invoking /bin/sh, but you loose all >>>> the power the shell has. In fact, if you want to list all the ".o" files >>>> in the current directory and put the result in /tmp/list without using >>>> the powerful shell, you have to: Gambas EXEC instruction call the exec() system call, bypassing the shell (/bin/sh). This is faster and less memory hungry because you run an external command without invoking /bin/sh, but you loose the whole shell's power. As a matter of fact, if you want to list all the ".o" files from the current directory and put the result in /tmp/list without using shell, you have to: >>>> 1. search by yourself the files >>>> 2. create an array of the names of those files >>>> 3. invoke /bin/ls and pass it an array which contains the "-l" and >>>> all the files >>>> 4. redirect its standard output in a file 1. search files by yourself, 2. create a files names' array out of these files, 3. invoke /bin/ls and pass it an array which contains "-l" and the files names' array 4. redirect its standard output to a file >>>> To conclude. If you run an EXEC in gambas, you must simply supply the >>>> program name to execute and all its parameter. If you issue: In conclusion, if you run Gambas' EXEC you just supply it the program's name to run and its parameters. If you issue: >>>> EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] >>>> >>>> you will invoke /bin/ls passing it the above parameters. /bin/ls will >>>> (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" >>>> will be recognized as files to look for, and no files named "*.o" will >>>> exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and >>>> /bin/ls will look again to for file named ">/tmp/list". you'll invoke /bin/ls passing it the aforementioned parameters. /bin/ls will recognize "-l" as one of its switches; but "*.o" and ">/tmp/list" will be recognized as files to look after (no file named "*.o" can exist, as "*" is a wilcard character meaning "all".) ">/tmp/list" is a shell syntax, not especially a /bin/ls one; /bin/ls will make a redirection (the ">" character) toward /tmp/list file, creating it if it doesn't exist, squashing it if already there. >>>> You can type "man sh" at the shell prompt; all of what you will read >>>> there are shell capabilities, and none of them are available in EXEC. >>>> The three most important things which are available in the shell, and >>>> not available in EXEC are: For information you can type: man sh at shell prompt. This will show you the shell's whole information and syntax but none of them are available from the EXEC command. The most important three things available from shell and not available from EXEC are: >>>> 1. Pattern substitution. *.o and the like are shell construct. >>>> 2. Redirections and pipes. ">/...", "&1 |some_command" >>>> and so on. >>>> 3. Variables like $HOME, $PATH and so on 1. Pattern substitution. *.o and others are shell patterns, 2. Redirections and pipes. ">/...", "&1 | some_command" etc, 3. Environment variables, such as $HOME, $PATH, etc. >>>> But exec has a good advantage over SHELL. If you have to invoke an >>>> external command which has (or can have) unusual characters in the >>>> command line, like "firefox >>>> http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, >>>> /bin/sh) will interpret characters like "?" and "&", whilst EXEC will >>>> not. But EXEC have benefits against SHELL. If you have to invoke an external command which have (or may have) unusual characters in the command line, like 'firefox http://someserver.com/doit.cgi?name=foo&reply=bar', SHELL (understand /bin/sh or any other shell interpreter you use, such as zsh or csh) will interpret characters as "?" and "&" while EXEC will not. >>>> The reply to your answer is: if you need some shell capability, use >>>> SHELL; otherwise use EXEC. Using SHELL saves typing, on the other hand, >>>> if you are sure that no strange characters ("?", "&", "$", spaces, and >>>> others) can appear in the command you are constructing. A rule of thumb is: if you need shell capabilities, use SHELL; otherwise use EXEC. Using SHELL save typing, on the other hand, if you're sure no strange characters ("?", "&", "$", spaces, etc) will happend in the command line you're making, use EXEC. -- The English have no respect for their language, and will not teach their children to speak it. -- G. B. Shaw From gambas at ...1... Sat Jul 25 01:44:37 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jul 2009 01:44:37 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A6A46B1.2000009@...626...> References: <4A37AD7E.6080308@...221...> <200907250018.20201.gambas@...1...> <4A6A46B1.2000009@...626...> Message-ID: <200907250144.37147.gambas@...1...> > >>>> SHELL invokes /bin/sh and passes it a single command line. /bin/sh > >>>> parses this command line exactly the same way you do on a normal > >>>> shell. So, > > SHELL invoke /bin/sh and pass it a single command line. /bin/sh > parse this command line the same way it does on a regular shell, > thus > > >>>> SHELL "ls -l *.o >/tmp/list" > >>>> > >>>> will do exactly the same as you typed "ls -l *.o >/tmp/list" in a > >>>> terminal emulator under a shell. This is a lot of things, because the > >>>> shell has a tremendous power. This command does: > > will do the same as if you typed: "ls -l *.o >/tmp/list" in a > terminal emulator. This is very useful because the > > SHELL command is powerful. This simple line do: > >>>> 1. split the command line in several parts: executable to run, > >>>> parameters to pass it, other constructs... > >>>> 2. search for an executable named ls in the PATH environment. > >>>> 3. substitute "*.o" with all the ".o" files in the current > >>>> directory 4. prepare a redirection (the normal output of /bin/ls is > >>>> redirected in /tmp/list) > > 1. split command line in several parts: executable, > parameters, other stuffs... > 2. search for "ls" executable in environment PATH, > 3. substitute "*.o" with all ".o" files in current directory, > 4. prepare a redirection (the normal /bin/ls output (stdouput) is > redirected to /tmp/list) > > >>>> To make it short, the shell can do a lot of things, and the gambas > >>>> SHELL command brings that power to you. > >>>> After /bin/sh has done with all this parsing/computing work, it > >>>> invokes an exec() system call, which loads and executes an executable, > >>>> passing it a number of parameters. > > To make it short, the shell can do a lot of things, and the gambas SHELL > command brings that power to you. > After /bin/sh is done with parsing & computing work, it invokes > an exec() system call which load and run a program, passing > it parameters. > > >>>> The gambas EXEC instruction calls the exec() system call, bypassing > >>>> the shell (/bin/sh). This is faster and less memory hungry, because > >>>> you invoke an external command without invoking /bin/sh, but you loose > >>>> all the power the shell has. In fact, if you want to list all the ".o" > >>>> files in the current directory and put the result in /tmp/list without > >>>> using the powerful shell, you have to: > > Gambas EXEC instruction call the exec() system call, bypassing the > shell (/bin/sh). This is faster and less memory hungry because you > run an external command without invoking /bin/sh, but you loose the whole > shell's power. As a matter of fact, if you want to list all the ".o" files > from the current directory and put the result in /tmp/list without using > > shell, you have to: > >>>> 1. search by yourself the files > >>>> 2. create an array of the names of those files > >>>> 3. invoke /bin/ls and pass it an array which contains the "-l" and > >>>> all the files > >>>> 4. redirect its standard output in a file > > 1. search files by yourself, > 2. create a files names' array out of these files, > 3. invoke /bin/ls and pass it an array which contains "-l" and > the files names' array > 4. redirect its standard output to a file > > >>>> To conclude. If you run an EXEC in gambas, you must simply supply the > >>>> program name to execute and all its parameter. If you issue: > > In conclusion, if you run Gambas' EXEC you just supply it the > > program's name to run and its parameters. If you issue: > >>>> EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] > >>>> > >>>> you will invoke /bin/ls passing it the above parameters. /bin/ls will > >>>> (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" > >>>> will be recognized as files to look for, and no files named "*.o" will > >>>> exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and > >>>> /bin/ls will look again to for file named ">/tmp/list". > > you'll invoke /bin/ls passing it the aforementioned parameters. /bin/ls > will recognize "-l" as one of its switches; but "*.o" and ">/tmp/list" > will be recognized as files to look after (no file named "*.o" can exist, > as "*" is a wilcard character meaning "all".) > ">/tmp/list" is a shell syntax, not especially a /bin/ls one; > /bin/ls will make a redirection (the ">" character) toward /tmp/list file, > creating it if it doesn't exist, squashing it if already there. > > >>>> You can type "man sh" at the shell prompt; all of what you will read > >>>> there are shell capabilities, and none of them are available in EXEC. > >>>> The three most important things which are available in the shell, and > >>>> not available in EXEC are: > > For information you can type: man sh at shell prompt. This will show you > the shell's whole information and syntax but none of them are available > from the EXEC command. The most important three things available from > shell and > > not available from EXEC are: > >>>> 1. Pattern substitution. *.o and the like are shell construct. > >>>> 2. Redirections and pipes. ">/...", "&1 |some_command" > >>>> and so on. > >>>> 3. Variables like $HOME, $PATH and so on > > 1. Pattern substitution. *.o and others are shell patterns, > 2. Redirections and pipes. ">/...", "&1 | some_command" > etc, > 3. Environment variables, such as $HOME, $PATH, etc. > > >>>> But exec has a good advantage over SHELL. If you have to invoke an > >>>> external command which has (or can have) unusual characters in the > >>>> command line, like "firefox > >>>> http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, > >>>> /bin/sh) will interpret characters like "?" and "&", whilst EXEC will > >>>> not. > > But EXEC have benefits against SHELL. If you have to invoke an > external command which have (or may have) unusual characters in the > command line, like 'firefox > http://someserver.com/doit.cgi?name=foo&reply=bar', SHELL (understand > /bin/sh or any other shell interpreter you use, such as zsh or csh) will > interpret characters as "?" and "&" while EXEC will not. > > >>>> The reply to your answer is: if you need some shell capability, use > >>>> SHELL; otherwise use EXEC. Using SHELL saves typing, on the other > >>>> hand, if you are sure that no strange characters ("?", "&", "$", > >>>> spaces, and others) can appear in the command you are constructing. > > A rule of thumb is: if you need shell capabilities, use SHELL; > otherwise use EXEC. Using SHELL save typing, on the other hand, > if you're sure no strange characters ("?", "&", "$", spaces, etc) > will happend in the command line you're making, use EXEC. Please work directly on the wiki. Things on the mailing-list won't go there automagically... Regards, -- Beno?t From 12ukwn at ...626... Sat Jul 25 02:30:52 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 25 Jul 2009 02:30:52 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <200907250144.37147.gambas@...1...> References: <4A37AD7E.6080308@...221...> <200907250018.20201.gambas@...1...> <4A6A46B1.2000009@...626...> <200907250144.37147.gambas@...1...> Message-ID: <4A6A523C.1090702@...626...> Beno?t Minisini a ?crit : ... > > Please work directly on the wiki. Things on the mailing-list won't go there > automagically... I don't have a wiki account nor know the wiki's syntax. JY -- From dent.nic at ...626... Sat Jul 25 06:07:21 2009 From: dent.nic at ...626... (nic) Date: Fri, 24 Jul 2009 21:07:21 -0700 Subject: [Gambas-user] Moving things Message-ID: Is there a quick, easy way to make a picture or button move according to the arrow keys? From dosida at ...626... Sat Jul 25 08:02:20 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 25 Jul 2009 00:02:20 -0600 Subject: [Gambas-user] Menu question In-Reply-To: <200907250926.06089.rterry@...1946...> References: <200907250926.06089.rterry@...1946...> Message-ID: <82bffccf0907242302o79be2c57qfc7dada7a5fc1476@...627...> Hey Richard, >From what I've read in the gambasdocs and from what I can infer, every menu child is a menuItem collection so if you have a menu called mnuFile you can do something like this Dim subMenu as MenuChildren 'this will get the children of the main file menu subMenu = mnuFile.Children doing a subMenu.Children.Count will let you know if the submenu has submenus of its own. if getting the full menu structure is your goal then perhaps creating a recursive algorithm is your best bet. Hope this helps Regards Dimitris On Fri, Jul 24, 2009 at 5:26 PM, richard terry wrote: > Each menu has 'children' > menu[0] = child 0 etc (I think) > > is there any way to return the child menu item collection simply > > ie with list you can read an listindex, no such thing in the menu? > > > regards > > richard > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Jul 25 09:33:12 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 25 Jul 2009 09:33:12 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A6A523C.1090702@...626...> References: <4A37AD7E.6080308@...221...> <200907250018.20201.gambas@...1...> <4A6A46B1.2000009@...626...> <200907250144.37147.gambas@...1...> <4A6A523C.1090702@...626...> Message-ID: <4A6AB538.1060501@...1909...> Jean-Yves F. Barbier ha scritto: > Beno?t Minisini a ?crit : > ... > >> Please work directly on the wiki. Things on the mailing-list won't go there >> automagically... >> > > I don't have a wiki account nor know the wiki's syntax. > > JY > Dear Jean-Yves, I am sorry to write this, but your english looks to me worse than mine. Please review your corrections: are you really sure that there are less errors than in the original version? As I am not english, I could be wrong, but your name makes me think you are not english either... I am pretty sure that things like "this simple line do..." is an error. There are also other little imprecisions: for example the sentence "/bin/ls will make a redirection (the ">" character)" is misguiding (it is not /bin/ls which does redirections, but /bin/sh), When I originally wrote that text, it was a reply to this mailing list, and I weighted as much as possible the words and the concepts. But it was an email reply, not a documentation page, and as always I was unsure about my english. If in an email bad english can be accetable, I think it is not in an official documentation. Thanks for your interest, and best regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From 12ukwn at ...626... Sat Jul 25 10:03:25 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 25 Jul 2009 10:03:25 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A6AB538.1060501@...1909...> References: <4A37AD7E.6080308@...221...> <200907250018.20201.gambas@...1...> <4A6A46B1.2000009@...626...> <200907250144.37147.gambas@...1...> <4A6A523C.1090702@...626...> <4A6AB538.1060501@...1909...> Message-ID: <4A6ABC4D.5010404@...626...> Doriano Blengino a ?crit : > Jean-Yves F. Barbier ha scritto: >> Beno?t Minisini a ?crit : >> ... >> >>> Please work directly on the wiki. Things on the mailing-list won't go there >>> automagically... >>> >> I don't have a wiki account nor know the wiki's syntax. >> >> JY >> > Dear Jean-Yves, > > I am sorry to write this, but your english looks to me worse than mine. I don't speak English, I speak American, which is also called english but is quite different. > Please review your corrections: are you really sure that there are less > errors than in the original version? As I am not english, I could be > wrong, but your name makes me think you are not english either... I am > pretty sure that things like "this simple line do..." is an error. There no, its semantic' similar to: "with these, here's what you can do: ..." > are also other little imprecisions: for example the sentence "/bin/ls > will make a redirection (the ">" character)" is misguiding (it is not > /bin/ls which does redirections, but /bin/sh), yeah, I also made a type upon stdout, I made it in less than 5 minutes without reread > When I originally wrote that text, it was a reply to this mailing list, > and I weighted as much as possible the words and the concepts. But it > was an email reply, not a documentation page, and as always I was unsure > about my english. If in an email bad english can be accetable, I think > it is not in an official documentation. > > Thanks for your interest, and best regards, JY -- Some optional equipment shown. From rterry at ...1946... Sat Jul 25 10:30:44 2009 From: rterry at ...1946... (richard terry) Date: Sat, 25 Jul 2009 18:30:44 +1000 Subject: [Gambas-user] syntax error with File subroutine Message-ID: <200907251830.44194.rterry@...1946...> this bombs in the latest gambas with syntax error and with my dyslexia and inablity to interpret the Doc's I can't figure it out, so I wondered if some kind soul could enlighten me, as it always worked prior to 2136 build and Benoit alluded to the fact that he's since fixed a compiler error (which must have let the syntax error through). Thanks. Richard Public Sub Print_To_File(stext As String, filename As String) '------------------------------------------------------------ 'Saves a string to a file without the byte count at the top 'Note the file is created if does not exist, or cleared first 'if it does exist '------------------------------------------------------------ Dim wFile As File Open Filename For Write Create As #wfile Print #wfile stext ****BOMBS ON THIS LINE!!!! Close #wfile End From dosida at ...626... Sat Jul 25 11:02:13 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 25 Jul 2009 03:02:13 -0600 Subject: [Gambas-user] syntax error with File subroutine In-Reply-To: <200907251830.44194.rterry@...1946...> References: <200907251830.44194.rterry@...1946...> Message-ID: <82bffccf0907250202r5287f63ci5ca0165a3bbd6bb1@...627...> Hey Richard, I'm using Gambas2 version 2.14 on a Debian Lenny distro and I just tested your code with a minor change. Print #wfile stext should be changed to Print #wfile, stext Other than that minor change everything works fine. I hope this helps Regards, Dimitris On Sat, Jul 25, 2009 at 2:30 AM, richard terry wrote: > this bombs in the latest gambas with syntax error and with my dyslexia and > inablity to interpret the Doc's I can't figure it out, so I wondered if > some > kind soul could enlighten me, as it always worked prior to 2136 build and > Benoit alluded to the fact that he's since fixed a compiler error (which > must > have let the syntax error through). > > Thanks. > > Richard > > > Public Sub Print_To_File(stext As String, filename As String) > '------------------------------------------------------------ > 'Saves a string to a file without the byte count at the top > 'Note the file is created if does not exist, or cleared first > 'if it does exist > '------------------------------------------------------------ > Dim wFile As File > Open Filename For Write Create As #wfile > Print #wfile stext ****BOMBS ON THIS LINE!!!! > Close #wfile > End > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Sat Jul 25 12:44:43 2009 From: charles at ...1784... (charlesg) Date: Sat, 25 Jul 2009 03:44:43 -0700 (PDT) Subject: [Gambas-user] Moving things In-Reply-To: References: Message-ID: <24656776.post@...1379...> Hi Quick? Easy? Depends on where you are looking from :) '---------------------------------- PUBLIC SUB btnExit_KeyPress() SELECT CASE Key.Code CASE Key.Up btnExit.y = btnExit.y - 10 CASE Key.Down btnExit.y = btnExit.Y + 10 END SELECT END '--------------------------------- similar for left and right. you would also have to check that the button (or whatever) has not moved out of bounds (by comparing with the Form boundaries) Obviously the focus does not have to be the button itself. You can control it say from a hidden textBox. rgds -- View this message in context: http://www.nabble.com/Moving-things-tp24654731p24656776.html Sent from the gambas-user mailing list archive at Nabble.com. From peter.talken at ...1879... Sat Jul 25 17:32:27 2009 From: peter.talken at ...1879... (Peter Landgren) Date: Sat, 25 Jul 2009 17:32:27 +0200 Subject: [Gambas-user] Compiling Gambas 3 Message-ID: <200907251732.28407.peter.talken@...1879...> Hi, A Little glitch when compiling gambas 3. svn up to rev 2167 Running mandriva 2009.0 [progdev at ...2241... trunk]$ ./reconf-all [progdev at ...2241... trunk]$ ./configure -C I finally get: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.db.firebird - gb.db.odbc - gb.db.postgresql - gb.db.sqlite2 - gb.qte ************************************************************ which looks OK, as I don't have those installed. [progdev at ...2241... trunk]$ make --quiet .... works without errors But [progdev at ...2241... trunk]$su make install .... Compiling the gb.db.mysql project... gb.db.mysql gbc: project file not found: /home/progdev/SVN- projekt/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.project gba: ERROR: Cannot set file owner: /home/progdev/SVN- projekt/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/gb.db.mysql.gambas: No such file or directory /usr/bin/install: kan inte ta status p? "gb.db.mysql.gambas": Filen eller katalogen finns inte make[4]: *** [install-data-hook] Fel 1 make[4]: Leaving directory `/home/progdev/SVN-projekt/gambas3/trunk/gb.db.mysql/src' make[3]: *** [install-data-am] Fel 2 make[3]: Leaving directory `/home/progdev/SVN-projekt/gambas3/trunk/gb.db.mysql/src' make[2]: *** [install-am] Fel 2 make[2]: Leaving directory `/home/progdev/SVN-projekt/gambas3/trunk/gb.db.mysql/src' make[1]: *** [install-recursive] Fel 1 make[1]: Leaving directory `/home/progdev/SVN-projekt/gambas3/trunk/gb.db.mysql' make: *** [install-recursive] Fel 1 [root at ...2241... trunk]#exit So If I in stead do: [progdev at ...2241... trunk]$ ./configure -C --disable-mysql I get the same missing parts as above. ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.db.firebird - gb.db.odbc - gb.db.postgresql - gb.db.sqlite2 - gb.qte ************************************************************ But this time 'make install', as root, works without errors. So there seems to be some little bug during configure? /Peter From gambas at ...1... Sat Jul 25 19:27:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jul 2009 19:27:26 +0200 Subject: [Gambas-user] Compiling Gambas 3 In-Reply-To: <200907251732.28407.peter.talken@...1879...> References: <200907251732.28407.peter.talken@...1879...> Message-ID: <200907251927.26345.gambas@...1...> > Hi, > > A Little glitch when compiling gambas 3. > svn up to rev 2167 > Running mandriva 2009.0 > > [progdev at ...2241... trunk]$ ./reconf-all > [progdev at ...2241... trunk]$ ./configure -C > > I finally get: > ************************************************************ > > THESE COMPONENTS ARE DISABLED: > > - gb.db.firebird > - gb.db.odbc > - gb.db.postgresql > - gb.db.sqlite2 > - gb.qte > > ************************************************************ > which looks OK, as I don't have those installed. > [progdev at ...2241... trunk]$ make --quiet > .... > works without errors > But > [progdev at ...2241... trunk]$su > make install > .... > Compiling the gb.db.mysql project... > gb.db.mysql > gbc: project file not found: /home/progdev/SVN- > projekt/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.project > gba: ERROR: Cannot set file owner: /home/progdev/SVN- > ... This is a strange behavior (a bug?) of Subversion I didn't understand. The gb.db.mysql/src/gb.db.mysql directory was removed from the repository. But when you do a "svn update", this directory is not removed, which make the installation process fails because it assumes that there is a Gambas part to compile inside the component. Just remove the offending directory by hand to fix that. I will make the installation process more robust against that anyway. Regards, -- Beno?t From dent.nic at ...626... Sun Jul 26 03:29:11 2009 From: dent.nic at ...626... (nic) Date: Sat, 25 Jul 2009 18:29:11 -0700 Subject: [Gambas-user] Moving things In-Reply-To: <24656776.post@...1379...> References: <24656776.post@...1379...> Message-ID: Cool! Thanks! This will definitely help in my game :D thanks On Sat, Jul 25, 2009 at 3:44 AM, charlesg wrote: > > Hi > > Quick? Easy? Depends on where you are looking from :) > '---------------------------------- > PUBLIC SUB btnExit_KeyPress() > SELECT CASE Key.Code > CASE Key.Up > btnExit.y = btnExit.y - 10 > CASE Key.Down > btnExit.y = btnExit.Y + 10 > END SELECT > END > '--------------------------------- > similar for left and right. > you would also have to check that the button (or whatever) has not moved > out > of bounds (by comparing with the Form boundaries) > Obviously the focus does not have to be the button itself. You can control > it say from a hidden textBox. > > rgds > -- > View this message in context: > http://www.nabble.com/Moving-things-tp24654731p24656776.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun Jul 26 12:29:31 2009 From: rterry at ...1946... (richard terry) Date: Sun, 26 Jul 2009 20:29:31 +1000 Subject: [Gambas-user] qt4 stuff: webview Message-ID: <200907262029.31541.rterry@...1946...> Any doc's on how to use this? it is meant to be the replacement for the kde3 brower. Regards Richard From gambas at ...1... Sun Jul 26 14:31:12 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jul 2009 14:31:12 +0200 Subject: [Gambas-user] qt4 stuff: webview In-Reply-To: <200907262029.31541.rterry@...1946...> References: <200907262029.31541.rterry@...1946...> Message-ID: <200907261431.12769.gambas@...1...> > Any doc's on how to use this? it is meant to be the replacement for the > kde3 brower. > > Regards > > Richard > No doc, but you can look at the WebBrowser example. Regards, -- Beno?t From ulusoyab at ...43... Sun Jul 26 15:00:50 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Sun, 26 Jul 2009 06:00:50 -0700 (PDT) Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <4A6ABC4D.5010404@...626...> Message-ID: <405252.72460.qm@...2242...> hiName ? ? ? ? :Abdurrahman ULUSOY Application : KediCAD Description: ?KediCAD is a CAD(Computer Aided Design) software ??t has 2 version. ? ? ?? KediCAD2D and KediCAD3D. ? ??? ? ? ?KediCAD2D Like autocad, qcad.?? ? ? ?KediCAD 3D like inventor. (see http://cadcizim.googlepages.com/czm1.avi.tar.gz) screenshoot: http://cadcizim.googlepages.com/fren.jpg/fren-full;init:.jpg? ? ? ? ? ? ? ? ? ? ?http://cadcizim.googlepages.com/3bornek.png/3bornek-full;init:.png website ? : http://cadcizim.googlepages.com/home Best Regards, > Hi everyone, > > I'd like to make a page on the web site dedicated to some big applications > made in Gambas. > > To fill it, I ask people (who are agree) to send me: > > - Their full name. > - The title of their application. > - A short description. > - A screenshot. > - A link to a web site dedicated to the application. > > I will do that by hand. Of course, if I had time, I will make a dynamic > web > site... > > I know there are some interesting projects around there. So come on! :-) > > Thanks in advance. > > -- > Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas at ...1... Sun Jul 26 15:16:51 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jul 2009 15:16:51 +0200 Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <405252.72460.qm@...2242...> References: <405252.72460.qm@...2242...> Message-ID: <200907261516.51657.gambas@...1...> > hiName :Abdurrahman ULUSOY > Application : KediCAD > Description: KediCAD is a CAD(Computer Aided Design) software ?t has 2 > version. KediCAD2D and KediCAD3D. KediCAD2D Like autocad, > qcad. KediCAD 3D like inventor. (see > http://cadcizim.googlepages.com/czm1.avi.tar.gz) screenshoot: > http://cadcizim.googlepages.com/fren.jpg/fren-full;init:.jpg > http://cadcizim.googlepages.com/3bornek.png/3bornek-full;init:.png > website : http://cadcizim.googlepages.com/home > Best Regards, > What is the license? -- Beno?t From ulusoyab at ...43... Sun Jul 26 15:28:21 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Sun, 26 Jul 2009 06:28:21 -0700 (PDT) Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <200907261516.51657.gambas@...1...> Message-ID: <696735.31263.qm@...2243...> hii dont know.? i dont decided.i want gpl. but not commercial use. but which licence i need ?i dont know. --- 26/07/09 Pzr tarihinde Beno?t Minisini ??yle yaz?yor: Kimden: Beno?t Minisini Konu: Re: [Gambas-user] A web page for Gambas applications Kime: "mailing list for gambas users" Tarihi: 26 Temmuz 2009 Pazar, 16:16 > hiName? ? ? ???:Abdurrahman ULUSOY > Application : KediCAD > Description:? KediCAD is a CAD(Computer Aided Design) software? ?t has 2 > version.? ? ? ? KediCAD2D and KediCAD3D.? ? ? ? ? ? KediCAD2D Like autocad, > qcad.? ? ? ? KediCAD 3D like inventor. (see > http://cadcizim.googlepages.com/czm1.avi.tar.gz) screenshoot: > http://cadcizim.googlepages.com/fren.jpg/fren-full;init:.jpg? ? ? ? ? ? ??? >? ? ? http://cadcizim.googlepages.com/3bornek.png/3bornek-full;init:.png > website???: http://cadcizim.googlepages.com/home > Best Regards, > What is the license? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas at ...1... Sun Jul 26 15:36:52 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jul 2009 15:36:52 +0200 Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <696735.31263.qm@...2243...> References: <696735.31263.qm@...2243...> Message-ID: <200907261536.53017.gambas@...1...> > hii dont know. > i dont decided.i want gpl. but not commercial use. but which licence i need > i dont know. > Please tell when you know, so that I complete your entry in the wiki. Regards, -- Beno?t From pinozollo at ...626... Sun Jul 26 15:45:04 2009 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 26 Jul 2009 09:45:04 -0400 Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <405252.72460.qm@...2242...> References: <405252.72460.qm@...2242...> Message-ID: <200907260945.04363.pinozollo@...626...> Il domenica 26 luglio 2009 09:00:50 abdurrahman ulusoy ha scritto: > > I'd like to make a page on the web site dedicated to some big > > applications made in Gambas. > > > > To fill it, I ask people (who are agree) to send me: > > > > - Their full name. Pino Zollo pinozollo gmail.com http://www.qsl.net/zp4kfx > > - The title of their application. DBLog > > - A short description. Radioamateur Logging Program based on a RDBM (PostgreSQL). > > - A screenshot. http://www.qsl.net/zp4kfx/Linux/DBLog/Screenshots/ > > - A link to a web site dedicated to the application. http://www.qsl.net/zp4kfx/Linux/DBLog/ Licence: GPL Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Sun Jul 26 16:17:01 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jul 2009 16:17:01 +0200 Subject: [Gambas-user] Release of Gambas 2.15 Message-ID: <200907261617.01224.gambas@...1...> Hi, I finally found a moment for making a new release of the stable version. There are a lot of bug fixes in it, the more important one is that now the interpreter won't crash randomly anymore on some systems and not on another. This was a very stupid bug of mine, and it was there since the beginning of the 64 bits port (revision 1007)! Here is some other important bug fixes: - String to number conversion was fixed, especially when converting Long numbers. - The Firebird driver is compiled correctly now. If some kind guys can try now to connect to a Firebird database and tell me if it works, it would be cool. - The SQLite 3 driver now correctly returns the default value of fields. - Raising or lowering controls now works correctly in the GTK+ component. - The SMTP component now strictly follows RFC 2047 when sending mails with subjects encoded in UTF-8. - The Xml.ToString() method was fixed in the XML component. And here is the full ChangeLog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: Fix a crash while scanning a class if the project is a component and if it is self-checked, which happens as soon as it is locally installed. * BUG: Do not warn when a *.info file is not found, as gb.db.* drivers do not have one. * NEW: Changing the language in the translation dialog now keep the current translated string selected, and stay in the same translation file. [DATABASE MANAGER] * BUG: Handle correctly database type written in upper case. [EXAMPLES] * BUG: Fix the PdfViewer example so that it does not crash when it cannot understand the document index. [INTERPRETER] * BUG: Fix a possible crash in database component classes having sub-collections, like Result.Fields. * BUG: Fix a stupid bug that made the interpreter crash when a class was allocated at a negative memory address. * BUG: Fix the conversion of strings into numbers, especially when converting Long values. [COMPILER] * BUG: Correctly raise a syntax error when a comma has been forgotten between the stream and the other arguments in instructions like PRINT, SEEK, and so on. [INFORMER] * BUG: Warn for components not declaring classes, like database drivers, only if the '-v' option is defined. [GB.DB] * BUG: Correctly release field information when freeing a Result object. * NEW: New unquoting function in the component API. [GB.DB.FIREBIRD] * BUG: Link the driver to the fbclient library. [GB.DB.SQLITE2] * BUG: Prevent possible case mismatches when mapping SQLite datatypes. * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) * BUG: Fix a crash in datatype mapping. [GB.DB.SQLITE3] * BUG: Prevent possible case mismatches when mapping SQLite datatypes. * BUG: Field default values are correctly returned now. * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) * BUG: Fix a crash in datatype mapping. [GB.GTK] * BUG: If the Control.Font property is set with a family name, the other boolean properties of the font are reset. * BUG: Frame.Font now works correctly. * BUG: The Window.Sticky property now really returns a boolean. * BUG: Fix all controls that use a GtkScrolledWindow. * BUG: Fix Control.Raise() and Control.Lower() with controls using a GtkScrolledWindow. * BUG: The ClientWidth and ClientHeight properties of TreeView, ListView and ColumnView controls were implemented. * BUG: The title of GridView headers is now ellipsized, and are not drawn anymore when there is no space for that. * BUG: Fix the leaking of GtkCellRenderer in some classes. [GB.NET] * BUG: Fix a possible crash in the Socket class at connection. [GB.NET.SMTP] * BUG: Fix the UTF-8 encoding of mail subjects having a '?' character inside. * NEW: Send the "Date:" header with any mail. [GB.PDF] * BUG: Fix a possible crash whith PDF documents having index but no action associated with [GB.QT] * BUG: If the Control.Font property is set with a family name, the other boolean properties of the font are reset. * BUG: The Window.TopOnly and Window.Stacking properties now return the last value assigned as in gb.gtk. It does not try to get the value from the window manager, as the change may not be immediate. * BUG: Fix a typo mistake. * BUG: Fix the behaviour of TabStrip when all its pages are hidden. [GB.XML] * BUG: Fix the Xml.Encoding property that was not implemented. It now always returns "UTF-8". * BUG: Fix a memory leak in Xml.ToString(). * BUG: The encoding argument of Xml.ToString() is now taken into account. * BUG: Xml.ToString() now uses the UTF-8 charset by default. ------------------------------------------------------------------------------- Regards, -- Beno?t From prog at ...2177... Sun Jul 26 17:52:07 2009 From: prog at ...2177... (craf) Date: Sun, 26 Jul 2009 11:52:07 -0400 Subject: [Gambas-user] Release of Gambas 2.15 In-Reply-To: <200907261617.01224.gambas@...1...> References: <200907261617.01224.gambas@...1...> Message-ID: <1248623527.3589.0.camel@...651...> ???Cool, thanks, Benoit??? Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: gambas-user at lists.sourceforge.net Asunto: [Gambas-user] Release of Gambas 2.15 Fecha: Sun, 26 Jul 2009 16:17:01 +0200 Hi, I finally found a moment for making a new release of the stable version. There are a lot of bug fixes in it, the more important one is that now the interpreter won't crash randomly anymore on some systems and not on another. This was a very stupid bug of mine, and it was there since the beginning of the 64 bits port (revision 1007)! Here is some other important bug fixes: - String to number conversion was fixed, especially when converting Long numbers. - The Firebird driver is compiled correctly now. If some kind guys can try now to connect to a Firebird database and tell me if it works, it would be cool. - The SQLite 3 driver now correctly returns the default value of fields. - Raising or lowering controls now works correctly in the GTK+ component. - The SMTP component now strictly follows RFC 2047 when sending mails with subjects encoded in UTF-8. - The Xml.ToString() method was fixed in the XML component. And here is the full ChangeLog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: Fix a crash while scanning a class if the project is a component and if it is self-checked, which happens as soon as it is locally installed. * BUG: Do not warn when a *.info file is not found, as gb.db.* drivers do not have one. * NEW: Changing the language in the translation dialog now keep the current translated string selected, and stay in the same translation file. [DATABASE MANAGER] * BUG: Handle correctly database type written in upper case. [EXAMPLES] * BUG: Fix the PdfViewer example so that it does not crash when it cannot understand the document index. [INTERPRETER] * BUG: Fix a possible crash in database component classes having sub-collections, like Result.Fields. * BUG: Fix a stupid bug that made the interpreter crash when a class was allocated at a negative memory address. * BUG: Fix the conversion of strings into numbers, especially when converting Long values. [COMPILER] * BUG: Correctly raise a syntax error when a comma has been forgotten between the stream and the other arguments in instructions like PRINT, SEEK, and so on. [INFORMER] * BUG: Warn for components not declaring classes, like database drivers, only if the '-v' option is defined. [GB.DB] * BUG: Correctly release field information when freeing a Result object. * NEW: New unquoting function in the component API. [GB.DB.FIREBIRD] * BUG: Link the driver to the fbclient library. [GB.DB.SQLITE2] * BUG: Prevent possible case mismatches when mapping SQLite datatypes. * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) * BUG: Fix a crash in datatype mapping. [GB.DB.SQLITE3] * BUG: Prevent possible case mismatches when mapping SQLite datatypes. * BUG: Field default values are correctly returned now. * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) * BUG: Fix a crash in datatype mapping. [GB.GTK] * BUG: If the Control.Font property is set with a family name, the other boolean properties of the font are reset. * BUG: Frame.Font now works correctly. * BUG: The Window.Sticky property now really returns a boolean. * BUG: Fix all controls that use a GtkScrolledWindow. * BUG: Fix Control.Raise() and Control.Lower() with controls using a GtkScrolledWindow. * BUG: The ClientWidth and ClientHeight properties of TreeView, ListView and ColumnView controls were implemented. * BUG: The title of GridView headers is now ellipsized, and are not drawn anymore when there is no space for that. * BUG: Fix the leaking of GtkCellRenderer in some classes. [GB.NET] * BUG: Fix a possible crash in the Socket class at connection. [GB.NET.SMTP] * BUG: Fix the UTF-8 encoding of mail subjects having a '?' character inside. * NEW: Send the "Date:" header with any mail. [GB.PDF] * BUG: Fix a possible crash whith PDF documents having index but no action associated with [GB.QT] * BUG: If the Control.Font property is set with a family name, the other boolean properties of the font are reset. * BUG: The Window.TopOnly and Window.Stacking properties now return the last value assigned as in gb.gtk. It does not try to get the value from the window manager, as the change may not be immediate. * BUG: Fix a typo mistake. * BUG: Fix the behaviour of TabStrip when all its pages are hidden. [GB.XML] * BUG: Fix the Xml.Encoding property that was not implemented. It now always returns "UTF-8". * BUG: Fix a memory leak in Xml.ToString(). * BUG: The encoding argument of Xml.ToString() is now taken into account. * BUG: Xml.ToString() now uses the UTF-8 charset by default. ------------------------------------------------------------------------------- Regards, From 12ukwn at ...626... Sun Jul 26 18:11:40 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sun, 26 Jul 2009 18:11:40 +0200 Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <696735.31263.qm@...2243...> References: <696735.31263.qm@...2243...> Message-ID: <4A6C803C.4080105@...626...> abdurrahman ulusoy a ?crit : > hii dont know. > i dont decided.i want gpl. but not commercial use. This is antinomic: one of the GPL license purpose is to avoid such restrictions! > but which licence i need i dont know. If you don't want your code to be reused in a comercial prject, then GPLv3 should do, if you don't want your code to be used at all by any commercial organization, you must twin-license: let's say GPLv3 for personnal use, and commercial for organizations (you have an example with the PUEL from virtualbox.org) JY -- He who walks on burning coals is sure to get burned. -- Sinbad From gambas.fr at ...626... Sun Jul 26 22:47:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Jul 2009 22:47:15 +0200 Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <696735.31263.qm@...2243...> References: <200907261516.51657.gambas@...1...> <696735.31263.qm@...2243...> Message-ID: <6324a42a0907261347g6622c273l884b8897009a6b0d@...627...> An english traduction of your software will be great too :) (and the site ...:-) CAD in gambas ... good work ! 2009/7/26 abdurrahman ulusoy : > hii dont know. > i dont decided.i want gpl. but not commercial use. but which licence i need ?i dont know. > > --- 26/07/09 Pzr tarihinde Beno?t Minisini ??yle yaz?yor: > > Kimden: Beno?t Minisini > Konu: Re: [Gambas-user] A web page for Gambas applications > Kime: "mailing list for gambas users" > Tarihi: 26 Temmuz 2009 Pazar, 16:16 > >> hiName? ? ? ???:Abdurrahman ULUSOY >> Application : KediCAD >> Description:? KediCAD is a CAD(Computer Aided Design) software? ?t has 2 >> version.? ? ? ? KediCAD2D and KediCAD3D.? ? ? ? ? ? KediCAD2D Like autocad, >> qcad.? ? ? ? KediCAD 3D like inventor. (see >> http://cadcizim.googlepages.com/czm1.avi.tar.gz) screenshoot: >> http://cadcizim.googlepages.com/fren.jpg/fren-full;init:.jpg >>? ? ? http://cadcizim.googlepages.com/3bornek.png/3bornek-full;init:.png >> website???: http://cadcizim.googlepages.com/home >> Best Regards, >> > > What is the license? > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ? ? ?___________________________________________________________________ > Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr > ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Sun Jul 26 22:47:01 2009 From: prog at ...2177... (craf) Date: Sun, 26 Jul 2009 16:47:01 -0400 Subject: [Gambas-user] gb.db.firebird Message-ID: <1248641221.5234.8.camel@...651...> Hi. ???Thanks Benoit!!!, the change in component gb.db.firebird ,allows me to connect directly to firebird.??The driver now works properly. !! I use: Jaunty Jackalope Ubuntu 9.04 Firebird 2.1-super-server Gambas 2.15 Regards. From linuxos at ...1896... Sun Jul 26 23:06:16 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 26 Jul 2009 23:06:16 +0200 Subject: [Gambas-user] Release of Gambas 2.15 In-Reply-To: <200907261617.01224.gambas@...1...> References: <200907261617.01224.gambas@...1...> Message-ID: <6DA3EE05-CA2A-4A29-BCD1-D010351F845D@...1896...> Bonsoir Benoit, Je crois que la page d'accueil du site web de Gambas n'est pas a jour par rapport a celles en anglais et espagnol concernant la derniere versin 2.15... Surement un oubli. Olivier Cruilles Mail: linuxos at ...1896... Le 26 juil. 09 ? 16:17, Beno?t Minisini a ?crit : > Hi, > > I finally found a moment for making a new release of the stable > version. > > There are a lot of bug fixes in it, the more important one is that > now the > interpreter won't crash randomly anymore on some systems and not on > another. > This was a very stupid bug of mine, and it was there since the > beginning of > the 64 bits port (revision 1007)! > > Here is some other important bug fixes: > > - String to number conversion was fixed, especially when converting > Long > numbers. > > - The Firebird driver is compiled correctly now. If some kind guys > can try now > to connect to a Firebird database and tell me if it works, it would > be cool. > > - The SQLite 3 driver now correctly returns the default value of > fields. > > - Raising or lowering controls now works correctly in the GTK+ > component. > > - The SMTP component now strictly follows RFC 2047 when sending > mails with > subjects encoded in UTF-8. > > - The Xml.ToString() method was fixed in the XML component. > > And here is the full ChangeLog: > > ------------------------------------------------------------------------------- > > [DEVELOPMENT ENVIRONMENT] > * BUG: Fix a crash while scanning a class if the project is a > component > and if it is self-checked, which happens as soon as it is locally > installed. > * BUG: Do not warn when a *.info file is not found, as gb.db.* > drivers do > not have one. > * NEW: Changing the language in the translation dialog now keep the > current translated string selected, and stay in the same translation > file. > > [DATABASE MANAGER] > * BUG: Handle correctly database type written in upper case. > > [EXAMPLES] > * BUG: Fix the PdfViewer example so that it does not crash when it > cannot > understand the document index. > > [INTERPRETER] > * BUG: Fix a possible crash in database component classes having > sub-collections, like Result.Fields. > * BUG: Fix a stupid bug that made the interpreter crash when a class > was > allocated at a negative memory address. > * BUG: Fix the conversion of strings into numbers, especially when > converting Long values. > > [COMPILER] > * BUG: Correctly raise a syntax error when a comma has been forgotten > between the stream and the other arguments in instructions like > PRINT, > SEEK, and so on. > > [INFORMER] > * BUG: Warn for components not declaring classes, like database > drivers, > only if the '-v' option is defined. > > [GB.DB] > * BUG: Correctly release field information when freeing a Result > object. > * NEW: New unquoting function in the component API. > > [GB.DB.FIREBIRD] > * BUG: Link the driver to the fbclient library. > > [GB.DB.SQLITE2] > * BUG: Prevent possible case mismatches when mapping SQLite datatypes. > * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) > * BUG: Fix a crash in datatype mapping. > > [GB.DB.SQLITE3] > * BUG: Prevent possible case mismatches when mapping SQLite datatypes. > * BUG: Field default values are correctly returned now. > * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) > * BUG: Fix a crash in datatype mapping. > > [GB.GTK] > * BUG: If the Control.Font property is set with a family name, the > other > boolean properties of the font are reset. > * BUG: Frame.Font now works correctly. > * BUG: The Window.Sticky property now really returns a boolean. > * BUG: Fix all controls that use a GtkScrolledWindow. > * BUG: Fix Control.Raise() and Control.Lower() with controls using a > GtkScrolledWindow. > * BUG: The ClientWidth and ClientHeight properties of TreeView, > ListView > and ColumnView controls were implemented. > * BUG: The title of GridView headers is now ellipsized, and are not > drawn > anymore when there is no space for that. > * BUG: Fix the leaking of GtkCellRenderer in some classes. > > [GB.NET] > * BUG: Fix a possible crash in the Socket class at connection. > > [GB.NET.SMTP] > * BUG: Fix the UTF-8 encoding of mail subjects having a '?' character > inside. > * NEW: Send the "Date:" header with any mail. > > [GB.PDF] > * BUG: Fix a possible crash whith PDF documents having index but no > action > associated with > > [GB.QT] > * BUG: If the Control.Font property is set with a family name, the > other > boolean properties of the font are reset. > * BUG: The Window.TopOnly and Window.Stacking properties now return > the > last value assigned as in gb.gtk. It does not try to get the value > from > the window manager, as the change may not be immediate. > * BUG: Fix a typo mistake. > * BUG: Fix the behaviour of TabStrip when all its pages are hidden. > > [GB.XML] > * BUG: Fix the Xml.Encoding property that was not implemented. It now > always returns "UTF-8". > * BUG: Fix a memory leak in Xml.ToString(). > * BUG: The encoding argument of Xml.ToString() is now taken into > account. > * BUG: Xml.ToString() now uses the UTF-8 charset by default. > > ------------------------------------------------------------------------------- > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jul 26 23:19:34 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jul 2009 23:19:34 +0200 Subject: [Gambas-user] Release of Gambas 2.15 In-Reply-To: <6DA3EE05-CA2A-4A29-BCD1-D010351F845D@...1896...> References: <200907261617.01224.gambas@...1...> <6DA3EE05-CA2A-4A29-BCD1-D010351F845D@...1896...> Message-ID: <200907262319.34607.gambas@...1...> > Bonsoir Benoit, > > Je crois que la page d'accueil du site web de Gambas n'est pas a jour > par rapport a celles en anglais et espagnol > concernant la derniere versin 2.15... > > Surement un oubli. > > Olivier Cruilles > Mail: linuxos at ...1896... > Tout ? l'air normal... -- Beno?t From prog at ...2177... Sun Jul 26 23:26:52 2009 From: prog at ...2177... (craf) Date: Sun, 26 Jul 2009 17:26:52 -0400 Subject: [Gambas-user] Release of Gambas 2.15 In-Reply-To: <200907262319.34607.gambas@...1...> References: <200907261617.01224.gambas@...1...> <6DA3EE05-CA2A-4A29-BCD1-D010351F845D@...1896...> <200907262319.34607.gambas@...1...> Message-ID: <1248643612.5234.11.camel@...651...> Bonjour Olivier Pourquoi ne pas aider ? mettre ? jour? Salutations -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Release of Gambas 2.15 Fecha: Sun, 26 Jul 2009 23:19:34 +0200 Tout ? l'air normal.. From linuxos at ...1896... Sun Jul 26 23:48:19 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 26 Jul 2009 23:48:19 +0200 Subject: [Gambas-user] Release of Gambas 2.15 In-Reply-To: <200907262319.34607.gambas@...1...> References: <200907261617.01224.gambas@...1...> <6DA3EE05-CA2A-4A29-BCD1-D010351F845D@...1896...> <200907262319.34607.gambas@...1...> Message-ID: <213C41CE-D291-4905-A7DE-B4581A496B04@...1896...> Pourtant quant je click sur le drapeau Fran?ais, je ne vois pas la version 2.15 mais la 2.14 ?? Olivier Cruilles Mail: linuxos at ...1896... Le 26 juil. 09 ? 23:19, Beno?t Minisini a ?crit : >> Bonsoir Benoit, >> >> Je crois que la page d'accueil du site web de Gambas n'est pas a jour >> par rapport a celles en anglais et espagnol >> concernant la derniere versin 2.15... >> >> Surement un oubli. >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> > > Tout ? l'air normal... > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ulusoyab at ...43... Mon Jul 27 09:45:50 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Mon, 27 Jul 2009 00:45:50 -0700 (PDT) Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <6324a42a0907261347g6622c273l884b8897009a6b0d@...627...> Message-ID: <110717.42630.qm@...2246...> >An english traduction of your software will be great too :) (and the site ...:-)? ? Yes but i am sure, you understand, my english is not good.? >CAD in gambas ... good work !Gambas is easy and rapid language. infact? a lot of linux user say me:in linux use C or python. they dont like gambas. ?but i like ? :) --- 26/07/09 Pzr tarihinde Fabien Bodard ??yle yaz?yor: Kimden: Fabien Bodard Konu: Re: [Gambas-user] A web page for Gambas applications Kime: "mailing list for gambas users" Tarihi: 26 Temmuz 2009 Pazar, 23:47 An english traduction of your software will be great too :) (and the site ...:-) CAD in gambas ... good work ! 2009/7/26 abdurrahman ulusoy : > hii dont know. > i dont decided.i want gpl. but not commercial use. but which licence i need ?i dont know. > > --- 26/07/09 Pzr tarihinde Beno?t Minisini ??yle yaz?yor: > > Kimden: Beno?t Minisini > Konu: Re: [Gambas-user] A web page for Gambas applications > Kime: "mailing list for gambas users" > Tarihi: 26 Temmuz 2009 Pazar, 16:16 > >> hiName? ? ? ???:Abdurrahman ULUSOY >> Application : KediCAD >> Description:? KediCAD is a CAD(Computer Aided Design) software? ?t has 2 >> version.? ? ? ? KediCAD2D and KediCAD3D.? ? ? ? ? ? KediCAD2D Like autocad, >> qcad.? ? ? ? KediCAD 3D like inventor. (see >> http://cadcizim.googlepages.com/czm1.avi.tar.gz) screenshoot: >> http://cadcizim.googlepages.com/fren.jpg/fren-full;init:.jpg >>? ? ? http://cadcizim.googlepages.com/3bornek.png/3bornek-full;init:.png >> website???: http://cadcizim.googlepages.com/home >> Best Regards, >> > > What is the license? > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ? ? ?___________________________________________________________________ > Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr > ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From ulusoyab at ...43... Mon Jul 27 09:48:13 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Mon, 27 Jul 2009 00:48:13 -0700 (PDT) Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <4A6C803C.4080105@...626...> Message-ID: <453460.1420.qm@...2247...> Thanks.i think this is my problem solution. --- 26/07/09 Pzr tarihinde Jean-Yves F. Barbier <12ukwn at ...626...> ??yle yaz?yor: Kimden: Jean-Yves F. Barbier <12ukwn at ...626...> Konu: Re: [Gambas-user] A web page for Gambas applications Kime: "mailing list for gambas users" Tarihi: 26 Temmuz 2009 Pazar, 19:11 abdurrahman ulusoy a ?crit : > hii dont know. > i dont decided.i want gpl. but not commercial use. This is antinomic: one of the GPL license purpose is to avoid such restrictions! > but which licence i need? i dont know. If you don't want your code to be reused in a comercial prject, then GPLv3 should do, if you don't want your code to be used at all by any commercial organization, you must twin-license: let's say GPLv3 for personnal use, and commercial for organizations (you have an example with the PUEL from virtualbox.org) JY -- He who walks on burning coals is sure to get burned. ??? ??? -- Sinbad ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From rterry at ...1946... Mon Jul 27 12:55:55 2009 From: rterry at ...1946... (richard terry) Date: Mon, 27 Jul 2009 20:55:55 +1000 Subject: [Gambas-user] the (seemingly) new popup help in IDE Message-ID: <200907272055.55262.rterry@...1946...> I've just been noticing this in recent builds, really handy (I'm on 2179) But It disappears too quickly. would it be possible to configure this so that it only disappeared if one hit the key, that way one could read and digest it - or at least make that a configurable option. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: popup_syntax_helper.png Type: image/png Size: 51916 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Jul 27 18:44:59 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Jul 2009 19:44:59 +0300 Subject: [Gambas-user] Reading email In-Reply-To: <4A687C9E.2080106@...2239...> References: <4A687C9E.2080106@...2239...> Message-ID: <384d3900907270944g39e2f8cdsae9b640f5c6b5ada@...627...> I think you mean you need to use POP3 protocol..? Gambas has only component for sending email, not for receiving. But if you mean just SMTP protocol for intranet purpose or similar, maybe you can write something with gb.net component. http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol http://en.wikipedia.org/wiki/Post_Office_Protocol http://gambasdoc.org/help/comp/gb.net Jussi To Benoit; there is little typo in project properties --> components, "STMP client", should be "SMTP client". On Thu, Jul 23, 2009 at 18:07, Jarkko H?rm? wrote: > Hello > > Is there any way of reading email from Gambas ? > > Jarkko > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jul 27 18:58:00 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 27 Jul 2009 18:58:00 +0200 Subject: [Gambas-user] Reading email In-Reply-To: <384d3900907270944g39e2f8cdsae9b640f5c6b5ada@...627...> References: <4A687C9E.2080106@...2239...> <384d3900907270944g39e2f8cdsae9b640f5c6b5ada@...627...> Message-ID: <200907271858.00272.gambas@...1...> > I think you mean you need to use POP3 protocol..? > Gambas has only component for sending email, not for receiving. > But if you mean just SMTP protocol for intranet purpose or similar, > maybe you can write something with gb.net component. > > http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol > http://en.wikipedia.org/wiki/Post_Office_Protocol > http://gambasdoc.org/help/comp/gb.net Yes, POP3 should be perfectly and simply doable in Gambas with a blocking Socket. > > > Jussi > > To Benoit; there is little typo in project properties --> components, > "STMP client", should be "SMTP client". Yes. I fix that in Gambas 3, but not in Gambas 2 to not lose the translations. Regards, -- Beno?t From dent.nic at ...626... Mon Jul 27 21:50:26 2009 From: dent.nic at ...626... (nic) Date: Mon, 27 Jul 2009 12:50:26 -0700 Subject: [Gambas-user] Moving things In-Reply-To: References: <24656776.post@...1379...> Message-ID: Well, I tried the code, but an error message pops up and tells me that "btnExit" is an unknown identifier. To be specific, it means this one: PUBLIC SUB btnExit_KeyPress() SELECT CASE Key.Code CASE Key.Up >>>>>btnExit.y = btnExit.y - 10 CASE Key.Down btnExit.y = btnExit.Y + 10 END SELECT END I would try and figure this out on my own, but I am still fairly new to computer programming. Thanks! On Sat, Jul 25, 2009 at 6:29 PM, nic wrote: > Cool! Thanks! This will definitely help in my game :D > thanks > > > On Sat, Jul 25, 2009 at 3:44 AM, charlesg wrote: > >> >> Hi >> >> Quick? Easy? Depends on where you are looking from :) >> '---------------------------------- >> PUBLIC SUB btnExit_KeyPress() >> SELECT CASE Key.Code >> CASE Key.Up >> btnExit.y = btnExit.y - 10 >> CASE Key.Down >> btnExit.y = btnExit.Y + 10 >> END SELECT >> END >> '--------------------------------- >> similar for left and right. >> you would also have to check that the button (or whatever) has not moved >> out >> of bounds (by comparing with the Form boundaries) >> Obviously the focus does not have to be the button itself. You can control >> it say from a hidden textBox. >> >> rgds >> -- >> View this message in context: >> http://www.nabble.com/Moving-things-tp24654731p24656776.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From dosida at ...626... Mon Jul 27 22:25:46 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 27 Jul 2009 14:25:46 -0600 Subject: [Gambas-user] Moving things In-Reply-To: References: <24656776.post@...1379...> Message-ID: <82bffccf0907271325r76cb77fdx52dbebc810eca694@...627...> Nic, btnExit refers to a button control that is called btnExit. From the name I can infer that it's an exit button What the code does is when you have the focus on that button and you press the up button on your keyboard the button will jump 10 pixels up from its current position and if you press the down button on your keyboard it will jump 10 pixels down from its current position. for this code to work you must have a button control on your form named btnExit. Then if you paste it, it'll work. Hope this helps Regards Dimtiris On Mon, Jul 27, 2009 at 1:50 PM, nic wrote: > Well, I tried the code, but an error message pops up and tells me that > "btnExit" is an unknown identifier. To be specific, it means this one: > > PUBLIC SUB btnExit_KeyPress() > SELECT CASE Key.Code > CASE Key.Up > > >>>>>btnExit.y = btnExit.y - 10 > > CASE Key.Down > btnExit.y = btnExit.Y + 10 > END SELECT > END > > I would try and figure this out on my own, but I am still fairly new to > computer programming. Thanks! > > On Sat, Jul 25, 2009 at 6:29 PM, nic wrote: > > > Cool! Thanks! This will definitely help in my game :D > > thanks > > > > > > On Sat, Jul 25, 2009 at 3:44 AM, charlesg >wrote: > > > >> > >> Hi > >> > >> Quick? Easy? Depends on where you are looking from :) > >> '---------------------------------- > >> PUBLIC SUB btnExit_KeyPress() > >> SELECT CASE Key.Code > >> CASE Key.Up > >> btnExit.y = btnExit.y - 10 > >> CASE Key.Down > >> btnExit.y = btnExit.Y + 10 > >> END SELECT > >> END > >> '--------------------------------- > >> similar for left and right. > >> you would also have to check that the button (or whatever) has not moved > >> out > >> of bounds (by comparing with the Form boundaries) > >> Obviously the focus does not have to be the button itself. You can > control > >> it say from a hidden textBox. > >> > >> rgds > >> -- > >> View this message in context: > >> http://www.nabble.com/Moving-things-tp24654731p24656776.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dent.nic at ...626... Mon Jul 27 23:33:03 2009 From: dent.nic at ...626... (nic) Date: Mon, 27 Jul 2009 14:33:03 -0700 Subject: [Gambas-user] Moving things In-Reply-To: <82bffccf0907271325r76cb77fdx52dbebc810eca694@...627...> References: <24656776.post@...1379...> <82bffccf0907271325r76cb77fdx52dbebc810eca694@...627...> Message-ID: Ok, thanks! I replaced all the "btnExit"s with Button1, the name of my button. I have a textbox set to receive the keypresses, but hopefully I will come up with a better solution. But it works! Thanks Dimtiris and Charles! On Mon, Jul 27, 2009 at 1:25 PM, Dimitris Anogiatis wrote: > Nic, > > btnExit refers to a button control that is called btnExit. From the name I > can infer that it's an exit button > What the code does is when you have the focus on that button and you press > the up button on your > keyboard the button will jump 10 pixels up from its current position and if > you press the down button > on your keyboard it will jump 10 pixels down from its current position. > > for this code to work you must have a button control on your form named > btnExit. Then if you paste > it, it'll work. > > Hope this helps > > Regards > Dimtiris > > On Mon, Jul 27, 2009 at 1:50 PM, nic wrote: > > > Well, I tried the code, but an error message pops up and tells me that > > "btnExit" is an unknown identifier. To be specific, it means this one: > > > > PUBLIC SUB btnExit_KeyPress() > > SELECT CASE Key.Code > > CASE Key.Up > > > > >>>>>btnExit.y = btnExit.y - 10 > > > > CASE Key.Down > > btnExit.y = btnExit.Y + 10 > > END SELECT > > END > > > > I would try and figure this out on my own, but I am still fairly new to > > computer programming. Thanks! > > > > On Sat, Jul 25, 2009 at 6:29 PM, nic wrote: > > > > > Cool! Thanks! This will definitely help in my game :D > > > thanks > > > > > > > > > On Sat, Jul 25, 2009 at 3:44 AM, charlesg < > charles at ...1784... > > >wrote: > > > > > >> > > >> Hi > > >> > > >> Quick? Easy? Depends on where you are looking from :) > > >> '---------------------------------- > > >> PUBLIC SUB btnExit_KeyPress() > > >> SELECT CASE Key.Code > > >> CASE Key.Up > > >> btnExit.y = btnExit.y - 10 > > >> CASE Key.Down > > >> btnExit.y = btnExit.Y + 10 > > >> END SELECT > > >> END > > >> '--------------------------------- > > >> similar for left and right. > > >> you would also have to check that the button (or whatever) has not > moved > > >> out > > >> of bounds (by comparing with the Form boundaries) > > >> Obviously the focus does not have to be the button itself. You can > > control > > >> it say from a hidden textBox. > > >> > > >> rgds > > >> -- > > >> View this message in context: > > >> http://www.nabble.com/Moving-things-tp24654731p24656776.html > > >> Sent from the gambas-user mailing list archive at Nabble.com. > > >> > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dent.nic at ...626... Tue Jul 28 02:41:09 2009 From: dent.nic at ...626... (nic) Date: Mon, 27 Jul 2009 17:41:09 -0700 Subject: [Gambas-user] General Input Box Message-ID: I think Gambas should have a general use input box. For example, a hidden box that monitors your mouse position and keystrokes. I'm new to Gambas, so if there's another way of doing this, please help. Thanks! From dent.nic at ...626... Tue Jul 28 02:53:23 2009 From: dent.nic at ...626... (nic) Date: Mon, 27 Jul 2009 17:53:23 -0700 Subject: [Gambas-user] DrawingArea Help Message-ID: Hi! I'm wondering how to draw a small circle in the DrawingArea at a XY position of a certain picture box and have the circle shoot forward. Or, maybe forget the picture box and just have a bigger circle drawn and have the small circles shoot out of it while being able to control the big circle with the arrow keys. I know this is kind of a lot to ask, but it would be great if you guys could send me some small snippets of code of how to draw circles and perhaps a little help how to have the drawn objects respond to keystrokes. And, you don't need to answer this (I know, this is kind of pushing it :D) but is there a way to display the FMain in fullscreen? Thank you! :) From dosida at ...626... Tue Jul 28 04:50:06 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 27 Jul 2009 20:50:06 -0600 Subject: [Gambas-user] General Input Box In-Reply-To: References: Message-ID: <82bffccf0907271950o5442ab70r82b09e5ad8918530@...627...> Nic, I don't know how Gambas works internally, but my understanding is that any such feature would be a resource hog because it would have to monitor keystrokes and mouse positions for all controls used in a form; what would happen if you had arrays of controls or complicated controls that you had to monitor? With your generic keystroke and mouse monitor approach there would be cases where keystrokes coming from certain controls would have to be prioritized and queued... that would create havoc bringing gambas programs' runtime performance to a slow grind. Yet again as I said before I don't know how Gambas works internally so the only person who can answer this for us, is Benoi himself. Regards, Dimitris On Mon, Jul 27, 2009 at 6:41 PM, nic wrote: > I think Gambas should have a general use input box. For example, a hidden > box that monitors your mouse position and keystrokes. I'm new to Gambas, so > if there's another way of doing this, please help. > > Thanks! > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leo_senpao at ...1541... Tue Jul 28 09:22:12 2009 From: leo_senpao at ...1541... (Leo Sendra) Date: Tue, 28 Jul 2009 15:22:12 +0800 (SGT) Subject: [Gambas-user] About setup installation form Message-ID: <593921.58961.qm@...2248...> Hi all.... I have already made an application using gambas. Now, I want to ask how to make a setup installation form of my application? Is there anyway to make this setup? How? As I know in VB, I can make the setup installation one. But how in gambas? Thanks... Lebih aman saat online. Upgrade ke Internet Explorer 8 baru dan lebih cepat yang dioptimalkan untuk Yahoo! agar Anda merasa lebih aman. Gratis. Dapatkan IE8 di sini! http://downloads.yahoo.com/id/internetexplorer/ From dosida at ...626... Tue Jul 28 09:40:37 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 28 Jul 2009 01:40:37 -0600 Subject: [Gambas-user] About setup installation form In-Reply-To: <593921.58961.qm@...2248...> References: <593921.58961.qm@...2248...> Message-ID: <82bffccf0907280040o29d6ebb3j786945cc543dcf6c@...627...> Hey Leo, AFAIK in Linux, the responsibility of an installation setup falls on the distribution's package manager. For Debian and Ubuntu the package manager is apt For Redhat you have the package manager is rpm For OpenSuse the package manager is yum (or yast I can't remember off the top of my head) as for default settings that's handled either from within your package (if you include a configuration file) or from within your program, or by a secondary (configuration) program. In Gambas if you want to create a package you click on the Project menu then select Make and from there you select Installation Package. A new window will appear and you will then be asked to enter information about you, a brief description of your project, then on the next step you will be able to provide changelog info or release info and then you will be able to select your target distribution the group of applications your program belongs to (games, sound programs, office programs etc.) the category under which your program will be listed in the desktop menu and then the folder where the installation package will be stored. I hope this clarifies things instead of confusing you more, Regards Dimitris On Tue, Jul 28, 2009 at 1:22 AM, Leo Sendra wrote: > Hi all.... > > I have already made an application using gambas. > Now, I want to ask how to make a setup installation form of my application? > Is there anyway to make this setup? How? > > As I know in VB, I can make the setup installation one. But how in gambas? > > Thanks... > > > > Lebih aman saat online. Upgrade ke Internet Explorer 8 baru dan lebih > cepat yang dioptimalkan untuk Yahoo! agar Anda merasa lebih aman. Gratis. > Dapatkan IE8 di sini! > http://downloads.yahoo.com/id/internetexplorer/ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mr_e at ...2237... Tue Jul 28 13:19:25 2009 From: mr_e at ...2237... (Fred Ellis) Date: 28 Jul 2009 11:19:25 -0000 Subject: [Gambas-user] Cannot compile - solved Message-ID: <20090728111925.13512.qmail@...2249...> > I tried f5 and f8, its the same and does not work for me. > > > > If I press f5 or f8 on my copy of the example (in my /home) I just get > 'compiling project' in the bottom left corner of the screen, and nothing > seems to happen. > > > > If I press f5 or f8 on the real example, it either starts as expected (f5), > or starts the breakpoint/step run (f8) as it should. > > > > Somethings gone wrong somewhere? Thanks to all who replied. It appears to be a defect in the Gambas package on the linux version I was using. This has been updated now and is working OK. Thanks for the comments and assistance. From prog at ...2177... Tue Jul 28 21:41:11 2009 From: prog at ...2177... (craf) Date: Tue, 28 Jul 2009 15:41:11 -0400 Subject: [Gambas-user] Background color for Textbox Message-ID: <1248810071.3590.23.camel@...651...> Hello. When selecting a background color for a textbox only allows me to select any of them. For example to select the color blue shown by the arrow, shows me a completely different color. Are there certain colors in Gambas?. Is this normal?. Select a color for the background 0080ff text box But this shows me another pink Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: backgroundcolortextbox2.png Type: image/png Size: 5398 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: backgroundcolortextbox.png Type: image/png Size: 25320 bytes Desc: not available URL: From rterry at ...1946... Tue Jul 28 23:29:25 2009 From: rterry at ...1946... (richard terry) Date: Wed, 29 Jul 2009 07:29:25 +1000 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <1248810071.3590.23.camel@...651...> References: <1248810071.3590.23.camel@...651...> Message-ID: <200907290729.25740.rterry@...1946...> On Wed, 29 Jul 2009 05:41:11 am craf wrote: > Hello. > > When selecting a background color for a textbox only allows me to select > any of them. For example to select the color blue shown by the arrow, > shows me a completely different color. Are there certain colors in > Gambas?. Is this normal?. > > > Select a color for the background 0080ff text box > > > But this shows me another pink > > > Regards Any color including those of your imagination. HOwever I agree that setting it doesn't always work properly. If you used the pop-up dialog box In my version if you type in the hex, nothing changes automatically. Also if you click on the color gradient anywhere, the square containing the colour dosn't change to indicate - you need to move the brightless slighter at the right. I've raised these things with Benoit before. Regards Richard From prog at ...2177... Tue Jul 28 23:32:42 2009 From: prog at ...2177... (craf) Date: Tue, 28 Jul 2009 17:32:42 -0400 Subject: [Gambas-user] Procedure new() Message-ID: <1248816762.3590.24.camel@...651...> Hi. What are the roles in the general procedure new ()? What difference has the procedure Form_Open () Regards From prog at ...2177... Tue Jul 28 23:45:46 2009 From: prog at ...2177... (craf) Date: Tue, 28 Jul 2009 17:45:46 -0400 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <200907290729.25740.rterry@...1946...> References: <1248810071.3590.23.camel@...651...> <200907290729.25740.rterry@...1946...> Message-ID: <1248817546.3590.25.camel@...651...> Ok. Thanks. -----Mensaje original----- De: richard terry Reply-to: richard terry , mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Background color for Textbox Fecha: Wed, 29 Jul 2009 07:29:25 +1000 On Wed, 29 Jul 2009 05:41:11 am craf wrote: > Hello. > > When selecting a background color for a textbox only allows me to select > any of them. For example to select the color blue shown by the arrow, > shows me a completely different color. Are there certain colors in > Gambas?. Is this normal?. > > > Select a color for the background 0080ff text box > > > But this shows me another pink > > > Regards Any color including those of your imagination. HOwever I agree that setting it doesn't always work properly. If you used the pop-up dialog box In my version if you type in the hex, nothing changes automatically. Also if you click on the color gradient anywhere, the square containing the colour dosn't change to indicate - you need to move the brightless slighter at the right. I've raised these things with Benoit before. Regards Richard ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jul 28 23:50:18 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jul 2009 23:50:18 +0200 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <1248810071.3590.23.camel@...651...> References: <1248810071.3590.23.camel@...651...> Message-ID: <200907282350.18516.gambas@...1...> > Hello. > > When selecting a background color for a textbox only allows me to select > any of them. For example to select the color blue shown by the arrow, > shows me a completely different color. Are there certain colors in > Gambas?. Is this normal?. > > > Select a color for the background 0080ff text box > > > But this shows me another pink > > > Regards This is a bug I am currently investigate... -- Beno?t From dent.nic at ...626... Tue Jul 28 23:54:34 2009 From: dent.nic at ...626... (nic) Date: Tue, 28 Jul 2009 14:54:34 -0700 Subject: [Gambas-user] DrawingArea Message-ID: How do I draw a circle (any size, I will modify it) in a drawing area? From gambas at ...1... Wed Jul 29 00:03:46 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 00:03:46 +0200 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <200907282350.18516.gambas@...1...> References: <1248810071.3590.23.camel@...651...> <200907282350.18516.gambas@...1...> Message-ID: <200907290003.46513.gambas@...1...> > > Hello. > > > > When selecting a background color for a textbox only allows me to select > > any of them. For example to select the color blue shown by the arrow, > > shows me a completely different color. Are there certain colors in > > Gambas?. Is this normal?. > > > > > > Select a color for the background 0080ff text box > > > > > > But this shows me another pink > > > > > > Regards > > This is a bug I am currently investigate... OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas 3 that I forgot to backport in Gambas 2. I will make a 2.15.2 as soon as possible. Regards, -- Beno?t From gambas at ...1... Wed Jul 29 00:05:59 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 00:05:59 +0200 Subject: [Gambas-user] DrawingArea In-Reply-To: References: Message-ID: <200907290005.59306.gambas@...1...> > How do I draw a circle (any size, I will modify it) in a drawing area? in the DrawingArea Draw event handler: Draw.Circle(XCenter, YCenter, Radius) Regards, -- Beno?t From prog at ...2177... Wed Jul 29 00:20:11 2009 From: prog at ...2177... (craf) Date: Tue, 28 Jul 2009 18:20:11 -0400 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <200907290003.46513.gambas@...1...> References: <1248810071.3590.23.camel@...651...> <200907282350.18516.gambas@...1...> <200907290003.46513.gambas@...1...> Message-ID: <1248819611.3590.26.camel@...651...> Ok. Thanks very much, Benoit Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Background color for Textbox Fecha: Wed, 29 Jul 2009 00:03:46 +0200 > > Hello. > > > > When selecting a background color for a textbox only allows me to select > > any of them. For example to select the color blue shown by the arrow, > > shows me a completely different color. Are there certain colors in > > Gambas?. Is this normal?. > > > > > > Select a color for the background 0080ff text box > > > > > > But this shows me another pink > > > > > > Regards > > This is a bug I am currently investigate... OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas 3 that I forgot to backport in Gambas 2. I will make a 2.15.2 as soon as possible. Regards, From dent.nic at ...626... Wed Jul 29 00:27:58 2009 From: dent.nic at ...626... (nic) Date: Tue, 28 Jul 2009 15:27:58 -0700 Subject: [Gambas-user] DrawingArea In-Reply-To: <200907290005.59306.gambas@...1...> References: <200907290005.59306.gambas@...1...> Message-ID: Is there a way I could define a symbol (I don't know how to do that) for the X,Y, and radius? That way my code could actively modify the circle while the programming is running. Thanks again! 2009/7/28 Beno?t Minisini > > How do I draw a circle (any size, I will modify it) in a drawing area? > > in the DrawingArea Draw event handler: > > Draw.Circle(XCenter, YCenter, Radius) > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jul 29 01:39:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 01:39:39 +0200 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <200907290003.46513.gambas@...1...> References: <1248810071.3590.23.camel@...651...> <200907282350.18516.gambas@...1...> <200907290003.46513.gambas@...1...> Message-ID: <200907290139.39425.gambas@...1...> > > > Hello. > > > > > > When selecting a background color for a textbox only allows me to > > > select any of them. For example to select the color blue shown by the > > > arrow, shows me a completely different color. Are there certain colors > > > in Gambas?. Is this normal?. > > > > > > > > > Select a color for the background 0080ff text box > > > > > > > > > But this shows me another pink > > > > > > > > > Regards > > > > This is a bug I am currently investigate... > > OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas > 3 that I forgot to backport in Gambas 2. > > I will make a 2.15.2 as soon as possible. > > Regards, The 2.15.2 package has been uploaded to sourceforge, but apparently it is not available immediately for downloading. We can just wait and pray... -- Beno?t From prog at ...2177... Wed Jul 29 02:56:58 2009 From: prog at ...2177... (craf) Date: Tue, 28 Jul 2009 20:56:58 -0400 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <200907290139.39425.gambas@...1...> References: <1248810071.3590.23.camel@...651...> <200907282350.18516.gambas@...1...> <200907290003.46513.gambas@...1...> <200907290139.39425.gambas@...1...> Message-ID: <1248829018.3589.0.camel@...651...> ja,ja, Ok. Thanks Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Background color for Textbox Fecha: Wed, 29 Jul 2009 01:39:39 +0200 > > > Hello. > > > > > > When selecting a background color for a textbox only allows me to > > > select any of them. For example to select the color blue shown by the > > > arrow, shows me a completely different color. Are there certain colors > > > in Gambas?. Is this normal?. > > > > > > > > > Select a color for the background 0080ff text box > > > > > > > > > But this shows me another pink > > > > > > > > > Regards > > > > This is a bug I am currently investigate... > > OK, the bug is fixed in revision #2186. This was a fix in Val() for Gambas > 3 that I forgot to backport in Gambas 2. > > I will make a 2.15.2 as soon as possible. > > Regards, The 2.15.2 package has been uploaded to sourceforge, but apparently it is not available immediately for downloading. We can just wait and pray... From doriano.blengino at ...1909... Wed Jul 29 09:52:08 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 29 Jul 2009 09:52:08 +0200 Subject: [Gambas-user] Procedure new() In-Reply-To: <1248816762.3590.24.camel@...651...> References: <1248816762.3590.24.camel@...651...> Message-ID: <4A6FFFA8.60808@...1909...> craf ha scritto: > Hi. > > What are the roles in the general procedure new ()? > What difference has the procedure Form_Open () > If I correctly understand your question, the reply is the following. new() is a generic language construct which creates new objects (instances of a class). Several gambas objects like Lists, Controls, Forms and so on are put to life with new(), more or less explicitly. Form_Open is an event; when you (or Gambas on your behalf) display a form for the first time, this procedure is called to let you do your stuff in that precise moment. It is common to put several new()'s in this procedure, to prepare data the form will use, but those statements could be put instead elsewhere: it depends on the logic of the program. This is the only relationship between new() and Form_Open(). I hope this is the right reply to your question. Regards, Doriano From rterry at ...1946... Wed Jul 29 10:53:09 2009 From: rterry at ...1946... (richard terry) Date: Wed, 29 Jul 2009 18:53:09 +1000 Subject: [Gambas-user] Breakpoint question Message-ID: <200907291853.09565.rterry@...1946...> I don't suppose anyone know's where gambas stores previous breakpoints that it re-uses when the program is started. I'm experiencing a nasty bug in gambas which dies with a debug error and it started after I put in a breakpoint and I can't code as a result. Any help appreciated. (build 2189 and before) richard From doriano.blengino at ...1909... Wed Jul 29 11:26:25 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 29 Jul 2009 11:26:25 +0200 Subject: [Gambas-user] Breakpoint question In-Reply-To: <200907291853.09565.rterry@...1946...> References: <200907291853.09565.rterry@...1946...> Message-ID: <4A7015C1.6010507@...1909...> richard terry ha scritto: > I don't suppose anyone know's where gambas stores previous breakpoints that it > re-uses when the program is started. > ...in a hidden project file, named ".settings", located in the same path of the other sources. If not there, try also ".project", but .settings should be correct. > I'm experiencing a nasty bug in gambas which dies with a debug error and it > started after I put in a breakpoint and I can't code as a result. > From Karl.Reinl at ...9... Wed Jul 29 11:41:16 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 29 Jul 2009 11:41:16 +0200 Subject: [Gambas-user] Breakpoint question In-Reply-To: <4A7015C1.6010507@...1909...> References: <200907291853.09565.rterry@...1946...> <4A7015C1.6010507@...1909...> Message-ID: <1248860476.6990.8.camel@...40...> Am Mittwoch, den 29.07.2009, 11:26 +0200 schrieb Doriano Blengino: > richard terry ha scritto: > > I don't suppose anyone know's where gambas stores previous breakpoints that it > > re-uses when the program is started. > > > ...in a hidden project file, named ".settings", located in the same path > of the other sources. If not there, try also ".project", but .settings > should be correct. > > > I'm experiencing a nasty bug in gambas which dies with a debug error and it > > started after I put in a breakpoint and I can't code as a result. > > Salut Richard, yes like Doriano wrote, .settings in the project folder is the place [Breakpoints] Count=0 there are also : [FFind] [OpenFile] [Watches] and a lot of [DebugWindow/???????] -- Amicalment Charlie From rterry at ...1946... Wed Jul 29 11:48:49 2009 From: rterry at ...1946... (richard terry) Date: Wed, 29 Jul 2009 19:48:49 +1000 Subject: [Gambas-user] Breakpoint question In-Reply-To: <1248860476.6990.8.camel@...40...> References: <200907291853.09565.rterry@...1946...> <4A7015C1.6010507@...1909...> <1248860476.6990.8.camel@...40...> Message-ID: <200907291948.50018.rterry@...1946...> On Wed, 29 Jul 2009 07:41:16 pm Charlie Reinl wrote: > Am Mittwoch, den 29.07.2009, 11:26 +0200 schrieb Doriano Blengino: > > richard terry ha scritto: > > > I don't suppose anyone know's where gambas stores previous breakpoints > > > that it re-uses when the program is started. > > > > ...in a hidden project file, named ".settings", located in the same path > > of the other sources. If not there, try also ".project", but .settings > > should be correct. > > > > > I'm experiencing a nasty bug in gambas which dies with a debug error > > > and it started after I put in a breakpoint and I can't code as a > > > result. > > Salut Richard, > > yes like Doriano wrote, .settings in the project folder is the place > > [Breakpoints] > Count=0 > > there are also : > [FFind] > [OpenFile] > [Watches] > > and a lot of [DebugWindow/???????] Thanks, I think I've found the bug in the gambas IDE code and sent some screen dumps to benoit to look at, but I'll ook at that also as I wanted to know where that stuff was kept. Thanks. Richard From jredrejo at ...626... Wed Jul 29 13:30:46 2009 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Wed, 29 Jul 2009 13:30:46 +0200 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <200907290139.39425.gambas@...1...> References: <1248810071.3590.23.camel@...651...> <200907282350.18516.gambas@...1...> <200907290003.46513.gambas@...1...> <200907290139.39425.gambas@...1...> Message-ID: <8eb28a500907290430h3c5e1369od9ac96bdd83f5f17@...627...> I continue praying, but it's not available yet :( 2009/7/29 Beno?t Minisini > > > > Hello. > > > > > > > > When selecting a background color for a textbox only allows me to > > > > select any of them. For example to select the color blue shown by the > > > > arrow, shows me a completely different color. Are there certain > colors > > > > in Gambas?. Is this normal?. > > > > > > > > > > > > Select a color for the background 0080ff text box > > > > > > > > > > > > But this shows me another pink > > > > > > > > > > > > Regards > > > > > > This is a bug I am currently investigate... > > > > OK, the bug is fixed in revision #2186. This was a fix in Val() for > Gambas > > 3 that I forgot to backport in Gambas 2. > > > > I will make a 2.15.2 as soon as possible. > > > > Regards, > > The 2.15.2 package has been uploaded to sourceforge, but apparently it is > not > available immediately for downloading. > > We can just wait and pray... > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jul 29 13:46:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 13:46:39 +0200 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <8eb28a500907290430h3c5e1369od9ac96bdd83f5f17@...627...> References: <1248810071.3590.23.camel@...651...> <200907290139.39425.gambas@...1...> <8eb28a500907290430h3c5e1369od9ac96bdd83f5f17@...627...> Message-ID: <200907291346.39853.gambas@...1...> > I continue praying, but it's not available yet :( > Yep. If you look at the feed on the summary page, you will see that it has stopped yesterday with the revision #2185, while the latest one is #2189. -- Beno?t From gambas at ...1... Wed Jul 29 13:52:29 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 13:52:29 +0200 Subject: [Gambas-user] Background color for Textbox In-Reply-To: <8eb28a500907290430h3c5e1369od9ac96bdd83f5f17@...627...> References: <1248810071.3590.23.camel@...651...> <200907290139.39425.gambas@...1...> <8eb28a500907290430h3c5e1369od9ac96bdd83f5f17@...627...> Message-ID: <200907291352.29161.gambas@...1...> > I continue praying, but it's not available yet :( > > 2009/7/29 Beno?t Minisini > > > > > > Hello. > > > > > > > > > > When selecting a background color for a textbox only allows me to > > > > > select any of them. For example to select the color blue shown by > > > > > the arrow, shows me a completely different color. Are there certain > > > > colors > > > > > > > in Gambas?. Is this normal?. > > > > > > > > > > > > > > > Select a color for the background 0080ff text box > > > > > > > > > > > > > > > But this shows me another pink > > > > > > > > > > > > > > > Regards > > > > > > > > This is a bug I am currently investigate... > > > > > > OK, the bug is fixed in revision #2186. This was a fix in Val() for > > > > Gambas > > > > > 3 that I forgot to backport in Gambas 2. > > > > > > I will make a 2.15.2 as soon as possible. > > > > > > Regards, > > > > The 2.15.2 package has been uploaded to sourceforge, but apparently it is > > not > > available immediately for downloading. > > > > We can just wait and pray... > > > > -- > > Beno?t > > Apparently this is a new SourceForge bug. Many people have just created tickets about the problem in their bug management system. -- Beno?t From gambas at ...1... Wed Jul 29 14:05:21 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 14:05:21 +0200 Subject: [Gambas-user] Breakpoint question In-Reply-To: <200907291948.50018.rterry@...1946...> References: <200907291853.09565.rterry@...1946...> <1248860476.6990.8.camel@...40...> <200907291948.50018.rterry@...1946...> Message-ID: <200907291405.21313.gambas@...1...> > On Wed, 29 Jul 2009 07:41:16 pm Charlie Reinl wrote: > > Am Mittwoch, den 29.07.2009, 11:26 +0200 schrieb Doriano Blengino: > > > richard terry ha scritto: > > > > I don't suppose anyone know's where gambas stores previous > > > > breakpoints that it re-uses when the program is started. > > > > > > ...in a hidden project file, named ".settings", located in the same > > > path of the other sources. If not there, try also ".project", but > > > .settings should be correct. > > > > > > > I'm experiencing a nasty bug in gambas which dies with a debug error > > > > and it started after I put in a breakpoint and I can't code as a > > > > result. > > > > Salut Richard, > > > > yes like Doriano wrote, .settings in the project folder is the place > > > > [Breakpoints] > > Count=0 > > > > there are also : > > [FFind] > > [OpenFile] > > [Watches] > > > > and a lot of [DebugWindow/???????] > > Thanks, I think I've found the bug in the gambas IDE code and sent some > screen dumps to benoit to look at, but I'll ook at that also as I wanted to > know where that stuff was kept. > > Thanks. > > Richard > Hi, I finally fixed the bug in the revision #2190 (and found another one in the same time, not fixed yet!). Sorry for the inconvenience. Regards, -- Beno?t From gambas at ...1... Wed Jul 29 13:29:32 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 13:29:32 +0200 Subject: [Gambas-user] Procedure new() In-Reply-To: <4A6FFFA8.60808@...1909...> References: <1248816762.3590.24.camel@...651...> <4A6FFFA8.60808@...1909...> Message-ID: <200907291329.32157.gambas@...1...> > craf ha scritto: > > Hi. > > > > What are the roles in the general procedure new ()? > > What difference has the procedure Form_Open () > > If I correctly understand your question, the reply is the following. > new() is a generic language construct which creates new objects > (instances of a class). Several gambas objects like Lists, Controls, > Forms and so on are put to life with new(), more or less explicitly. Actually all Gambas objects are created by New. Sometimes you don't see it. > Form_Open is an event; when you (or Gambas on your behalf) display a > form for the first time, this procedure is called to let you do your > stuff in that precise moment. It is common to put several new()'s in > this procedure, to prepare data the form will use, but those statements > could be put instead elsewhere: it depends on the logic of the program. > This is the only relationship between new() and Form_Open(). > > I hope this is the right reply to your question. > > Regards, > Doriano > Or maybe he was talking about "_new()", the constructor? -- Beno?t From sktan007 at ...43... Wed Jul 29 15:14:55 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Wed, 29 Jul 2009 06:14:55 -0700 (PDT) Subject: [Gambas-user] I've a command line gambas program, how do I send some paramater for it ? Message-ID: <671560.44187.qm@...2251...> We can write it in C/C++, like this int main (int argc, char * argv[]) { ????? if (argc < 3) { ???????? .... ????? _______________________________________ ???????????? http://cn.mail.yahoo.com From ron at ...1740... Wed Jul 29 15:44:14 2009 From: ron at ...1740... (Ron) Date: Wed, 29 Jul 2009 15:44:14 +0200 Subject: [Gambas-user] I've a command line gambas program, how do I send some paramater for it ? In-Reply-To: <671560.44187.qm@...2251...> References: <671560.44187.qm@...2251...> Message-ID: <4A70522E.2030309@...1740...> Swee Kwang Tan wrote: > We can write it in C/C++, like this > int main (int argc, char * argv[]) { > if (argc < 3) { > .... > > Hi, Try: PUBLIC SUB Main() DIM a AS String PRINT "Count " & Application.Args.Count FOR EACH a IN Application.Args PRINT a NEXT END http://gambasdoc.org/help/comp/gb/application/args Kind regards, Ron_2nd. From doriano.blengino at ...1909... Wed Jul 29 15:49:15 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 29 Jul 2009 15:49:15 +0200 Subject: [Gambas-user] Procedure new() In-Reply-To: <200907291329.32157.gambas@...1...> References: <1248816762.3590.24.camel@...651...> <4A6FFFA8.60808@...1909...> <200907291329.32157.gambas@...1...> Message-ID: <4A70535B.2090609@...1909...> Beno?t Minisini ha scritto: >> craf ha scritto: >> >>> Hi. >>> >>> What are the roles in the general procedure new ()? >>> What difference has the procedure Form_Open () >>> >> If I correctly understand your question... >> Regards, >> Doriano >> >> > > Or maybe he was talking about "_new()", the constructor? > > Yeah... it makes more sense... in this case a old-risen doubt comes to my mind: I can't find a documentation for _new(), _init() and perhaps other. I suppose _new() is called, then _init(), and finally, in the case of a form, Form_Open(). Is it so? Regards, Doriano. From gambas at ...1... Wed Jul 29 16:21:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jul 2009 16:21:08 +0200 Subject: [Gambas-user] Procedure new() In-Reply-To: <4A70535B.2090609@...1909...> References: <1248816762.3590.24.camel@...651...> <200907291329.32157.gambas@...1...> <4A70535B.2090609@...1909...> Message-ID: <200907291621.08867.gambas@...1...> > Beno?t Minisini ha scritto: > >> craf ha scritto: > >>> Hi. > >>> > >>> What are the roles in the general procedure new ()? > >>> What difference has the procedure Form_Open () > >> > >> If I correctly understand your question... > >> Regards, > >> Doriano > > > > Or maybe he was talking about "_new()", the constructor? > > Yeah... it makes more sense... in this case a old-risen doubt comes to > my mind: I can't find a documentation for _new(), _init() and perhaps > other. I suppose _new() is called, then _init(), and finally, in the > case of a form, Form_Open(). Is it so? > > Regards, > Doriano. > Not really: _init() is called once when the class is loaded. You can see it as the class constructor. _new() is called when the object is created. Form_Open() is just the event handler of the Open event raised by a Window object. It can be raised in many different situations. It usually means that the window is going to be shown for the first time. Regards, -- Beno?t From prog at ...2177... Wed Jul 29 17:49:07 2009 From: prog at ...2177... (craf) Date: Wed, 29 Jul 2009 11:49:07 -0400 Subject: [Gambas-user] Procedure new() In-Reply-To: <200907291621.08867.gambas@...1...> References: <1248816762.3590.24.camel@...651...> <200907291329.32157.gambas@...1...> <4A70535B.2090609@...1909...> <200907291621.08867.gambas@...1...> Message-ID: <1248882547.3584.1.camel@...651...> thank you very much , and to assimilate the differences Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Procedure new() Fecha: Wed, 29 Jul 2009 16:21:08 +0200 > Beno?t Minisini ha scritto: > >> craf ha scritto: > >>> Hi. > >>> > >>> What are the roles in the general procedure new ()? > >>> What difference has the procedure Form_Open () > >> > >> If I correctly understand your question... > >> Regards, > >> Doriano > > > > Or maybe he was talking about "_new()", the constructor? > > Yeah... it makes more sense... in this case a old-risen doubt comes to > my mind: I can't find a documentation for _new(), _init() and perhaps > other. I suppose _new() is called, then _init(), and finally, in the > case of a form, Form_Open(). Is it so? > > Regards, > Doriano. > Not really: _init() is called once when the class is loaded. You can see it as the class constructor. _new() is called when the object is created. Form_Open() is just the event handler of the Open event raised by a Window object. It can be raised in many different situations. It usually means that the window is going to be shown for the first time. Regards, From ulusoyab at ...43... Thu Jul 30 11:09:15 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Thu, 30 Jul 2009 02:09:15 -0700 (PDT) Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <75002.7615.qm@...2230...> Message-ID: <796783.39927.qm@...2242...> anyone has an idea on that? --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle yaz?yor: Kimden: abdurrahman ulusoy Konu: [Gambas-user] drawingarea resize Kime: Gambas-user at lists.sourceforge.net Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 hi when i ?resize to drawingarea gambas console show me this error. X Error: BadAlloc (insufficient resources for operation) 11 ? Major opcode:? 53 ? Minor opcode:? 0 ? Resource id:? 0x7c X Error: BadDrawable (invalid Pixmap or Window parameter) 9 ? Major opcode:? 70 ? Minor opcode:? 0 ? Resource id:? 0x3600fc2 X Error: BadDrawable (invalid Pixmap or Window parameter) 9 ? Major opcode:? 62 ? Minor opcode:? 0 ? Resource id:? 0x3600fc2 X Error: BadPixmap (invalid Pixmap parameter) 4 ? Major opcode:? 2 ? Minor opcode:? 0 ? Resource id:? 0x3600fc2 X Error: BadAlloc (insufficient resources for operation) 11 ? Major opcode:? 53 ? Minor opcode:? 0 ? Resource id:? 0x7c X Error: BadDrawable (invalid Pixmap or Window parameter) 9 ? Major opcode:? 70 ? Minor opcode:? 0 ? Resource id:? 0x3600fc3 X Error: BadDrawable (invalid Pixmap or Window parameter) 9 ? Major opcode:? 62 ? Minor opcode:? 0 ? Resource id:? 0x3600fc3 X Error: BadPixmap (invalid Pixmap parameter) 4 ? Major opcode:? 54 ? Minor opcode:? 0 ? Resource id:? 0x3600fc2 X Error: BadPixmap (invalid Pixmap parameter) 4 ? Major opcode:? 2 ? Minor opcode:? 0 ? Resource id:? 0x3600fc3+ ? ? ? ___________________________________________________________________ Yahoo! T?rkiye a??ld?!? http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge? This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize? details at: http://p.sf.net/sfu/Challenge _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas.fr at ...626... Thu Jul 30 13:43:18 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jul 2009 13:43:18 +0200 Subject: [Gambas-user] the (seemingly) new popup help in IDE In-Reply-To: <200907272055.55262.rterry@...1946...> References: <200907272055.55262.rterry@...1946...> Message-ID: <6324a42a0907300443s6828af3bjc9d488cd29ca93bf@...627...> just put the cursor on it ! i will look for that ! 2009/7/27 richard terry : > I've just been noticing this in recent builds, really handy (I'm on 2179) > > But It disappears too quickly. would it be possible to configure this so that > it only disappeared if one hit the key, that way one could read and > digest it - or at least make that a configurable option. > > Regards > > Richard > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Thu Jul 30 13:58:09 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jul 2009 13:58:09 +0200 Subject: [Gambas-user] A web page for Gambas applications In-Reply-To: <110717.42630.qm@...2246...> References: <6324a42a0907261347g6622c273l884b8897009a6b0d@...627...> <110717.42630.qm@...2246...> Message-ID: <6324a42a0907300458s9b7dcb2xd8c3ec5c2bf1856b@...627...> 2009/7/27 abdurrahman ulusoy : >>An english traduction of your software will be great too :) (and the site ...:-)? ? Yes but i am sure, you understand, my english is not good. Neither mine but if you begin to traduce, even with a bad english i thing many people will come to help you in your project, and correct you little errors, ... and then you program can be traduced from the english to many other language and so found undred and undred users... :-) So it is really something important, and gambas make that easy to do >>CAD in gambas ... good work !Gambas is easy and rapid language. infact? a lot of linux user say me:in linux use C or python. they dont like gambas. ?but i like ? :) From gambas at ...1... Thu Jul 30 14:41:25 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jul 2009 14:41:25 +0200 Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <796783.39927.qm@...2242...> References: <796783.39927.qm@...2242...> Message-ID: <200907301441.25105.gambas@...1...> > anyone has an idea on that? > > > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle > yaz?yor: > > Kimden: abdurrahman ulusoy > Konu: [Gambas-user] drawingarea resize > Kime: Gambas-user at lists.sourceforge.net > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 > > hi > when i resize to drawingarea gambas console show me this error. Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use gb.gui, with with desktop? > X Error: BadAlloc (insufficient resources for operation) 11 > Major opcode: 53 > Minor opcode: 0 > Resource id: 0x7c "insufficient resources". Hmm, are you trying to resize a too large cached DrawingArea? -- Beno?t From ulusoyab at ...43... Thu Jul 30 14:49:05 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Thu, 30 Jul 2009 05:49:05 -0700 (PDT) Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <200907301441.25105.gambas@...1...> Message-ID: <101440.87309.qm@...2246...> Yes. too large. --- 30/07/09 Per tarihinde Beno?t Minisini ??yle yaz?yor: Kimden: Beno?t Minisini Konu: Re: [Gambas-user] Yan: drawingarea resize Kime: "mailing list for gambas users" Tarihi: 30 Temmuz 2009 Per?embe, 15:41 > anyone has an idea on that? > > > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle > yaz?yor: > > Kimden: abdurrahman ulusoy > Konu: [Gambas-user] drawingarea resize > Kime: Gambas-user at lists.sourceforge.net > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 > > hi > when i? resize to drawingarea gambas console show me this error. Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use gb.gui, with with desktop? > X Error: BadAlloc (insufficient resources for operation) 11 >???Major opcode:? 53 >???Minor opcode:? 0 >???Resource id:? 0x7c "insufficient resources". Hmm, are you trying to resize a too large cached DrawingArea? -- Beno?t ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.? http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas at ...1... Thu Jul 30 14:49:10 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jul 2009 14:49:10 +0200 Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <200907301441.25105.gambas@...1...> References: <796783.39927.qm@...2242...> <200907301441.25105.gambas@...1...> Message-ID: <200907301449.10566.gambas@...1...> > > anyone has an idea on that? > > > > > > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle > > yaz?yor: > > > > Kimden: abdurrahman ulusoy > > Konu: [Gambas-user] drawingarea resize > > Kime: Gambas-user at lists.sourceforge.net > > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 > > > > hi > > when i resize to drawingarea gambas console show me this error. > > Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use > gb.gui, with with desktop? . /|\ | which ----------' -- Beno?t From ulusoyab at ...43... Thu Jul 30 15:01:27 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Thu, 30 Jul 2009 06:01:27 -0700 (PDT) Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <200907301449.10566.gambas@...1...> Message-ID: <92023.1693.qm@...2243...> ?KDE 3.5.10 my desktop i use? gambas 2.9 ?and ? gb.qt? --- 30/07/09 Per tarihinde Beno?t Minisini ??yle yaz?yor: Kimden: Beno?t Minisini Konu: Re: [Gambas-user] Yan: drawingarea resize Kime: "mailing list for gambas users" Tarihi: 30 Temmuz 2009 Per?embe, 15:49 > > anyone has an idea on that? > > > > > > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle > > yaz?yor: > > > > Kimden: abdurrahman ulusoy > > Konu: [Gambas-user] drawingarea resize > > Kime: Gambas-user at lists.sourceforge.net > > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 > > > > hi > > when i? resize to drawingarea gambas console show me this error. > > Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use > gb.gui, with with desktop? ? ? ? ? ? ? ? ? . ? ? ? ? ? ? ???/|\ ? ? ? ? ? ? ? ? | which ----------' -- Beno?t ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.? http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas.fr at ...626... Thu Jul 30 15:53:17 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jul 2009 15:53:17 +0200 Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <92023.1693.qm@...2243...> References: <200907301449.10566.gambas@...1...> <92023.1693.qm@...2243...> Message-ID: <6324a42a0907300653o35ee71cajfb1667d302e792c9@...627...> resize in what way ?... you are using cached mode ? 2009/7/30 abdurrahman ulusoy : > ?KDE 3.5.10 my desktop > i use? gambas 2.9 ?and ? gb.qt > > > > --- 30/07/09 Per tarihinde Beno?t Minisini ??yle yaz?yor: > > Kimden: Beno?t Minisini > Konu: Re: [Gambas-user] Yan: ?drawingarea resize > Kime: "mailing list for gambas users" > Tarihi: 30 Temmuz 2009 Per?embe, 15:49 > >> > anyone has an idea on that? >> > >> > >> > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle >> > yaz?yor: >> > >> > Kimden: abdurrahman ulusoy >> > Konu: [Gambas-user] drawingarea resize >> > Kime: Gambas-user at lists.sourceforge.net >> > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 >> > >> > hi >> > when i? resize to drawingarea gambas console show me this error. >> >> Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use >> gb.gui, with with desktop? > ? ? ? ? ? ? ? ? . > ? ? ? ? ? ? ???/|\ > ? ? ? ? ? ? ? ? | > which ----------' > > > -- > Beno?t > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now.? http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ? ? ?___________________________________________________________________ > Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr > ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ulusoyab at ...43... Thu Jul 30 16:02:19 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Thu, 30 Jul 2009 07:02:19 -0700 (PDT) Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <6324a42a0907300653o35ee71cajfb1667d302e792c9@...627...> Message-ID: <601606.80662.qm@...2247...> yes , cached mode. --- 30/07/09 Per tarihinde Fabien Bodard ??yle yaz?yor: Kimden: Fabien Bodard Konu: Re: [Gambas-user] Yan: drawingarea resize Kime: "mailing list for gambas users" Tarihi: 30 Temmuz 2009 Per?embe, 16:53 resize in what way ?... you are using cached mode ? 2009/7/30 abdurrahman ulusoy : > ?KDE 3.5.10 my desktop > i use? gambas 2.9 ?and ? gb.qt > > > > --- 30/07/09 Per tarihinde Beno?t Minisini ??yle yaz?yor: > > Kimden: Beno?t Minisini > Konu: Re: [Gambas-user] Yan: ?drawingarea resize > Kime: "mailing list for gambas users" > Tarihi: 30 Temmuz 2009 Per?embe, 15:49 > >> > anyone has an idea on that? >> > >> > >> > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle >> > yaz?yor: >> > >> > Kimden: abdurrahman ulusoy >> > Konu: [Gambas-user] drawingarea resize >> > Kime: Gambas-user at lists.sourceforge.net >> > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 >> > >> > hi >> > when i? resize to drawingarea gambas console show me this error. >> >> Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use >> gb.gui, with with desktop? > ? ? ? ? ? ? ? ? . > ? ? ? ? ? ? ???/|\ > ? ? ? ? ? ? ? ? | > which ----------' > > > -- > Beno?t > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now.? http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ? ? ?___________________________________________________________________ > Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr > ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.? http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From 12ukwn at ...626... Thu Jul 30 16:30:27 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 30 Jul 2009 16:30:27 +0200 Subject: [Gambas-user] making an animated demo Message-ID: <4A71AE83.1010006@...626...> Hi folks, I wanna make instant flow & data quantity measures in order to determine what remote X access solution is the best solution (speed/quality/instant flow...) to access a Gambas application from w$ (or Linux) through tunnelised XDMCP, Xephyr, OpenVpn, ssh -X, FreeNX, ... To make sure test basis is the same whatever the test, I need an automated piece of software that: open some windows > move them > close some windows > open a menu > close it > and finally close everything (kinda big macro) So it will look like a manual exploitation while beeing automatic and sending exactly the same moves to each test. (Of course, it *can't be* a film.) Under Xfce4 (debian sid). Can I easily build this out from Gambas (and if so, how)? The goal is to find out good and reliable solutions for LAN and Internet remote access, as I did not found such tests on the WEB (ie: NX claims it's the best speed/instant flow... but as a matter of fact nobody's ever validate/unvalidate such an assertion by a situation test.) JY -- I don't care who you are, Fatso. Get those reindeer off my roof. From gambas.fr at ...626... Thu Jul 30 16:38:53 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jul 2009 16:38:53 +0200 Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <601606.80662.qm@...2247...> References: <6324a42a0907300653o35ee71cajfb1667d302e792c9@...627...> <601606.80662.qm@...2247...> Message-ID: <6324a42a0907300738s486fbef5v8c1686b09bf2b5d0@...627...> if you can ... prefer a no cached mode... and use the _draw event to redraw the scene... PUBLIC SUB DrawingArea1_Draw() Draw.Text(1,1,"text redraw") END You have not to define the draw.begin in this event it is automatically set. SO in this case you not resize the picture but redraw it... i think it's a better idea and a less resources consumer. then it depend of your code ... as i don't your need 2009/7/30 abdurrahman ulusoy : > yes , cached mode. > > --- 30/07/09 Per tarihinde Fabien Bodard ??yle yaz?yor: > > Kimden: Fabien Bodard > Konu: Re: [Gambas-user] Yan: drawingarea resize > Kime: "mailing list for gambas users" > Tarihi: 30 Temmuz 2009 Per?embe, 16:53 > > resize in what way ?... you are using cached mode ? > > > > 2009/7/30 abdurrahman ulusoy : >> ?KDE 3.5.10 my desktop >> i use? gambas 2.9 ?and ? gb.qt >> >> >> >> --- 30/07/09 Per tarihinde Beno?t Minisini ??yle yaz?yor: >> >> Kimden: Beno?t Minisini >> Konu: Re: [Gambas-user] Yan: ?drawingarea resize >> Kime: "mailing list for gambas users" >> Tarihi: 30 Temmuz 2009 Per?embe, 15:49 >> >>> > anyone has an idea on that? >>> > >>> > >>> > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle >>> > yaz?yor: >>> > >>> > Kimden: abdurrahman ulusoy >>> > Konu: [Gambas-user] drawingarea resize >>> > Kime: Gambas-user at lists.sourceforge.net >>> > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 >>> > >>> > hi >>> > when i? resize to drawingarea gambas console show me this error. >>> >>> Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use >>> gb.gui, with with desktop? >> ? ? ? ? ? ? ? ? . >> ? ? ? ? ? ? ???/|\ >> ? ? ? ? ? ? ? ? | >> which ----------' >> >> >> -- >> Beno?t >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now.? http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ? ? ?___________________________________________________________________ >> Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr >> ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now.? http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ? ? ?___________________________________________________________________ > Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr > ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jul 30 16:45:35 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jul 2009 16:45:35 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A71AE83.1010006@...626...> References: <4A71AE83.1010006@...626...> Message-ID: <200907301645.35636.gambas@...1...> > Hi folks, > > I wanna make instant flow & data quantity measures in order to determine > what remote X access solution is the best solution (speed/quality/instant > flow...) to access a Gambas application from w$ (or Linux) through > tunnelised XDMCP, Xephyr, OpenVpn, ssh -X, FreeNX, ... > > To make sure test basis is the same whatever the test, I need an automated > piece of software that: open some windows > move them > close some windows > > open a menu > close it > and finally close everything (kinda big macro) > So it will look like a manual exploitation while beeing automatic and > sending exactly the same moves to each test. (Of course, it *can't be* a > film.) > > Under Xfce4 (debian sid). > > Can I easily build this out from Gambas (and if so, how)? > > The goal is to find out good and reliable solutions for LAN and Internet > remote access, as I did not found such tests on the WEB (ie: NX claims it's > the best speed/instant flow... but as a matter of fact nobody's ever > validate/unvalidate such an assertion by a situation test.) > > JY Gambas has Dekstop.SendKeys() in its gb.desktop component to automate keystrokes if you need. Anyway, NX is the only thing I used that made X-Window usable on ADSL for me. Regards, -- Beno?t From 12ukwn at ...626... Thu Jul 30 17:11:42 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 30 Jul 2009 17:11:42 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <200907301645.35636.gambas@...1...> References: <4A71AE83.1010006@...626...> <200907301645.35636.gambas@...1...> Message-ID: <4A71B82E.5000904@...626...> Beno?t Minisini a ?crit : ... >> The goal is to find out good and reliable solutions for LAN and Internet >> remote access, as I did not found such tests on the WEB (ie: NX claims it's >> the best speed/instant flow... but as a matter of fact nobody's ever >> validate/unvalidate such an assertion by a situation test.) >> >> JY > > Gambas has Dekstop.SendKeys() in its gb.desktop component to automate > keystrokes if you need. YEEES, this it exactely it! Obeewan Ben O?t, you're my only hope :-) (moreover, this is a tremendous facility to ease software demonstration in a meeting; I guess that was your goal) > Anyway, NX is the only thing I used that made X-Window usable on ADSL for me. Yep, as I read on some sites that was quite true until now, but some preliminary tests with Xephyr show that data qty has dramatically decreased. I'd like to (definitely) establish some facts: * Data qty that is exchanged (either on a LAN or on the WEB it's important as the client's max qty depends on that, * Ease of solution vs. solution complexity (in particular: shall I spend one hour more to setup this solution against this other one, only to gain 1Kbit/sec?), * What solution(s) are more resistant to packets loss/double sent? JY -- Klatu barada nikto. From ronstk at ...239... Thu Jul 30 19:55:09 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 30 Jul 2009 19:55:09 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A71AE83.1010006@...626...> References: <4A71AE83.1010006@...626...> Message-ID: <200907301955.10228.ronstk@...239...> On Thursday 30 July 2009, Jean-Yves F. Barbier wrote: > Hi folks, > > I wanna make instant flow & data quantity measures in order to determine what > remote X access solution is the best solution (speed/quality/instant flow...) > to access a Gambas application from w$ (or Linux) through tunnelised XDMCP, > Xephyr, OpenVpn, ssh -X, FreeNX, ... > > To make sure test basis is the same whatever the test, I need an automated piece of > software that: open some windows > move them > close some windows > open a menu > > close it > and finally close everything (kinda big macro) > So it will look like a manual exploitation while beeing automatic and sending > exactly the same moves to each test. (Of course, it *can't be* a film.) > > Under Xfce4 (debian sid). > > Can I easily build this out from Gambas (and if so, how)? > > The goal is to find out good and reliable solutions for LAN and Internet remote access, > as I did not found such tests on the WEB (ie: NX claims it's the best speed/instant > flow... but as a matter of fact nobody's ever validate/unvalidate such an assertion > by a situation test.) > > JY > I did use NX a few years back and vnc on a w98 bax to do some gambas development on a linux box. For the feel NX was more quick as vnc, I did not check it out to numbers. Finaly we have used NX to run the gambas program for a year till the big manager could get some window licentions for vista and we must abort usage of linux. Our machines where not able to run Vista and we did not get money to buy them. Now the whole work process registration isn't used anymore :) Best regards, Ron_1st -- From 12ukwn at ...626... Thu Jul 30 20:21:15 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 30 Jul 2009 20:21:15 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <200907301955.10228.ronstk@...239...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> Message-ID: <4A71E49B.8020403@...626...> Ron_1st a ?crit : .... > > I did use NX a few years back and vnc on a w98 bax to do some gambas development on a linux box. > For the feel NX was more quick as vnc, I did not check it out to numbers. Yeah, I'll test also for that (but its more by feeling, except if speed differences are very obvious though) > Finaly we have used NX to run the gambas program for a year till the big manager > could get some window licentions for vista and we must abort usage of linux. mouarf: I remembers those days (1998: I was in an electronics company that used a Unix Project Management Program & a windowing display in w95; I estimated the week loss of time to 4 minimum because of w$ stations failures & (mostly) w$ printing/gateway server failure; be aware that it leaves more freetime to go to the coffee machine...) > Our machines where not able to run Vista and we did not get money to buy them. > Now the whole work process registration isn't used anymore :) I made some researches upon such cases: most of the time the selected solution was to buy one or more new powerful servers & migrate old PCs as workstations under LTSP (with such a configuration, we where able to use stations as low as C333 with 64MB RAM in production) JY -- Grub first, then ethics. -- Bertolt Brecht From m0e.lnx at ...626... Thu Jul 30 21:47:01 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 30 Jul 2009 13:47:01 -0600 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A71E49B.8020403@...626...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> <4A71E49B.8020403@...626...> Message-ID: <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> Definitely NX I've tested X over ssh, vnc, X11vnc and none of them compare to the speed and quality of NX I do all of my gambas developent over a NX environment. My host box is in SLC, Utah, and I'm sitting @ a desk in Stafford, TX. Response is perfect...No network lag (unless I'm downloading something big to the host box) NX is a bit more of a pain to setup than vnc or X over ssh, but it's well worth the effort I wrote a howto for NX ... mostly personal notes on my endevours trying to set it up and for future references. Take a look if you need to... http://m0e-lnx.blogspot.com From 12ukwn at ...626... Thu Jul 30 22:22:03 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 30 Jul 2009 22:22:03 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> <4A71E49B.8020403@...626...> <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> Message-ID: <4A7200EB.7050104@...626...> M0E Lnx a ?crit : > Definitely NX > > I've tested X over ssh, vnc, X11vnc and none of them compare to the > speed and quality of NX > I do all of my gambas developent over a NX environment. > My host box is in SLC, Utah, and I'm sitting @ a desk in Stafford, TX. so I suppose there's a book of Mormons laying on the box :) > Response is perfect...No network lag (unless I'm downloading something > big to the host box) > > NX is a bit more of a pain to setup than vnc or X over ssh, but it's > well worth the effort yeah I've got problems with its setup, I suspect a collision with regular SSH users' files > I wrote a howto for NX ... mostly personal notes on my endevours > trying to set it up and for future references. > Take a look if you need to... > http://m0e-lnx.blogspot.com Thanks, I go read it at once JY -- "...and scantily clad females, of course. Who cares if it's below zero outside" (By Linus Torvalds) From nick at ...2252... Thu Jul 30 22:29:58 2009 From: nick at ...2252... (Nick Rathke) Date: Thu, 30 Jul 2009 14:29:58 -0600 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A7200EB.7050104@...626...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> <4A71E49B.8020403@...626...> <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> <4A7200EB.7050104@...626...> Message-ID: <4A7202C6.6080907@...2252...> Jean-Yves F. Barbier wrote: > M0E Lnx a ?crit : > >> Definitely NX >> >> I've tested X over ssh, vnc, X11vnc and none of them compare to the >> speed and quality of NX >> I do all of my gambas developent over a NX environment. >> My host box is in SLC, Utah, and I'm sitting @ a desk in Stafford, TX. >> > > so I suppose there's a book of Mormons laying on the box :) > now.. now.. There are others of us in SLC ( I'm not a Mormon, but and married to one! ) -Nick > > >> Response is perfect...No network lag (unless I'm downloading something >> big to the host box) >> >> NX is a bit more of a pain to setup than vnc or X over ssh, but it's >> well worth the effort >> > > yeah I've got problems with its setup, I suspect a collision with regular SSH > users' files > > >> I wrote a howto for NX ... mostly personal notes on my endevours >> trying to set it up and for future references. >> Take a look if you need to... >> http://m0e-lnx.blogspot.com >> > > Thanks, I go read it at once > > JY > -- Nick Rathke Scientific Computing and Imaging Institute Sr. Systems Administrator nick at ...2252... www.sci.utah.edu 801-587-9933 801-557-3832 "I came I saw I made it possible" Royal Bliss - Here They Come From 12ukwn at ...626... Thu Jul 30 22:43:38 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 30 Jul 2009 22:43:38 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A7202C6.6080907@...2252...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> <4A71E49B.8020403@...626...> <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> <4A7200EB.7050104@...626...> <4A7202C6.6080907@...2252...> Message-ID: <4A7205FA.6010504@...626...> Nick Rathke a ?crit : > Jean-Yves F. Barbier wrote: >> M0E Lnx a ?crit : >> >>> Definitely NX >>> >>> I've tested X over ssh, vnc, X11vnc and none of them compare to the >>> speed and quality of NX >>> I do all of my gambas developent over a NX environment. >>> My host box is in SLC, Utah, and I'm sitting @ a desk in Stafford, TX. >>> >> so I suppose there's a book of Mormons laying on the box :) >> > now.. now.. There are others of us in SLC ( I'm not a Mormon, but and > married to one! ) > > -Nick Nobody's perfect ;-) (nice and quiet city; well, as far as there's no gas leak from Dugway and no wind) JY -- "If you don't want your dog to have bad breath, do what I do: Pour a little Lavoris in the toilet." -- Jay Leno From nick at ...2252... Thu Jul 30 22:45:05 2009 From: nick at ...2252... (Nick Rathke) Date: Thu, 30 Jul 2009 14:45:05 -0600 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A7205FA.6010504@...626...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> <4A71E49B.8020403@...626...> <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> <4A7200EB.7050104@...626...> <4A7202C6.6080907@...2252...> <4A7205FA.6010504@...626...> Message-ID: <4A720651.8020000@...2252...> LOL! Jean-Yves F. Barbier wrote: > Nick Rathke a ?crit : > >> Jean-Yves F. Barbier wrote: >> >>> M0E Lnx a ?crit : >>> >>> >>>> Definitely NX >>>> >>>> I've tested X over ssh, vnc, X11vnc and none of them compare to the >>>> speed and quality of NX >>>> I do all of my gambas developent over a NX environment. >>>> My host box is in SLC, Utah, and I'm sitting @ a desk in Stafford, TX. >>>> >>>> >>> so I suppose there's a book of Mormons laying on the box :) >>> >>> >> now.. now.. There are others of us in SLC ( I'm not a Mormon, but and >> married to one! ) >> >> -Nick >> > > Nobody's perfect ;-) > (nice and quiet city; well, as far as there's no gas leak from Dugway and no wind) > > JY > -- Nick Rathke Scientific Computing and Imaging Institute Sr. Systems Administrator nick at ...2252... www.sci.utah.edu 801-587-9933 801-557-3832 "I came I saw I made it possible" Royal Bliss - Here They Come From ulusoyab at ...43... Thu Jul 30 23:02:50 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Thu, 30 Jul 2009 14:02:50 -0700 (PDT) Subject: [Gambas-user] Yan: drawingarea resize In-Reply-To: <6324a42a0907300738s486fbef5v8c1686b09bf2b5d0@...627...> Message-ID: <511645.58412.qm@...2247...> cached => false and ?with ? DrawingArea1_Draw -> redraw is OK. thank you very much. this method solved my problem. --- 30/07/09 Per tarihinde Fabien Bodard ??yle yaz?yor: Kimden: Fabien Bodard Konu: Re: [Gambas-user] Yan: drawingarea resize Kime: "mailing list for gambas users" Tarihi: 30 Temmuz 2009 Per?embe, 17:38 if you can ... prefer a no cached mode... and use the _draw event to redraw the scene... PUBLIC SUB DrawingArea1_Draw() ? Draw.Text(1,1,"text redraw") END You have not to define the draw.begin in this event it is automatically set. SO in? this case you not resize the picture but redraw it... i think it's a better idea and a less resources consumer. then it depend of your code ... as i don't your need 2009/7/30 abdurrahman ulusoy : > yes , cached mode. > > --- 30/07/09 Per tarihinde Fabien Bodard ??yle yaz?yor: > > Kimden: Fabien Bodard > Konu: Re: [Gambas-user] Yan: drawingarea resize > Kime: "mailing list for gambas users" > Tarihi: 30 Temmuz 2009 Per?embe, 16:53 > > resize in what way ?... you are using cached mode ? > > > > 2009/7/30 abdurrahman ulusoy : >> ?KDE 3.5.10 my desktop >> i use? gambas 2.9 ?and ? gb.qt >> >> >> >> --- 30/07/09 Per tarihinde Beno?t Minisini ??yle yaz?yor: >> >> Kimden: Beno?t Minisini >> Konu: Re: [Gambas-user] Yan: ?drawingarea resize >> Kime: "mailing list for gambas users" >> Tarihi: 30 Temmuz 2009 Per?embe, 15:49 >> >>> > anyone has an idea on that? >>> > >>> > >>> > --- 08/07/09 ?ar tarihinde abdurrahman ulusoy ??yle >>> > yaz?yor: >>> > >>> > Kimden: abdurrahman ulusoy >>> > Konu: [Gambas-user] drawingarea resize >>> > Kime: Gambas-user at lists.sourceforge.net >>> > Tarihi: 8 Temmuz 2009 ?ar?amba, 11:04 >>> > >>> > hi >>> > when i? resize to drawingarea gambas console show me this error. >>> >>> Which version of Gambas do you use? Do you use gb.qt, gb.gtk, or if you use >>> gb.gui, with with desktop? >> ? ? ? ? ? ? ? ? . >> ? ? ? ? ? ? ???/|\ >> ? ? ? ? ? ? ? ? | >> which ----------' >> >> >> -- >> Beno?t >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now.? http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ? ? ?___________________________________________________________________ >> Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr >> ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now.? http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ? ? ?___________________________________________________________________ > Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr > ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.? http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From 12ukwn at ...626... Thu Jul 30 23:34:52 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 30 Jul 2009 23:34:52 +0200 Subject: [Gambas-user] making an animated demo In-Reply-To: <4A720651.8020000@...2252...> References: <4A71AE83.1010006@...626...> <200907301955.10228.ronstk@...239...> <4A71E49B.8020403@...626...> <1f1e8c1b0907301247v4d33d266h9f5a1b0a727778cd@...627...> <4A7200EB.7050104@...626...> <4A7202C6.6080907@...2252...> <4A7205FA.6010504@...626...> <4A720651.8020000@...2252...> Message-ID: <4A7211FC.20608@...626...> Nick Rathke a ?crit : > LOL! > > Jean-Yves F. Barbier wrote: ... >> Nobody's perfect ;-) >> (nice and quiet city; well, as far as there's no gas leak from Dugway and no wind) hehe Even if your howto is based upon the non-free version (I use the FreeNX svr) it helped me: the beast is now talking! (I took a glance @ SLC on googleearth: the lake is blurred, may be an SLC's Navy secret base with aircraft-carriers & submarines ready to nuke Idaho?!) Thanks JY -- Let your conscience be your guide. -- Pope Find many useful information about the Pope on: http://encyclopediadramatica.com/Pope From rterry at ...1946... Thu Jul 30 23:50:55 2009 From: rterry at ...1946... (richard terry) Date: Fri, 31 Jul 2009 07:50:55 +1000 Subject: [Gambas-user] IDE pop up help 2196 Message-ID: <200907310750.55948.rterry@...1946...> No longer pops up when swiped but loads the help page into a browser, so one soon gets dozens of individual browser pages, I think the in-ide-way was better. Richard From prog at ...2177... Fri Jul 31 00:31:46 2009 From: prog at ...2177... (craf) Date: Thu, 30 Jul 2009 18:31:46 -0400 Subject: [Gambas-user] Password Message-ID: <1248993106.3614.14.camel@...651...> Hello. I do not understand the use of password every time you open the database manager. Is for SQLite?, Or is it just for MySQL or Postgres? Regards From Karl.Reinl at ...9... Fri Jul 31 21:59:02 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 31 Jul 2009 21:59:02 +0200 Subject: [Gambas-user] FINALLY PROBLEM IN GAMBAS2 Message-ID: <1249070343.6474.27.camel@...40...> Salut, am I the only who have problems with FINALLY in Error-Case with CATCH. If open DB (mysql), in case of an wrong password FINALLY is executed before CATCH. In that SUB PUBLIC SUB btnOK_Click() DIM sDB AS String IF cboHost.text = "" THEN cboHost.text = "localhost" ' is default ENDIF TRY crmConn.Close ME.enabled = FALSE WITH crmConn .Type = "mysql" .Host = cboHost.Text .Login = txtUser.Text .Password = txtPW.Text .Open sDB = GetDataBase(Main.MyConfig["CRMDatabase", "CRM2"]) IF sDB <> "" THEN Main.MyConfig["CRMDatabase"] = sDB ME.Close() ENDIF END WITH FINALLY txtPW.Text = "" 'gb2 ME.enabled = TRUE CATCH Message.Error(Replace(Error.Text, ".", "." & gb.NewLine)) END gambas2.15.2 -- Amicalment Charlie From Karl.Reinl at ...9... Fri Jul 31 22:05:54 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 31 Jul 2009 22:05:54 +0200 Subject: [Gambas-user] no thers not a FINALLY PROBLEM IN GAMBAS2 Message-ID: <1249070754.6474.31.camel@...40...> Salut, no I only a bit confused by the .open, throws an error because after the password the connection is open yet. Sorry Charlie