From spikethecat73 at ...626... Wed May 1 00:52:06 2013 From: spikethecat73 at ...626... (David Robertson) Date: Tue, 30 Apr 2013 23:52:06 +0100 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130430193715.GB507@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> Message-ID: <1367362326.1941.17.camel@...3134...> On Tue, 2013-04-30 at 21:37 +0200, Tobias Boege wrote: > On Tue, 30 Apr 2013, Beno?t Minisini wrote: > > Bbe more concrete of what "levels" you want, and then we can use real > > names instead of numbers. > > > > I'd go with the majority's observation: two levels, namely Beginner and > Advanced. > > > The current example grouping is arbitrary. You may have a different > > grouping for basic/beginner examples than for advanced examples or > > whatever else. > > > > Just make a list of examples, and then we can decide how to group them. > > > > Of course the above binary distinction will be different. To be honest, I > didn't yet look at specific examples to group them newly because my cardinal > problem is to offer both: the arbitrary, topic-based grouping, because we're > all used to it and it's just sane, *together* with the niveau-based one > which should help newcomers to pick the right source to learn from. > > Actually, the topic grouping will *further* help newbies to navigate through > the examples according to their interest. Who would pick a Beginner example > from "Multimedia" without knowing about "Basic"? > > The best thing I could think of - in order to combine both views of the > example tree - is to leave the group display as is and sort all the projects > according to their niveau level, i.e. Beginner or Advanced (maybe with a > visual separator between the groups, if that's possible?), and print that > level somewhere around the example's description. > > I'm still looking for people's opinions (or Bruce's criticism) to get a > representative consensus - maybe it's a flaw in our modern upbringing :-) - > because examples are things that all have to be content with and that I > don't want to change on the fly. (Sorry if this practice annoys anyone.) > > Regards, > Tobi Tobi, you wanted feedback. I am obviously strange, because in the three years I've been using Gambas I've looked at the examples four times and only once did they help. So I read the documentation :) Examples are obviously a good thing to have, but only to give you some ideas on what can (and maybe what cannot) be done with the language. More important is to get the documentation more complete. Most of us probably won't be doing things with Gambas like multi-level class inheritance, and if you try to demonstrate everything by examples it will be impossible to direct the newbie to the right example easily. So the techniques used in the "Advanced" examples should be put in the documentation, in my view. Documentation is the key. Of course, having said that, I'll now have to do something to help with the documentation! Thanks for listening. David From rmorgan62 at ...626... Wed May 1 03:29:58 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 30 Apr 2013 19:29:58 -0600 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <1367362326.1941.17.camel@...3134...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> <1367362326.1941.17.camel@...3134...> Message-ID: I'm of the opinion that examples coupled with documentation provides a better insight into how to use the language. If the examples came with even a cursory description of the implementation it would be a greater help to end users of the language. On Tue, Apr 30, 2013 at 4:52 PM, David Robertson wrote: > On Tue, 2013-04-30 at 21:37 +0200, Tobias Boege wrote: > > On Tue, 30 Apr 2013, Beno?t Minisini wrote: > > > Bbe more concrete of what "levels" you want, and then we can use real > > > names instead of numbers. > > > > > > > I'd go with the majority's observation: two levels, namely Beginner and > > Advanced. > > > > > The current example grouping is arbitrary. You may have a different > > > grouping for basic/beginner examples than for advanced examples or > > > whatever else. > > > > > > Just make a list of examples, and then we can decide how to group them. > > > > > > > Of course the above binary distinction will be different. To be honest, I > > didn't yet look at specific examples to group them newly because my > cardinal > > problem is to offer both: the arbitrary, topic-based grouping, because > we're > > all used to it and it's just sane, *together* with the niveau-based one > > which should help newcomers to pick the right source to learn from. > > > > Actually, the topic grouping will *further* help newbies to navigate > through > > the examples according to their interest. Who would pick a Beginner > example > > from "Multimedia" without knowing about "Basic"? > > > > The best thing I could think of - in order to combine both views of the > > example tree - is to leave the group display as is and sort all the > projects > > according to their niveau level, i.e. Beginner or Advanced (maybe with a > > visual separator between the groups, if that's possible?), and print that > > level somewhere around the example's description. > > > > I'm still looking for people's opinions (or Bruce's criticism) to get a > > representative consensus - maybe it's a flaw in our modern upbringing > :-) - > > because examples are things that all have to be content with and that I > > don't want to change on the fly. (Sorry if this practice annoys anyone.) > > > > Regards, > > Tobi > > Tobi, you wanted feedback. I am obviously strange, because in the three > years I've been using Gambas I've looked at the examples four times and > only once did they help. So I read the documentation :) > > Examples are obviously a good thing to have, but only to give you some > ideas on what can (and maybe what cannot) be done with the language. > More important is to get the documentation more complete. Most of us > probably won't be doing things with Gambas like multi-level class > inheritance, and if you try to demonstrate everything by examples it > will be impossible to direct the newbie to the right example easily. So > the techniques used in the "Advanced" examples should be put in the > documentation, in my view. Documentation is the key. > > Of course, having said that, I'll now have to do something to help with > the documentation! > > Thanks for listening. > > David > > > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From bbruen at ...2308... Wed May 1 08:05:32 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 01 May 2013 15:35:32 +0930 Subject: [Gambas-user] gridview row heights when cell is wrapped In-Reply-To: <517E8D36.20309@...1...> References: <1367206889.29273.104.camel@...2688...> <517E8D36.20309@...1...> Message-ID: <1367388333.5051.2.camel@...2688...> On Mon, 2013-04-29 at 17:09 +0200, Beno?t Minisini wrote: \ > > Mmm, strange... Can you make a little project that reproduces the bug > for me? > [Repost: I don't know whether the reproduction project actually made it?] B -------------- next part -------------- A non-text attachment was scrubbed... Name: demo_gvwheightissue-0.0.1.tar.gz Type: application/x-compressed-tar Size: 6755 bytes Desc: not available URL: From gambas at ...1... Wed May 1 13:10:09 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 01 May 2013 13:10:09 +0200 Subject: [Gambas-user] gridview row heights when cell is wrapped In-Reply-To: <1367388333.5051.2.camel@...2688...> References: <1367206889.29273.104.camel@...2688...> <517E8D36.20309@...1...> <1367388333.5051.2.camel@...2688...> Message-ID: <5180F811.4040805@...1...> Le 01/05/2013 08:05, Bruce a ?crit : > On Mon, 2013-04-29 at 17:09 +0200, Beno?t Minisini wrote: > \ >> >> Mmm, strange... Can you make a little project that reproduces the bug >> for me? >> > [Repost: I don't know whether the reproduction project actually made > it?] > B > The problem comes from the fact that the GridView contents layout is delayed, and so the column has not yet its final width during the Form_Open() event handler, or in the constructor. Note that this is not the case with gb.gtk. I will investigate to understand why there is a difference, but I don't think I will be able to guarantee when the last GridView column will have its final size. Maybe the solution could be that setting -1 to a row height acts like a flag. -- Beno?t Minisini From gambas at ...1... Wed May 1 13:44:23 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 01 May 2013 13:44:23 +0200 Subject: [Gambas-user] gridview row heights when cell is wrapped In-Reply-To: <5180F811.4040805@...1...> References: <1367206889.29273.104.camel@...2688...> <517E8D36.20309@...1...> <1367388333.5051.2.camel@...2688...> <5180F811.4040805@...1...> Message-ID: <51810017.8040705@...1...> Le 01/05/2013 13:10, Beno?t Minisini a ?crit : > Le 01/05/2013 08:05, Bruce a ?crit : >> On Mon, 2013-04-29 at 17:09 +0200, Beno?t Minisini wrote: >> \ >>> >>> Mmm, strange... Can you make a little project that reproduces the bug >>> for me? >>> >> [Repost: I don't know whether the reproduction project actually made >> it?] >> B >> > > The problem comes from the fact that the GridView contents layout is > delayed, and so the column has not yet its final width during the > Form_Open() event handler, or in the constructor. > > Note that this is not the case with gb.gtk. > > I will investigate to understand why there is a difference, but I don't > think I will be able to guarantee when the last GridView column will > have its final size. > > Maybe the solution could be that setting -1 to a row height acts like a > flag. > Well, I don't think I will "fix" that: actually, gb.qt4 delayed the layouting of container as much as possible (i.e. container arrangement is done only if it is visible). This is a big optimization. For example, when running the IDE and opening some project, the arrangement routine is called more than three times less. gb.gtk behaves differently because that optimization has not be implemented in it yet. I suggest you layout your GridView when you know that the arrangement routine has been called, i.e. inside the Form_Arrange() event handler. Regards, -- Beno?t Minisini From gambas at ...1... Wed May 1 14:14:55 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 01 May 2013 14:14:55 +0200 Subject: [Gambas-user] gb.desktop: Trinity desktop (3.5.13) In-Reply-To: <20130430195957.GC507@...2774...> References: <20130430195957.GC507@...2774...> Message-ID: <5181073F.5050107@...1...> Le 30/04/2013 21:59, Tobias Boege a ?crit : > Hi, > > I have a local patch to gb.desktop which makes it detect and use the default > installation of TDE 3.5.13, i.e. > > Desktop.Type = "TDE" > Desktop.OpenTerminal() runs "konsole" > > Is there anything else required to support a DE? Should TDE be recognised as > KDE? Just search for `Case "KDE"` in the entire project, you will see all the places where something desktop-specific must be done. Moreover, you must ensure that the XDG scripts used by gb.desktop correctly handle the Trinity desktop. > Otherwise, I'll commit it up. > > Note particularly that my TDE default "konsole" does *not* understand the > --nofork and --hold parameters which the IDE assumes when running a > project in a terminal emulator (see "Project properties") and "konsole" is > detected as corresponding to the current Desktop.Type). That's the only > problem I found using my everyday use of Gambas. Are you sure? I thought these options existed in KDE3... Anyway, I must find a way, whatever the terminal emulator, to do the following: - Executing a program. - Not closing the window when the program quits. - Not forking, so that the IDE can waits for the ends of the terminal emulator. Regards, -- Beno?t Minisini From gambas at ...1... Wed May 1 14:17:39 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 01 May 2013 14:17:39 +0200 Subject: [Gambas-user] IDE FSelectIcon does not show pictures In-Reply-To: <20130430132639.GD559@...2774...> References: <20130430132639.GD559@...2774...> Message-ID: <518107E3.9040209@...1...> Le 30/04/2013 15:26, Tobias Boege a ?crit : > Hi, > > the FSelectIcon form in the IDE (aka "Project" -> "Properties" -> Click on > the icon to select a project icon) does not show any picture on my system. > > Changing all the commas to semicolons in the Filter string in > FSelectIcon.class:32:Form_Open() solves the problem. Didn't we have sort of > this problem lately? Maybe [0] is related somehow? > > Regards, > Tobi > > [0] http://sourceforge.net/mailarchive/message.php?msg_id=30547601 > Fixed in revision #5630. Regards, -- Beno?t Minisini From taboege at ...626... Wed May 1 14:36:02 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 1 May 2013 14:36:02 +0200 Subject: [Gambas-user] gb.desktop: Trinity desktop (3.5.13) In-Reply-To: <5181073F.5050107@...1...> References: <20130430195957.GC507@...2774...> <5181073F.5050107@...1...> Message-ID: <20130501123602.GA550@...2774...> On Wed, 01 May 2013, Beno?t Minisini wrote: > Le 30/04/2013 21:59, Tobias Boege a ?crit : > > Hi, > > > > I have a local patch to gb.desktop which makes it detect and use the default > > installation of TDE 3.5.13, i.e. > > > > Desktop.Type = "TDE" > > Desktop.OpenTerminal() runs "konsole" > > > > Is there anything else required to support a DE? Should TDE be recognised as > > KDE? > > Just search for `Case "KDE"` in the entire project, you will see all the > places where something desktop-specific must be done. > > Moreover, you must ensure that the XDG scripts used by gb.desktop > correctly handle the Trinity desktop. > Uff. OK, one thing at a time... > > Otherwise, I'll commit it up. > > > > Note particularly that my TDE default "konsole" does *not* understand the > > --nofork and --hold parameters which the IDE assumes when running a > > project in a terminal emulator (see "Project properties") and "konsole" is > > detected as corresponding to the current Desktop.Type). That's the only > > problem I found using my everyday use of Gambas. > > Are you sure? I thought these options existed in KDE3... > I had to remove both options from the Exec array to make konsole not complain. Qt: 3.3.8d KDE: 3.5.13 Konsole: 1.6.6 > Anyway, I must find a way, whatever the terminal emulator, to do the > following: > - Executing a program. -e as the IDE does > - Not closing the window when the program quits. --noclose seems to be the name here. > - Not forking, so that the IDE can waits for the ends of the terminal > emulator. Nothing obvious among the help text, sadly. From gambas at ...1... Wed May 1 14:55:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 01 May 2013 14:55:50 +0200 Subject: [Gambas-user] gb.desktop: Trinity desktop (3.5.13) In-Reply-To: <20130501123602.GA550@...2774...> References: <20130430195957.GC507@...2774...> <5181073F.5050107@...1...> <20130501123602.GA550@...2774...> Message-ID: <518110D6.1080504@...1...> Le 01/05/2013 14:36, Tobias Boege a ?crit : > On Wed, 01 May 2013, Beno?t Minisini wrote: >> Le 30/04/2013 21:59, Tobias Boege a ?crit : >>> Hi, >>> >>> I have a local patch to gb.desktop which makes it detect and use the default >>> installation of TDE 3.5.13, i.e. >>> >>> Desktop.Type = "TDE" >>> Desktop.OpenTerminal() runs "konsole" >>> >>> Is there anything else required to support a DE? Should TDE be recognised as >>> KDE? >> >> Just search for `Case "KDE"` in the entire project, you will see all the >> places where something desktop-specific must be done. >> >> Moreover, you must ensure that the XDG scripts used by gb.desktop >> correctly handle the Trinity desktop. >> > > Uff. OK, one thing at a time... > >>> Otherwise, I'll commit it up. >>> >>> Note particularly that my TDE default "konsole" does *not* understand the >>> --nofork and --hold parameters which the IDE assumes when running a >>> project in a terminal emulator (see "Project properties") and "konsole" is >>> detected as corresponding to the current Desktop.Type). That's the only >>> problem I found using my everyday use of Gambas. >> >> Are you sure? I thought these options existed in KDE3... >> > > I had to remove both options from the Exec array to make konsole not > complain. > > Qt: 3.3.8d > KDE: 3.5.13 > Konsole: 1.6.6 > >> Anyway, I must find a way, whatever the terminal emulator, to do the >> following: >> - Executing a program. > > -e as the IDE does > >> - Not closing the window when the program quits. > > --noclose seems to be the name here. > >> - Not forking, so that the IDE can waits for the ends of the terminal >> emulator. > > Nothing obvious among the help text, sadly. Are you *really* sure? This is an option global to all KDE programs. -- Beno?t Minisini From taboege at ...626... Wed May 1 15:03:49 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 1 May 2013 15:03:49 +0200 Subject: [Gambas-user] gb.desktop: Trinity desktop (3.5.13) In-Reply-To: <518110D6.1080504@...1...> References: <20130430195957.GC507@...2774...> <5181073F.5050107@...1...> <20130501123602.GA550@...2774...> <518110D6.1080504@...1...> Message-ID: <20130501130349.GB550@...2774...> On Wed, 01 May 2013, Beno?t Minisini wrote: > Le 01/05/2013 14:36, Tobias Boege a ?crit : > > On Wed, 01 May 2013, Beno?t Minisini wrote: > >> Le 30/04/2013 21:59, Tobias Boege a ?crit : > >>> Hi, > >>> > >>> I have a local patch to gb.desktop which makes it detect and use the default > >>> installation of TDE 3.5.13, i.e. > >>> > >>> Desktop.Type = "TDE" > >>> Desktop.OpenTerminal() runs "konsole" > >>> > >>> Is there anything else required to support a DE? Should TDE be recognised as > >>> KDE? > >> > >> Just search for `Case "KDE"` in the entire project, you will see all the > >> places where something desktop-specific must be done. > >> > >> Moreover, you must ensure that the XDG scripts used by gb.desktop > >> correctly handle the Trinity desktop. > >> > > > > Uff. OK, one thing at a time... > > > >>> Otherwise, I'll commit it up. > >>> > >>> Note particularly that my TDE default "konsole" does *not* understand the > >>> --nofork and --hold parameters which the IDE assumes when running a > >>> project in a terminal emulator (see "Project properties") and "konsole" is > >>> detected as corresponding to the current Desktop.Type). That's the only > >>> problem I found using my everyday use of Gambas. > >> > >> Are you sure? I thought these options existed in KDE3... > >> > > > > I had to remove both options from the Exec array to make konsole not > > complain. > > > > Qt: 3.3.8d > > KDE: 3.5.13 > > Konsole: 1.6.6 > > > >> Anyway, I must find a way, whatever the terminal emulator, to do the > >> following: > >> - Executing a program. > > > > -e as the IDE does > > > >> - Not closing the window when the program quits. > > > > --noclose seems to be the name here. > > > >> - Not forking, so that the IDE can waits for the ends of the terminal > >> emulator. > > > > Nothing obvious among the help text, sadly. > > Are you *really* sure? This is an option global to all KDE programs. > Seems to be the truth: $ konsole --nofork konsole: Unknown option '--nofork'. konsole: Use --help to get a list of available command line options. At least the Arch Linux binary package does not support this option. From gambas at ...2524... Wed May 1 16:25:12 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 01 May 2013 14:25:12 +0000 Subject: [Gambas-user] Issue 422 in gambas: Menus dissapear if you open them without selecting an item, except last one. In-Reply-To: <0-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 422 by benoit.m... at ...626...: Menus dissapear if you open them without selecting an item, except last one. http://code.google.com/p/gambas/issues/detail?id=422 I cannot reproduce the bug with your project. Can you try with another widget theme? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Wed May 1 17:31:42 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 1 May 2013 17:31:42 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> <20130430202043.GD507@...2774...> Message-ID: <20130501153142.GD550@...2774...> On Tue, 30 Apr 2013, Sebastian Kulesz wrote: > That's why I said this wasn't the most accurate approach. Ratings can > easily be added to the IDE (just as components descriptions), there is no > need to modify any .component file. > > Doing it this way, classes, amount of symbols, amount of forms...there are > a lot of variables that will allow you to calculate the difficulty of any > project, not just examples. > > As you said, GB.nurses will increase the difficulty value more than GB.form > Stock would do, for example. That's why I suggested rating components > rather than examples, there is no need to review every new example that is > added, and doing so imposes less changes to be done to the IDE. > I understand. But there will (hopefully) also easy examples with gb.ncurses, but with more variables in the equation: OK. However, this kind of changes to the IDE is definitely not my domain anymore. Regards, Tobi From linuxos at ...1896... Wed May 1 17:44:01 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 1 May 2013 17:44:01 +0200 Subject: [Gambas-user] Bug using TASK object Message-ID: Hi Benoit, I'm adding a part in my project witch use intensely TASK objects. I start the treatment of many files, analyzed by each TASK object. After sometime, this bug appear: gbx3: xcb_io.c :221 : poll_for_event: L'assertion ? (((long) (event_sequence) - (long) (dpy->request)) <= 0) ? a ?chou?. I saw on internet that this bug is known but I can't not send you a little project to reproduce this bug. So how can I give you informations to help you about this bug ? informations syst?me: [System] OperatingSystem=Linux Kernel=2.6.35.14-106.fc14.i686 Architecture=i686 Memory=3354092 kB DistributionVendor=redhat DistributionRelease=Fedora release 14 (Laughlin) Desktop=Gnome [Gambas 3] Version=3.3.4 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2200.0 Thank's in advance Cordialement, Olivier Cruilles Mail: linuxos at ...1896... From taboege at ...626... Wed May 1 17:45:17 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 1 May 2013 17:45:17 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <1367362326.1941.17.camel@...3134...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> <1367362326.1941.17.camel@...3134...> Message-ID: <20130501154517.GE550@...2774...> On Tue, 30 Apr 2013, David Robertson wrote: > On Tue, 2013-04-30 at 21:37 +0200, Tobias Boege wrote: > > I'm still looking for people's opinions (or Bruce's criticism) to get a > > representative consensus - maybe it's a flaw in our modern upbringing :-) - > > because examples are things that all have to be content with and that I > > don't want to change on the fly. (Sorry if this practice annoys anyone.) > > > > Regards, > > Tobi > > Tobi, you wanted feedback. I am obviously strange, because in the three > years I've been using Gambas I've looked at the examples four times and > only once did they help. So I read the documentation :) > > Examples are obviously a good thing to have, but only to give you some > ideas on what can (and maybe what cannot) be done with the language. > More important is to get the documentation more complete. Most of us > probably won't be doing things with Gambas like multi-level class > inheritance, and if you try to demonstrate everything by examples it > will be impossible to direct the newbie to the right example easily. So > the techniques used in the "Advanced" examples should be put in the > documentation, in my view. Documentation is the key. > > Of course, having said that, I'll now have to do something to help with > the documentation! > > Thanks for listening. We cannot possibly put an "advanced" project (or a template of it) into the documentation because, likely containing many source files, it tends to consume too much space. Personally, I remember playing around with the TreeView example the first two weeks or so after being pointed to Gambas in school. I must have changed each and every line and learned by trial and failure. I didn't even know there was a documentation. OK, that's not the regular case I assume but having projects you can actually alter and play around with makes learning easier, IMO. It's not that examples only show you what can be done with Gambas. The documentation is another building site from my perspective and it's one that a single person cannot possibly get right. Fortunately, you offered your help :-) However, let's focus on something I really can achieve in a relaxed month. Regards, Tobi From taboege at ...626... Wed May 1 17:50:19 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 1 May 2013 17:50:19 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> Message-ID: <20130501155019.GF550@...2774...> On Tue, 30 Apr 2013, Fabien Bodard wrote: > 2013/4/30 Tobias Boege > > > On Mon, 29 Apr 2013, Beno?t Minisini wrote: > > > I have never found the time to write good examples so you have my full > > > blessing. > > > > > > Just don't work directly on the current examples > > > (/trunk/examples/example). Just create a new directory > > > ('/trunk/examples/src' for... example) where you will store all the > > > example projects, with the structure you want. Once done, I will modify > > > the IDE to point at the new structure. > > > > > > > I merely thought of just adding a Niveau=X token to the .project file of > > examples. This would require minimal changes to the actual directory > > structure because this grouping of projects by topic shall persist. I would > > rather change the default *sorting* within these groups to ascend in their > > Niveau values and display the niveau level somewhere around the example's > > description (in bold). > > > > Since the IDE happens to parse each example's .project anyway to display > > other information this imposes no huge extra costs and can be turned off if > > someone wants (an extra RadioButton or two to select the sorting scheme > > will > > be needed, though). > > > > I think just a special file in the example project will be sufficient. > > like > > [Example] > Level=Beginner > KeyWords=RadioButton, TreeView, Printer > Description="This is an example about how to use some control and print the > result." > Description[FR]="Voici un exemple de comment...etc" > Description[ES]="hola... etc" > Description[IT]="salve" > > > Then we can add a special form in the ide to manage the examples with this > file, so examples can be sorted, searchable, > > > Each examples must be Fully documented using internal help. > Benoit, do you have the same objection with a distinct .example file in example project directories, which is kind of Fabien's suggestion, as your veto was with new keys to .project? Regards, Tobi From rmorgan62 at ...626... Wed May 1 18:07:07 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 1 May 2013 10:07:07 -0600 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130501155019.GF550@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <20130501155019.GF550@...2774...> Message-ID: What I was trying to say was that I think having a small document explaining the example implementation within the example would be helpful. I don't think it should be in the Language documentation but in the example's directory. Nothing really involved, and this may be most appropriate for the simpler examples that you would expect someone just starting with Gambas to use. But that is just my two cents worth :-) On Wed, May 1, 2013 at 9:50 AM, Tobias Boege wrote: > On Tue, 30 Apr 2013, Fabien Bodard wrote: > > 2013/4/30 Tobias Boege > > > > > On Mon, 29 Apr 2013, Beno?t Minisini wrote: > > > > I have never found the time to write good examples so you have my > full > > > > blessing. > > > > > > > > Just don't work directly on the current examples > > > > (/trunk/examples/example). Just create a new directory > > > > ('/trunk/examples/src' for... example) where you will store all the > > > > example projects, with the structure you want. Once done, I will > modify > > > > the IDE to point at the new structure. > > > > > > > > > > I merely thought of just adding a Niveau=X token to the .project file > of > > > examples. This would require minimal changes to the actual directory > > > structure because this grouping of projects by topic shall persist. I > would > > > rather change the default *sorting* within these groups to ascend in > their > > > Niveau values and display the niveau level somewhere around the > example's > > > description (in bold). > > > > > > Since the IDE happens to parse each example's .project anyway to > display > > > other information this imposes no huge extra costs and can be turned > off if > > > someone wants (an extra RadioButton or two to select the sorting scheme > > > will > > > be needed, though). > > > > > > I think just a special file in the example project will be sufficient. > > > > like > > > > [Example] > > Level=Beginner > > KeyWords=RadioButton, TreeView, Printer > > Description="This is an example about how to use some control and print > the > > result." > > Description[FR]="Voici un exemple de comment...etc" > > Description[ES]="hola... etc" > > Description[IT]="salve" > > > > > > Then we can add a special form in the ide to manage the examples with > this > > file, so examples can be sorted, searchable, > > > > > > Each examples must be Fully documented using internal help. > > > > Benoit, do you have the same objection with a distinct .example file in > example project directories, which is kind of Fabien's suggestion, as your > veto was with new keys to .project? > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From ron at ...1740... Wed May 1 20:23:20 2013 From: ron at ...1740... (Ron) Date: Wed, 1 May 2013 20:23:20 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130429153404.GA648@...2774...> References: <20130428173019.GD556@...2774...> <1367190129.29273.97.camel@...2688...> <20130429153404.GA648@...2774...> Message-ID: Although discussing about a good structure to put them under is a good thing, watch out not to waste time which better had been used to code the example themselves. I'm missing modern world examples, not simple basic stuff. Like how to interact with your webbrowser via websockets using Gambas. http://sourceforge.net/p/gambasforge/code/HEAD/tree/trunk/ChatServer/.src/ I'm trying to create a gb.websocket component out of it. How to authenticate against Facebook and other services using OAuth2 and Gambas https://code.google.com/p/gambas-online/ How to interface to you Raspberry Pi from Gambas. http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=37659 Talking the MQTT protocol with Gambas, the new Internet of Things protocol to be. Started to work on it here: http://domotiga.nl/projects/domotiga/repository/entry/trunk/DomotiGa3/.src/CMQTT.class Regards, Ron_2nd. 2013/4/29 Tobias Boege > On Mon, 29 Apr 2013, Bruce wrote: > > On Sun, 2013-04-28 at 19:30 +0200, Tobias Boege wrote: > > > Hi folks, > > > > > > {lots} 8< > > > > Hi Tobi, > > > > Here's some "opinion", so take it as such and not criticism. > > > > Too bad, for criticism helps to improve our ideas. Now you leave the work > to > me to make criticism out of your opinions ;-) > > > 1) Who uses the examples and why? > > I would say there are two general categories of people who access the > > examples. New gambas coders looking for answers to syntax and > > algorithmic questions and experienced coders looking for code they have > > forgotten how to use (I can confirm there is definitely at least one of > > the second type!). The examples need to address both these audiences. > > > > Matti already did sort of that observation. Niveau levels may therefore > actually be too much of a classification. Dividing into newbie and > experienced coder may be closer to the immediate needs. > > This could simplify the visual problems of presenting that new view to > some extent. > > > 2) Avoiding a plethora of examples > > Although having an example focus on a single aspect of gambas is > > laudable we do not want to end up with a huge set of examples where one > > has to load example B to understand example A, and then example C, D, E > > etc. Any code or feature of an example should be completely self > > contained. > > > > Absolutely true. We don't have any need for an example for each of the > language functions either. That's for the wiki or so. > > An example depicts one topic. Right. > > > 3) Comments > > A sparsely commented class is worse than no comments at all. By this I > > mean that comments in example code should go beyond the focus of the > > example whenever obscure intent, algorithm or syntax is involved. If > > not, the naive user is left wondering what that piece of the example > > code does and how and the experienced user, who may be reviewing the > > code because they know that an obscure construct is demonstrated there, > > is again frustrated because that exact bit is not commented. > > There is no such things as too many or too detailed comments. Oh, how I > > know this when having to go back into code I wrote a year, month, week > > ago! > > > > I disagree on that point. I can imagine too many or to detailed comments. > My > plans are to comment the "what" and "why" because the "how" should be > obvious from the code. Otherwise it's bad code. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Wed May 1 22:33:14 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 02 May 2013 06:03:14 +0930 Subject: [Gambas-user] gridview row heights when cell is wrapped In-Reply-To: <51810017.8040705@...1...> References: <1367206889.29273.104.camel@...2688...> <517E8D36.20309@...1...> <1367388333.5051.2.camel@...2688...> <5180F811.4040805@...1...> <51810017.8040705@...1...> Message-ID: <1367440394.5051.4.camel@...2688...> On Wed, 2013-05-01 at 13:44 +0200, Beno?t Minisini wrote: > Le 01/05/2013 13:10, Beno?t Minisini a ?crit : > > Le 01/05/2013 08:05, Bruce a ?crit : > >> On Mon, 2013-04-29 at 17:09 +0200, Beno?t Minisini wrote: > >> \ > >>> > >>> Mmm, strange... Can you make a little project that reproduces the bug > >>> for me? > >>> > >> [Repost: I don't know whether the reproduction project actually made > >> it?] > >> B > >> > > > > The problem comes from the fact that the GridView contents layout is > > delayed, and so the column has not yet its final width during the > > Form_Open() event handler, or in the constructor. > > > > Note that this is not the case with gb.gtk. > > > > I will investigate to understand why there is a difference, but I don't > > think I will be able to guarantee when the last GridView column will > > have its final size. > > > > Maybe the solution could be that setting -1 to a row height acts like a > > flag. > > > > Well, I don't think I will "fix" that: actually, gb.qt4 delayed the > layouting of container as much as possible (i.e. container arrangement > is done only if it is visible). This is a big optimization. For example, > when running the IDE and opening some project, the arrangement routine > is called more than three times less. > > gb.gtk behaves differently because that optimization has not be > implemented in it yet. > > I suggest you layout your GridView when you know that the arrangement > routine has been called, i.e. inside the Form_Arrange() event handler. > > Regards, > OK. That now works as expected. Thanks Bruce From gambas at ...2524... Thu May 2 02:08:22 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 02 May 2013 00:08:22 +0000 Subject: [Gambas-user] Issue 423 in gambas: Menu in form attached to workspace not visible In-Reply-To: <0-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version-3.4.1 Version-3.4.0 Comment #1 on issue 423 by benoit.m... at ...626...: Menu in form attached to workspace not visible http://code.google.com/p/gambas/issues/detail?id=423 Sorry, I cannot reproduce the bug. Everything works as expected. Do you really use the 3.4.1 version? What happens if you change the widget theme? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu May 2 02:11:13 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 02 May 2013 00:11:13 +0000 Subject: [Gambas-user] Issue 424 in gambas: whole Gambas IDE shutdown trying to make an SQL Query in the SQL-Frame by using SQLite3 In-Reply-To: <0-6813199134517018827-1988574305175115530-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1988574305175115530-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1988574305175115530-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 424 by benoit.m... at ...626...: whole Gambas IDE shutdown trying to make an SQL Query in the SQL-Frame by using SQLite3 http://code.google.com/p/gambas/issues/detail?id=424 Sorry, I cannot reproduce the bug. If it is a segmentation fault, please run the IDE inside the debugger to tell me where it crashes exactly. $ gdb gbr3 ... (gdb) run /usr/bin/gambas3 Thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu May 2 02:13:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 02 May 2013 00:13:33 +0000 Subject: [Gambas-user] Issue 425 in gambas: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 In-Reply-To: <0-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-3.4.0 Comment #1 on issue 425 by benoit.m... at ...626...: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 http://code.google.com/p/gambas/issues/detail?id=425 This is a compilation problem, and apparently it comes from Perl and autoconf. Please post that on the Gambas mailing-list and see if other Raspberry Pi users have the same problem. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu May 2 02:17:34 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 02 May 2013 00:17:34 +0000 Subject: [Gambas-user] Issue 426 in gambas: Long strings in gambas custom control constants In-Reply-To: <1-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> <0-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #2 on issue 426 by benoit.m... at ...626...: Long strings in gambas custom control constants http://code.google.com/p/gambas/issues/detail?id=426 Indeed... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Thu May 2 02:43:29 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 02 May 2013 10:13:29 +0930 Subject: [Gambas-user] Enhancement Request: _GridView_Column.Font Message-ID: <1367455409.5051.16.camel@...2688...> Beno?t, Would it be possible to add the Font property to the _GridView_Column class like it exposes Alignment and Background etc for all cells in the column? Bruce From ihaywood at ...1979... Thu May 2 04:44:23 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 02 May 2013 12:44:23 +1000 Subject: [Gambas-user] couple of silly questions for Debian packaging Message-ID: <5181D307.90602@...1979...> dear List A couple of small questions to help with Debian packaging: - gb.net.pop3: is this component written purely in Gambas or partially in C? where is it's source code? all I can find is the bytecode-compiled file /comp/src/gb.net.pop3/gb.net.pop3.gambas - debian packager complains about executables gbs3 and gbw3 don't have manpages (it's a Debian rule all executables have a manpage). I'm happy to write them if someone can point me int the direction of some documentation about what they do (presumably for scripts and webpages I know, but how they work, command-line options, etc) Ian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: OpenPGP digital signature URL: From sebikul at ...626... Thu May 2 04:49:39 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Wed, 1 May 2013 23:49:39 -0300 Subject: [Gambas-user] couple of silly questions for Debian packaging In-Reply-To: <5181D307.90602@...1979...> References: <5181D307.90602@...1979...> Message-ID: On Wed, May 1, 2013 at 11:44 PM, Ian Haywood wrote: > dear List > > A couple of small questions to help with Debian packaging: > Glad to hear! ;) > > - gb.net.pop3: is this component written purely in Gambas or partially > in C? where is it's source code? all I can find is the bytecode-compiled > file /comp/src/gb.net.pop3/gb.net.pop3.gambas > That component is written purely in Gambas > > - debian packager complains about executables gbs3 and gbw3 don't have > manpages (it's a Debian rule all executables have a manpage). I'm happy > to write them if someone can point me int the direction of some > documentation about what they do (presumably for scripts and webpages I > know, but how they work, command-line options, etc) > > You can find the manpages here [0] at the bottom. They are not available in the svn repository though. They are Kendek's work, i just updated them a bit. > Ian > > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hope it helps! [0] http://bazaar.launchpad.net/~sebikul/+junk/gambas3-daily-quantal/files/head:/debian/ From gambas at ...2524... Thu May 2 06:40:44 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 02 May 2013 04:40:44 +0000 Subject: [Gambas-user] Issue 425 in gambas: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 In-Reply-To: <1-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> <0-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> Comment #2 on issue 425 by dummyjmi... at ...626...: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 http://code.google.com/p/gambas/issues/detail?id=425 hello, Since I did not make progress, I did install a new raspbian OS and did the recompile over. This time without errors of problems. SO indeed it should be something with teh perl version or modules of the 'bad' raspbian image (was one from august 2012). So thanks for the feedback, but I can't replicate/simulate this error. You can close this request. Thanks again, jeroen -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ihaywood at ...1979... Thu May 2 09:51:15 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 2 May 2013 17:51:15 +1000 Subject: [Gambas-user] couple of silly questions for Debian packaging In-Reply-To: References: <5181D307.90602@...1979...> Message-ID: On Thu, May 2, 2013 at 12:49 PM, Sebastian Kulesz wrote: \ >> - gb.net.pop3: is this component written purely in Gambas or partially >> in C? where is it's source code? all I can find is the bytecode-compiled >> file /comp/src/gb.net.pop3/gb.net.pop3.gambas > That component is written purely in Gambas thanks for that: do you know where the source-code is? > You can find the manpages here [0] at the bottom. They are not available in > the svn repository though. They are Kendek's work, i just updated them a > bit. thanks again. I should take this opportunity to point out what I'm doing overall is making minor tweaks to Kendek's Ubuntu work. From gambas.fr at ...626... Thu May 2 10:26:08 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 2 May 2013 10:26:08 +0200 Subject: [Gambas-user] couple of silly questions for Debian packaging In-Reply-To: References: <5181D307.90602@...1979...> Message-ID: Le 2 mai 2013 09:52, "Ian Haywood" a ?crit : > > On Thu, May 2, 2013 at 12:49 PM, Sebastian Kulesz wrote: > \ > >> - gb.net.pop3: is this component written purely in Gambas or partially > >> in C? where is it's source code? all I can find is the bytecode-compiled > >> file /comp/src/gb.net.pop3/gb.net.pop3.gambas > > > That component is written purely in Gambas > thanks for that: do you know where the source-code is? Open this project with the gambas ide trunk/comp/src/gb.net.pop3 > > > > You can find the manpages here [0] at the bottom. They are not available in > > the svn repository though. They are Kendek's work, i just updated them a > > bit. > thanks again. I should take this opportunity to point out what I'm > doing overall is making > minor tweaks to Kendek's Ubuntu work. > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mklaine at ...626... Thu May 2 11:01:05 2013 From: mklaine at ...626... (mikael klaine) Date: Thu, 2 May 2013 11:01:05 +0200 Subject: [Gambas-user] Gambas3 SVN compilation Problem ARMEL In-Reply-To: <51800113.9000100@...1...> References: <51800113.9000100@...1...> Message-ID: yes i can send me an email directly and y give you the access 2013/4/30 Beno?t Minisini > Le 30/04/2013 18:51, mikael klaine a ?crit : > > one other think the segfault of gbc3 cause this on my terminal but not in > > the log. > > *** glibc detected *** /usr/bin/gbc3: free(): invalid pointer: 0x0001ffec > > *** > > > > Is it possible for you to grant me an ssh access to the ARMEL computer > so that I can debug the compiler directly on it? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihaywood at ...1979... Fri May 3 02:28:34 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 03 May 2013 10:28:34 +1000 Subject: [Gambas-user] Gambas 3.4.1 Debian packaging In-Reply-To: <5181D307.90602@...1979...> References: <5181D307.90602@...1979...> Message-ID: <518304B2.7070307@...1979...> Ok, I have finally got Gambas compiling and building all packages on Debian wheezy They are available on a private repository, add the following to your /etc/apt/sources.list deb ftp://ozdocit.org/pub/easygp/ easygp main deb-src ftp://ozdocit.org/pub/easygp/ easygp main "easygp" is the project I am working on with Richard Terry, it is a massive project and a reasonably good stress-test, however it doesn't use every Gambas package, please report any problems. Ian Haywood -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: OpenPGP digital signature URL: From gambas at ...2524... Fri May 3 15:26:16 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 03 May 2013 13:26:16 +0000 Subject: [Gambas-user] Issue 422 in gambas: Menus dissapear if you open them without selecting an item, except last one. In-Reply-To: <1-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> <0-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Comment #2 on issue 422 by r... at ...1740...: Menus dissapear if you open them without selecting an item, except last one. http://code.google.com/p/gambas/issues/detail?id=422 I cannot reproduce it either anymore, maybe it was a Ubuntu bug which is fixed in the meantime. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri May 3 15:55:22 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 03 May 2013 13:55:22 +0000 Subject: [Gambas-user] Issue 422 in gambas: Menus dissapear if you open them without selecting an item, except last one. In-Reply-To: <2-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> <0-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #3 on issue 422 by benoit.m... at ...626...: Menus dissapear if you open them without selecting an item, except last one. http://code.google.com/p/gambas/issues/detail?id=422 Closing the issue so... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Fri May 3 19:18:51 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 04 May 2013 02:48:51 +0930 Subject: [Gambas-user] Another "good" idea but no real ideas In-Reply-To: <20130430073833.GA559@...2774...> References: <1367298173.29273.117.camel@...2688...> <20130430073833.GA559@...2774...> Message-ID: <1367601531.5051.17.camel@...2688...> On Tue, 2013-04-30 at 09:41 +0200, Tobias Boege wrote: > On Tue, 30 Apr 2013, Bruce wrote: > > I saw something the other day, it was a multi-windowed terminal in which > > each window was running a separate shell. I have attached a mock up of > > what I was seeing. > > At the time I didn't think a great deal about it, but today it turns out > > that something like that would be a great solution to a local problem, > > i.e. "tail"-ing several log files in a program that runs continuously or > > for some time. I have the technology to manage the several logging > > streams from the program but setting up multiple terminals manually to > > follow the output (to Temp() files is painful. > > > > So > > a) would it be possible to create something like this in gambas, i.e. a > > form with multiple "terminal" windows in it, each running it's own shell > > b) how the heck would one approach it? > > > > regards > > Bruce > > (in "blind-Bambi" mode) > > I never really used that control but this looks like you could use an > Embedder[0] to make another application work for you from inside your > window. This would be a totally lazy approach :-) > > If you want your own terminal window to not be so dependent on the presence > of other software, you can write a form and use Workspace[1]. A few days ago > I saw that we also can do > > hForm = New FMyForm(dwgDrawingArea) > > and it works like a charm. Why implement custom controls when we can easily > compose windows and instantiate them to a DrawingArea? :-) > > Anyways, with these two ways, it shouldn't be that difficult to get a view > (and function) very similar to the picture. > > Regards, > Tobi > > [0] http://gambasdoc.org/help/comp/gb.qt4/embedder?v3 > [1] http://gambasdoc.org/help/comp/gb.form.mdi/workspace?v3 > > ------------------------------------------------------------------------------ Well that was simpler than it looked :-) Thanks Tobi From gambas at ...1... Fri May 3 21:49:41 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 03 May 2013 21:49:41 +0200 Subject: [Gambas-user] Bug using TASK object In-Reply-To: References: Message-ID: <518414D5.7010009@...1...> Le 01/05/2013 17:44, Olivier Cruilles a ?crit : > Hi Benoit, > > I'm adding a part in my project witch use intensely TASK objects. > > I start the treatment of many files, analyzed by each TASK object. > After sometime, this bug appear: > > gbx3: xcb_io.c :221 : poll_for_event: L'assertion ? (((long) (event_sequence) - (long) (dpy->request)) <= 0) ? a ?chou?. > > I saw on internet that this bug is known but I can't not send you a little project to reproduce this bug. > > So how can I give you informations to help you about this bug ? > No idea. This is a message for the libX11-xcb.so library, not Gambas. -- Beno?t Minisini From gambas at ...2524... Sat May 4 00:45:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 03 May 2013 22:45:33 +0000 Subject: [Gambas-user] Issue 420 in gambas: Error not raised in nested for..next loop In-Reply-To: <0-6813199134517018827-9307775379049718096-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9307775379049718096-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9307775379049718096-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version-TRUNK Version-3.4.0 Comment #1 on issue 420 by benoit.m... at ...626...: Error not raised in nested for..next loop http://code.google.com/p/gambas/issues/detail?id=420 Fixed in revision #5637. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat May 4 01:02:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 03 May 2013 23:02:57 +0000 Subject: [Gambas-user] Issue 428 in gambas: Combobox doesn't change foreground colour using gb.qt4 Message-ID: <0-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 428 by jguar... at ...626...: Combobox doesn't change foreground colour using gb.qt4 http://code.google.com/p/gambas/issues/detail?id=428 1) Describe the problem. Combobox seems to not accept foreground colour using gb.qt4. Colour doesn't change despite I'm declaring the foreground property. Using gb.gtk seems to work as expected. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5637 Operating system: Linux Distribution: Mint Maya Architecture: x86_64 GUI component: QT4 Desktop used: Cinnamon -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ea7dfh at ...2382... Sat May 4 01:31:17 2013 From: ea7dfh at ...2382... (Jesus) Date: Sat, 04 May 2013 01:31:17 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses Message-ID: <518448C5.6040905@...2382...> Recently a friend of mine reported an issue that I'm not sure how to explain correctly. He is making a terminal program that needs to print stuff on a real printer, so it needs the gb.qt4 component to get access to the Printer object. But also he needs to use gb.ncurses to do some neat presentation in a terminal in a kind of interactive mode. Problem arises when the *Window* class in gb.ncurses collides with the same class name in gb.qt4 (needed to gain access to printer functions) It seems that window class in gb.qt4 surpasses the one in gb.ncurses. So, is it a known problem? Does anyone realized this "incompatibility" when using both components at the same time? Is there a way to use the printer without using gb.qt4? Beno?t, Tobi... knocking at your doors ;-) Best regards -- Jesus Guardon From gambas at ...1... Sat May 4 02:36:37 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 04 May 2013 02:36:37 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <518448C5.6040905@...2382...> References: <518448C5.6040905@...2382...> Message-ID: <51845815.3050409@...1...> Le 04/05/2013 01:31, Jesus a ?crit : > Recently a friend of mine reported an issue that I'm not sure how to > explain correctly. > > He is making a terminal program that needs to print stuff on a real > printer, so it needs the gb.qt4 component to get access to the Printer > object. But also he needs to use gb.ncurses to do some neat presentation > in a terminal in a kind of interactive mode. Problem arises when the > *Window* class in gb.ncurses collides with the same class name in gb.qt4 > (needed to gain access to printer functions) It seems that window class > in gb.qt4 surpasses the one in gb.ncurses. > > So, is it a known problem? Does anyone realized this "incompatibility" > when using both components at the same time? > Is there a way to use the printer without using gb.qt4? > > Beno?t, Tobi... knocking at your doors ;-) > > Best regards > No solution at the moment. He must make two different programs. Regards, -- Beno?t Minisini From gambas at ...2524... Sat May 4 04:55:51 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 02:55:51 +0000 Subject: [Gambas-user] Issue 426 in gambas: Long strings in gambas custom control constants In-Reply-To: <2-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> <0-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 426 by benoit.m... at ...626...: Long strings in gambas custom control constants http://code.google.com/p/gambas/issues/detail?id=426 Fixed in revision #5638. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat May 4 09:10:29 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 07:10:29 +0000 Subject: [Gambas-user] Issue 429 in gambas: #5638 Unable to compile gb.dektop Message-ID: <0-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Other Priority-Medium OpSys-Linux Dist-Ubuntu Arch-X86-64 Desktop-Other GUI-GTK New issue 429 by sot... at ...626...: #5638 Unable to compile gb.dektop http://code.google.com/p/gambas/issues/detail?id=429 1) Describe the problem. Install of revision 5638 fails due error in compiling gb.desktop component previuos error was 'Component not found: gb.form' 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5638 (if you use a development version) Operating system: Linux Distribution: Ubuntu 12.04.01 Architecture: x86_64 GUI component: GTK+ Desktop used: Unity logs attached Attachments: rev5638.tar.gz 22.0 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat May 4 09:42:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 07:42:52 +0000 Subject: [Gambas-user] Issue 429 in gambas: #5638 Unable to compile gb.dektop In-Reply-To: <0-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Comment #1 on issue 429 by sot... at ...626...: #5638 Unable to compile gb.dektop http://code.google.com/p/gambas/issues/detail?id=429 SysInfo from rev #5621 [System] OperatingSystem=Linux Kernel=3.2.0-41-generic Architecture=x86_64 Distribution=Ubuntu 12.04.2 LTS Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=3262M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From linuxos at ...1896... Sat May 4 12:33:09 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 4 May 2013 12:33:09 +0200 Subject: [Gambas-user] Bug using TASK object In-Reply-To: References: Message-ID: Hi Benoit, I found that on internet. Does it help you or talk to you ? http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html Cordialement, Olivier Cruilles Mail: linuxos at ...1896... Le 1 mai 2013 ? 17:44, Olivier Cruilles a ?crit : > gbx3: xcb_io.c :221 : poll_for_event: L'assertion From gambas at ...2524... Sat May 4 16:17:55 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 14:17:55 +0000 Subject: [Gambas-user] Issue 429 in gambas: #5638 Unable to compile gb.dektop In-Reply-To: <1-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> <0-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #2 on issue 429 by benoit.m... at ...626...: #5638 Unable to compile gb.dektop http://code.google.com/p/gambas/issues/detail?id=429 Is it better with rev #5639? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat May 4 16:19:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 04 May 2013 16:19:27 +0200 Subject: [Gambas-user] Bug using TASK object In-Reply-To: References: Message-ID: <518518EF.7020108@...1...> Le 04/05/2013 12:33, Olivier Cruilles a ?crit : > Hi Benoit, > > I found that on internet. Does it help you or talk to you ? > > http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html > > Cordialement, > > Olivier Cruilles > Mail: linuxos at ...1896... > Mmm... and so? If you want to use GUI things inside tasks, you can't, that does not work. -- Beno?t Minisini From gambas at ...2524... Sat May 4 16:41:17 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 14:41:17 +0000 Subject: [Gambas-user] Issue 429 in gambas: #5638 Unable to compile gb.dektop In-Reply-To: <2-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> <0-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Comment #3 on issue 429 by sot... at ...626...: #5638 Unable to compile gb.dektop http://code.google.com/p/gambas/issues/detail?id=429 Yes it is. It works now. Thanks!!! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat May 4 21:49:42 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 19:49:42 +0000 Subject: [Gambas-user] Issue 423 in gambas: Menu in form attached to workspace not visible In-Reply-To: <1-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> <0-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Comment #2 on issue 423 by isaf... at ...626...: Menu in form attached to workspace not visible http://code.google.com/p/gambas/issues/detail?id=423 The problem appears on using unity environment in ubuntu. This problem doesnot arise on using gnome environment in unity. May be some specific problem with unity. I am using 3.4.1 (using ppa) Attached is image how it appears when running in unity. Attachments: unity.jpg 28.1 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat May 4 22:24:48 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 04 May 2013 20:24:48 +0000 Subject: [Gambas-user] Issue 423 in gambas: Menu in form attached to workspace not visible In-Reply-To: <2-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> <0-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Comment #3 on issue 423 by benoit.m... at ...626...: Menu in form attached to workspace not visible http://code.google.com/p/gambas/issues/detail?id=423 I think the fault comes from the unity support in GTK+, that removes the menu from the application and tells unity what to display instead in the top desktop bar. Alas, I don't think they thought about windows inside windows having menus, like what you want to achieve with your example... They certainly only thought about one window having one toplevel menu bar, like 99% of applications. Eventually you can try to set the 'APPMENU_DISPLAY_BOTH' environment variable to 1 at the very beginning of your application. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Sun May 5 09:00:10 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 5 May 2013 09:00:10 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <518448C5.6040905@...2382...> References: <518448C5.6040905@...2382...> Message-ID: <20130505070010.GA563@...2774...> On Sat, 04 May 2013, Jesus wrote: > Recently a friend of mine reported an issue that I'm not sure how to > explain correctly. > > He is making a terminal program that needs to print stuff on a real > printer, so it needs the gb.qt4 component to get access to the Printer > object. But also he needs to use gb.ncurses to do some neat presentation > in a terminal in a kind of interactive mode. Problem arises when the > *Window* class in gb.ncurses collides with the same class name in gb.qt4 > (needed to gain access to printer functions) It seems that window class > in gb.qt4 surpasses the one in gb.ncurses. > > So, is it a known problem? Does anyone realized this "incompatibility" > when using both components at the same time? > Is there a way to use the printer without using gb.qt4? > I never thought of using a graphical component together with gb.ncurses. I never intended that :-) The thing is, the only way to make gb.ncurses' TUI-graphical classes compatible with X-graphical classes is to insert dummy methods and properties (e.g. Opacity, Picture) that do nothing and at the same time to remove ncurses-specific functions (e.g. Print, Cls) which makes it twice ungood. Removing such methods calls for something like a Draw class as a replacement interface which doesn't make much sense as only text can be displayed (there would be more dummy functions for the Draw class). What do you mean actually by "surpasses"? Is there an "incorrectly overridden" error or does the gb.qt4 Window just override[0] the gb.ncurses one? If the latter is the case, you can try to disable gb.ncurses and Component.Load() it manually at startup? I promise that future control classes and a future Window class (using the CDK) are more built like their gb.qt4 models but for now think of gb.ncurses as a component that conflicts with other graphical components. I don't think compatibility can ever be achieved, though. Anyway, good to know that someone can do "neat presentation"s with gb.ncurses :-) Regards, Tobi [0] Here is what happens: http://gambasdoc.org/help/doc/object-model?v3 From wally at ...2037... Sun May 5 09:37:23 2013 From: wally at ...2037... (wally) Date: Sun, 05 May 2013 09:37:23 +0200 Subject: [Gambas-user] GSLSpline Painted error Message-ID: <80457851.OiXHxnVT4I@...3040...> Hi, in SVN "trunk/examples/examples/Drawing/GSLSpline/.src/FMain.form" line 15 Painted = True <-- this line should be removed thx wally From ea7dfh at ...2382... Sun May 5 12:19:59 2013 From: ea7dfh at ...2382... (Jesus) Date: Sun, 05 May 2013 12:19:59 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <20130505070010.GA563@...2774...> References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> Message-ID: <5186324F.90301@...2382...> Hi Tobi and all El 05/05/13 09:00, Tobias Boege escribi?: > On Sat, 04 May 2013, Jesus wrote: >> Recently a friend of mine reported an issue that I'm not sure how to >> explain correctly. >> >> He is making a terminal program that needs to print stuff on a real >> printer, so it needs the gb.qt4 component to get access to the Printer >> object. But also he needs to use gb.ncurses to do some neat presentation >> in a terminal in a kind of interactive mode. Problem arises when the >> *Window* class in gb.ncurses collides with the same class name in gb.qt4 >> (needed to gain access to printer functions) It seems that window class >> in gb.qt4 surpasses the one in gb.ncurses. >> >> So, is it a known problem? Does anyone realized this "incompatibility" >> when using both components at the same time? >> Is there a way to use the printer without using gb.qt4? >> > > I never thought of using a graphical component together with gb.ncurses. I > never intended that :-) Yes. The point is, how it is supposed to do printing from within gb.ncurses without using the Printer object (found only inside graphical components)? We then should need to do this through CUPS or something, doesn't it? The fact is my friend is trying to print a kind of report based in his own classes that uses Draw and Paint to actually draw a report in a drawing area when using the full program version, and the file representing the report itself is interpreted and printed from an stripped out version of the program that only works in console mode (interactive curses interface). The logic of printing is the same for both programs, so qt4 is needed to do all the stuff. Sources here [0]. > [...] > > What do you mean actually by "surpasses"? Is there an "incorrectly > overridden" error or does the gb.qt4 Window just override[0] the gb.ncurses > one? If the latter is the case, you can try to disable gb.ncurses and > Component.Load() it manually at startup? Right, the latter is the case. It makes them incompatible with each other. > > I promise that future control classes and a future Window class (using the > CDK) are more built like their gb.qt4 models but for now think of gb.ncurses > as a component that conflicts with other graphical components. I don't think > compatibility can ever be achieved, though. I think so, as well... but gb.ncurses programs would need to have a way to print things. I remember old clipper database programs they were able to print some kind of text based reports. It would be great if printing could be based in actual drawing routines as qt4 does. But I understand it probably never ever could be achieved. > > Anyway, good to know that someone can do "neat presentation"s with > gb.ncurses :-) > > Regards, > Tobi Sorry, but finally he wasn't able to do something usable because of the above reasons. Honestly, I've never tried gb.ncurses. But I will do in the future, when this is well documented ;-) My friend was complaining about complexity and lack of documentation, but hey, we are very grateful of your work. Really. [0] http://forge.gambas-es.org/projects/printreport/repository and the parent project here: http://forge.gambas-es.org/projects/reportdesigner/repository Best regards -- Jesus Guardon From gambas at ...2524... Sun May 5 12:28:10 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 May 2013 10:28:10 +0000 Subject: [Gambas-user] Issue 423 in gambas: Menu in form attached to workspace not visible In-Reply-To: <3-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> <0-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Comment #4 on issue 423 by isaf... at ...626...: Menu in form attached to workspace not visible http://code.google.com/p/gambas/issues/detail?id=423 Thanks for your tip. After adding Application.Env["APPMENU_DISPLAY_BOTH"] = "1" at start up I am able to get menu inside a workgroup. Although not beautiful as usual my problem is solved. Thanks -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Sun May 5 13:18:11 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 5 May 2013 13:18:11 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <5186324F.90301@...2382...> References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> <5186324F.90301@...2382...> Message-ID: <20130505111811.GD563@...2774...> On Sun, 05 May 2013, Jesus wrote: > Hi Tobi and all > > > El 05/05/13 09:00, Tobias Boege escribi?: > > On Sat, 04 May 2013, Jesus wrote: > >> Recently a friend of mine reported an issue that I'm not sure how to > >> explain correctly. > >> > >> He is making a terminal program that needs to print stuff on a real > >> printer, so it needs the gb.qt4 component to get access to the Printer > >> object. But also he needs to use gb.ncurses to do some neat presentation > >> in a terminal in a kind of interactive mode. Problem arises when the > >> *Window* class in gb.ncurses collides with the same class name in gb.qt4 > >> (needed to gain access to printer functions) It seems that window class > >> in gb.qt4 surpasses the one in gb.ncurses. > >> > >> So, is it a known problem? Does anyone realized this "incompatibility" > >> when using both components at the same time? > >> Is there a way to use the printer without using gb.qt4? > >> > > > > > I never thought of using a graphical component together with gb.ncurses. I > > never intended that :-) > > Yes. The point is, how it is supposed to do printing from within > gb.ncurses without using the Printer object (found only inside graphical > components)? > > We then should need to do this through CUPS or something, doesn't it? > > The fact is my friend is trying to print a kind of report based in his > own classes that uses Draw and Paint to actually draw a report in a > drawing area when using the full program version, and the file > representing the report itself is interpreted and printed from an > stripped out version of the program that only works in console mode > (interactive curses interface). The logic of printing is the same for > both programs, so qt4 is needed to do all the stuff. Sources here [0]. > I don't think printing is something gb.ncurses should implement. In fact, gb.ncurses has nothing to do with printing (on a printer) as ncurses does not provide any function for it. It's just two (very) different things. gb.qt4 just supports printers because QT, for some reason, provides an interface for them. If we support CUPS, then it should be in a gb.cups component so that printing is not bound - again, for whatever reason (OK, there's printer dialogs) - to a graphical toolkit. However, I'm not the person to do this component and it should IMO not be located inside gb.ncurses. Looking at the sources you pointed to, he should rather follow Benoit's suggestion and make two different programs: one to provide the interface and a hidden one called internally to print by means of QT. Not too pretty but the easiest solution. > > > > Anyway, good to know that someone can do "neat presentation"s with > > gb.ncurses :-) > > > > Regards, > > Tobi > > Sorry, but finally he wasn't able to do something usable because of the > above reasons. > > Honestly, I've never tried gb.ncurses. But I will do in the future, when > this is well documented ;-) My friend was complaining about complexity > and lack of documentation, but hey, we are very grateful of your work. > Really. > Yeah, I still hope for a kind of interface to the wiki that I can turn into a scriptable program to eventually document easily (and happily). The documentation should be deprecated in most parts since I wrote it... However, I'm the living gb.ncurses documentation. You can contact me or the entire list if you have questions. I'll do some examples, too. Regards, Tobi From gambas at ...2524... Sun May 5 13:25:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 May 2013 11:25:06 +0000 Subject: [Gambas-user] Issue 430 in gambas: Typo in online wiki Message-ID: <0-6813199134517018827-5111081853036382733-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Documentation Priority-Low OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 430 by makk... at ...3135...: Typo in online wiki http://code.google.com/p/gambas/issues/detail?id=430 I found a typo at http://gambasdoc.org/help/cat/stringop?v3 Same typo is in v2. Typo is in this row: String == String Returns if two strings are equal. The comparison is case unsensitive. Case unsensitive looks 'suspicious'. Perhaps case unsensitive should be changed to case insensitive. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sun May 5 13:27:42 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 5 May 2013 13:27:42 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <20130505070010.GA563@...2774...> References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> Message-ID: A temporary solution will be to make a secondary project that manage the printing. Le 5 mai 2013 09:03, "Tobias Boege" a ?crit : > On Sat, 04 May 2013, Jesus wrote: > > Recently a friend of mine reported an issue that I'm not sure how to > > explain correctly. > > > > He is making a terminal program that needs to print stuff on a real > > printer, so it needs the gb.qt4 component to get access to the Printer > > object. But also he needs to use gb.ncurses to do some neat presentation > > in a terminal in a kind of interactive mode. Problem arises when the > > *Window* class in gb.ncurses collides with the same class name in gb.qt4 > > (needed to gain access to printer functions) It seems that window class > > in gb.qt4 surpasses the one in gb.ncurses. > > > > So, is it a known problem? Does anyone realized this "incompatibility" > > when using both components at the same time? > > Is there a way to use the printer without using gb.qt4? > > > > I never thought of using a graphical component together with gb.ncurses. I > never intended that :-) The thing is, the only way to make gb.ncurses' > TUI-graphical classes compatible with X-graphical classes is to insert > dummy > methods and properties (e.g. Opacity, Picture) that do nothing and at the > same time to remove ncurses-specific functions (e.g. Print, Cls) which > makes > it twice ungood. Removing such methods calls for something like a Draw > class > as a replacement interface which doesn't make much sense as only text can > be > displayed (there would be more dummy functions for the Draw class). > > What do you mean actually by "surpasses"? Is there an "incorrectly > overridden" error or does the gb.qt4 Window just override[0] the gb.ncurses > one? If the latter is the case, you can try to disable gb.ncurses and > Component.Load() it manually at startup? > > I promise that future control classes and a future Window class (using the > CDK) are more built like their gb.qt4 models but for now think of > gb.ncurses > as a component that conflicts with other graphical components. I don't > think > compatibility can ever be achieved, though. > > Anyway, good to know that someone can do "neat presentation"s with > gb.ncurses :-) > > Regards, > Tobi > > [0] Here is what happens: > http://gambasdoc.org/help/doc/object-model?v3 > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun May 5 13:56:24 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 05 May 2013 13:56:24 +0200 Subject: [Gambas-user] GSLSpline Painted error In-Reply-To: <80457851.OiXHxnVT4I@...3040...> References: <80457851.OiXHxnVT4I@...3040...> Message-ID: <518648E8.9010902@...1...> Le 05/05/2013 09:37, wally a ?crit : > Hi, > > in SVN "trunk/examples/examples/Drawing/GSLSpline/.src/FMain.form" > > line 15 Painted = True <-- this line should be removed > > thx wally > > Fixed in revision #5644. -- Beno?t Minisini From gambas at ...2524... Sun May 5 14:00:49 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 May 2013 12:00:49 +0000 Subject: [Gambas-user] Issue 430 in gambas: Typo in online wiki In-Reply-To: <0-6813199134517018827-5111081853036382733-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5111081853036382733-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5111081853036382733-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #1 on issue 430 by benoit.m... at ...626...: Typo in online wiki http://code.google.com/p/gambas/issues/detail?id=430 Fixed. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sun May 5 14:09:09 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 05 May 2013 14:09:09 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <5186324F.90301@...2382...> References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> <5186324F.90301@...2382...> Message-ID: <51864BE5.3070407@...1...> Le 05/05/2013 12:19, Jesus a ?crit : > Hi Tobi and all > > > El 05/05/13 09:00, Tobias Boege escribi?: >> On Sat, 04 May 2013, Jesus wrote: >>> Recently a friend of mine reported an issue that I'm not sure how to >>> explain correctly. >>> >>> He is making a terminal program that needs to print stuff on a real >>> printer, so it needs the gb.qt4 component to get access to the Printer >>> object. But also he needs to use gb.ncurses to do some neat presentation >>> in a terminal in a kind of interactive mode. Problem arises when the >>> *Window* class in gb.ncurses collides with the same class name in gb.qt4 >>> (needed to gain access to printer functions) It seems that window class >>> in gb.qt4 surpasses the one in gb.ncurses. >>> >>> So, is it a known problem? Does anyone realized this "incompatibility" >>> when using both components at the same time? >>> Is there a way to use the printer without using gb.qt4? >>> > >> >> I never thought of using a graphical component together with gb.ncurses. I >> never intended that :-) > > Yes. The point is, how it is supposed to do printing from within > gb.ncurses without using the Printer object (found only inside graphical > components)? > > We then should need to do this through CUPS or something, doesn't it? > > The fact is my friend is trying to print a kind of report based in his > own classes that uses Draw and Paint to actually draw a report in a > drawing area when using the full program version, and the file > representing the report itself is interpreted and printed from an > stripped out version of the program that only works in console mode > (interactive curses interface). The logic of printing is the same for > both programs, so qt4 is needed to do all the stuff. Sources here [0]. > > >> [...] >> >> What do you mean actually by "surpasses"? Is there an "incorrectly >> overridden" error or does the gb.qt4 Window just override[0] the gb.ncurses >> one? If the latter is the case, you can try to disable gb.ncurses and >> Component.Load() it manually at startup? > > Right, the latter is the case. It makes them incompatible with each other. > >> >> I promise that future control classes and a future Window class (using the >> CDK) are more built like their gb.qt4 models but for now think of gb.ncurses >> as a component that conflicts with other graphical components. I don't think >> compatibility can ever be achieved, though. > > I think so, as well... but gb.ncurses programs would need to have a way > to print things. I remember old clipper database programs they were able > to print some kind of text based reports. It would be great if printing > could be based in actual drawing routines as qt4 does. But I understand > it probably never ever could be achieved. > > Priting from the command-line with cups (a five second google search!) http://www.cups.org/documentation.php/options.html Then you "just" have to generate your report in a format understable by cups (PS, PDF, JPG mainly I think). Regards, -- Beno?t Minisini From gambas at ...2524... Sun May 5 14:10:00 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 May 2013 12:10:00 +0000 Subject: [Gambas-user] Issue 429 in gambas: #5638 Unable to compile gb.dektop In-Reply-To: <3-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> <0-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-6609935263466078307-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 429 by benoit.m... at ...626...: #5638 Unable to compile gb.dektop http://code.google.com/p/gambas/issues/detail?id=429 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From rod.pmaia at ...626... Sun May 5 14:11:20 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 05 May 2013 10:11:20 -0200 Subject: [Gambas-user] Language Message-ID: <4501506.vb6d5kA2u3@...3126...> I am brazilian guy, people's i one question for you My gambas language is Portugueze Brazilian how switch for English American??? -- ------------------------------------------------------------- Rodrigo Maia - TI Tecnico email: rod.pmaia at ...626... msn: rodrigo.pmaia at ...67... skype: rodpmaia twitter: @rodrigomaia linked in: Rodrigo Maia facebook: #ropdmaia fones: 88188989 - 81533119 - 84893365 ------------------------------------------------------------- From mohareve at ...626... Sun May 5 15:11:01 2013 From: mohareve at ...626... (M. Cs.) Date: Sun, 5 May 2013 15:11:01 +0200 Subject: [Gambas-user] Language In-Reply-To: <4501506.vb6d5kA2u3@...3126...> References: <4501506.vb6d5kA2u3@...3126...> Message-ID: Bom dia! You can do it only switching the system's language locale to a sort of English, e.g. US. Csaba 2013/5/5 Rodrigo Maia > I am brazilian guy, people's i one question for you > > My gambas language is Portugueze Brazilian how switch for English > American??? > > > > -- > ------------------------------------------------------------- > Rodrigo Maia - TI Tecnico > email: rod.pmaia at ...626... > msn: rodrigo.pmaia at ...67... > skype: rodpmaia > twitter: @rodrigomaia > linked in: Rodrigo Maia > facebook: #ropdmaia > fones: 88188989 - 81533119 - 84893365 > ------------------------------------------------------------- > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nemh at ...2007... Sun May 5 15:26:09 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 5 May 2013 15:26:09 +0200 Subject: [Gambas-user] Language In-Reply-To: References: <4501506.vb6d5kA2u3@...3126...> Message-ID: <20130505152609.55c8c0a5@...3104...> Or start the application with LANG=en_US.UTF-8 variable from a terminal emulator: LANG=en_US.UTF-8 program_name.gambas > Bom dia! > > You can do it only switching the system's language locale to a sort of > English, e.g. US. > > Csaba > > 2013/5/5 Rodrigo Maia > > > I am brazilian guy, people's i one question for you > > > > My gambas language is Portugueze Brazilian how switch for English > > American??? > > > > > > > > -- > > ------------------------------------------------------------- > > Rodrigo Maia - TI Tecnico > > email: rod.pmaia at ...626... > > msn: rodrigo.pmaia at ...67... > > skype: rodpmaia > > twitter: @rodrigomaia > > linked in: Rodrigo Maia > > facebook: #ropdmaia > > fones: 88188989 - 81533119 - 84893365 > > ------------------------------------------------------------- > > > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite > > It's a free troubleshooting tool designed for production > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rod.pmaia at ...626... Sun May 5 14:51:06 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 05 May 2013 10:51:06 -0200 Subject: [Gambas-user] Language In-Reply-To: <20130505152609.55c8c0a5@...3104...> References: <4501506.vb6d5kA2u3@...3126...> <20130505152609.55c8c0a5@...3104...> Message-ID: <1612785.tXVnZT91Mj@...3126...> Hi Thanks! you "Kende Kriszti?n" method solved my problem, thanks very much. bye! Em dom 05 maio 2013, ?s 15:26:09, Kende Kriszti?n escreveu: > Or start the application with LANG=en_US.UTF-8 variable from a > terminal emulator: > > LANG=en_US.UTF-8 program_name.gambas > > > Bom dia! > > > > You can do it only switching the system's language locale to a sort of > > English, e.g. US. > > > > Csaba > > > > 2013/5/5 Rodrigo Maia > > > > > I am brazilian guy, people's i one question for you > > > > > > My gambas language is Portugueze Brazilian how switch for English > > > American??? > > > > > > > > > > > > -- > > > ------------------------------------------------------------- > > > Rodrigo Maia - TI Tecnico > > > email: rod.pmaia at ...626... > > > msn: rodrigo.pmaia at ...67... > > > skype: rodpmaia > > > twitter: @rodrigomaia > > > linked in: Rodrigo Maia > > > facebook: #ropdmaia > > > fones: 88188989 - 81533119 - 84893365 > > > ------------------------------------------------------------- > > > > > > > > > ------------------------------------------------------------------------ > > > ------ Get 100% visibility into Java/.NET code with AppDynamics Lite > > > It's a free troubleshooting tool designed for production > > > Get down to code-level detail for bottlenecks, with <2% overhead. > > > Download for free and get started troubleshooting in minutes. > > > http://p.sf.net/sfu/appdyn_d2d_ap2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -------------------------------------------------------------------------- > > ---- Get 100% visibility into Java/.NET code with AppDynamics Lite > > It's a free troubleshooting tool designed for production > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ------------------------------------------------------------- Rodrigo Maia - TI Tecnico email: rod.pmaia at ...626... msn: rodrigo.pmaia at ...67... skype: rodpmaia twitter: @rodrigomaia linked in: Rodrigo Maia facebook: #ropdmaia fones: 88188989 - 81533119 - 84893365 ------------------------------------------------------------- From willy at ...2734... Sun May 5 17:10:22 2013 From: willy at ...2734... (Willy Raets) Date: Sun, 05 May 2013 17:10:22 +0200 Subject: [Gambas-user] Gambas 3.4.1 Debian packaging In-Reply-To: <518304B2.7070307@...1979...> References: <5181D307.90602@...1979...> <518304B2.7070307@...1979...> Message-ID: <1367766622.3815.2.camel@...3024...> On Fri, 2013-05-03 at 10:28 +1000, Ian Haywood wrote: > Ok, I have finally got Gambas compiling and building all packages on > Debian wheezy > > They are available on a private repository, add the following to your > /etc/apt/sources.list > > deb ftp://ozdocit.org/pub/easygp/ easygp main > deb-src ftp://ozdocit.org/pub/easygp/ easygp main > > "easygp" is the project I am working on with Richard Terry, it is a > massive project and a reasonably good stress-test, however it doesn't > use every Gambas package, please report any problems. > > Ian Haywood Many thanks Ian, I will certainly try it on a fresh Wheezy install and run all my applications on it. I'll post back any problems I might encounter. Might take a while as I first need to install Wheezy and I'm kind of very busy at the moment, but I'll squeeze is in somewhere.. If it works well will the official Debian repo be updated as well? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From rod.pmaia at ...626... Sun May 5 19:11:16 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 05 May 2013 15:11:16 -0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: References: <3400938.IoJ4cxuIMc@...3126...> <5917414.WECW1LRihb@...3126...> Message-ID: <1597765.bgDbi6biDi@...3126...> Hi guys sorry from low response ! I using Fedora 18 x64 - KDE 4.10 Theme default but installed gambas2 and gambas3, i removing gambas2, but gambas3 continued report message: gbr3: unable to load component: gb.form.stock And installed from repository's. Thanks! Em dom 21 abr 2013, ?s 19:25:58, Ricardo D?az Mart?n escreveu: > Did you tried with another theme? > > -- > > 2013/4/21 Rodrigo Maia : > > Em dom 21 abr 2013, ?s 19:08:47, Ricardo D?az Mart?n escreveu: > >> Looks like theres is a problem with your theme. Can you change it an > >> try another one? > >> > >> BTW are you using gnome or kde? > >> > >> Regards, > >> Ricardo D?az > >> > >> 2013/4/21 Rodrigo Maia : > >> > Em dom 21 abr 2013, ?s 16:36:39, Olivier Cruilles escreveu: > >> >> Hello, > >> >> > >> >> You need to give the Linux distribution, from where you had install > >> >> Gambas > >> >> (package, souces, etc...), and how you start Gambas3 (from Desktop > >> >> menu > >> >> or > >> >> terminal) ? > >> >> > >> >> Without these informations we can't help you ? > >> >> > >> >> Cordialement, > >> >> > >> >> Olivier Cruilles > >> >> Mail: linuxos at ...1896... > >> >> > >> >> Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : > >> >> > Good Morning! > >> >> > > >> >> > Gambas3 not start and returne this is mensagem!!! How > >> >> > > >> >> > to resolve? > >> >> > > >> >> > gbr3: unable to load component: gb.form.stock > >> >> > > >> >> > *Rodrigo Maia - TI Tecnico* > >> >> > email: */rod.pmaia at ...626.../* > >> >> > msn: */rodrigo.pmaia at ...67.../* > >> >> > skype: */rodpmaia/* > >> >> > facebook: */ropdmaia/* > >> >> > fone: */9888188989/* > >> >> > fone: */9881533119/* > >> >> > fone: */9884536069/* > >> >> > -------------------------------------------------------------------- > >> >> > --- > >> >> > --- > >> >> > ---- Precog is a next-generation analytics platform capable of > >> >> > advanced > >> >> > analytics on semi-structured data. The platform includes APIs for > >> >> > building apps and a phenomenal toolset for data science. Developers > >> >> > can > >> >> > use our toolset for easy data analysis & visualization. Get a free > >> >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> ---------------------------------------------------------------------- > >> >> --- > >> >> --- -- Precog is a next-generation analytics platform capable of > >> >> advanced > >> >> analytics on semi-structured data. The platform includes APIs for > >> >> building apps and a phenomenal toolset for data science. Developers > >> >> can > >> >> use our toolset for easy data analysis & visualization. Get a free > >> >> account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > GNU/Fedora Linux AMD64 install from repository using: *yum install > >> > gambas3* starting from console $: *gambas3 *or Menu Applications > >> > > >> > > >> > --- > >> > *Rodrigo Maia - TI Tecnico* > >> > email: */rod.pmaia at ...626.../* > >> > msn: */rodrigo.pmaia at ...67.../* > >> > skype: */rodpmaia/* > >> > facebook: */ropdmaia/* > >> > fone: */9888188989/* > >> > fone: */9881533119/* > >> > fone: */9884536069/* > >> > ----------------------------------------------------------------------- > >> > --- > >> > ---- Precog is a next-generation analytics platform capable of advanced > >> > analytics on semi-structured data. The platform includes APIs for > >> > building apps and a phenomenal toolset for data science. Developers can > >> > use our toolset for easy data analysis & visualization. Get a free > >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------- > >> --- -- Precog is a next-generation analytics platform capable of advanced > >> analytics on semi-structured data. The platform includes APIs for > >> building apps and a phenomenal toolset for data science. Developers can > >> use our toolset for easy data analysis & visualization. Get a free > >> account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> -- > > > > Kde 4.10.1 my theme is OSx with Oxygen decoration > > > > *Rodrigo Maia - TI Tecnico* > > email: */rod.pmaia at ...626.../* > > msn: */rodrigo.pmaia at ...67.../* > > skype: */rodpmaia/* > > facebook: */ropdmaia/* > > fone: */9888188989/* > > fone: */9881533119/* > > fone: */9884536069/* > > -------------------------------------------------------------------------- > > ---- Precog is a next-generation analytics platform capable of advanced > > analytics on semi-structured data. The platform includes APIs for > > building apps and a phenomenal toolset for data science. Developers can > > use our toolset for easy data analysis & visualization. Get a free > > account! http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use our > toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ------------------------------------------------------------- Rodrigo Maia - TI Tecnico email: rod.pmaia at ...626... msn: rodrigo.pmaia at ...67... skype: rodpmaia twitter: @rodrigomaia linked in: Rodrigo Maia facebook: #ropdmaia fones: 88188989 - 81533119 - 84893365 ------------------------------------------------------------- From dosida at ...626... Mon May 6 04:40:34 2013 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 5 May 2013 20:40:34 -0600 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: <51864BE5.3070407@...1...> References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> <5186324F.90301@...2382...> <51864BE5.3070407@...1...> Message-ID: Creating a report from a non-graphical method might prove difficult. If you are planning on using something like report from an HTML template on a PDF File you either need to make sure you can generate a PS or PDF file or you can use wkhtmltopdf to generate your PDF file then shell to lpr to send this to your printer. Theoretically this could work but it will depend on what HTML features wkhtmltopdf supports and how you make your HTML template. Hope this helps. On Sun, May 5, 2013 at 6:09 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 05/05/2013 12:19, Jesus a ?crit : > > Hi Tobi and all > > > > > > El 05/05/13 09:00, Tobias Boege escribi?: > >> On Sat, 04 May 2013, Jesus wrote: > >>> Recently a friend of mine reported an issue that I'm not sure how to > >>> explain correctly. > >>> > >>> He is making a terminal program that needs to print stuff on a real > >>> printer, so it needs the gb.qt4 component to get access to the Printer > >>> object. But also he needs to use gb.ncurses to do some neat > presentation > >>> in a terminal in a kind of interactive mode. Problem arises when the > >>> *Window* class in gb.ncurses collides with the same class name in > gb.qt4 > >>> (needed to gain access to printer functions) It seems that window class > >>> in gb.qt4 surpasses the one in gb.ncurses. > >>> > >>> So, is it a known problem? Does anyone realized this "incompatibility" > >>> when using both components at the same time? > >>> Is there a way to use the printer without using gb.qt4? > >>> > > > >> > >> I never thought of using a graphical component together with > gb.ncurses. I > >> never intended that :-) > > > > Yes. The point is, how it is supposed to do printing from within > > gb.ncurses without using the Printer object (found only inside graphical > > components)? > > > > We then should need to do this through CUPS or something, doesn't it? > > > > The fact is my friend is trying to print a kind of report based in his > > own classes that uses Draw and Paint to actually draw a report in a > > drawing area when using the full program version, and the file > > representing the report itself is interpreted and printed from an > > stripped out version of the program that only works in console mode > > (interactive curses interface). The logic of printing is the same for > > both programs, so qt4 is needed to do all the stuff. Sources here [0]. > > > > > >> [...] > >> > >> What do you mean actually by "surpasses"? Is there an "incorrectly > >> overridden" error or does the gb.qt4 Window just override[0] the > gb.ncurses > >> one? If the latter is the case, you can try to disable gb.ncurses and > >> Component.Load() it manually at startup? > > > > Right, the latter is the case. It makes them incompatible with each > other. > > > >> > >> I promise that future control classes and a future Window class (using > the > >> CDK) are more built like their gb.qt4 models but for now think of > gb.ncurses > >> as a component that conflicts with other graphical components. I don't > think > >> compatibility can ever be achieved, though. > > > > I think so, as well... but gb.ncurses programs would need to have a way > > to print things. I remember old clipper database programs they were able > > to print some kind of text based reports. It would be great if printing > > could be based in actual drawing routines as qt4 does. But I understand > > it probably never ever could be achieved. > > > > > > Priting from the command-line with cups (a five second google search!) > > http://www.cups.org/documentation.php/options.html > > Then you "just" have to generate your report in a format understable by > cups (PS, PDF, JPG mainly I think). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From linuxos at ...1896... Mon May 6 11:03:39 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 6 May 2013 11:03:39 +0200 Subject: [Gambas-user] Bug using TASK object In-Reply-To: <518518EF.7020108@...1...> References: <518518EF.7020108@...1...> Message-ID: <1CA4676C-B6EC-4F62-9945-353FE0009AE2@...1896...> Hi Benoit, Forget my problem about TASK object. I think this not for my usage. After many time trying different solutions about my problem of xcb_io.c, if I use TIMER to chain each step of the treatment this bug appear mutch later but it alway appear. So I completely forget TASK to solve my problem and use a different solution. I'm disappointed about this bug because I was very happy to use TASK object, It was for me a great approach to treat many process in parallel. Just for information, for 3 days of datas to be treated, I must execute over 110 000 external commands. Cordialement, Olivier Cruilles Mail: linuxos at ...1896... Le 4 mai 2013 ? 16:19, Beno?t Minisini a ?crit : > Le 04/05/2013 12:33, Olivier Cruilles a ?crit : >> Hi Benoit, >> >> I found that on internet. Does it help you or talk to you ? >> >> http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html >> >> Cordialement, >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> > > Mmm... and so? If you want to use GUI things inside tasks, you can't, > that does not work. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon May 6 14:32:22 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 6 May 2013 14:32:22 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> <5186324F.90301@...2382...> <51864BE5.3070407@...1...> Message-ID: And you can use gb.report and scripter. Le 6 mai 2013 04:41, "Dimitris Anogiatis" a ?crit : > Creating a report from a non-graphical method might prove difficult. > > If you are planning on using something like report from an HTML template on > a PDF File you either need to make sure you can generate a PS or PDF file > or you can use wkhtmltopdf to > generate your PDF file then shell to lpr to send this to your printer. > > Theoretically this could work but it will depend on what HTML features > wkhtmltopdf supports and how you > make your HTML template. > > Hope this helps. > > > > On Sun, May 5, 2013 at 6:09 AM, Beno?t Minisini < > gambas at ...1...> wrote: > > > Le 05/05/2013 12:19, Jesus a ?crit : > > > Hi Tobi and all > > > > > > > > > El 05/05/13 09:00, Tobias Boege escribi?: > > >> On Sat, 04 May 2013, Jesus wrote: > > >>> Recently a friend of mine reported an issue that I'm not sure how to > > >>> explain correctly. > > >>> > > >>> He is making a terminal program that needs to print stuff on a real > > >>> printer, so it needs the gb.qt4 component to get access to the > Printer > > >>> object. But also he needs to use gb.ncurses to do some neat > > presentation > > >>> in a terminal in a kind of interactive mode. Problem arises when the > > >>> *Window* class in gb.ncurses collides with the same class name in > > gb.qt4 > > >>> (needed to gain access to printer functions) It seems that window > class > > >>> in gb.qt4 surpasses the one in gb.ncurses. > > >>> > > >>> So, is it a known problem? Does anyone realized this > "incompatibility" > > >>> when using both components at the same time? > > >>> Is there a way to use the printer without using gb.qt4? > > >>> > > > > > >> > > >> I never thought of using a graphical component together with > > gb.ncurses. I > > >> never intended that :-) > > > > > > Yes. The point is, how it is supposed to do printing from within > > > gb.ncurses without using the Printer object (found only inside > graphical > > > components)? > > > > > > We then should need to do this through CUPS or something, doesn't it? > > > > > > The fact is my friend is trying to print a kind of report based in his > > > own classes that uses Draw and Paint to actually draw a report in a > > > drawing area when using the full program version, and the file > > > representing the report itself is interpreted and printed from an > > > stripped out version of the program that only works in console mode > > > (interactive curses interface). The logic of printing is the same for > > > both programs, so qt4 is needed to do all the stuff. Sources here [0]. > > > > > > > > >> [...] > > >> > > >> What do you mean actually by "surpasses"? Is there an "incorrectly > > >> overridden" error or does the gb.qt4 Window just override[0] the > > gb.ncurses > > >> one? If the latter is the case, you can try to disable gb.ncurses and > > >> Component.Load() it manually at startup? > > > > > > Right, the latter is the case. It makes them incompatible with each > > other. > > > > > >> > > >> I promise that future control classes and a future Window class (using > > the > > >> CDK) are more built like their gb.qt4 models but for now think of > > gb.ncurses > > >> as a component that conflicts with other graphical components. I don't > > think > > >> compatibility can ever be achieved, though. > > > > > > I think so, as well... but gb.ncurses programs would need to have a way > > > to print things. I remember old clipper database programs they were > able > > > to print some kind of text based reports. It would be great if printing > > > could be based in actual drawing routines as qt4 does. But I understand > > > it probably never ever could be achieved. > > > > > > > > > > Priting from the command-line with cups (a five second google search!) > > > > http://www.cups.org/documentation.php/options.html > > > > Then you "just" have to generate your report in a format understable by > > cups (PS, PDF, JPG mainly I think). > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite > > It's a free troubleshooting tool designed for production > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon May 6 16:20:00 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 6 May 2013 17:20:00 +0300 Subject: [Gambas-user] Bug using TASK object In-Reply-To: <1CA4676C-B6EC-4F62-9945-353FE0009AE2@...1896...> References: <518518EF.7020108@...1...> <1CA4676C-B6EC-4F62-9945-353FE0009AE2@...1896...> Message-ID: If you want to use GUI with every thread, you can make them separate projects and start them with main project. There are a lot of options how the projects can interact with each other, depending on your needs. File, pipe, DBus, ... Jussi On Mon, May 6, 2013 at 12:03 PM, Olivier Cruilles wrote: > Hi Benoit, > > Forget my problem about TASK object. I think this not for my usage. > > After many time trying different solutions about my problem of xcb_io.c, > if I use TIMER to chain each step of the treatment > this bug appear mutch later but it alway appear. > > So I completely forget TASK to solve my problem and use a different > solution. > > I'm disappointed about this bug because I was very happy to use TASK > object, It was for me a great approach to treat many process in parallel. > > Just for information, for 3 days of datas to be treated, I must execute > over 110 000 external commands. > > Cordialement, > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 4 mai 2013 ? 16:19, Beno?t Minisini a > ?crit : > > > Le 04/05/2013 12:33, Olivier Cruilles a ?crit : > >> Hi Benoit, > >> > >> I found that on internet. Does it help you or talk to you ? > >> > >> > http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html > >> > >> Cordialement, > >> > >> Olivier Cruilles > >> Mail: linuxos at ...1896... > >> > > > > Mmm... and so? If you want to use GUI things inside tasks, you can't, > > that does not work. > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite > > It's a free troubleshooting tool designed for production > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From paulwheeler at ...546... Mon May 6 17:00:30 2013 From: paulwheeler at ...546... (paulwheeler) Date: Mon, 06 May 2013 08:00:30 -0700 Subject: [Gambas-user] stat bug? Message-ID: <5187C58E.10304@...546...> I have many files with spaces in the name. However, this causes the message "File or directory does not exist" when using stat. Works fine for files that do not have spaces in the name. I even tried adding quotes to the string, but still get same message. Using Gambas 3.4.1 on this system: [System] OperatingSystem=Linux Kernel=3.8.0-19-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=XFCE Theme=QGtk Language=en_US.UTF-8 Memory=7860M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Poppler=libpoppler.so.28.0.0 Public Sub Button1_Click() Dim txtSelectedPath As String FileChooser1.Filter = ["*.txt", "Text Files", "*", "All files"] FileChooser1.Dir = User.Home Print InStr(FileChooser1.SelectedPath, " ") If InStr(FileChooser1.SelectedPath, " ") <> 0 Then Print "inside instr <> 0" txtSelectedPath = Quote$(FileChooser1.SelectedPath) ' Print txtSelectedPath Else Print "inside instr else" txtSelectedPath = FileChooser1.SelectedPath Endif Print txtSelectedPath With Stat("/home/paul/Gospel Art Kit 1-tif.odt") ' With Stat(txtSelectedPath) ListBox1.Add(.Size) ListBox1.Add(.LastModified) ListBox1.Add(.Path) ListBox1.Add(.User) Print "done with stat" End With End From taboege at ...626... Mon May 6 19:46:44 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 6 May 2013 19:46:44 +0200 Subject: [Gambas-user] stat bug? In-Reply-To: <5187C58E.10304@...546...> References: <5187C58E.10304@...546...> Message-ID: <20130506174644.GB521@...2774...> On Mon, 06 May 2013, paulwheeler wrote: > > I have many files with spaces in the name. However, this causes the message > "File or directory does not exist" when using stat. Works fine for files > that do not have spaces in the name. I even tried adding quotes to the > string, but still get same message. > Using Gambas 3.4.1 on this system: > [System] > OperatingSystem=Linux > Kernel=3.8.0-19-generic > Architecture=x86_64 > Distribution=Ubuntu 13.04 > Desktop=XFCE > Theme=QGtk > Language=en_US.UTF-8 > Memory=7860M > [Libraries] > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+=libgtk-x11-2.0.so.0.2400.17 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > Poppler=libpoppler.so.28.0.0 > Public Sub Button1_Click() > Dim txtSelectedPath As String > FileChooser1.Filter = ["*.txt", "Text Files", "*", "All files"] > FileChooser1.Dir = User.Home > Print InStr(FileChooser1.SelectedPath, " ") > > If InStr(FileChooser1.SelectedPath, " ") <> 0 Then > Print "inside instr <> 0" > txtSelectedPath = Quote$(FileChooser1.SelectedPath) > ' Print txtSelectedPath > Else > Print "inside instr else" > txtSelectedPath = FileChooser1.SelectedPath > Endif > Print txtSelectedPath > > With Stat("/home/paul/Gospel Art Kit 1-tif.odt") > ' With Stat(txtSelectedPath) > ListBox1.Add(.Size) > ListBox1.Add(.LastModified) > ListBox1.Add(.Path) > ListBox1.Add(.User) > Print "done with stat" > End With > End Not a problem on my system: With Stat("/home/tab/file with space") Print .Size Print .User End With works as expected (Gambas 3 trunk) if "file with space" exists. Note that adding quotes to the path would make it even worse as quotes are permitted in file names (so they will be taken as part of the name whatsoever and not quote anything). Regards, Tobi From ea7dfh at ...2382... Mon May 6 23:37:40 2013 From: ea7dfh at ...2382... (Jesus) Date: Mon, 06 May 2013 23:37:40 +0200 Subject: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses In-Reply-To: References: <518448C5.6040905@...2382...> <20130505070010.GA563@...2774...> <5186324F.90301@...2382...> <51864BE5.3070407@...1...> Message-ID: <518822A4.6000802@...2382...> El 06/05/13 14:32, Fabien Bodard escribi?: > And you can use gb.report and scripter. > Le 6 mai 2013 04:41, "Dimitris Anogiatis" a ?crit : > >> Creating a report from a non-graphical method might prove difficult. >> >> If you are planning on using something like report from an HTML template on >> a PDF File you either need to make sure you can generate a PS or PDF file >> or you can use wkhtmltopdf to >> generate your PDF file then shell to lpr to send this to your printer. >> >> Theoretically this could work but it will depend on what HTML features >> wkhtmltopdf supports and how you >> make your HTML template. >> >> Hope this helps. >> >> >> >> On Sun, May 5, 2013 at 6:09 AM, Beno?t Minisini < >> gambas at ...1...> wrote: >> >>> Le 05/05/2013 12:19, Jesus a ?crit : >>>> Hi Tobi and all >>>> >>>> >>>> El 05/05/13 09:00, Tobias Boege escribi?: >>>>> On Sat, 04 May 2013, Jesus wrote: >>>>>> Recently a friend of mine reported an issue that I'm not sure how to >>>>>> explain correctly. >>>>>> >>>>>> He is making a terminal program that needs to print stuff on a real >>>>>> printer, so it needs the gb.qt4 component to get access to the >> Printer >>>>>> object. But also he needs to use gb.ncurses to do some neat >>> presentation >>>>>> in a terminal in a kind of interactive mode. Problem arises when the >>>>>> *Window* class in gb.ncurses collides with the same class name in >>> gb.qt4 >>>>>> (needed to gain access to printer functions) It seems that window >> class >>>>>> in gb.qt4 surpasses the one in gb.ncurses. >>>>>> >>>>>> So, is it a known problem? Does anyone realized this >> "incompatibility" >>>>>> when using both components at the same time? >>>>>> Is there a way to use the printer without using gb.qt4? >>>>>> >>>> >>>>> >>>>> I never thought of using a graphical component together with >>> gb.ncurses. I >>>>> never intended that :-) >>>> >>>> Yes. The point is, how it is supposed to do printing from within >>>> gb.ncurses without using the Printer object (found only inside >> graphical >>>> components)? >>>> >>>> We then should need to do this through CUPS or something, doesn't it? >>>> >>>> The fact is my friend is trying to print a kind of report based in his >>>> own classes that uses Draw and Paint to actually draw a report in a >>>> drawing area when using the full program version, and the file >>>> representing the report itself is interpreted and printed from an >>>> stripped out version of the program that only works in console mode >>>> (interactive curses interface). The logic of printing is the same for >>>> both programs, so qt4 is needed to do all the stuff. Sources here [0]. >>>> >>>> >>>>> [...] >>>>> >>>>> What do you mean actually by "surpasses"? Is there an "incorrectly >>>>> overridden" error or does the gb.qt4 Window just override[0] the >>> gb.ncurses >>>>> one? If the latter is the case, you can try to disable gb.ncurses and >>>>> Component.Load() it manually at startup? >>>> >>>> Right, the latter is the case. It makes them incompatible with each >>> other. >>>> >>>>> >>>>> I promise that future control classes and a future Window class (using >>> the >>>>> CDK) are more built like their gb.qt4 models but for now think of >>> gb.ncurses >>>>> as a component that conflicts with other graphical components. I don't >>> think >>>>> compatibility can ever be achieved, though. >>>> >>>> I think so, as well... but gb.ncurses programs would need to have a way >>>> to print things. I remember old clipper database programs they were >> able >>>> to print some kind of text based reports. It would be great if printing >>>> could be based in actual drawing routines as qt4 does. But I understand >>>> it probably never ever could be achieved. >>>> >>>> >>> >>> Priting from the command-line with cups (a five second google search!) >>> >>> http://www.cups.org/documentation.php/options.html >>> >>> Then you "just" have to generate your report in a format understable by >>> cups (PS, PDF, JPG mainly I think). >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> Well, it's clear that gb.ncurses isn't the way to go with this project. I will tell him about your thoughts, so many thanks to all for taking the time on this. Regards -- Jesus Guardon From gambas.fr at ...626... Tue May 7 09:31:04 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 7 May 2013 09:31:04 +0200 Subject: [Gambas-user] BUG: A little error in Draw.FillStyle Message-ID: Draw.Style isn't initialised to Style.None by Default. -- Fabien Bodard From rterry at ...1823... Wed May 8 02:03:16 2013 From: rterry at ...1823... (Richard Terry) Date: Wed, 08 May 2013 10:03:16 +1000 Subject: [Gambas-user] Chronic columnview Woes Message-ID: <51899644.5000000@...1823...> Hi List, Hoping someone, maybe Benoit can take the time to read this and comment. I've been programming in gambas now for a number of years, and as the regulars on the list know Ian Haywood and I have been working on EasyGP, a medical records project. For historical reasons I've done much of the work on my old 5 year laptop running an ancient version of kubuntu 9.0, though I have managed to keep gambas3 relatively up to date. I've had various versions of kubuntu running on my office network running easygp, form 10-11-12 and had varying problems which I'll describe below with columnviews and using them. More recently I put Linux Mint Nadia onto a newish laptop (i7 quadcore/nvidia) and have been doing alot of development work on that because it is fast. Now the problem. Throughout my program to display data, I tend to use columnviews, the contents of which I load from an underlying collection (zero based collection members). Clicking on the list should give me the key to the columnview item and hence the collection member e.g Dim letter as collection The subroutine would pull in all the letters from the backend as the letters collection and load them sequentially into the columnview say cvwLetters. Now when the user clicks on a cvwLetters row you would expect this code: letter = letters[cvwLetters.item.key] to give the appropriate member of the letters collection which it does. However, lets say I want to popup a menu of the letters collection: If I right mouse click on the list to bring up the menu the cvwLetters_Menu event triggers, but if one inspects the cvwLetters control itself in the IDE, the cvwLetters.item.key is null, however the cvwletters.selected[0] does contain the value one would expect to be in the cvwLetters.item.key. I've tried doing e.g cvwLetters.movecurrent() before popping up the menu, this does not seem to make much difference. Also I've a chronic problem trying to generate a columnview click event in code, with a similar outcome to the above - the item.key is not set Anyone had problems with this, or could give me a simple explanation or example which does work? Richard From taboege at ...626... Wed May 8 09:25:49 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 8 May 2013 09:25:49 +0200 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: <51899644.5000000@...1823...> References: <51899644.5000000@...1823...> Message-ID: <20130508072549.GA509@...2774...> On Wed, 08 May 2013, Richard Terry wrote: > Hi List, > > Hoping someone, maybe Benoit can take the time to read this and comment. > > I've been programming in gambas now for a number of years, and as the > regulars on the list know Ian Haywood and I have been working on EasyGP, > a medical records project. > > For historical reasons I've done much of the work on my old 5 year > laptop running an ancient version of kubuntu 9.0, though I have managed > to keep gambas3 relatively up to date. I've had various versions of > kubuntu running on my office network running easygp, form 10-11-12 and > had varying problems which I'll describe below with columnviews and > using them. > > More recently I put Linux Mint Nadia onto a newish laptop (i7 > quadcore/nvidia) and have been doing alot of development work on that > because it is fast. > > Now the problem. > > Throughout my program to display data, I tend to use columnviews, the > contents of which I load from an underlying collection (zero based > collection members). Clicking on the list should give me the key to the > columnview item and hence the collection member > > e.g > > Dim letter as collection > > The subroutine would pull in all the letters from the backend as the > letters collection and load them sequentially into the columnview say > cvwLetters. > > Now when the user clicks on a cvwLetters row you would expect this code: > > letter = letters[cvwLetters.item.key] to give the appropriate member of > the letters collection which it does. > > However, lets say I want to popup a menu of the letters collection: > > If I right mouse click on the list to bring up the menu the > cvwLetters_Menu event triggers, but if one inspects the cvwLetters > control itself in the IDE, the cvwLetters.item.key is null, however the > cvwletters.selected[0] does contain the value one would expect to be in > the cvwLetters.item.key. > > I've tried doing e.g cvwLetters.movecurrent() before popping up the > menu, this does not seem to make much difference. > > Also I've a chronic problem trying to generate a columnview click event > in code, with a similar outcome to the above - the item.key is not set > > Anyone had problems with this, or could give me a simple explanation or > example which does work? > At least I remember that we had problems with this control when we prepared an article about it (doesn't seem to be published yet) because it has three ways to show you a 'current' element - different ones. I hope someone will CMIIW! - Current : the currently *selected* element in the control; the Key property is the Current's key; - Item : only an internal, logical cursor, has nothing to do with what the user points at; actually, my tests showed that, at least inside ColumnView_Click(), Item is the same as Current but not outside of it, e.g. when clicking on an external Button! So don't use it to represent the element the user has selected; - Selection: array of all graphically selected elements; especially useful for Mode = Select.Multiple. So in your case I would use Current or Key - or, if you can select multiple elements, Selection for the keys. Regards, Tobias From gambas at ...1... Wed May 8 13:03:35 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 08 May 2013 13:03:35 +0200 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: <51899644.5000000@...1823...> References: <51899644.5000000@...1823...> Message-ID: <518A3107.3000008@...1...> Le 08/05/2013 02:03, Richard Terry a ?crit : > Hi List, > > ... > > However, lets say I want to popup a menu of the letters collection: > > If I right mouse click on the list to bring up the menu the > cvwLetters_Menu event triggers, but if one inspects the cvwLetters > control itself in the IDE, the cvwLetters.item.key is null, however the > cvwletters.selected[0] does contain the value one would expect to be in > the cvwLetters.item.key. > > I've tried doing e.g cvwLetters.movecurrent() before popping up the > menu, this does not seem to make much difference. The Menu event is not an event managed by the ColumnView control, but by its Control parent class. This is the reason why the Item property is not set during the Menu event handler. The Menu event is raised even if you don't click on an item. Normally, the Click event will be raised before the Menu event, and so you can store the key of the ColumnView.Item property during the Click event handler (which is a ColumnView event) to use it later during the Menu event handler. > > Also I've a chronic problem trying to generate a columnview click event > in code, with a similar outcome to the above - the item.key is not set The Item property *is* set during a Click event handler. What are you talking about with "generate a columnview click event"? -- Beno?t Minisini From gambas at ...1... Wed May 8 13:05:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 08 May 2013 13:05:38 +0200 Subject: [Gambas-user] BUG: A little error in Draw.FillStyle In-Reply-To: References: Message-ID: <518A3182.9090507@...1...> Le 07/05/2013 09:31, Fabien Bodard a ?crit : > Draw.Style isn't initialised to Style.None by Default. > Draw.Style is a virtual class, and Style.None does not exist. What are you talking about??? -- Beno?t Minisini From gambas.fr at ...626... Wed May 8 13:11:19 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 8 May 2013 13:11:19 +0200 Subject: [Gambas-user] BUG: A little error in Draw.FillStyle In-Reply-To: <518A3182.9090507@...1...> References: <518A3182.9090507@...1...> Message-ID: oups i talk about draw.fillstyle 2013/5/8 Beno?t Minisini > Le 07/05/2013 09:31, Fabien Bodard a ?crit : > > Draw.Style isn't initialised to Style.None by Default. > > > > Draw.Style is a virtual class, and Style.None does not exist. What are > you talking about??? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Wed May 8 13:15:08 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 08 May 2013 13:15:08 +0200 Subject: [Gambas-user] BUG: A little error in Draw.FillStyle In-Reply-To: References: <518A3182.9090507@...1...> Message-ID: <518A33BC.1020806@...1...> Le 08/05/2013 13:11, Fabien Bodard a ?crit : > oups i talk about draw.fillstyle > It is initialized to zero, which is Fill.None. What value do you get? -- Beno?t Minisini From gambas.fr at ...626... Wed May 8 14:27:33 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 8 May 2013 14:27:33 +0200 Subject: [Gambas-user] BUG: A little error in Draw.FillStyle In-Reply-To: <518A33BC.1020806@...1...> References: <518A3182.9090507@...1...> <518A33BC.1020806@...1...> Message-ID: oups forget that... it come from a forgotten mysticicous part of my code that set fillstyle to cross... sorry 2013/5/8 Beno?t Minisini > Le 08/05/2013 13:11, Fabien Bodard a ?crit : > > oups i talk about draw.fillstyle > > > > It is initialized to zero, which is Fill.None. What value do you get? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From vuott at ...325... Thu May 9 14:40:53 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 9 May 2013 13:40:53 +0100 (BST) Subject: [Gambas-user] How to resend cookies to server Message-ID: <1368103253.61918.YahooMailClassic@...3063...> Hello, Server sends to browser-hView cookies; but how browser resend cookies back to server? Automatically (all cookies stored in hView.Cookies related to the server)? Or it's up to me, so i have to decide and to send back cookies (but in this case which way)? Regards vuott From wally at ...2037... Sun May 12 07:14:53 2013 From: wally at ...2037... (wally) Date: Sun, 12 May 2013 07:14:53 +0200 Subject: [Gambas-user] gb.map beginner question Message-ID: <4136679.pYU7XrGbSF@...3040...> Hello, i'm starting to learn gb.map usage with the MapView example. How should, let say the Aboutbutton-Subroutine be modified, to center the map on a given longitude and latitude and a 10km radius zoom around this point ? thanks wally From piet at ...3034... Sun May 12 08:01:03 2013 From: piet at ...3034... (piet at ...3034...) Date: Sun, 12 May 2013 08:01:03 +0200 Subject: [Gambas-user] =?utf-8?q?Combobox=5FChange=28=29_Event?= Message-ID: <2b7c3bd4d6aac5e253716bf9b6effbde@...3034...> Don't know if it's just a misunderstanding. If I change the ReadOnly-Property of a Combobox to true, it doens't raise a change-event when I switch between elements. In a ReadOnly-false-combobox it works fine. From geaplanet at ...397... Sun May 12 08:58:23 2013 From: geaplanet at ...397... (Maria) Date: Sun, 12 May 2013 07:58:23 +0100 (BST) Subject: [Gambas-user] Controls with colorated background Message-ID: <1368341903.90560.YahooMailNeo@...3031...> Hi! I have just updated to 3.4.1 gambas version, I didn't change anything else in my system. Why some of my programs have now a coloreated background even if I didn't choose any color for them? From gambas.fr at ...626... Sun May 12 12:24:04 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 12 May 2013 12:24:04 +0200 Subject: [Gambas-user] gb.map beginner question In-Reply-To: <4136679.pYU7XrGbSF@...3040...> References: <4136679.pYU7XrGbSF@...3040...> Message-ID: so for the center : MapView1.Map.Center = mappoint(Lat, lon) For the zoom : MapView1.Map.Zoom = n (1 <= n <=18) 2013/5/12 wally > Hello, > > i'm starting to learn gb.map usage with the MapView example. > > How should, let say the Aboutbutton-Subroutine be modified, to center the > map > on a given longitude and latitude and a 10km radius zoom around this point > ? > > thanks wally > > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Sun May 12 13:25:13 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 12 May 2013 13:25:13 +0200 Subject: [Gambas-user] Combobox_Change() Event In-Reply-To: <2b7c3bd4d6aac5e253716bf9b6effbde@...3034...> References: <2b7c3bd4d6aac5e253716bf9b6effbde@...3034...> Message-ID: <518F7C19.4020008@...1...> Le 12/05/2013 08:01, piet at ...3034... a ?crit : > > > Don't know if it's just a misunderstanding. > > If I change the > ReadOnly-Property of a Combobox to true, it doens't raise a change-event > when I switch between elements. > > In a ReadOnly-false-combobox it works > fine. > The Change event is only for Read-Write combo-box, because it is the Change event of the internal TextBox used by the ComboBox. Use the Click event for Read-Only combo-box. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 12 13:26:03 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 12 May 2013 13:26:03 +0200 Subject: [Gambas-user] Controls with colorated background In-Reply-To: <1368341903.90560.YahooMailNeo@...3031...> References: <1368341903.90560.YahooMailNeo@...3031...> Message-ID: <518F7C4B.8090409@...1...> Le 12/05/2013 08:58, Maria a ?crit : > Hi! > I have just updated to 3.4.1 gambas version, I didn't change anything else in my system. Why some of my programs have now a coloreated background even if I didn't choose any color for them? Please provide a screenshot of the problem and an example project, because I don't know what you are talking about. Regards, -- Beno?t Minisini From piet at ...3034... Sun May 12 14:33:54 2013 From: piet at ...3034... (piet at ...3034...) Date: Sun, 12 May 2013 14:33:54 +0200 Subject: [Gambas-user] =?utf-8?q?Combobox=5FChange=28=29_Event?= In-Reply-To: <518F7C19.4020008@...1...> References: <2b7c3bd4d6aac5e253716bf9b6effbde@...3034...> <518F7C19.4020008@...1...> Message-ID: <5798d03f27018a8b38fd9946b79bb4b3@...3034...> I see, thank you Am 12.05.2013 13:25, schrieb Beno?t Minisini: > Le 12/05/2013 08:01, piet at ...3043... ?crit : > >> Don't know if it's just a misunderstanding. If I change the ReadOnly-Property of a Combobox to true, it doens't raise a change-event when I switch between elements. In a ReadOnly-false-combobox it works fine. > > The Change event is only for Read-Write combo-box, because it is the > Change event of the internal TextBox used by the ComboBox. > > Use the Click event for Read-Only combo-box. > > Regards, > > -- Beno?t Minisini ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Sun May 12 14:57:58 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 May 2013 12:57:58 +0000 Subject: [Gambas-user] Issue 427 in gambas: gb.v4l2 and bt878 with video additional channels In-Reply-To: <0-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #1 on issue 427 by benoit.m... at ...626...: gb.v4l2 and bt878 with video additional channels http://code.google.com/p/gambas/issues/detail?id=427 Alas I didn't write the component, so I don't know. There is a Source property, that prints a message "not implemented in v4l2". I will look at the v4l2 documentation to understand what the problem is. If you have more information about that (what is a channel exactly...), tell me! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun May 12 15:00:48 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 May 2013 13:00:48 +0000 Subject: [Gambas-user] Issue 418 in gambas: Unindent doesn't work anymore In-Reply-To: <3-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> <0-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Updates: Status: Started Labels: -Version Version-3.4.0 Comment #4 on issue 418 by benoit.m... at ...626...: Unindent doesn't work anymore http://code.google.com/p/gambas/issues/detail?id=418 Actually if nothing is selected, "Indent" does not indent, it inserts a tabulation transformed into spaces. And "Unindent" does nothing. They work only if something is selected. I will think about that... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun May 12 15:01:58 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 May 2013 13:01:58 +0000 Subject: [Gambas-user] Issue 428 in gambas: Combobox doesn't change foreground colour using gb.qt4 In-Reply-To: <0-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 428 by benoit.m... at ...626...: Combobox doesn't change foreground colour using gb.qt4 http://code.google.com/p/gambas/issues/detail?id=428 Gambas does not decide that, it depends on the widget theme. Which Qt widget theme do you use? You can get it at runtime by printing the value of Style.Name. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun May 12 19:21:37 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 May 2013 17:21:37 +0000 Subject: [Gambas-user] Issue 428 in gambas: Combobox doesn't change foreground colour using gb.qt4 In-Reply-To: <1-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> <0-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Comment #2 on issue 428 by ea7... at ...626...: Combobox doesn't change foreground colour using gb.qt4 http://code.google.com/p/gambas/issues/detail?id=428 I was testing with each of available styles and any of them shows foreground color correctly. CDE: The borders of the panel containing items when combo is opened up is of the selected color, but not the text, which remains black. Cleanlooks: Only shows the little right arrows in the selected color. Text is black. GTK+: Nothing changes. Either Background and Foreground doesn't change. Motif: Same as CDE. Plastique: Foreground changes has no effect. Windows: Foreground changes has no effect. There are no more styles on my PC. Note I'm on Linux Mint with Cinnamon (which is Gnome3 based, I think). Sorry, no other tests are possible at the moment. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun May 12 20:57:28 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 12 May 2013 18:57:28 +0000 Subject: [Gambas-user] Issue 428 in gambas: Combobox doesn't change foreground colour using gb.qt4 In-Reply-To: <2-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> <0-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9022443989513455336-gambas=googlecode.com@...2524...> Comment #3 on issue 428 by ea7... at ...626...: Combobox doesn't change foreground colour using gb.qt4 http://code.google.com/p/gambas/issues/detail?id=428 Sorry for the typo. It should read: I was testing with each of available styles and *none* of them shows foreground color correctly. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Tue May 14 02:58:44 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 14 May 2013 02:58:44 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function Message-ID: <1368493124.7931.41.camel@...3024...> Hello, I have following problem in a project: I have a valuebox and a gridview. I enter a number in the value box (let's say 1/2) and next add it to a cell in gridview with a button Public Sub btnAdd_Click() GridView1[0, 0].Text = ValueBox1.Value End When Regional settings are English US or UK Entering 5 1/2 in a valuebox looks like: 5.5 (-> with a dot) and ends up as 5.5 in gridview (as text) When Regional settings are some European mainland country Entering 5 1/2 in a valuebox looks like: 5,5 (-> with a comma) and ends up as 5,5 in gridview (as text) When I click a row the cell goes into a Float variable Private ChartValue As Float Public Sub GridView1_RowClick(Row As Integer) ValueBox1.Value = Val(GridView1[Row, 0].Text) '<-- value returned is 0 ChartValue = Val(GridView1[Row, 0].Text) '<-- error occurs here End When Regional settings are English US of UK this works fine When Regional settings are a European mainland country this results in: Error 6: Type mismatch: wanted Float, got Null instead Seems that Val() doesn't take regional settings into account When a text contains 5,5 (with a comma) Val() returns Null When a text contains 5.5 (with a dot) Val() returns 5.5 Tested this on a fresh install of: Lubuntu 13.04 LXDE 0.5.12 Gambas 3.4.1 (using PPA Kendek) I developed this application on Linux Mint 13 with Regional settings English US. All worked fine there Discovered it because of testing on Lubuntu where Regional settings where Dutch. When I set them to English UK and restarted the system all worked just fine. To replicate set Regional setting to a language that uses , (comma). Make a new project with a valuebox, a gridview (or use a textbox),two buttons and a Float variable declared Let the button add the ValueBox.Value to the TextBox.Text and set ValueBox.Value to 0 and enable the second button Let the second button put TextBox.Text back to ValueBox.Value using Val(TextBox.Text) and put Val(TextBox.Text) in the declared Float variable to get the error. Next change regional settings to English UK or US, restart system and run project again. It should work just fine without any errors. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Tue May 14 08:23:29 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 14 May 2013 08:23:29 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function In-Reply-To: <1368493124.7931.41.camel@...3024...> References: <1368493124.7931.41.camel@...3024...> Message-ID: <5191D861.4090106@...221...> Am 14.05.2013 02:58, schrieb Willy Raets: > Hello, > > I have following problem in a project: > > When Regional settings are English US of UK this works fine > When Regional settings are a European mainland country this results in: > > Error 6: Type mismatch: wanted Float, got Null instead > > Seems that Val() doesn't take regional settings into account > When a text contains 5,5 (with a comma) Val() returns Null > When a text contains 5.5 (with a dot) Val() returns 5.5 > Hi Willy, I know it, and I used to think this was standard behaviour. Every number notation which is beyond English US results in Null. I am in Germany with commas for decimals... So for a long time I have been replacing 5,5 by 5.5 before calling val(), even in other interpreters than Gambas. Are you sure it is really defined as to look for the locale? And with Gambas I always have it checked for Null before daring to let val() look into the string. In practice, it would be way easier to have val() simply return Zero on all non-valid actions, like it's done in other interpreters. Just my 2 cents about it... Regards Rolf From eilert-sprachen at ...221... Tue May 14 08:36:50 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 14 May 2013 08:36:50 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function In-Reply-To: <1368493124.7931.41.camel@...3024...> References: <1368493124.7931.41.camel@...3024...> Message-ID: <5191DB82.4090206@...221...> And then I just came across this one: > > I have a valuebox and a gridview. > > I enter a number in the value box (let's say 1/2) and next add it to a > cell in gridview with a button > > When Regional settings are some European mainland country > Entering 5 1/2 in a valuebox looks like: > 5,5 (-> with a comma) > and ends up as 5,5 in gridview (as text) > > When I click a row the cell goes into a Float variable > So what you do is, you actually store the value in the GUI. The GUI converts it to some locale, and you then want to retrieve the value from there for further work on it. If you kept data storing and GUI clearly apart from each other, there would be less trouble. So my proposal is: Keep your data in some array or wherever they come from (or poke them into one) which stores them safely in their genuine way. Let GUI do its own job; GUI is for display only, and it makes the user happy. When you have to evaluate some of the data in the GUI, the user's action will point you to them, and you can easily peek the genuine data from the data storage (array or whatever) in the background. Regards Rolf From shanep1967 at ...169... Tue May 14 09:58:33 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 14 May 2013 17:58:33 +1000 Subject: [Gambas-user] curl ftp Message-ID: <5191EEA9.7090102@...169...> trying to use the ftp client but how do you monitor the status of files uploads etc? From shordi at ...626... Tue May 14 10:03:50 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 14 May 2013 10:03:50 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: <5191EEA9.7090102@...169...> References: <5191EEA9.7090102@...169...> Message-ID: I'm doing a Filezilla's like FTP Client and still can't find the way to do that... but still working on it. If yo find the way, please let me Know... Regards.* * * * 2013/5/14 Shane > trying to use the ftp client but how do you monitor the status of files > uploads etc? > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Tue May 14 18:09:29 2013 From: charlie at ...2793... (Charlie) Date: Tue, 14 May 2013 09:09:29 -0700 (PDT) Subject: [Gambas-user] Possible bug Message-ID: <1368547769662-41943.post@...3046...> Hi all, You need one *Button* and one *DirChooser* on your form I have reduced code to the following to emulate this bug I am getting: - '********************************************************* Public Sub _new() End Public Sub Form_Open() End Public Sub Button1_Click() Dim SDir As String Sdir = DirChooser1.SelectedPath SDir = Replace(SDir, " ", "\ ") End '********************************************************* Run the program and it crashes Gambas every time. Any ideas? Thanks, Charlie [System] OperatingSystem=Linux Kernel=3.5.0-17-generic Architecture=i686 Memory=8182136 kB DistributionVendor=LinuxMint DistributionRelease="Linux Mint 14 Nadia" Desktop=Gnome [Gambas 3] Version=3.1.1 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.3 GTK+=libgtk-x11-2.0.so.0.2400.13 -- View this message in context: http://gambas.8142.n7.nabble.com/Possible-bug-tp41943.html Sent from the gambas-user mailing list archive at Nabble.com. From willy at ...2734... Tue May 14 19:30:21 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 14 May 2013 19:30:21 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function In-Reply-To: <5191DB82.4090206@...221...> References: <1368493124.7931.41.camel@...3024...> <5191DB82.4090206@...221...> Message-ID: <1368552621.3264.6.camel@...3024...> On Tue, 2013-05-14 at 08:36 +0200, Rolf-Werner Eilert wrote: > And then I just came across this one: > > > > > I have a valuebox and a gridview. > > > > I enter a number in the value box (let's say 1/2) and next add it to a > > cell in gridview with a button > > > > When Regional settings are some European mainland country > > Entering 5 1/2 in a valuebox looks like: > > 5,5 (-> with a comma) > > and ends up as 5,5 in gridview (as text) > > > > When I click a row the cell goes into a Float variable > > The example is an simplification of a more complex part of the project > > So what you do is, you actually store the value in the GUI. The GUI > converts it to some locale, and you then want to retrieve the value from > there for further work on it. What I actually do is have the data read from a .csv file into a gridview when opening the form (see screenshot 1). Users can then add data to the gridview or click a row and edit the data of that row (see screenshot2 and 3 -> Note all yellow fields are read only) >From gridview I need some of the data to make a chart in a DrawingArea. (See screenshot 5) That is where the Float comes in, in my project it is a Float array that gets data from the gridview for further calculations to draw the chart. I have many different tabs with different gridviews and all have to possibility to show the gridview data in a chart. This is all for electricity, but there is more. Each gridviews data is stored in a seperate .csv. Usually every item has annual and periodical data. Items are Electricity, natural gas, cylindered gas and water. But there will be a lot more. > > If you kept data storing and GUI clearly apart from each other, there > would be less trouble. Data storing is on hard disk in .csv GUI representation of data is reading .csv into a gridview Data is needed for further calculations in Float arrays. > > So my proposal is: Keep your data in some array or wherever they come > from (or poke them into one) which stores them safely in their genuine > way. Let GUI do its own job; GUI is for display only, and it makes the > user happy. When you have to evaluate some of the data in the GUI, the > user's action will point you to them, and you can easily peek the > genuine data from the data storage (array or whatever) in the background. So what you are actually suggesting is I read the .csv into gridview and I read it into some array and have everything double (once in the grid and once in memory). I have quite some of those gridviews where csv files are read into. Then still reading a number from a .csv file (textbased) into a Float array using Val() will give exactly the same trouble as it returns Null. Is it not more simple to have Val() take regional settings into account, or is that impossible to do? Other solution is that I check regional settings and act accordingly. But how to check regional setting from Gambas as this application will be used in different countries, some with comma for decimal separator others with dot. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot1.png Type: image/png Size: 116694 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot2.png Type: image/png Size: 84953 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot3.png Type: image/png Size: 90816 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot5.png Type: image/png Size: 51489 bytes Desc: not available URL: From gambas at ...1... Tue May 14 20:37:03 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 14 May 2013 20:37:03 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function In-Reply-To: <1368493124.7931.41.camel@...3024...> References: <1368493124.7931.41.camel@...3024...> Message-ID: <5192844F.90709@...1...> Le 14/05/2013 02:58, Willy Raets a ?crit : > Hello, > > I have following problem in a project: > > I have a valuebox and a gridview. > > I enter a number in the value box (let's say 1/2) and next add it to a > cell in gridview with a button > > Public Sub btnAdd_Click() > > GridView1[0, 0].Text = ValueBox1.Value > > End > > When Regional settings are English US or UK > Entering 5 1/2 in a valuebox looks like: > 5.5 (-> with a dot) > and ends up as 5.5 in gridview (as text) > > > When Regional settings are some European mainland country > Entering 5 1/2 in a valuebox looks like: > 5,5 (-> with a comma) > and ends up as 5,5 in gridview (as text) > > When I click a row the cell goes into a Float variable > > Private ChartValue As Float > > Public Sub GridView1_RowClick(Row As Integer) > > ValueBox1.Value = Val(GridView1[Row, 0].Text) '<-- value returned is 0 > ChartValue = Val(GridView1[Row, 0].Text) '<-- error occurs here > > End > > When Regional settings are English US of UK this works fine > When Regional settings are a European mainland country this results in: > > Error 6: Type mismatch: wanted Float, got Null instead > > Seems that Val() doesn't take regional settings into account > When a text contains 5,5 (with a comma) Val() returns Null > When a text contains 5.5 (with a dot) Val() returns 5.5 > > Tested this on a fresh install of: > > Lubuntu 13.04 > LXDE 0.5.12 > Gambas 3.4.1 (using PPA Kendek) > > I developed this application on Linux Mint 13 with Regional settings > English US. All worked fine there > Discovered it because of testing on Lubuntu where Regional settings > where Dutch. When I set them to English UK and restarted the system all > worked just fine. > > To replicate set Regional setting to a language that uses , (comma). > Make a new project with a valuebox, a gridview (or use a textbox),two > buttons and a Float variable declared > > Let the button add the ValueBox.Value to the TextBox.Text and set > ValueBox.Value to 0 and enable the second button > > Let the second button put TextBox.Text back to ValueBox.Value using > Val(TextBox.Text) and put Val(TextBox.Text) in the declared Float > variable to get the error. > > Next change regional settings to English UK or US, restart system and > run project again. It should work just fine without any errors. > Val() does take regional settings into account. But you must ensure that the corresponding locale packages of your distribution are installed. Did you check that? The Gambas interpreter will print a warning message if it cannot find the localisation data, but you will see only if you run your program from the IDE or the command line. Can you check and tell me if everything is correct about installed localisation packages? -- Beno?t Minisini From gambas at ...1... Tue May 14 20:38:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 14 May 2013 20:38:50 +0200 Subject: [Gambas-user] Possible bug In-Reply-To: <1368547769662-41943.post@...3046...> References: <1368547769662-41943.post@...3046...> Message-ID: <519284BA.7090103@...1...> Le 14/05/2013 18:09, Charlie a ?crit : > Hi all, > > You need one *Button* and one *DirChooser* on your form > I have reduced code to the following to emulate this bug I am getting: - > '********************************************************* > Public Sub _new() > End > > Public Sub Form_Open() > End > > > Public Sub Button1_Click() > > Dim SDir As String > Sdir = DirChooser1.SelectedPath > SDir = Replace(SDir, " ", "\ ") This line is not syntactically correct ("\ "). Please provide a project or at least code that compiles! Regards, -- Beno?t Minisini From willy at ...2734... Tue May 14 22:26:49 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 14 May 2013 22:26:49 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function In-Reply-To: <5192844F.90709@...1...> References: <1368493124.7931.41.camel@...3024...> <5192844F.90709@...1...> Message-ID: <1368563209.2311.11.camel@...3024...> On Tue, 2013-05-14 at 20:37 +0200, Beno?t Minisini wrote: > Le 14/05/2013 02:58, Willy Raets a ?crit : > > Hello, > > > > I have following problem in a project: > > > > I have a valuebox and a gridview. > > > > I enter a number in the value box (let's say 1/2) and next add it to a > > cell in gridview with a button > > > > Public Sub btnAdd_Click() > > > > GridView1[0, 0].Text = ValueBox1.Value > > > > End > > > > When Regional settings are English US or UK > > Entering 5 1/2 in a valuebox looks like: > > 5.5 (-> with a dot) > > and ends up as 5.5 in gridview (as text) > > > > > > When Regional settings are some European mainland country > > Entering 5 1/2 in a valuebox looks like: > > 5,5 (-> with a comma) > > and ends up as 5,5 in gridview (as text) > > > > When I click a row the cell goes into a Float variable > > > > Private ChartValue As Float > > > > Public Sub GridView1_RowClick(Row As Integer) > > > > ValueBox1.Value = Val(GridView1[Row, 0].Text) '<-- value returned is 0 > > ChartValue = Val(GridView1[Row, 0].Text) '<-- error occurs here > > > > End > > > > When Regional settings are English US of UK this works fine > > When Regional settings are a European mainland country this results in: > > > > Error 6: Type mismatch: wanted Float, got Null instead > > > > Seems that Val() doesn't take regional settings into account > > When a text contains 5,5 (with a comma) Val() returns Null > > When a text contains 5.5 (with a dot) Val() returns 5.5 > > > > Tested this on a fresh install of: > > > > Lubuntu 13.04 > > LXDE 0.5.12 > > Gambas 3.4.1 (using PPA Kendek) > > > > I developed this application on Linux Mint 13 with Regional settings > > English US. All worked fine there > > Discovered it because of testing on Lubuntu where Regional settings > > where Dutch. When I set them to English UK and restarted the system all > > worked just fine. > > > > To replicate set Regional setting to a language that uses , (comma). > > Make a new project with a valuebox, a gridview (or use a textbox),two > > buttons and a Float variable declared > > > > Let the button add the ValueBox.Value to the TextBox.Text and set > > ValueBox.Value to 0 and enable the second button > > > > Let the second button put TextBox.Text back to ValueBox.Value using > > Val(TextBox.Text) and put Val(TextBox.Text) in the declared Float > > variable to get the error. > > > > Next change regional settings to English UK or US, restart system and > > run project again. It should work just fine without any errors. > > > > Val() does take regional settings into account. But you must ensure that > the corresponding locale packages of your distribution are installed. > Did you check that? > > The Gambas interpreter will print a warning message if it cannot find > the localisation data, but you will see only if you run your program > from the IDE or the command line. > > Can you check and tell me if everything is correct about installed > localisation packages? The values entered in the ValueBoxes get a , (comma) so the regional settings are ok. In further analysing the problem I discovered the cause. I noticed when adding the data to the gridview the comma went dot. And when using the Val() function the GridView is where the values need to come from. There was NO output in console indicating val() function warning of not finding localisation data. So Val() expects a , because of regional settings and gets a . instead, hence the error. So things go wrong placing the valuebox values into the gridview When placing the valuebox values into the gridview I simply did: GridVieW[1,0].Text = ValueBox1.Value '<- results in , going . instead of GridVieW[1,0].Text = Str(ValueBox1.Value)'<- results in , staying , So both Val() and Str() DO take regional setting in account. I can only compliment Beno?t for that as things work as they should :-) My mistake, sorry for the noise... -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From charlie at ...2793... Wed May 15 01:17:30 2013 From: charlie at ...2793... (Charlie) Date: Tue, 14 May 2013 16:17:30 -0700 (PDT) Subject: [Gambas-user] Possible bug In-Reply-To: <519284BA.7090103@...1...> References: <1368547769662-41943.post@...3046...> <519284BA.7090103@...1...> Message-ID: Hi ?Benoit, It may, or may not, be good syntax but press F5 and Gambas crashes. You can not compile it because Gambas crashes. The purpose of the code was to change "dir" string into a form tha BASH would accept from Shell command if there are spaces in the "dir" string. I am not an expert in any of this. I am just tring to help by pointing this issue out. If it is a syntax error Gambas should detect this and not crash. Regards, Charlie. Sent from Charlie's Samsung tablet"Beno?t Minisini [via Gambas]" wrote:Le 14/05/2013 18:09, Charlie a ?crit : > Hi all, > > You need one *Button* and one *DirChooser* on your form > I have reduced code to the following to emulate this bug I am getting: - > '********************************************************* > Public Sub _new() > End > > Public Sub Form_Open() > End > > > Public Sub Button1_Click() > > Dim SDir As String > Sdir = DirChooser1.SelectedPath > SDir = Replace(SDir, " ", "\ ") This line is not syntactically correct ("\ "). Please provide a project or at least code that compiles! Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Gambas-user mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gambas-user If you reply to this email, your message will be added to the discussion below: http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41946.html To unsubscribe from Possible bug, click here. NAML -- View this message in context: http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41948.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed May 15 01:43:09 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 15 May 2013 01:43:09 +0200 Subject: [Gambas-user] Possible bug In-Reply-To: References: <1368547769662-41943.post@...3046...> <519284BA.7090103@...1...> Message-ID: <5192CC0D.4030307@...1...> Le 15/05/2013 01:17, Charlie a ?crit : > Hi Benoit, > > It may, or may not, be good syntax but press F5 and Gambas crashes. You can not compile it because Gambas crashes. > > The purpose of the code was to change "dir" string into a form tha BASH would accept from Shell command if there are spaces in the "dir" string. > > I am not an expert in any of this. I am just tring to help by pointing this issue out. If it is a syntax error Gambas should detect this and not crash. > > Regards, > > Charlie. > Nothing special happens there. Can you make a project that crashes for me? -- Beno?t Minisini From Gambas at ...1950... Wed May 15 01:32:28 2013 From: Gambas at ...1950... (Caveat) Date: Wed, 15 May 2013 01:32:28 +0200 Subject: [Gambas-user] Possible bug In-Reply-To: References: <1368547769662-41943.post@...3046...> <519284BA.7090103@...1...> Message-ID: <5192C98C.4020802@...1950...> Yeah, I see what you're trying to do. You can use \\ to make a single \ as the \ is normally the first part of a special character constant (e.g. \t makes a Tab character). I think you can just wrap file/dir names with spaces in them in quotes for use in bash scripts. Oh, and my Gambas doesn't crash with the code exactly as you had it. As Benoit experienced, it just doesn't compile, same for me (compile error is"Bad character constant"). Kind regards, Caveat On 15/05/13 01:17, Charlie wrote: > Hi Benoit, > > It may, or may not, be good syntax but press F5 and Gambas crashes. You can not compile it because Gambas crashes. > > The purpose of the code was to change "dir" string into a form tha BASH would accept from Shell command if there are spaces in the "dir" string. > > I am not an expert in any of this. I am just tring to help by pointing this issue out. If it is a syntax error Gambas should detect this and not crash. > > Regards, > > Charlie. > > > > > > Sent from Charlie's Samsung tablet"Beno?t Minisini [via Gambas]" wrote:Le 14/05/2013 18:09, Charlie a ?crit : > >> Hi all, >> >> You need one *Button* and one *DirChooser* on your form >> I have reduced code to the following to emulate this bug I am getting: - >> '********************************************************* >> Public Sub _new() >> End >> >> Public Sub Form_Open() >> End >> >> >> Public Sub Button1_Click() >> >> Dim SDir As String >> Sdir = DirChooser1.SelectedPath >> SDir = Replace(SDir, " ", "\ ") > This line is not syntactically correct ("\ "). Please provide a project > or at least code that compiles! > > Regards, > From rterry at ...1823... Wed May 15 03:35:26 2013 From: rterry at ...1823... (Richard Terry) Date: Wed, 15 May 2013 11:35:26 +1000 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: <518A3107.3000008@...1...> References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> Message-ID: <5192E65E.9070604@...1823...> Beno?t Minisini wrote: > Le 08/05/2013 02:03, Richard Terry a ?crit : > >> Hi List, >> >> > > ... > > > >> However, lets say I want to popup a menu of the letters collection: >> >> If I right mouse click on the list to bring up the menu the >> cvwLetters_Menu event triggers, but if one inspects the cvwLetters >> control itself in the IDE, the cvwLetters.item.key is null, however the >> cvwletters.selected[0] does contain the value one would expect to be in >> the cvwLetters.item.key. >> >> I've tried doing e.g cvwLetters.movecurrent() before popping up the >> menu, this does not seem to make much difference. >> > > The Menu event is not an event managed by the ColumnView control, but by > its Control parent class. This is the reason why the Item property is > not set during the Menu event handler. The Menu event is raised even if > you don't click on an item. > > Normally, the Click event will be raised before the Menu event, and so > you can store the key of the ColumnView.Item property during the Click > event handler (which is a ColumnView event) to use it later during the > Menu event handler. > > >> Also I've a chronic problem trying to generate a columnview click event >> in code, with a similar outcome to the above - the item.key is not set >> > > The Item property *is* set during a Click event handler. What are you > talking about with "generate a columnview click event"? > > What I meant was this. Lets say you have loaded the columnview with data. Now, if the user was sitting in front of the program and wanted to select an item in the columnview, then he would click on the column which one would then trap the event and do something with it. I often need to be able to emulate that in code, ie have the program do the same thing. Doing this columnview1.Movefirst() columnview1.item.selected = True will sometimes work ie this triggeres the columnview1_Select() routine and any code associated with this. Hope this is clearer. Regards Richard Richard From gambas.fr at ...626... Wed May 15 08:13:46 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 15 May 2013 08:13:46 +0200 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: <5192E65E.9070604@...1823...> References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> <5192E65E.9070604@...1823...> Message-ID: Use a flag!!! Le 15 mai 2013 03:46, "Richard Terry" a ?crit : > Beno?t Minisini wrote: > > Le 08/05/2013 02:03, Richard Terry a ?crit : > > > >> Hi List, > >> > >> > > > ... > > > > > > >> However, lets say I want to popup a menu of the letters collection: > >> > >> If I right mouse click on the list to bring up the menu the > >> cvwLetters_Menu event triggers, but if one inspects the cvwLetters > >> control itself in the IDE, the cvwLetters.item.key is null, however the > >> cvwletters.selected[0] does contain the value one would expect to be in > >> the cvwLetters.item.key. > >> > >> I've tried doing e.g cvwLetters.movecurrent() before popping up the > >> menu, this does not seem to make much difference. > >> > > > > The Menu event is not an event managed by the ColumnView control, but by > > its Control parent class. This is the reason why the Item property is > > not set during the Menu event handler. The Menu event is raised even if > > you don't click on an item. > > > > Normally, the Click event will be raised before the Menu event, and so > > you can store the key of the ColumnView.Item property during the Click > > event handler (which is a ColumnView event) to use it later during the > > Menu event handler. > > > > > >> Also I've a chronic problem trying to generate a columnview click event > >> in code, with a similar outcome to the above - the item.key is not set > >> > > > > The Item property *is* set during a Click event handler. What are you > > talking about with "generate a columnview click event"? > > > > > What I meant was this. Lets say you have loaded the columnview with > data. Now, if the user was sitting in front of the program and wanted to > select an item in the columnview, then he would click on the column > which one would then trap the event and do something with it. > > I often need to be able to emulate that in code, ie have the program do > the same thing. Doing this > > columnview1.Movefirst() > columnview1.item.selected = True > > will sometimes work ie this triggeres the columnview1_Select() routine > and any code associated with this. > > Hope this is clearer. > > Regards > > Richard > > Richard > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Wed May 15 08:43:25 2013 From: rterry at ...1823... (Richard Terry) Date: Wed, 15 May 2013 16:43:25 +1000 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> <5192E65E.9070604@...1823...> Message-ID: <51932E8D.4080708@...1823...> Fabien Bodard wrote: > Use a flag!!! > Le 15 mai 2013 03:46, "Richard Terry" a ?crit : > Sorry Fabien, don't mean to be a pest but if this was a simple problem I've figure it myself. I don't understand why this code works erratically. Could you explain what you mean by use a flag with a couple of lines of sample code. Regards richard > >> Beno?t Minisini wrote: >> >>> Le 08/05/2013 02:03, Richard Terry a ?crit : >>> >>> >>>> Hi List, >>>> >>>> >>>> >>> > ... >>> > >>> >>> >>>> However, lets say I want to popup a menu of the letters collection: >>>> >>>> If I right mouse click on the list to bring up the menu the >>>> cvwLetters_Menu event triggers, but if one inspects the cvwLetters >>>> control itself in the IDE, the cvwLetters.item.key is null, however the >>>> cvwletters.selected[0] does contain the value one would expect to be in >>>> the cvwLetters.item.key. >>>> >>>> I've tried doing e.g cvwLetters.movecurrent() before popping up the >>>> menu, this does not seem to make much difference. >>>> >>>> >>> The Menu event is not an event managed by the ColumnView control, but by >>> its Control parent class. This is the reason why the Item property is >>> not set during the Menu event handler. The Menu event is raised even if >>> you don't click on an item. >>> >>> Normally, the Click event will be raised before the Menu event, and so >>> you can store the key of the ColumnView.Item property during the Click >>> event handler (which is a ColumnView event) to use it later during the >>> Menu event handler. >>> >>> >>> >>>> Also I've a chronic problem trying to generate a columnview click event >>>> in code, with a similar outcome to the above - the item.key is not set >>>> >>>> >>> The Item property *is* set during a Click event handler. What are you >>> talking about with "generate a columnview click event"? >>> >>> >>> >> What I meant was this. Lets say you have loaded the columnview with >> data. Now, if the user was sitting in front of the program and wanted to >> select an item in the columnview, then he would click on the column >> which one would then trap the event and do something with it. >> >> I often need to be able to emulate that in code, ie have the program do >> the same thing. Doing this >> >> columnview1.Movefirst() >> columnview1.item.selected = True >> >> will sometimes work ie this triggeres the columnview1_Select() routine >> and any code associated with this. >> >> Hope this is clearer. >> >> Regards >> >> Richard >> >> Richard >> >> >> ------------------------------------------------------------------------------ >> AlienVault Unified Security Management (USM) platform delivers complete >> security visibility with the essential security capabilities. Easily and >> efficiently configure, manage, and operate all of your security controls >> from a single console and one unified framework. Download a free trial. >> http://p.sf.net/sfu/alienvault_d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From introlinux at ...626... Wed May 15 09:08:34 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Wed, 15 May 2013 09:08:34 +0200 Subject: [Gambas-user] Fwd: Controls with colorated background In-Reply-To: References: Message-ID: I have just register to the mailing list because I was looking for information about this problem. I don't know if it's exactly the same problem that has geaplane, we have this color problem since 3.2 version and ONLY with the gridview. I attach some screenshots. Debian Wheezy/Sid with 3.4.1 gambas version. -------------- next part -------------- A non-text attachment was scrubbed... Name: grid1.jpg Type: image/jpeg Size: 87748 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: grid2.jpg Type: image/jpeg Size: 221583 bytes Desc: not available URL: From shanep1967 at ...169... Wed May 15 13:48:33 2013 From: shanep1967 at ...169... (Shane) Date: Wed, 15 May 2013 21:48:33 +1000 Subject: [Gambas-user] gridview Message-ID: <51937611.8040204@...169...> is there a way to set the background and foreground colour of a gridview row and when other is selected the previous one returns to it original colours or would this have to be done manually From gambas.fr at ...626... Wed May 15 14:58:16 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 15 May 2013 14:58:16 +0200 Subject: [Gambas-user] gridview In-Reply-To: <51937611.8040204@...169...> References: <51937611.8040204@...169...> Message-ID: Manually but it would be better if you use the _data event for filling so you can use flags From charlie at ...2793... Wed May 15 15:25:46 2013 From: charlie at ...2793... (Charlie) Date: Wed, 15 May 2013 06:25:46 -0700 (PDT) Subject: [Gambas-user] Possible bug In-Reply-To: <5192C98C.4020802@...1950...> References: <1368547769662-41943.post@...3046...> <519284BA.7090103@...1...> <5192C98C.4020802@...1950...> Message-ID: <51938CCA.2020905@...2793...> Hi Caveat and Beno?t, Thanks for the replys. I will try a workaround, and I am pleased it's not a issue for anybody else. Should you be interested I have created a desktop video of the problem and supplied the code that causes my Gambas to crash. You will find the files at http://www.cogier.com/gambas/. I have found that "SDir = Replace(SDir, " ", "\ ")" will cause a crash but "SDir = Replace(SDir, " ", "\\ ")" is fine. Thanks, Charlie On 15/05/13 00:55, Caveat [via Gambas] wrote: > Yeah, I see what you're trying to do. You can use \\ to make a single \ > as the \ is normally the first part of a special character constant > (e.g. \t makes a Tab character). I think you can just wrap file/dir > names with spaces in them in quotes for use in bash scripts. > > Oh, and my Gambas doesn't crash with the code exactly as you had it. As > Benoit experienced, it just doesn't compile, same for me (compile error > is"Bad character constant"). > > Kind regards, > Caveat > > On 15/05/13 01:17, Charlie wrote: > > > Hi Benoit, > > > > It may, or may not, be good syntax but press F5 and Gambas crashes. > You can not compile it because Gambas crashes. > > > > The purpose of the code was to change "dir" string into a form tha > BASH would accept from Shell command if there are spaces in the "dir" > string. > > > > I am not an expert in any of this. I am just tring to help by > pointing this issue out. If it is a syntax error Gambas should detect > this and not crash. > > > > Regards, > > > > Charlie. > > > > > > > > > > > > Sent from Charlie's Samsung tablet"Beno?t Minisini [via Gambas]" > <[hidden email] > > wrote:Le 14/05/2013 18:09, Charlie a ?crit : > > > >> Hi all, > >> > >> You need one *Button* and one *DirChooser* on your form > >> I have reduced code to the following to emulate this bug I am > getting: - > >> '********************************************************* > >> Public Sub _new() > >> End > >> > >> Public Sub Form_Open() > >> End > >> > >> > >> Public Sub Button1_Click() > >> > >> Dim SDir As String > >> Sdir = DirChooser1.SelectedPath > >> SDir = Replace(SDir, " ", "\ ") > > This line is not syntactically correct ("\ "). Please provide a project > > or at least code that compiles! > > > > Regards, > > > > > ------------------------------------------------------------------------------ > > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41950.html > To unsubscribe from Possible bug, click here > . > NAML > > -- View this message in context: http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41957.html Sent from the gambas-user mailing list archive at Nabble.com. From linuxos at ...1896... Wed May 15 16:11:37 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 15 May 2013 16:11:37 +0200 Subject: [Gambas-user] Possible bug In-Reply-To: <51938CCA.2020905@...2793...> References: <1368547769662-41943.post@...3046...> <519284BA.7090103@...1...> <5192C98C.4020802@...1950...> <51938CCA.2020905@...2793...> Message-ID: <01B9F756-C9D3-4823-B8A5-62A52F563AD5@...1896...> Hello Charlie, I think you have this problem when the 'gb.qt4.ext' is not selected in the Preferencies -> Components. Because this symbol depend on this component. Cordialement, Olivier Cruilles Mail: linuxos at ...1896... Le 15 mai 2013 ? 15:25, Charlie a ?crit : > Hi Caveat and Beno?t, > > Thanks for the replys. I will try a workaround, and I am pleased it's > not a issue for anybody else. > > Should you be interested I have created a desktop video of the problem > and supplied the code that causes my Gambas to crash. You will find the > files at http://www.cogier.com/gambas/. > > I have found that "SDir = Replace(SDir, " ", "\ ")" will cause a crash > but "SDir = Replace(SDir, " ", "\\ ")" is fine. > > Thanks, > > Charlie > > > On 15/05/13 00:55, Caveat [via Gambas] wrote: >> Yeah, I see what you're trying to do. You can use \\ to make a single \ >> as the \ is normally the first part of a special character constant >> (e.g. \t makes a Tab character). I think you can just wrap file/dir >> names with spaces in them in quotes for use in bash scripts. >> >> Oh, and my Gambas doesn't crash with the code exactly as you had it. As >> Benoit experienced, it just doesn't compile, same for me (compile error >> is"Bad character constant"). >> >> Kind regards, >> Caveat >> >> On 15/05/13 01:17, Charlie wrote: >> >>> Hi Benoit, >>> >>> It may, or may not, be good syntax but press F5 and Gambas crashes. >> You can not compile it because Gambas crashes. >>> >>> The purpose of the code was to change "dir" string into a form tha >> BASH would accept from Shell command if there are spaces in the "dir" >> string. >>> >>> I am not an expert in any of this. I am just tring to help by >> pointing this issue out. If it is a syntax error Gambas should detect >> this and not crash. >>> >>> Regards, >>> >>> Charlie. >>> >>> >>> >>> >>> >>> Sent from Charlie's Samsung tablet"Beno?t Minisini [via Gambas]" >> <[hidden email] > >> wrote:Le 14/05/2013 18:09, Charlie a ?crit : >>> >>>> Hi all, >>>> >>>> You need one *Button* and one *DirChooser* on your form >>>> I have reduced code to the following to emulate this bug I am >> getting: - >>>> '********************************************************* >>>> Public Sub _new() >>>> End >>>> >>>> Public Sub Form_Open() >>>> End >>>> >>>> >>>> Public Sub Button1_Click() >>>> >>>> Dim SDir As String >>>> Sdir = DirChooser1.SelectedPath >>>> SDir = Replace(SDir, " ", "\ ") >>> This line is not syntactically correct ("\ "). Please provide a project >>> or at least code that compiles! >>> >>> Regards, >>> >> >> >> ------------------------------------------------------------------------------ >> >> AlienVault Unified Security Management (USM) platform delivers complete >> security visibility with the essential security capabilities. Easily and >> efficiently configure, manage, and operate all of your security controls >> from a single console and one unified framework. Download a free trial. >> http://p.sf.net/sfu/alienvault_d2d >> _______________________________________________ >> Gambas-user mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41950.html >> To unsubscribe from Possible bug, click here >> . >> NAML >> >> > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41957.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed May 15 17:41:11 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 15 May 2013 18:41:11 +0300 Subject: [Gambas-user] Possible bug In-Reply-To: <1368547769662-41943.post@...3046...> References: <1368547769662-41943.post@...3046...> Message-ID: This bug doesn't seem to apply to Gambas 3.4.1. So, try to update. Jussi On Tue, May 14, 2013 at 7:09 PM, Charlie wrote: > Hi all, > > You need one *Button* and one *DirChooser* on your form > I have reduced code to the following to emulate this bug I am getting: - > '********************************************************* > Public Sub _new() > End > > Public Sub Form_Open() > End > > > Public Sub Button1_Click() > > Dim SDir As String > Sdir = DirChooser1.SelectedPath > SDir = Replace(SDir, " ", "\ ") > > End > '********************************************************* > > Run the program and it crashes Gambas every time. > > Any ideas? > > Thanks, > > Charlie > > [System] > OperatingSystem=Linux > Kernel=3.5.0-17-generic > Architecture=i686 > Memory=8182136 kB > DistributionVendor=LinuxMint > DistributionRelease="Linux Mint 14 Nadia" > Desktop=Gnome > > [Gambas 3] > Version=3.1.1 > Path=/usr/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.8.3 > GTK+=libgtk-x11-2.0.so.0.2400.13 > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Possible-bug-tp41943.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed May 15 18:33:28 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 15 May 2013 18:33:28 +0200 Subject: [Gambas-user] Possible bug?: Regional formats, float, text and val() function In-Reply-To: <1368534436.2692.25.camel@...3024...> References: <1368493124.7931.41.camel@...3024...> <5191DB82.4090206@...221...> <1368534436.2692.25.camel@...3024...> Message-ID: <5193B8D8.5060800@...221...> Couldn't answer any sooner today, sorry. > What I actually do is have the data read from a .csv file into a > gridview when opening the form (see screenshot 1). Ah ok. > Data storing is on hard disk in .csv > GUI representation of data is reading .csv into a gridview > Data is needed for further calculations in Float arrays. Didn't see that. > So what you are actually suggesting is I read the .csv into gridview and > I read it into some array and have everything double (once in the grid > and once in memory). I have quite some of those gridviews where csv > files are read into. Yes, it would be a copy. But the copy wouldn't be changed by the gridview. > > Then still reading a number from a .csv file (textbased) into a Float > array using Val() will give exactly the same trouble as it returns Null. > > Is it not more simple to have Val() take regional settings into account, > or is that impossible to do? > Other solution is that I check regional settings and act accordingly. > > But how to check regional setting from Gambas as this application will > be used in different countries, some with comma for decimal separator > others with dot. > I had a similar problem years ago under VB. At that time, I changed all data accordingly when putting data into the gridview, but it turned out to be pretty confusing managing all the functions which would convert the data forth and back. As a file, the data were stored in a decimal format with "." as far as I remember. So I wrote a new project under Gambas and tried to stick with keeping an unchanged copy in memory. Now I chose to keep all amounts without decimal point (this is money values, so I store Cents only, there is a fixed number of decimals). Internally, I know the format the values will be in, and the gridview can do with it what it wants. It did make the project much easier to read and understand when I come back after months. In Gambas, the gridview reads an array automagically when you provide the necessary data there. It should even convert them to the locale, or if it does not, you still can write code into the DATA event to apply this. I find that very handy. And now I'll close the office and go home :-) Regards Rolf From charlie at ...2793... Wed May 15 18:58:44 2013 From: charlie at ...2793... (Charlie) Date: Wed, 15 May 2013 09:58:44 -0700 (PDT) Subject: [Gambas-user] Possible bug In-Reply-To: <01B9F756-C9D3-4823-B8A5-62A52F563AD5@...1896...> References: <1368547769662-41943.post@...3046...> <519284BA.7090103@...1...> <5192C98C.4020802@...1950...> <51938CCA.2020905@...2793...> <01B9F756-C9D3-4823-B8A5-62A52F563AD5@...1896...> Message-ID: <1368637124632-41961.post@...3046...> Hi Olivier Cruilles, I have found a work around. As suggested earlier by Caveat using "// ". I now have: - *Public Sub Button1_Click() Dim SDir As String Sdir = DirChooser1.SelectedPath SDir = "ls " & Replace(SDir, " ", "\\ ") & " > Temp.txt" Shell SDir End * The output to the shell is : - *ls /home/charlie/This\ is\ a\ \ test\ directory > Temp.txt* This even allows for more that one space in a directory name. Thanks all for your help. Charlie -- View this message in context: http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41961.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed May 15 23:59:31 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 15 May 2013 23:59:31 +0200 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: <51932E8D.4080708@...1823...> References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> <5192E65E.9070604@...1823...> <51932E8D.4080708@...1823...> Message-ID: In fact I think I need a better explanation or an example... What do you really want ? To generate a kind of elementclick event? Normally you just have to do.: $sKey = cvw.Item.Key In the cvw_Click event And then use the value of $sKey in the cvw_menu event Or maybe I have missed something and so tell us more Best regards, Fabien Bodard Le 15 mai 2013 08:44, "Richard Terry" a ?crit : > Fabien Bodard wrote: > > Use a flag!!! > > Le 15 mai 2013 03:46, "Richard Terry" a ?crit > : > > > Sorry Fabien, don't mean to be a pest but if this was a simple problem > I've figure it myself. I don't understand why this code works erratically. > > Could you explain what you mean by use a flag with a couple of lines of > sample code. > > Regards > > richard > > > > >> Beno?t Minisini wrote: > >> > >>> Le 08/05/2013 02:03, Richard Terry a ?crit : > >>> > >>> > >>>> Hi List, > >>>> > >>>> > >>>> > >>> > ... > >>> > > >>> > >>> > >>>> However, lets say I want to popup a menu of the letters collection: > >>>> > >>>> If I right mouse click on the list to bring up the menu the > >>>> cvwLetters_Menu event triggers, but if one inspects the cvwLetters > >>>> control itself in the IDE, the cvwLetters.item.key is null, however > the > >>>> cvwletters.selected[0] does contain the value one would expect to be > in > >>>> the cvwLetters.item.key. > >>>> > >>>> I've tried doing e.g cvwLetters.movecurrent() before popping up the > >>>> menu, this does not seem to make much difference. > >>>> > >>>> > >>> The Menu event is not an event managed by the ColumnView control, but > by > >>> its Control parent class. This is the reason why the Item property is > >>> not set during the Menu event handler. The Menu event is raised even if > >>> you don't click on an item. > >>> > >>> Normally, the Click event will be raised before the Menu event, and so > >>> you can store the key of the ColumnView.Item property during the Click > >>> event handler (which is a ColumnView event) to use it later during the > >>> Menu event handler. > >>> > >>> > >>> > >>>> Also I've a chronic problem trying to generate a columnview click > event > >>>> in code, with a similar outcome to the above - the item.key is not set > >>>> > >>>> > >>> The Item property *is* set during a Click event handler. What are you > >>> talking about with "generate a columnview click event"? > >>> > >>> > >>> > >> What I meant was this. Lets say you have loaded the columnview with > >> data. Now, if the user was sitting in front of the program and wanted to > >> select an item in the columnview, then he would click on the column > >> which one would then trap the event and do something with it. > >> > >> I often need to be able to emulate that in code, ie have the program do > >> the same thing. Doing this > >> > >> columnview1.Movefirst() > >> columnview1.item.selected = True > >> > >> will sometimes work ie this triggeres the columnview1_Select() routine > >> and any code associated with this. > >> > >> Hope this is clearer. > >> > >> Regards > >> > >> Richard > >> > >> Richard > >> > >> > >> > ------------------------------------------------------------------------------ > >> AlienVault Unified Security Management (USM) platform delivers complete > >> security visibility with the essential security capabilities. Easily and > >> efficiently configure, manage, and operate all of your security controls > >> from a single console and one unified framework. Download a free trial. > >> http://p.sf.net/sfu/alienvault_d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > ------------------------------------------------------------------------------ > > AlienVault Unified Security Management (USM) platform delivers complete > > security visibility with the essential security capabilities. Easily and > > efficiently configure, manage, and operate all of your security controls > > from a single console and one unified framework. Download a free trial. > > http://p.sf.net/sfu/alienvault_d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From introlinux at ...626... Thu May 16 10:48:59 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Thu, 16 May 2013 10:48:59 +0200 Subject: [Gambas-user] Controls with colorated background In-Reply-To: References: Message-ID: More datas. There is a mistake in my past message. I found a PC with gambas 3.3.4 where background was white. Look at the attachment. 2013/5/15 Antonio S?nchez > > I have just register to the mailing list because I was looking for > information about this problem. I don't know if it's exactly the same > problem that has geaplane, we have this color problem since 3.2 version > and ONLY with the gridview. > > I attach some screenshots. > > > Debian Wheezy/Sid with 3.4.1 gambas version. > > -------------- next part -------------- A non-text attachment was scrubbed... Name: version334.png Type: image/png Size: 70625 bytes Desc: not available URL: From gambas at ...1... Thu May 16 11:05:15 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 16 May 2013 11:05:15 +0200 Subject: [Gambas-user] Controls with colorated background In-Reply-To: References: Message-ID: <5194A14B.2080709@...1...> Le 16/05/2013 10:48, Antonio S?nchez a ?crit : > More datas. There is a mistake in my past message. I found a PC with gambas > 3.3.4 where background was white. > > Look at the attachment. > > > 2013/5/15 Antonio S?nchez > >> >> I have just register to the mailing list because I was looking for >> information about this problem. I don't know if it's exactly the same >> problem that has geaplane, we have this color problem since 3.2 version >> and ONLY with the gridview. >> >> I attach some screenshots. >> >> >> Debian Wheezy/Sid with 3.4.1 gambas version. >> Since Gambas 3.3.0, a GridView highlights a column when it is sorted. Since Gambas 3.4.0, the column is not highlighted if it is the only one column in the GridView. So you have to upgrage to Gambas >= 3.4.0 to get the fix. Regards, -- Beno?t Minisini From introlinux at ...626... Thu May 16 14:14:20 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Thu, 16 May 2013 14:14:20 +0200 Subject: [Gambas-user] Controls with colorated background In-Reply-To: <5194A14B.2080709@...1...> References: <5194A14B.2080709@...1...> Message-ID: I don't understand what you mean. Background white is ok (any color selected in properties), so 3.3.4 version is good. If I upgrade to 3.4.1, I get bad blur orange background (in the same case, any color selected for background). 2013/5/16 Beno?t Minisini > Le 16/05/2013 10:48, Antonio S?nchez a ?crit : > > More datas. There is a mistake in my past message. I found a PC with > gambas > > 3.3.4 where background was white. > > > > Look at the attachment. > > > > > > 2013/5/15 Antonio S?nchez > > > >> > >> I have just register to the mailing list because I was looking for > >> information about this problem. I don't know if it's exactly the same > >> problem that has geaplane, we have this color problem since 3.2 version > >> and ONLY with the gridview. > >> > >> I attach some screenshots. > >> > >> > >> Debian Wheezy/Sid with 3.4.1 gambas version. > >> > > > Since Gambas 3.3.0, a GridView highlights a column when it is sorted. > > Since Gambas 3.4.0, the column is not highlighted if it is the only one > column in the GridView. > > So you have to upgrage to Gambas >= 3.4.0 to get the fix. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Thu May 16 16:23:27 2013 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 16 May 2013 08:23:27 -0600 Subject: [Gambas-user] Controls with colorated background In-Reply-To: References: <5194A14B.2080709@...1...> Message-ID: Antonio, It could be the theme you're using. Change themes and see if you still get the same behaviour. If the colour on the control changes regardless of the theme you might have to specify a white background on the gridview Regards, Dimitris On Thu, May 16, 2013 at 6:14 AM, Antonio S?nchez wrote: > I don't understand what you mean. Background white is ok (any color > selected in properties), so 3.3.4 version is good. If I upgrade to 3.4.1, I > get bad blur orange background (in the same case, any color selected for > background). > > > 2013/5/16 Beno?t Minisini > > > Le 16/05/2013 10:48, Antonio S?nchez a ?crit : > > > More datas. There is a mistake in my past message. I found a PC with > > gambas > > > 3.3.4 where background was white. > > > > > > Look at the attachment. > > > > > > > > > 2013/5/15 Antonio S?nchez > > > > > >> > > >> I have just register to the mailing list because I was looking for > > >> information about this problem. I don't know if it's exactly the same > > >> problem that has geaplane, we have this color problem since 3.2 > version > > >> and ONLY with the gridview. > > >> > > >> I attach some screenshots. > > >> > > >> > > >> Debian Wheezy/Sid with 3.4.1 gambas version. > > >> > > > > > > Since Gambas 3.3.0, a GridView highlights a column when it is sorted. > > > > Since Gambas 3.4.0, the column is not highlighted if it is the only one > > column in the GridView. > > > > So you have to upgrage to Gambas >= 3.4.0 to get the fix. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > AlienVault Unified Security Management (USM) platform delivers complete > > security visibility with the essential security capabilities. Easily and > > efficiently configure, manage, and operate all of your security controls > > from a single console and one unified framework. Download a free trial. > > http://p.sf.net/sfu/alienvault_d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Thu May 16 17:39:49 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 16 May 2013 17:39:49 +0200 Subject: [Gambas-user] File extensions Message-ID: <1368718789.5837.9.camel@...3024...> Hi all, I'm trying to achieve something but have no idea even where to start looking. Let's say I have a gambas3 application named MyFileMaker The application MyFileMaker saves files with extension .myfile What I want to achieve is when double clicking a .myfile for application MyFileMaker to open with the double clicked .myfile 1. How does my application know it is opened because a .myfile was double clicked instead of opened from menu as usual as it has to act differently? 2. How does the system know that a .myfile needs to be opened with MyFileMaker? 3. How do I give the .myfile their own icon, meaning how does the system know that when there is a .myfile it has to use an icon I provided? This all needs to work when a end user installs MyFileMaker, so: 4. What do I need to do when making a package. Are there any options that need to be set in the packaging wizard and how do they need to be set? Any hint or link to more information would be welcome. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas.fr at ...626... Thu May 16 17:51:33 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 16 May 2013 17:51:33 +0200 Subject: [Gambas-user] Controls with colorated background In-Reply-To: References: <5194A14B.2080709@...1...> Message-ID: On all the grid? Le 16 mai 2013 14:15, "Antonio S?nchez" a ?crit : > I don't understand what you mean. Background white is ok (any color > selected in properties), so 3.3.4 version is good. If I upgrade to 3.4.1, I > get bad blur orange background (in the same case, any color selected for > background). > > > 2013/5/16 Beno?t Minisini > > > Le 16/05/2013 10:48, Antonio S?nchez a ?crit : > > > More datas. There is a mistake in my past message. I found a PC with > > gambas > > > 3.3.4 where background was white. > > > > > > Look at the attachment. > > > > > > > > > 2013/5/15 Antonio S?nchez > > > > > >> > > >> I have just register to the mailing list because I was looking for > > >> information about this problem. I don't know if it's exactly the same > > >> problem that has geaplane, we have this color problem since 3.2 > version > > >> and ONLY with the gridview. > > >> > > >> I attach some screenshots. > > >> > > >> > > >> Debian Wheezy/Sid with 3.4.1 gambas version. > > >> > > > > > > Since Gambas 3.3.0, a GridView highlights a column when it is sorted. > > > > Since Gambas 3.4.0, the column is not highlighted if it is the only one > > column in the GridView. > > > > So you have to upgrage to Gambas >= 3.4.0 to get the fix. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > AlienVault Unified Security Management (USM) platform delivers complete > > security visibility with the essential security capabilities. Easily and > > efficiently configure, manage, and operate all of your security controls > > from a single console and one unified framework. Download a free trial. > > http://p.sf.net/sfu/alienvault_d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From introlinux at ...626... Thu May 16 21:10:22 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Thu, 16 May 2013 21:10:22 +0200 Subject: [Gambas-user] Controls with colorated background In-Reply-To: References: <5194A14B.2080709@...1...> Message-ID: It is independent of the theme you use. I didn't change anything in my system and with the new version started this behavior. All grid coloreated. I try to change theme in lxde and internal theme used in gambas, but it allways show me the same colors in grids. It occurs with all programs I tested, even gambas own (you can see it in the attachment). 2013/5/16 Fabien Bodard > On all the grid? > Le 16 mai 2013 14:15, "Antonio S?nchez" a ?crit : > > > I don't understand what you mean. Background white is ok (any color > > selected in properties), so 3.3.4 version is good. If I upgrade to > 3.4.1, I > > get bad blur orange background (in the same case, any color selected for > > background). > > > > > > 2013/5/16 Beno?t Minisini > > > > > Le 16/05/2013 10:48, Antonio S?nchez a ?crit : > > > > More datas. There is a mistake in my past message. I found a PC with > > > gambas > > > > 3.3.4 where background was white. > > > > > > > > Look at the attachment. > > > > > > > > > > > > 2013/5/15 Antonio S?nchez > > > > > > > >> > > > >> I have just register to the mailing list because I was looking for > > > >> information about this problem. I don't know if it's exactly the > same > > > >> problem that has geaplane, we have this color problem since 3.2 > > version > > > >> and ONLY with the gridview. > > > >> > > > >> I attach some screenshots. > > > >> > > > >> > > > >> Debian Wheezy/Sid with 3.4.1 gambas version. > > > >> > > > > > > > > > Since Gambas 3.3.0, a GridView highlights a column when it is sorted. > > > > > > Since Gambas 3.4.0, the column is not highlighted if it is the only one > > > column in the GridView. > > > > > > So you have to upgrage to Gambas >= 3.4.0 to get the fix. > > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > AlienVault Unified Security Management (USM) platform delivers complete > > > security visibility with the essential security capabilities. Easily > and > > > efficiently configure, manage, and operate all of your security > controls > > > from a single console and one unified framework. Download a free trial. > > > http://p.sf.net/sfu/alienvault_d2d > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > AlienVault Unified Security Management (USM) platform delivers complete > > security visibility with the essential security capabilities. Easily and > > efficiently configure, manage, and operate all of your security controls > > from a single console and one unified framework. Download a free trial. > > http://p.sf.net/sfu/alienvault_d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-grid.png Type: image/png Size: 68874 bytes Desc: not available URL: From bbruen at ...2308... Fri May 17 01:08:38 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 17 May 2013 08:38:38 +0930 Subject: [Gambas-user] File extensions In-Reply-To: <1368718789.5837.9.camel@...3024...> References: <1368718789.5837.9.camel@...3024...> Message-ID: <1368745719.5051.26.camel@...2688...> On Thu, 2013-05-16 at 17:39 +0200, Willy Raets wrote: > Hi all, > > I'm trying to achieve something but have no idea even where to start > looking. > > Let's say I have a gambas3 application named MyFileMaker > > The application MyFileMaker saves files with extension .myfile > > What I want to achieve is when double clicking a .myfile for application > MyFileMaker to open with the double clicked .myfile > > 1. How does my application know it is opened because a .myfile was > double clicked instead of opened from menu as usual as it has to act > differently? > 2. How does the system know that a .myfile needs to be opened with > MyFileMaker? > 3. How do I give the .myfile their own icon, meaning how does the system > know that when there is a .myfile it has to use an icon I provided? > > This all needs to work when a end user installs MyFileMaker, so: > > 4. What do I need to do when making a package. Are there any options > that need to be set in the packaging wizard and how do they need to be > set? > > Any hint or link to more information would be welcome. > 2. This is entirely dependent on the end users desktop manager (or the file manager application if the clicking was done in there.) Clicking on a desktop icon uses the DM "launcher" service to activate the default "Open with" use case. 3. Again, depends on the DM in use. For example, LXDE uses mimetypes to determine the icon for the file when it is on the desktop (and in the file manager). 1. No idea. 4. I can think of several ways that this could be done, none of them easy. I don't know for sure but maybe some sort of post install script that creates the correct mimetype infrastrucure, depending on the deployment DM might be an idea. cheers Bruce From gambas at ...1... Fri May 17 01:18:41 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 17 May 2013 01:18:41 +0200 Subject: [Gambas-user] File extensions In-Reply-To: <1368718789.5837.9.camel@...3024...> References: <1368718789.5837.9.camel@...3024...> Message-ID: <51956951.4090206@...1...> Le 16/05/2013 17:39, Willy Raets a ?crit : > Hi all, > > I'm trying to achieve something but have no idea even where to start > looking. > > Let's say I have a gambas3 application named MyFileMaker > > The application MyFileMaker saves files with extension .myfile > > What I want to achieve is when double clicking a .myfile for application > MyFileMaker to open with the double clicked .myfile > > 1. How does my application know it is opened because a .myfile was > double clicked instead of opened from menu as usual as it has to act > differently? > 2. How does the system know that a .myfile needs to be opened with > MyFileMaker? > 3. How do I give the .myfile their own icon, meaning how does the system > know that when there is a .myfile it has to use an icon I provided? > > This all needs to work when a end user installs MyFileMaker, so: > > 4. What do I need to do when making a package. Are there any options > that need to be set in the packaging wizard and how do they need to be > set? > > Any hint or link to more information would be welcome. > The 6th step of the wizard packager allows you to define which mimetypes are associated with your program. Alas, there is nothing to define a new mimetype, which is needed to make the system aware of the *.myfile extension. All the information is there: http://freedesktop.org/wiki/Specifications/shared-mime-info-spec A new mime type can be defined by running the 'xdg-mime install xxx.xml' command where 'xxx.xml' is an XML file that defines how to identify the mime type. The syntax of that xml file is defined there: http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.18.html#id2604543 Regards, -- Beno?t Minisini From shanep1967 at ...169... Fri May 17 05:47:32 2013 From: shanep1967 at ...169... (Shane) Date: Fri, 17 May 2013 13:47:32 +1000 Subject: [Gambas-user] Gui Bugs Message-ID: <5195A854.3070605@...169...> See Attached Images -------------- next part -------------- A non-text attachment was scrubbed... Name: Gui Bug1.png Type: image/png Size: 70116 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gui Bug2.png Type: image/png Size: 79162 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gui Bug3 .png Type: image/png Size: 97071 bytes Desc: not available URL: From willy at ...2734... Fri May 17 19:52:30 2013 From: willy at ...2734... (Willy Raets) Date: Fri, 17 May 2013 19:52:30 +0200 Subject: [Gambas-user] File extensions In-Reply-To: <51956951.4090206@...1...> References: <1368718789.5837.9.camel@...3024...> <51956951.4090206@...1...> Message-ID: <1368813150.3094.29.camel@...3024...> On Fri, 2013-05-17 at 01:18 +0200, Beno?t Minisini wrote: > Le 16/05/2013 17:39, Willy Raets a ?crit : > > Hi all, > > > > I'm trying to achieve something but have no idea even where to start > > looking. > > > > Let's say I have a gambas3 application named MyFileMaker > > > > The application MyFileMaker saves files with extension .myfile > > > > What I want to achieve is when double clicking a .myfile for application > > MyFileMaker to open with the double clicked .myfile > > > > 1. How does my application know it is opened because a .myfile was > > double clicked instead of opened from menu as usual as it has to act > > differently? > > 2. How does the system know that a .myfile needs to be opened with > > MyFileMaker? > > 3. How do I give the .myfile their own icon, meaning how does the system > > know that when there is a .myfile it has to use an icon I provided? > > > > This all needs to work when a end user installs MyFileMaker, so: > > > > 4. What do I need to do when making a package. Are there any options > > that need to be set in the packaging wizard and how do they need to be > > set? > > > > Any hint or link to more information would be welcome. > > > > The 6th step of the wizard packager allows you to define which mimetypes > are associated with your program. > > Alas, there is nothing to define a new mimetype, which is needed to make > the system aware of the *.myfile extension. > > All the information is there: > > http://freedesktop.org/wiki/Specifications/shared-mime-info-spec > > A new mime type can be defined by running the 'xdg-mime install xxx.xml' > command where 'xxx.xml' is an XML file that defines how to identify the > mime type. > > The syntax of that xml file is defined there: > > http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.18.html#id2604543 > > Regards, This has been really helpful information, thanks. 1. Implemented gb.args to get the path and file name that needs opening 2. Added mimetype information to packager 3. Have a myapp.xml file set in place in packager (I chose for /usr/local/share/mime/packages/) All I need to do know is code that on first run the myapp.xml file gets added as mimetype All that needs to be done is: sudo xdg-mime install /usr/local/share/mime/packages/myapp.xml --novendor OR sudo update-mime-database /usr/local/share/mime/ This last option I found in the documentation and needs the xml file to be located in /usr/local/share/mime/packages/ I'm almost there, one more thing: Is there a likewise solution to handle the icon being associated with the new mimetype. Where do these icons have to be placed and how to tell the system to use them? P.S. If I look at all this is could be implemented in the packager. If mime type defined in Gambas package wizard 6th step give option to make or browse for the xml file in packager wizard and add it automatically to Extra files in step 8 of package wizerd to be copied to to /usr/local/share/mime/packages/ upon installing application. Next have the packager (if mimetype conditions are met) make a script to be run after install doing a update-mime-database /usr/local/share/mime/ All xml files residing in /usr/local/share/mime/packages/ will have their mimetypes registered, so you don't even need to know the name of the .xml with above command. Could something like that be done as it would kind of automate the mimetype configuration during packaging? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Fri May 17 19:58:23 2013 From: willy at ...2734... (Willy Raets) Date: Fri, 17 May 2013 19:58:23 +0200 Subject: [Gambas-user] File extensions In-Reply-To: <1368745719.5051.26.camel@...2688...> References: <1368718789.5837.9.camel@...3024...> <1368745719.5051.26.camel@...2688...> Message-ID: <1368813503.3094.34.camel@...3024...> On Fri, 2013-05-17 at 08:38 +0930, Bruce wrote: > On Thu, 2013-05-16 at 17:39 +0200, Willy Raets wrote: > > Hi all, > > > > I'm trying to achieve something but have no idea even where to start > > looking. > > > > Let's say I have a gambas3 application named MyFileMaker > > > > The application MyFileMaker saves files with extension .myfile > > > > What I want to achieve is when double clicking a .myfile for application > > MyFileMaker to open with the double clicked .myfile > > > > 1. How does my application know it is opened because a .myfile was > > double clicked instead of opened from menu as usual as it has to act > > differently? > > 2. How does the system know that a .myfile needs to be opened with > > MyFileMaker? > > 3. How do I give the .myfile their own icon, meaning how does the system > > know that when there is a .myfile it has to use an icon I provided? > > > > This all needs to work when a end user installs MyFileMaker, so: > > > > 4. What do I need to do when making a package. Are there any options > > that need to be set in the packaging wizard and how do they need to be > > set? > > > > Any hint or link to more information would be welcome. > > > > 2. This is entirely dependent on the end users desktop manager (or the > file manager application if the clicking was done in there.) Clicking > on a desktop icon uses the DM "launcher" service to activate the default > "Open with" use case. > 3. Again, depends on the DM in use. For example, LXDE uses mimetypes to > determine the icon for the file when it is on the desktop (and in the > file manager). > 1. No idea. Public OpenProjectPath As String Public OpenByArgs As String Public Sub Main() Dim sArgsString As String Args.Begin(Application.Name & " ") Args.End() For Each sArgsString In Args.End() If Not IsNull(sArgsString) Then OpenProjectPath = sArgsString OpenByArgs = True Endif Next FMain.Show End That is how I did it thanks to the hint of Fabien. > 4. I can think of several ways that this could be done, none of them > easy. I don't know for sure but maybe some sort of post install script > that creates the correct mimetype infrastrucure, depending on the > deployment DM might be an idea. Check Beno?ts suggestion and my answer to see it actually isn't that hard:-) > > cheers > Bruce > Thanks. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Fri May 17 20:11:39 2013 From: willy at ...2734... (Willy Raets) Date: Fri, 17 May 2013 20:11:39 +0200 Subject: [Gambas-user] File extensions In-Reply-To: <1368813503.3094.34.camel@...3024...> References: <1368718789.5837.9.camel@...3024...> <1368745719.5051.26.camel@...2688...> <1368813503.3094.34.camel@...3024...> Message-ID: <1368814299.3094.35.camel@...3024...> On Fri, 2013-05-17 at 19:58 +0200, Willy Raets wrote: > On Fri, 2013-05-17 at 08:38 +0930, Bruce wrote: > > On Thu, 2013-05-16 at 17:39 +0200, Willy Raets wrote: > > > Hi all, > > > > > > I'm trying to achieve something but have no idea even where to start > > > looking. > > > > > > Let's say I have a gambas3 application named MyFileMaker > > > > > > The application MyFileMaker saves files with extension .myfile > > > > > > What I want to achieve is when double clicking a .myfile for application > > > MyFileMaker to open with the double clicked .myfile > > > > > > 1. How does my application know it is opened because a .myfile was > > > double clicked instead of opened from menu as usual as it has to act > > > differently? > > > 2. How does the system know that a .myfile needs to be opened with > > > MyFileMaker? > > > 3. How do I give the .myfile their own icon, meaning how does the system > > > know that when there is a .myfile it has to use an icon I provided? > > > > > > This all needs to work when a end user installs MyFileMaker, so: > > > > > > 4. What do I need to do when making a package. Are there any options > > > that need to be set in the packaging wizard and how do they need to be > > > set? > > > > > > Any hint or link to more information would be welcome. > > > > > > > 2. This is entirely dependent on the end users desktop manager (or the > > file manager application if the clicking was done in there.) Clicking > > on a desktop icon uses the DM "launcher" service to activate the default > > "Open with" use case. > > 3. Again, depends on the DM in use. For example, LXDE uses mimetypes to > > determine the icon for the file when it is on the desktop (and in the > > file manager). > > 1. No idea. > > Public OpenProjectPath As String > Public OpenByArgs As String TYPO -> Needs to be: Public OpenByArgs As Boolean > > Public Sub Main() > > Dim sArgsString As String > Args.Begin(Application.Name & " ") > Args.End() > For Each sArgsString In Args.End() > If Not IsNull(sArgsString) Then > OpenProjectPath = sArgsString > OpenByArgs = True > Endif > Next > FMain.Show > > End > > That is how I did it thanks to the hint of Fabien. > > > 4. I can think of several ways that this could be done, none of them > > easy. I don't know for sure but maybe some sort of post install script > > that creates the correct mimetype infrastrucure, depending on the > > deployment DM might be an idea. > > Check Beno?ts suggestion and my answer to see it actually isn't that > hard:-) > > > > > > cheers > > Bruce > > > Thanks. > -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Sat May 18 01:38:43 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 18 May 2013 01:38:43 +0200 Subject: [Gambas-user] File extensions In-Reply-To: <1368813150.3094.29.camel@...3024...> References: <1368718789.5837.9.camel@...3024...> <51956951.4090206@...1...> <1368813150.3094.29.camel@...3024...> Message-ID: <1368833923.4810.6.camel@...3024...> On Fri, 2013-05-17 at 19:52 +0200, Willy Raets wrote: > On Fri, 2013-05-17 at 01:18 +0200, Beno?t Minisini wrote: > > Le 16/05/2013 17:39, Willy Raets a ?crit : > > > Hi all, > > > > > > I'm trying to achieve something but have no idea even where to start > > > looking. > > > > > > Let's say I have a gambas3 application named MyFileMaker > > > > > > The application MyFileMaker saves files with extension .myfile > > > > > > What I want to achieve is when double clicking a .myfile for application > > > MyFileMaker to open with the double clicked .myfile > > > > > > 1. How does my application know it is opened because a .myfile was > > > double clicked instead of opened from menu as usual as it has to act > > > differently? > > > 2. How does the system know that a .myfile needs to be opened with > > > MyFileMaker? > > > 3. How do I give the .myfile their own icon, meaning how does the system > > > know that when there is a .myfile it has to use an icon I provided? > > > > > > This all needs to work when a end user installs MyFileMaker, so: > > > > > > 4. What do I need to do when making a package. Are there any options > > > that need to be set in the packaging wizard and how do they need to be > > > set? > > > > > > Any hint or link to more information would be welcome. > > > > > > > The 6th step of the wizard packager allows you to define which mimetypes > > are associated with your program. > > > > Alas, there is nothing to define a new mimetype, which is needed to make > > the system aware of the *.myfile extension. > > > > All the information is there: > > > > http://freedesktop.org/wiki/Specifications/shared-mime-info-spec > > > > A new mime type can be defined by running the 'xdg-mime install xxx.xml' > > command where 'xxx.xml' is an XML file that defines how to identify the > > mime type. > > > > The syntax of that xml file is defined there: > > > > http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.18.html#id2604543 > > > > Regards, > > This has been really helpful information, thanks. > > 1. Implemented gb.args to get the path and file name that needs opening > 2. Added mimetype information to packager > 3. Have a myapp.xml file set in place in packager (I chose > for /usr/local/share/mime/packages/) > > All I need to do know is code that on first run the myapp.xml file gets > added as mimetype > > All that needs to be done is: > sudo xdg-mime install /usr/local/share/mime/packages/myapp.xml > --novendor > OR > sudo update-mime-database /usr/local/share/mime/ > > This last option I found in the documentation and needs the xml file to > be located in /usr/local/share/mime/packages/ > > I'm almost there, one more thing: > > Is there a likewise solution to handle the icon being associated with > the new mimetype. > Where do these icons have to be placed and how to tell the system to use > them? I found this: sudo xdg-icon-resource install --context mimetypes --size 48 appicon.png application/fdap Where application/fdap is the mimetype to connect the icon to and appicon.png is a 48x48 icon I was wondering where does Gambas store the Project Icon after installation (or does it reside inside the gambas executable). If so what would be the proper location to copy the icon.png to before running the 'xdg-icon-recourse install' mentioned a above. Any suggestions what is appropriate location for icons according to linux standards, as I can't find any on Google. Maybe I'm using the wrong search string, tried all kinds. > > > P.S. > If I look at all this is could be implemented in the packager. > If mime type defined in Gambas package wizard 6th step give option to > make or browse for the xml file in packager wizard and add it > automatically to Extra files in step 8 of package wizerd to be copied to > to /usr/local/share/mime/packages/ upon installing application. > Next have the packager (if mimetype conditions are met) make a script to > be run after install doing a > update-mime-database /usr/local/share/mime/ > > All xml files residing in /usr/local/share/mime/packages/ will have > their mimetypes registered, so you don't even need to know the name of > the .xml with above command. > > Could something like that be done as it would kind of automate the > mimetype configuration during packaging? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From sundarjeyachandran at ...626... Sat May 18 04:12:28 2013 From: sundarjeyachandran at ...626... (J Sundar) Date: Sat, 18 May 2013 07:42:28 +0530 Subject: [Gambas-user] How to include folder/ files in to project directory. Message-ID: Is it possible to include folder (which include lot of files) in to the project directory? This folder will have all supporting files required to run my application. The same directory is required to copied in to other folder while running the application. When i run the program from ide it copies folder located in project root directory to desired directory. However, after compilation it does no do the same. Any help is appreciated. From rterry at ...1823... Sat May 18 07:53:51 2013 From: rterry at ...1823... (Richard Terry) Date: Sat, 18 May 2013 15:53:51 +1000 Subject: [Gambas-user] Gridview and wordwrapping/row heights (again) Message-ID: <5197176F.5050600@...1823...> HI List, I've looked up the list achives on this and found a number of mails, and it seems one should be able to get the grid cells contents to wordwrap and the row height to expand to the right height to see all the text. However I"m unsuccessful, having tried eg the cell wordwrap property =true. Mention was made somewhere to set the rowheight to -1. No combination works for me. Is this possible, if so any change of example My gambas3 version is the latest from the Kendek ppa. Thanks richard From gambas.fr at ...626... Sat May 18 12:54:03 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 18 May 2013 12:54:03 +0200 Subject: [Gambas-user] How to include folder/ files in to project directory. In-Reply-To: References: Message-ID: In a Linux application you can store it in the .local/myapp user folder Le 18 mai 2013 04:13, "J Sundar" a ?crit : > Is it possible to include folder (which include lot of files) in to the > project directory? This folder will have all supporting files required to > run my application. The same directory is required to copied in to other > folder while running the application. > > When i run the program from ide it copies folder located in project root > directory to desired directory. However, after compilation it does no do > the same. > > Any help is appreciated. > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat May 18 12:59:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 18 May 2013 12:59:29 +0200 Subject: [Gambas-user] How to include folder/ files in to project directory. In-Reply-To: References: Message-ID: <51975F11.70709@...1...> Le 18/05/2013 04:12, J Sundar a ?crit : > Is it possible to include folder (which include lot of files) in to the > project directory? This folder will have all supporting files required to > run my application. The same directory is required to copied in to other > folder while running the application. At the moment, you must do that by hand with a file manager (just put the folder directly into the project directory). The IDE is not yet able to copy an entire directory. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 19 14:50:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 May 2013 14:50:27 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: References: <5191EEA9.7090102@...169...> Message-ID: <5198CA93.2010709@...1...> Le 14/05/2013 10:03, Jorge Carri?n a ?crit : > I'm doing a Filezilla's like FTP Client and still can't find the way to do > that... but still working on it. > If yo find the way, please let me Know... > > Regards.* > * > * > * > Do you mean that you need a periodic event sent while a file is uploaded (or downloaded) so that you can display the progress of the upload (or download)? -- Beno?t Minisini From gambas at ...1... Sun May 19 14:53:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 May 2013 14:53:29 +0200 Subject: [Gambas-user] Gui Bugs In-Reply-To: <5195A854.3070605@...169...> References: <5195A854.3070605@...169...> Message-ID: <5198CB49.1070605@...1...> Le 17/05/2013 05:47, Shane a ?crit : Which version of Gambas do you use? On which system? With which desktop? With which widget theme? Click on the "system information" menu in the IDE to get the info. -- Beno?t Minisini From taboege at ...626... Sun May 19 15:14:48 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 19 May 2013 15:14:48 +0200 Subject: [Gambas-user] Default TrayIcon.Picture Message-ID: <20130519131448.GA597@...2774...> Hi, the default TrayIcon.Picture is the Gambas2 logo which doesn't match the Gambas version anymore. Joke or remnant? Regards, Tobi From willy at ...2734... Sun May 19 16:35:00 2013 From: willy at ...2734... (Willy Raets) Date: Sun, 19 May 2013 16:35:00 +0200 Subject: [Gambas-user] File extensions In-Reply-To: <1368833923.4810.6.camel@...3024...> References: <1368718789.5837.9.camel@...3024...> <51956951.4090206@...1...> <1368813150.3094.29.camel@...3024...> <1368833923.4810.6.camel@...3024...> Message-ID: <1368974100.2275.30.camel@...3024...> On Sat, 2013-05-18 at 01:38 +0200, Willy Raets wrote: > On Fri, 2013-05-17 at 19:52 +0200, Willy Raets wrote: > > On Fri, 2013-05-17 at 01:18 +0200, Beno?t Minisini wrote: > > > Le 16/05/2013 17:39, Willy Raets a ?crit : > > > > Hi all, > > > > > > > > I'm trying to achieve something but have no idea even where to start > > > > looking. > > > > > > > > Let's say I have a gambas3 application named MyFileMaker > > > > > > > > The application MyFileMaker saves files with extension .myfile > > > > > > > > What I want to achieve is when double clicking a .myfile for application > > > > MyFileMaker to open with the double clicked .myfile > > > > > > > > 1. How does my application know it is opened because a .myfile was > > > > double clicked instead of opened from menu as usual as it has to act > > > > differently? > > > > 2. How does the system know that a .myfile needs to be opened with > > > > MyFileMaker? > > > > 3. How do I give the .myfile their own icon, meaning how does the system > > > > know that when there is a .myfile it has to use an icon I provided? > > > > > > > > This all needs to work when a end user installs MyFileMaker, so: > > > > > > > > 4. What do I need to do when making a package. Are there any options > > > > that need to be set in the packaging wizard and how do they need to be > > > > set? > > > > > > > > Any hint or link to more information would be welcome. > > > > > > > > > > The 6th step of the wizard packager allows you to define which mimetypes > > > are associated with your program. > > > > > > Alas, there is nothing to define a new mimetype, which is needed to make > > > the system aware of the *.myfile extension. > > > > > > All the information is there: > > > > > > http://freedesktop.org/wiki/Specifications/shared-mime-info-spec > > > > > > A new mime type can be defined by running the 'xdg-mime install xxx.xml' > > > command where 'xxx.xml' is an XML file that defines how to identify the > > > mime type. > > > > > > The syntax of that xml file is defined there: > > > > > > http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.18.html#id2604543 > > > > > > Regards, > > > > This has been really helpful information, thanks. > > > > 1. Implemented gb.args to get the path and file name that needs opening > > 2. Added mimetype information to packager > > 3. Have a myapp.xml file set in place in packager (I chose > > for /usr/local/share/mime/packages/) > > > > All I need to do know is code that on first run the myapp.xml file gets > > added as mimetype > > > > All that needs to be done is: > > sudo xdg-mime install /usr/local/share/mime/packages/myapp.xml > > --novendor > > OR > > sudo update-mime-database /usr/local/share/mime/ > > > > This last option I found in the documentation and needs the xml file to > > be located in /usr/local/share/mime/packages/ > > > > I'm almost there, one more thing: > > > > Is there a likewise solution to handle the icon being associated with > > the new mimetype. > > Where do these icons have to be placed and how to tell the system to use > > them? > > I found this: > > sudo xdg-icon-resource install --context mimetypes --size 48 appicon.png > application/fdap > > > Where application/fdap is the mimetype to connect the icon to and > appicon.png is a 48x48 icon > > I was wondering where does Gambas store the Project Icon after > installation (or does it reside inside the gambas executable). > > If so what would be the proper location to copy the icon.png to before > running the 'xdg-icon-recourse install' mentioned a above. > > Any suggestions what is appropriate location for icons according to > linux standards, as I can't find any on Google. Maybe I'm using the > wrong search string, tried all kinds. > > > > > > > P.S. > > If I look at all this is could be implemented in the packager. > > If mime type defined in Gambas package wizard 6th step give option to > > make or browse for the xml file in packager wizard and add it > > automatically to Extra files in step 8 of package wizerd to be copied to > > to /usr/local/share/mime/packages/ upon installing application. > > Next have the packager (if mimetype conditions are met) make a script to > > be run after install doing a > > update-mime-database /usr/local/share/mime/ > > > > All xml files residing in /usr/local/share/mime/packages/ will have > > their mimetypes registered, so you don't even need to know the name of > > the .xml with above command. > > > > Could something like that be done as it would kind of automate the > > mimetype configuration during packaging? > Some small mistakes in my last post but for a complete picture and future reference, here is how I did it. In Gambas IDE add a myapp.xml file to the hidden folder and a myapp.png (icon): Content of xml file: MyApp Projekt MyApp Project Proyecto MyApp MyApp projet MyApp Project You can add as many languages as you wish. The is important to connect the later installed icon to the .myapp files. In step 6 of package wizard add application/x-myapp to the mime types In step 8 of package wizard have myapp.xml copied to: /usr/local/share/mime/packages In step 8 of package wizard have myapp.png copied to: /usr/share/myapp/icons When application gets installed all will be set in place but no mimetypes will be installed. I implemented a setting App/FirstRun to check if application is run for first time. If so a form Register mimetype opens. Form Register mimetype has a TextBox named tbxPass -> to enter password a Button named btnRegister -> to register the mimetype and icon a TextArea named tarOutput -> to output progress a Button named btnClose -> to close the form The code for Form Register mimetype: ----- Private $hProcess As Process Private $bFound As Boolean Private MyIndex As Integer Public Sub Form_Open() Me.Center Me.Caption = Application.Title & " - Register application mime type." tbxPass.Clear tbxPass.SetFocus Me.TopOnly = True If IsNull(Settings["App/FirstRun"]) Then Me.Border = False Me.Background = Color.White Endif End Public Sub btnRegister_Click() Dim sCommand As String Dim iX As Integer btnClose.Enabled = False tarOutput.Clear Me.Refresh Wait 0.15 If tbxPass.Text = Null Then Message.Warning("First enter a password") btnClose.Enabled = True tbxPass.SetFocus Else tarOutput.Clear For iX = 0 To 1 If iX = 0 Then MyIndex = iX sCommand = "update-mime-database /usr/local/share/mime/" tarOutput.Text = "Starting registration of MyApp project mime type...\n " Wait 0.05 tarOutput.Text &= "Running update-mime-database /usr/local/share/mime/...\n " Wait 0.05 $hProcess = Exec [System.Shell, "-c", "sudo -s " & sCommand] For Input Output As "Process" Wait 0.25 $hProcess.Close Wait 0.05 Else MyIndex = iX sCommand = "xdg-icon-resource install --context mimetypes --size 48 /usr/share/myapp/icons/myapp.png application-x-myapp" tarOutput.Text &= "Starting registration of MyApp project icon...\n " Wait 0.05 tarOutput.Text &= "Running xdg-icon-resource install --context mimetypes --size 48 myapp.png application-x-myapp...\n " Wait 0.05 $hProcess = Exec [System.Shell, "-c", "sudo -s " & sCommand] For Input Output As "Process" Wait 0.25 $hProcess.Close Wait 0.05 Endif Next Endif Finally btnClose.Enabled = True btnRegister.Enabled = False btnClose.SetFocus Catch Error.Clear End Public Sub Process_Read() Dim sLine As String Dim iB As Integer sLine = Read #Last, -256 If Not $bFound Then If Len(sLine) <> 0 Then iB = InStr(sLine, "password for", 1) If iB > 1 Then tarOutput.Text &= "Passing password...\n" tarOutput.Insert(sLine & "\n") Print #$hProcess, tbxPass.Text $bFound = True Else tarOutput.Insert(sLine) Endif Endif Else tarOutput.Insert(sLine) Endif End Public Sub Process_Error(MyError As String) If Not IsNull($hProcess) Then $hProcess.Kill tarOutput.Text &= "Terminated registration with reason:\n" & MyError & "\n" Else tarOutput.Text &= MyError & "\n" Endif End Public Sub Process_Kill() If MyIndex = 0 Then tarOutput.Text &= "Ended registration of MyApp project mime type...\n\n" Else tarOutput.Text &= "\nEnded registration of MyApp project icon..." Endif End Public Sub btnClose_Click() Me.Close End ----- This should result in all files with extension .myapp to have the myapp.png as icon in File Manager. Also the files will be marked as MyApp Project. Double clicking them will start application MyApp. Always first install the mimetype sudo update-mime-database /usr/local/share/mime/ Before installing the icon: sudo xdg-icon-resource install --context mimetypes --size 48 /usr/share/myapp/icons/myapp.png application-x-myapp as done in above code. Hope this can be useful for others as well. Enjoy... -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Sun May 19 17:12:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 May 2013 17:12:50 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: <5191EEA9.7090102@...169...> References: <5191EEA9.7090102@...169...> Message-ID: <5198EBF2.1010701@...1...> Le 14/05/2013 09:58, Shane a ?crit : > trying to use the ftp client but how do you monitor the status of files > uploads etc? > In revision #5663, I have added a Progress event to the FtpClient class, that is raised regularly while something is uploaded or downloaded. And I added four new properties to get the information about the progress: Downloaded, Uploaded, TotalDownloaded and TotalUploaded. I think they return byte counts, but the libcurl documentation is not very clear. Please tell me if it fits your needs and works for you! Note that HttpClient does not raise the event yet, but it will. Regards, -- Beno?t Minisini From shordi at ...626... Sun May 19 19:18:32 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sun, 19 May 2013 19:18:32 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: <5198EBF2.1010701@...1...> References: <5191EEA9.7090102@...169...> <5198EBF2.1010701@...1...> Message-ID: Wow! Thanks Benoit. I've done a progress bar in downloads using the stat of the file. But I can't reach de upload progress. It's a great work. In the other hand it's usefull to know the conversation with the server and the output of ftp commands as LIST... I'm nos sure that it's imposible get that or its my fault. At the moment I'm getting de LIST by downloading the URL of directory... but it's not very clear... Attaching how the project is at the moment. Regards 2013/5/19 Beno?t Minisini > Le 14/05/2013 09:58, Shane a ?crit : > > trying to use the ftp client but how do you monitor the status of files > > uploads etc? > > > > In revision #5663, I have added a Progress event to the FtpClient class, > that is raised regularly while something is uploaded or downloaded. > > And I added four new properties to get the information about the > progress: Downloaded, Uploaded, TotalDownloaded and TotalUploaded. I > think they return byte counts, but the libcurl documentation is not very > clear. > > Please tell me if it fits your needs and works for you! > > Note that HttpClient does not raise the event yet, but it will. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: gbftp.tar.gz Type: application/x-gzip Size: 116632 bytes Desc: not available URL: From gambas at ...1... Sun May 19 19:22:23 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 19 May 2013 19:22:23 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: References: <5191EEA9.7090102@...169...> <5198EBF2.1010701@...1...> Message-ID: <51990A4F.50709@...1...> Le 19/05/2013 19:18, Jorge Carri?n a ?crit : > Wow! Thanks Benoit. > I've done a progress bar in downloads using the stat of the file. But I > can't reach de upload progress. It's a great work. > In the other hand it's usefull to know the conversation with the server and > the output of ftp commands as LIST... I'm nos sure that it's imposible get > that or its my fault. > At the moment I'm getting de LIST by downloading the URL of directory... > but it's not very clear... > Attaching how the project is at the moment. > Regards > > For the 'LIST' command, this is how libcurl works: it emits the LIST command when you tell him to download an url that is actually a directory and not a file. -- Beno?t Minisini From gambas at ...2524... Sun May 19 19:32:48 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 19 May 2013 17:32:48 +0000 Subject: [Gambas-user] Issue 431 in gambas: Packaging tool does not support copyleft-next license Message-ID: <0-6813199134517018827-16253775720232883088-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 431 by smkel... at ...626...: Packaging tool does not support copyleft-next license http://code.google.com/p/gambas/issues/detail?id=431 1) The packaging tool does not support the copyleft-next license as an option. The latest version as of bug filing is available here: https://gitorious.org/copyleft-next/copyleft-next/blobs/raw/master/Releases/copyleft-next-0.3.0 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.1.1 Operating system: Linux / FreeBSD Distribution: Ubuntu Architecture: x86 GUI component: GTK+ Desktop used: Xfce 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Attempt to create a package. Select "Other license(s)". The wizard does not let you specify directly the license which requires post-wizard tampering. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Sun May 19 21:49:16 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sun, 19 May 2013 21:49:16 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: <51990A4F.50709@...1...> References: <5191EEA9.7090102@...169...> <5198EBF2.1010701@...1...> <51990A4F.50709@...1...> Message-ID: Yes, Benoit, that is what I am actually doing. I think that using your new features all will be fine. Regards. 2013/5/19 Beno?t Minisini > Le 19/05/2013 19:18, Jorge Carri?n a ?crit : > > Wow! Thanks Benoit. > > I've done a progress bar in downloads using the stat of the file. But I > > can't reach de upload progress. It's a great work. > > In the other hand it's usefull to know the conversation with the server > and > > the output of ftp commands as LIST... I'm nos sure that it's imposible > get > > that or its my fault. > > At the moment I'm getting de LIST by downloading the URL of directory... > > but it's not very clear... > > Attaching how the project is at the moment. > > Regards > > > > > > For the 'LIST' command, this is how libcurl works: it emits the LIST > command when you tell him to download an url that is actually a > directory and not a file. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep1967 at ...169... Mon May 20 03:31:31 2013 From: shanep1967 at ...169... (Shane) Date: Mon, 20 May 2013 11:31:31 +1000 Subject: [Gambas-user] Gui Bugs In-Reply-To: <5198CB49.1070605@...1...> References: <5195A854.3070605@...169...> <5198CB49.1070605@...1...> Message-ID: <51997CF3.8080902@...169...> On 19/05/13 22:53, Beno?t Minisini wrote: > Le 17/05/2013 05:47, Shane a ?crit : > > Which version of Gambas do you use? On which system? With which desktop? > With which widget theme? > > Click on the "system information" menu in the IDE to get the info. > [System] OperatingSystem=Linux Kernel=3.2.0-23-generic Architecture=x86_64 Distribution=Linux Mint 13 Maya Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3809M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Poppler=libpoppler.so.19.0.0 From sebikul at ...626... Mon May 20 04:44:48 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Sun, 19 May 2013 23:44:48 -0300 Subject: [Gambas-user] New gb.logging component Message-ID: Hey there! I just pushed the new component to the svn repository. It provides a flexible API for logging and tracking events while the software is running. It outputs to stdout by default, but you can simply point to a file when creating an instance of the Logger object. It provides 5 levels of severity, them being: Critical, Error, Warning, Info, Debug You can control the output by providing the minimum level required. For example, if the minimum level is Warning, only Warning, Error and Critical messages will be printed (or saved to the file) Another great feature is a flexible formatted output. When creating an instance, you can pass a string which will tell the logger how the string will be formatted. A single tag is represented as "$(TAG)". The default one is: [$(now)] [$(levelname)] [$(callLocation)] $(message) So, the message "Starting logger" would look like this: [05/20/2013 02:13:46.267] [WARNING] [MTest.Main.9] Starting logger The following tags are available as of now: $(message) : The message passed to the logger $(callLocation) : The full location of where the logger was called. In the form of FILE.FUNCTION.LINE (look above at the example line) $(callLine) : The line number where the logger was called. $(callFile) : The file name which called the logger $(callFunction) :The function which called the logger $(now) : A full date and time string, as returned by Now() $(date) : The date as returned by Date(Now) $(time) : The time as returned by Time(Now) $(ptimer) : The time elapsed since the application was started. ms of precision $(ptimerint) : Same as above, but only prints the elapsed time in seconds $(levelno) : The severity level of the message (integer) $(levelname) : The name of the severity level One of: CRITICAL,ERROR, WARNING,INFO,DEBUG $(version) : The version of the application $(gbversion) : The version of the Gambas interpreter $(host) : The system host name $(pid) : The process id of the running application Using it is pretty straightforward: Dim oDumb As New Logger oDumb("Starting logger") By default the component creates a hidden instance of the Logger class, just as the Settings component does, but i'm having trouble when performing the call. It's not a deal breaker, it only means you won't be able to call Logger(...) directly, but will need to create an instance and share it across your application. If you already have a logging module implemented and don't want to switch, you can still use the Formatter class and all the tags it comes with by simply calling Formatter(sMessage As String, sFormat As String, iLevel As Integer) Being sMessage the message you want to log, sFormat the formatting string and iLevel an integer value of the severity so 0=Critical and 4=Debug. Hope you find it useful. If you want any tags added, please let me know, or go ahead and implement them yourself!! It's not hard, i promise! From sundarjeyachandran at ...626... Mon May 20 07:00:19 2013 From: sundarjeyachandran at ...626... (J Sundar) Date: Mon, 20 May 2013 10:30:19 +0530 Subject: [Gambas-user] How to include folder/ files in to project directory. In-Reply-To: <51975F11.70709@...1...> References: <51975F11.70709@...1...> Message-ID: Why does it so? Copying shell script/file to temp directory is working perfectly well. The following gambas inbuilt command works perfectly Copy Application.Path & "/file" & " path/to/destination" But not this one SHELL "cp -r " & Application.Path & "/folder" & " path/to/destination" I am writing from non gambas system. So leave the syntax error if any. One more thing i have noticed is that when i run the script with above command from IDE, folders are copied to destination but after compilation the same does not work. Is there any way to copy folder which is located in the project directory to destination path? On Sat, May 18, 2013 at 4:29 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 18/05/2013 04:12, J Sundar a ?crit : > > Is it possible to include folder (which include lot of files) in to the > > project directory? This folder will have all supporting files required to > > run my application. The same directory is required to copied in to other > > folder while running the application. > > At the moment, you must do that by hand with a file manager (just put > the folder directly into the project directory). The IDE is not yet able > to copy an entire directory. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon May 20 23:58:35 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 20 May 2013 23:58:35 +0200 Subject: [Gambas-user] New gb.crypt.openssl component Message-ID: <20130520215835.GD709@...2774...> Hi folks, seems to be the day of new components... I just committed a gb.crypt.openssl component to wrap the cryptographic functions in OpenSSL's libcrypto. The idea came actually from Sebastian in conjunction with his gambas-online project. But maybe it's useful to someone else. I've been working on it since yesterday. Even if I wrote almost straight since then, this seemed kind of quick to me - which is usually not a good sign regarding code quality :-) Additionally, I'm not even a cryptography novice, so I encourage anyone with knowledge of this matter to look at the code and report any (security) problem (but not too much, please). At least, the test cases (see attachment) work correctly and without crash or memory leak (on non-Linux platforms, I can't promise anything, though; there may trigger some assert()s!) and the design seems future-proof. You basically have two classes which work somewhat alike: Digest and Cipher. One gets access to an algorithm by giving its name to the array accessors: Digest["md5"].Hash("some string") et voila. The conversion between the string "md5" and the actual hashing function is done by libcrypto itself. The names are *not* provided by my component. You can get a full list of all supported algorithm names in the Digest.List: Dim sName As String For Each sName In Digest.List.Sort() Print sName ' May contain duplicates. Don't know why... Next It's similar for the Cipher class. It has just Encrypt() and Decrypt() (and EncryptSalted() and DecryptSalted()) methods instead of Hash(). There's also the HMac class for an HMAC authentication code because this algorithm has (apparently) no such name to make it findable by the above two classes. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: test_crypt_openssl-0.0.1.tar.gz Type: application/octet-stream Size: 5548 bytes Desc: not available URL: From taboege at ...626... Tue May 21 00:27:30 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 May 2013 00:27:30 +0200 Subject: [Gambas-user] New gb.openssl component (was gb.crypt.openssl for few minutes :-)) In-Reply-To: <20130520215835.GD709@...2774...> References: <20130520215835.GD709@...2774...> Message-ID: <20130520222730.GF709@...2774...> On Mon, 20 May 2013, Tobias Boege wrote: > Hi folks, > > seems to be the day of new components... I just committed a gb.crypt.openssl > component to wrap the cryptographic functions in OpenSSL's libcrypto. The > idea came actually from Sebastian in conjunction with his gambas-online > project. But maybe it's useful to someone else. ... and renamed to gb.openssl. Test project with changed settings attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: test_openssl-0.0.1.tar.gz Type: application/octet-stream Size: 5512 bytes Desc: not available URL: From taboege at ...626... Tue May 21 16:13:16 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 May 2013 16:13:16 +0200 Subject: [Gambas-user] Global error management routine Message-ID: <20130521141316.GE509@...2774...> Hi Benoit, when programming a component in C/C++, one can use the error hook to execute a function when the interpreter is about to abort because of an error. In Gambas itself, we only have the local Catch blocks to execute code in case of error in this or any context above in the stack. However, there is no global error handling routine like the above error hook available for Gambas programs. It would be handy if the program ultimately has to tidy up some of its business before it is killed. A rather dull example would be the one we initially intended: a Circular from gb.data might be good to store program logs because it has a fixed size. In case of an unexpected program error we would like to dump this Circular. Easy when programming a component in C/C++ but impossible in Gambas. AFAIK! Thoughts? Regards, Tobi From sotema at ...626... Tue May 21 17:29:46 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 21 May 2013 17:29:46 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 Message-ID: <1369150186.11779.6.camel@...2516...> Rev. #5670 make aborts immediately with error: make[4]: enter directory "/home/emanuele/Gambas3/trunk/main/gbc" CC gbc3-gb_error.o gcc: error: 5638: File o directory does not exists Logs and sysinfo attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: rev5670.logs.tar.gz Type: application/x-compressed-tar Size: 7051 bytes Desc: not available URL: From taboege at ...626... Tue May 21 17:52:55 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 May 2013 17:52:55 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <1369150186.11779.6.camel@...2516...> References: <1369150186.11779.6.camel@...2516...> Message-ID: <20130521155255.GH509@...2774...> On Tue, 21 May 2013, Emanuele Sottocorno wrote: > Rev. #5670 make aborts immediately with error: > make[4]: enter directory "/home/emanuele/Gambas3/trunk/main/gbc" > CC gbc3-gb_error.o > gcc: error: 5638: File o directory does not exists > > Logs and sysinfo attached. > My fault. Could you try with rev#5671? Note that it needs a complete ./reconf && ./configure && make sequence for the main/ directory (and any other that fails with this error). Maybe I should turn this feature off by default... Regards, Tobi From sotema at ...626... Tue May 21 19:19:58 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Tue, 21 May 2013 19:19:58 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130521155255.GH509@...2774...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> Message-ID: <1369156798.2047.3.camel@...2516...> hi Tobi, thanks for the answer, but same error with revision #5671. I use to ./reconf-all ./configure -C make for any svn update from trunk directory should i issue the sequence for the main directory instead? Emanuele Il giorno mar, 21/05/2013 alle 17.52 +0200, Tobias Boege ha scritto: > On Tue, 21 May 2013, Emanuele Sottocorno wrote: > > Rev. #5670 make aborts immediately with error: > > make[4]: enter directory "/home/emanuele/Gambas3/trunk/main/gbc" > > CC gbc3-gb_error.o > > gcc: error: 5638: File o directory does not exists > > > > Logs and sysinfo attached. > > > > My fault. Could you try with rev#5671? Note that it needs a complete > ./reconf && ./configure && make sequence for the main/ directory (and any > other that fails with this error). Maybe I should turn this feature off by > default... > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ea7dfh at ...2382... Tue May 21 20:07:03 2013 From: ea7dfh at ...2382... (Jesus) Date: Tue, 21 May 2013 20:07:03 +0200 Subject: [Gambas-user] New gb.logging component In-Reply-To: References: Message-ID: <519BB7C7.2030909@...2382...> El 20/05/13 04:44, Sebastian Kulesz escribi?: > Hey there! > > I just pushed the new component to the svn repository. It provides a > flexible API for logging and tracking events while the software is running. > > It outputs to stdout by default, but you can simply point to a file when > creating an instance of the Logger object. > > It provides 5 levels of severity, them being: Critical, Error, Warning, > Info, Debug > You can control the output by providing the minimum level required. For > example, if the minimum level is Warning, only Warning, Error and Critical > messages will be printed (or saved to the file) > > Another great feature is a flexible formatted output. When creating an > instance, you can pass a string which will tell the logger how the string > will be formatted. A single tag is represented as "$(TAG)". The default one > is: > > [$(now)] [$(levelname)] [$(callLocation)] $(message) > > So, the message "Starting logger" would look like this: > > [05/20/2013 02:13:46.267] [WARNING] [MTest.Main.9] Starting logger > > The following tags are available as of now: > > $(message) : The message passed to the logger > $(callLocation) : The full location of where the logger was called. In the > form of FILE.FUNCTION.LINE (look above at the example line) > $(callLine) : The line number where the logger was called. > $(callFile) : The file name which called the logger > $(callFunction) :The function which called the logger > $(now) : A full date and time string, as returned by Now() > $(date) : The date as returned by Date(Now) > $(time) : The time as returned by Time(Now) > $(ptimer) : The time elapsed since the application was started. ms of > precision > $(ptimerint) : Same as above, but only prints the elapsed time in seconds > $(levelno) : The severity level of the message (integer) > $(levelname) : The name of the severity level One of: CRITICAL,ERROR, > WARNING,INFO,DEBUG > $(version) : The version of the application > $(gbversion) : The version of the Gambas interpreter > $(host) : The system host name > $(pid) : The process id of the running application > > Using it is pretty straightforward: > > Dim oDumb As New Logger > oDumb("Starting logger") > > By default the component creates a hidden instance of the Logger class, > just as the Settings component does, but i'm having trouble when performing > the call. It's not a deal breaker, it only means you won't be able to call > Logger(...) directly, but will need to create an instance and share it > across your application. > > If you already have a logging module implemented and don't want to switch, > you can still use the Formatter class and all the tags it comes with by > simply calling Formatter(sMessage As String, sFormat As String, iLevel As > Integer) Being sMessage the message you want to log, sFormat the formatting > string and iLevel an integer value of the severity so 0=Critical and > 4=Debug. > > Hope you find it useful. If you want any tags added, please let me know, or > go ahead and implement them yourself!! It's not hard, i promise! Great addition!! Thanks for your work, definitely it is something I will use for sure. Regards -- Jesus Guardon From taboege at ...626... Tue May 21 21:46:12 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 May 2013 21:46:12 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <1369156798.2047.3.camel@...2516...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> Message-ID: <20130521194612.GA516@...2774...> On Tue, 21 May 2013, Emanuele Sottocorno wrote: > hi Tobi, > thanks for the answer, but same error with revision #5671. > I use to ./reconf-all ./configure -C make for any svn update from trunk > directory should i issue the sequence for the main directory instead? > > Emanuele It won't be any different when done from main/ but it saves you time. Remember to use ./reconf not ./reconf-all from within main/. It's worth a try to omit the -C option to configure... If that doesn't solve your problem, then I can't imagine what's wrong on your system... *If* it fails, I may need these: 1) main/configure 2) main/Makefile 3) output of "make V=1" Has anyone else got problems with my recent changes? If it's urgent that you compile gambas, apply the attached patch like: $ patch -p1 /dev/null 2>&1 && echo yes) - if test -n "$IN_REPO"; then - ## These will go into the Makefiles. Quoting is a mess. - ## Additionally, make TRUNK_VERSION define itself statically on first - ## expansion. This executes "svn info" only once for performance. - TRUNK_VERSION='$(strip $(eval TRUNK_VERSION :=$(shell svn info 2>/dev/null | grep Revision | egrep -wo "[[0-9]]+$$"))$(TRUNK_VERSION))' - AC_SUBST(TRUNK_VERSION) - export CPPFLAGS=$CPPFLAGS\ '-DTRUNK_VERSION=$(TRUNK_VERSION)' - fi - GB_CLEAR_MESSAGES ]) From rterry at ...1823... Wed May 22 00:04:17 2013 From: rterry at ...1823... (Richard Terry) Date: Wed, 22 May 2013 08:04:17 +1000 Subject: [Gambas-user] Global error management routine In-Reply-To: <20130521141316.GE509@...2774...> References: <20130521141316.GE509@...2774...> Message-ID: <519BEF61.4000002@...1823...> Tobias Boege wrote: > Hi Benoit, > > when programming a component in C/C++, one can use the error hook to execute > a function when the interpreter is about to abort because of an error. > > In Gambas itself, we only have the local Catch blocks to execute code in > case of error in this or any context above in the stack. > > However, there is no global error handling routine like the above error hook > available for Gambas programs. It would be handy if the program ultimately > has to tidy up some of its business before it is killed. > I'd second that, though I'm technically incapable of helping/understanding. Short of putting a catch statement in every single subroutine there seems no way in gambas to stop a program crashing when it enounters an unexpected error, which if you have others using the program for some mission-critical purpose this is nothing short of embarrassing/dangerous/annoying to the users. Though I use the latest packages for gambas3 I find the IDE crashes out unexpectedly enough (e.g several times in a few hour session) for me to have got into the habit of clicking the save button every few minutes as in recent times I've lost e.g 30 mins of code due to the ide suddenly 'disappearing'. Regards richard > A rather dull example would be the one we initially intended: a Circular > from gb.data might be good to store program logs because it has a fixed > size. In case of an unexpected program error we would like to dump this > Circular. Easy when programming a component in C/C++ but impossible in > Gambas. AFAIK! > > Thoughts? > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rterry at ...1823... Wed May 22 00:41:16 2013 From: rterry at ...1823... (Richard Terry) Date: Wed, 22 May 2013 08:41:16 +1000 Subject: [Gambas-user] Detecting if a scroll bar has scrolled to the bottom. Message-ID: <519BF80C.1030102@...1823...> In our installation wizard for EasyGP, Ian and I have put in the gnu public licence. I want to be able to detect if the user has scrolled all the way to the bottom before I allow the wizard to progress to the next page, after they have checked the 'agree' checkbox. Any help appreciated. richard From sotema at ...626... Wed May 22 08:04:05 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 22 May 2013 08:04:05 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130521194612.GA516@...2774...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> Message-ID: <1369202645.2139.6.camel@...2516...> Hi Tobi, I made a fresh svn checkout with revision #5671. in main/ .reconf, ./configure, make ... same error After the patch applied using the "old" compilation sequence (./reconf-all, ./configure, make && make install) the process ran fine. I have a rev #5371 working. Attached the files you required. Thanks, Emanuele Il giorno mar, 21/05/2013 alle 21.46 +0200, Tobias Boege ha scritto: > On Tue, 21 May 2013, Emanuele Sottocorno wrote: > > hi Tobi, > > thanks for the answer, but same error with revision #5671. > > I use to ./reconf-all ./configure -C make for any svn update from trunk > > directory should i issue the sequence for the main directory instead? > > > > Emanuele > > It won't be any different when done from main/ but it saves you time. > Remember to use ./reconf not ./reconf-all from within main/. > > It's worth a try to omit the -C option to configure... If that doesn't solve > your problem, then I can't imagine what's wrong on your system... > > *If* it fails, I may need these: > > 1) main/configure > 2) main/Makefile > 3) output of "make V=1" > > Has anyone else got problems with my recent changes? > > If it's urgent that you compile gambas, apply the attached patch like: > > $ patch -p1 > Regards, > Tobi > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: main.tar.gz Type: application/x-compressed-tar Size: 135496 bytes Desc: not available URL: From bill-lancaster at ...2231... Wed May 22 08:22:20 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Tue, 21 May 2013 23:22:20 -0700 (PDT) Subject: [Gambas-user] LastModified value for hidden files not available Message-ID: <1369203740533-42005.post@...3046...> If I list the LastModified value for all the files in a folder some of them are null values. All of those with null values are hidden files. Is this a bug or something on mu system? Any ideas would be welcome. -- View this message in context: http://gambas.8142.n7.nabble.com/LastModified-value-for-hidden-files-not-available-tp42005.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed May 22 08:56:55 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 May 2013 08:56:55 +0200 Subject: [Gambas-user] LastModified value for hidden files not available In-Reply-To: <1369203740533-42005.post@...3046...> References: <1369203740533-42005.post@...3046...> Message-ID: <519C6C37.3070605@...1...> Le 22/05/2013 08:22, bill-lancaster a ?crit : > If I list the LastModified value for all the files in a folder some of them > are null values. > > All of those with null values are hidden files. > > Is this a bug or something on mu system? > > Any ideas would be welcome. > The only possible case where LastModified returns NULL is when the underlying file date is invalid! Can you send the output of 'ls -la' on these specific files? -- Beno?t Minisini From bill-lancaster at ...2231... Wed May 22 09:33:24 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 22 May 2013 00:33:24 -0700 (PDT) Subject: [Gambas-user] LastModified In-Reply-To: <1369203740533-42005.post@...3046...> References: <1369203740533-42005.post@...3046...> Message-ID: <1369208004476-42007.post@...3046...> Sorry Beno?t - false alarm. In error, I had gb.directory as filter in my rdir call. Without that it works fine -- View this message in context: http://gambas.8142.n7.nabble.com/LastModified-tp42005p42007.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed May 22 09:53:44 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 May 2013 09:53:44 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <519BEF61.4000002@...1823...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> Message-ID: <519C7988.9040908@...1...> Le 22/05/2013 00:04, Richard Terry a ?crit : > Tobias Boege wrote: >> Hi Benoit, >> >> when programming a component in C/C++, one can use the error hook to execute >> a function when the interpreter is about to abort because of an error. >> >> In Gambas itself, we only have the local Catch blocks to execute code in >> case of error in this or any context above in the stack. >> >> However, there is no global error handling routine like the above error hook >> available for Gambas programs. It would be handy if the program ultimately >> has to tidy up some of its business before it is killed. >> > I'd second that, though I'm technically incapable of > helping/understanding. Short of putting a catch statement in every > single subroutine there seems no way in gambas to stop a program > crashing when it enounters an unexpected error, which if you have others > using the program for some mission-critical purpose this is nothing > short of embarrassing/dangerous/annoying to the users. I will think about it... > > Though I use the latest packages for gambas3 I find the IDE crashes out > unexpectedly enough (e.g several times in a few hour session) for me to > have got into the habit of clicking the save button every few minutes as > in recent times I've lost e.g 30 mins of code due to the ide suddenly > 'disappearing'. > > Regards > > richard I have no crash, while I use the Gambas IDE every day. What package do you use? What version? What kind of crash? Gambas error or segmentation fault?... and so on. -- Beno?t Minisini From ron at ...1740... Wed May 22 10:02:51 2013 From: ron at ...1740... (Ron) Date: Wed, 22 May 2013 10:02:51 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <519C7988.9040908@...1...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> Message-ID: <519C7BAB.1080109@...1740...> On 22-5-2013 9:53, Beno?t Minisini wrote: > Le 22/05/2013 00:04, Richard Terry a ?crit : >> Tobias Boege wrote: >>> Hi Benoit, >>> >>> when programming a component in C/C++, one can use the error hook to execute >>> a function when the interpreter is about to abort because of an error. >>> >>> In Gambas itself, we only have the local Catch blocks to execute code in >>> case of error in this or any context above in the stack. >>> >>> However, there is no global error handling routine like the above error hook >>> available for Gambas programs. It would be handy if the program ultimately >>> has to tidy up some of its business before it is killed. >>> >> I'd second that, though I'm technically incapable of >> helping/understanding. Short of putting a catch statement in every >> single subroutine there seems no way in gambas to stop a program >> crashing when it enounters an unexpected error, which if you have others >> using the program for some mission-critical purpose this is nothing >> short of embarrassing/dangerous/annoying to the users. > I will think about it... > >> Though I use the latest packages for gambas3 I find the IDE crashes out >> unexpectedly enough (e.g several times in a few hour session) for me to >> have got into the habit of clicking the save button every few minutes as >> in recent times I've lost e.g 30 mins of code due to the ide suddenly >> 'disappearing'. >> >> Regards >> >> richard > I have no crash, while I use the Gambas IDE every day. What package do > you use? What version? What kind of crash? Gambas error or segmentation > fault?... and so on. > I have them too sometimes. Signal 11's. But it seems they happen after something else failse, like failing to connecting to mysql for example. A user also reported to have Signal 11's while starting my project on a Raspberry Pi, thats maybe an ARM thingy. I will try to gather some more information. Regards, Ron_2nd. From gambas at ...1... Wed May 22 10:06:14 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 May 2013 10:06:14 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <519C7BAB.1080109@...1740...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519C7BAB.1080109@...1740...> Message-ID: <519C7C76.2060101@...1...> Le 22/05/2013 10:02, Ron a ?crit : > On 22-5-2013 9:53, Beno?t Minisini wrote: >> Le 22/05/2013 00:04, Richard Terry a ?crit : >>> Tobias Boege wrote: >>>> Hi Benoit, >>>> >>>> when programming a component in C/C++, one can use the error hook to execute >>>> a function when the interpreter is about to abort because of an error. >>>> >>>> In Gambas itself, we only have the local Catch blocks to execute code in >>>> case of error in this or any context above in the stack. >>>> >>>> However, there is no global error handling routine like the above error hook >>>> available for Gambas programs. It would be handy if the program ultimately >>>> has to tidy up some of its business before it is killed. >>>> >>> I'd second that, though I'm technically incapable of >>> helping/understanding. Short of putting a catch statement in every >>> single subroutine there seems no way in gambas to stop a program >>> crashing when it enounters an unexpected error, which if you have others >>> using the program for some mission-critical purpose this is nothing >>> short of embarrassing/dangerous/annoying to the users. >> I will think about it... >> >>> Though I use the latest packages for gambas3 I find the IDE crashes out >>> unexpectedly enough (e.g several times in a few hour session) for me to >>> have got into the habit of clicking the save button every few minutes as >>> in recent times I've lost e.g 30 mins of code due to the ide suddenly >>> 'disappearing'. >>> >>> Regards >>> >>> richard >> I have no crash, while I use the Gambas IDE every day. What package do >> you use? What version? What kind of crash? Gambas error or segmentation >> fault?... and so on. >> > > I have them too sometimes. Signal 11's. > But it seems they happen after something else failse, like failing to > connecting to mysql for example. > A user also reported to have Signal 11's while starting my project on a > Raspberry Pi, thats maybe an ARM thingy. > > I will try to gather some more information. > > Regards, > Ron_2nd. > If you enable core dumps on your system, and if you have compiled Gambas with debugging information enabled, you can run gdb on the core file to get the stack backtrace of the crash and send it me. -- Beno?t Minisini From gambas.fr at ...626... Wed May 22 14:34:35 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 May 2013 14:34:35 +0200 Subject: [Gambas-user] Detecting if a scroll bar has scrolled to the bottom. In-Reply-To: <519BF80C.1030102@...1823...> References: <519BF80C.1030102@...1823...> Message-ID: I'll send you an exemple Le 22 mai 2013 00:42, "Richard Terry" a ?crit : > In our installation wizard for EasyGP, Ian and I have put in the gnu > public licence. > > I want to be able to detect if the user has scrolled all the way to the > bottom before I allow the wizard to progress to the next page, after > they have checked the 'agree' checkbox. > > Any help appreciated. > > richard > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...3137... Wed May 22 15:11:39 2013 From: gambas at ...3137... (Marco) Date: Wed, 22 May 2013 15:11:39 +0200 Subject: [Gambas-user] Click image get coordinates Message-ID: <519CC40B.1030800@...3137...> Hi all, I'm trying to write something so that I can display an image (a map of a building). On this image several temperature probes are displayed. I'd like to click the image on specific regions and want a textbox to be filled with the temperature value of this probe. The real problem isn't the connection to the probes and displaying the values in the textbox. I allready made this work with normal buttons and no image. But to make it more fancy I'd want to use the image with the nice map of the building. This way it's more understanding for everyone using it. I allready tried to get coordinates out of clicking on the image, but without any results. Hope there is a solution for this. Thanks, Marco From vuott at ...325... Wed May 22 16:10:11 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 22 May 2013 15:10:11 +0100 (BST) Subject: [Gambas-user] New version isql: empty results with gambas-3 Message-ID: <1369231811.75706.YahooMailClassic@...3066...> Hello, our friend of italian Gambas forum has a problem: he updated his management that uses MS-SQL 2008 as database. He, to connect to the db, uses Microsoft odbc freetds driver. With the release of MS-SQL 2000 is no problem with the isql program from a terminal and with gambas. With the new version isql no problem, gambas does not give him error in the query, but it returns the "empty" results ! Our friend says with gambas-3 latest release it behaves as described above. With Gambas 2.20 and earlier (version 2.21 does not work) it works, that is it will return the records in the result. ---> Our friend'ld like to know what differs a version with the other. <--- He add a clarification: in gambas 2 (all releases) with 64-bit systems the odbc connection not working, what was repaired with version 3. Regards vuott From taboege at ...626... Wed May 22 16:26:55 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 May 2013 16:26:55 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <1369202645.2139.6.camel@...2516...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> Message-ID: <20130522142655.GA992@...2774...> On Wed, 22 May 2013, Emanuele Sottocorno wrote: > Hi Tobi, > I made a fresh svn checkout with revision #5671. in > main/ .reconf, ./configure, make ... same error > After the patch applied using the "old" compilation sequence > (./reconf-all, ./configure, make && make install) the process ran fine. > I have a rev #5371 working. Attached the files you required. > Thanks, > Emanuele > I tried to compile with your Makefile - and it succeeded. There must be a subtle difference between our two 'make's or whatever... Anyway, I did the feature in another, less intrusive way. Your problem should be fixed in rev#5672 - hopefully. Regards, Tobi From taboege at ...626... Wed May 22 17:06:32 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 May 2013 17:06:32 +0200 Subject: [Gambas-user] Click image get coordinates In-Reply-To: <519CC40B.1030800@...3137...> References: <519CC40B.1030800@...3137...> Message-ID: <20130522150632.GB992@...2774...> On Wed, 22 May 2013, Marco wrote: > Hi all, > > I'm trying to write something so that I can display an image (a map of a > building). On this image several temperature probes are displayed. I'd > like to click the image on specific regions and want a textbox to be > filled with the temperature value of this probe. > > The real problem isn't the connection to the probes and displaying the > values in the textbox. I allready made this work with normal buttons and > no image. But to make it more fancy I'd want to use the image with the > nice map of the building. This way it's more understanding for everyone > using it. > > I allready tried to get coordinates out of clicking on the image, but > without any results. > > Hope there is a solution for this. > I'd display the picture in a PictureBox and then do it like image maps in HTML. You can use the MouseUp events to capture a click. I think it's better to just show you an example. Attached. Not the prettiest one and you may have better algorithms to search for a region but you get the idea. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: imagemap-0.0.1.tar.gz Type: application/octet-stream Size: 5850 bytes Desc: not available URL: From sotema at ...626... Wed May 22 17:10:21 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 22 May 2013 17:10:21 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130522142655.GA992@...2774...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> Message-ID: <1369235421.2398.3.camel@...2516...> Hi Tobi, tried rev #5672, make fails at: make[2]: ingresso nella directory "/home/emanuele/Gambas3/trunk/main/gbx" CC libgbx_a-gb_error.o CC libgbx_a-gbx_exec_loop.o AR libgbx.a CC gb_la-gbx_c_class.lo CC gb_la-gbx_c_collection.lo CC gb_la-gbx_c_error.lo CC gb_la-gbx_c_gambas.lo CC gb_la-gbx_c_file.lo CC gb_la-gbx_c_application.lo CC gb_la-gbx_c_system.lo CC gb_la-gbx_c_array.lo CC gb_la-gbx_c_process.lo CC gb_la-gbx_c_string.lo CC gb_la-gbx_c_observer.lo CC gb_la-gbx_c_enum.lo CC gb_la-gbx_c_timer.lo CC gb_la-gbx_c_task.lo CC gb_la-gbx_class_info.lo CCLD gb.la CC gbx3-gb_common.o gcc: error: 5672: File o directory non esistente make[2]: *** [gbx3-gb_common.o] Errore 1 make[2]: uscita dalla directory "/home/emanuele/Gambas3/trunk/main/gbx" make[1]: *** [all-recursive] Errore 1 make[1]: uscita dalla directory "/home/emanuele/Gambas3/trunk/main" make: *** [all] Errore 2 Il giorno mer, 22/05/2013 alle 16.26 +0200, Tobias Boege ha scritto: > On Wed, 22 May 2013, Emanuele Sottocorno wrote: > > Hi Tobi, > > I made a fresh svn checkout with revision #5671. in > > main/ .reconf, ./configure, make ... same error > > After the patch applied using the "old" compilation sequence > > (./reconf-all, ./configure, make && make install) the process ran fine. > > I have a rev #5371 working. Attached the files you required. > > Thanks, > > Emanuele > > > > I tried to compile with your Makefile - and it succeeded. There must be a > subtle difference between our two 'make's or whatever... > > Anyway, I did the feature in another, less intrusive way. Your problem > should be fixed in rev#5672 - hopefully. > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Wed May 22 17:29:36 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 May 2013 17:29:36 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <1369235421.2398.3.camel@...2516...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> Message-ID: <20130522152936.GD992@...2774...> On Wed, 22 May 2013, Emanuele Sottocorno wrote: > Hi Tobi, tried rev #5672, make fails at: > > make[2]: ingresso nella directory > "/home/emanuele/Gambas3/trunk/main/gbx" > CC libgbx_a-gb_error.o > CC libgbx_a-gbx_exec_loop.o > AR libgbx.a > CC gb_la-gbx_c_class.lo > CC gb_la-gbx_c_collection.lo > CC gb_la-gbx_c_error.lo > CC gb_la-gbx_c_gambas.lo > CC gb_la-gbx_c_file.lo > CC gb_la-gbx_c_application.lo > CC gb_la-gbx_c_system.lo > CC gb_la-gbx_c_array.lo > CC gb_la-gbx_c_process.lo > CC gb_la-gbx_c_string.lo > CC gb_la-gbx_c_observer.lo > CC gb_la-gbx_c_enum.lo > CC gb_la-gbx_c_timer.lo > CC gb_la-gbx_c_task.lo > CC gb_la-gbx_class_info.lo > CCLD gb.la > CC gbx3-gb_common.o > gcc: error: 5672: File o directory non esistente > make[2]: *** [gbx3-gb_common.o] Errore 1 > make[2]: uscita dalla directory "/home/emanuele/Gambas3/trunk/main/gbx" > make[1]: *** [all-recursive] Errore 1 > make[1]: uscita dalla directory "/home/emanuele/Gambas3/trunk/main" > make: *** [all] Errore 2 > How tiresome. I must now ask for output of: $ svn info and $ svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+$" Regards, Tobi From gambas.fr at ...626... Wed May 22 18:37:44 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 May 2013 18:37:44 +0200 Subject: [Gambas-user] Click image get coordinates In-Reply-To: <20130522150632.GB992@...2774...> References: <519CC40B.1030800@...3137...> <20130522150632.GB992@...2774...> Message-ID: You can use the rect class to store and test r?gion too Dim aRect as new Rect[] aRect.Add(Rect(5,5,10,10)) aRect. Add... etc Use in mouse event : For I =0 to aRect.max If aRect[i].contains(mouse.x,mouse.y) then print i Next Le 22 mai 2013 17:10, "Tobias Boege" a ?crit : > On Wed, 22 May 2013, Marco wrote: > > Hi all, > > > > I'm trying to write something so that I can display an image (a map of a > > building). On this image several temperature probes are displayed. I'd > > like to click the image on specific regions and want a textbox to be > > filled with the temperature value of this probe. > > > > The real problem isn't the connection to the probes and displaying the > > values in the textbox. I allready made this work with normal buttons and > > no image. But to make it more fancy I'd want to use the image with the > > nice map of the building. This way it's more understanding for everyone > > using it. > > > > I allready tried to get coordinates out of clicking on the image, but > > without any results. > > > > Hope there is a solution for this. > > > > I'd display the picture in a PictureBox and then do it like image maps in > HTML. You can use the MouseUp events to capture a click. > > I think it's better to just show you an example. Attached. Not the > prettiest > one and you may have better algorithms to search for a region but you get > the idea. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sotema at ...626... Wed May 22 19:05:10 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 22 May 2013 19:05:10 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130522152936.GD992@...2774...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> Message-ID: <1369242310.23889.0.camel@...2516...> Here they are: > > How tiresome. I must now ask for output of: > > $ svn info > > and > > $ svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+$" > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: svninfo.tar.gz Type: application/x-compressed-tar Size: 374 bytes Desc: not available URL: From taboege at ...626... Wed May 22 19:33:48 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 May 2013 19:33:48 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <1369242310.23889.0.camel@...2516...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> Message-ID: <20130522173348.GF992@...2774...> On Wed, 22 May 2013, Emanuele Sottocorno wrote: > Here they are: > > > > How tiresome. I must now ask for output of: > > > > $ svn info > > > > and > > > > $ svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+$" > > > > Regards, > > Tobi Very funny :-) It's a translation issue. I wrote that script line with only the englisch output of svn in mind. I'm convinced that rev#5673 solves your problem. Regards, Tobi From sotema at ...626... Wed May 22 21:31:56 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 22 May 2013 21:31:56 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130522173348.GF992@...2774...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> Message-ID: <1369251116.10714.1.camel@...2476...> > > Very funny :-) It's a translation issue. I wrote that script line with only > the englisch output of svn in mind. > > I'm convinced that rev#5673 solves your problem. > > Regards, > Tobi > You are right, it works now. Thanks > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From paulwheeler at ...546... Wed May 22 21:43:25 2013 From: paulwheeler at ...546... (paulwheeler) Date: Wed, 22 May 2013 12:43:25 -0700 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130522173348.GF992@...2774...> References: <1369150186.11779.6.camel@...2516...> <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> Message-ID: <519D1FDD.8050708@...546...> Tobias, Thank you for you work on this project. I have been lurking for a while, just to absorb more knowledge. My apology, but I am confused about what was funny. Translation?which script line? Paul On 05/22/2013 10:33 AM, Tobias Boege wrote: On Wed, 22 May 2013, Emanuele Sottocorno wrote: Here they are: How tiresome. I must now ask for output of: $ svn info and $ svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+$" Regards, Tobi Very funny :-) It's a translation issue. I wrote that script line with only the englisch output of svn in mind. I'm convinced that rev#5673 solves your problem. Regards, Tobi ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! [1]http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Gambas-user mailing list [2]Gambas-user at lists.sourceforge.net [3]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://p.sf.net/sfu/newrelic_d2d_may 2. mailto:Gambas-user at lists.sourceforge.net 3. https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Wed May 22 22:27:24 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 May 2013 22:27:24 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <519D1FDD.8050708@...546...> References: <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> Message-ID: <20130522202724.GB306@...2774...> Hi Paul, On Wed, 22 May 2013, paulwheeler wrote: > > Tobias, > Thank you for you work on this project. > I have been lurking for a while, just to absorb more knowledge. > My apology, but I am confused about what was funny. > Translation?which script line? > Paul the funny thing was that it needed three commits to fix Emanuele's problem which is two too much for this kind of error. Actually, I'm not really concered about localisation (one of the most important lines in my .bashrc is LC_ALL=C :-)) and now my ignorance bit me. Basically, I added a simple line to the configure scripts so that the interpreter, when compiled from a subversion repository, prints the revision it was compiled from, like: $ gbx3 --version 3.4.90 #5672 This number is extracted by a shell script line that makes assumptions on the language settings of the system - which is apparently non-portable. And that's the whole story. Regards, Tobi From gambas.fr at ...626... Wed May 22 22:44:58 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 May 2013 22:44:58 +0200 Subject: [Gambas-user] Detecting if a scroll bar has scrolled to the bottom. In-Reply-To: References: <519BF80C.1030102@...1823...> Message-ID: well wizard need a new property... like LockNext Benoit ? 2013/5/22 Fabien Bodard > I'll send you an exemple > Le 22 mai 2013 00:42, "Richard Terry" a ?crit : > > In our installation wizard for EasyGP, Ian and I have put in the gnu >> public licence. >> >> I want to be able to detect if the user has scrolled all the way to the >> bottom before I allow the wizard to progress to the next page, after >> they have checked the 'agree' checkbox. >> >> Any help appreciated. >> >> richard >> >> >> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring >> service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! >> http://p.sf.net/sfu/newrelic_d2d_may >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- Fabien Bodard From introlinux at ...626... Wed May 22 23:18:23 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Wed, 22 May 2013 23:18:23 +0200 Subject: [Gambas-user] Again with the color of the grid Message-ID: It seems to be a problem with qt component. I saved a little screencast with the issue: *https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1 * I have tested all parameters of my qt theme and the hexadecimal number that changes the background and doesn't belong to the background that gambas shows. I also attach another screenshot with xt7 program and you can see that occurs the same. It seems to be a change in the new version because with 3.3.4 version all worked ok. -------------- next part -------------- A non-text attachment was scrubbed... Name: now.png Type: image/png Size: 262534 bytes Desc: not available URL: From gambas at ...1... Wed May 22 23:58:08 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 22 May 2013 23:58:08 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130522202724.GB306@...2774...> References: <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> Message-ID: <519D3F70.20207@...1...> Le 22/05/2013 22:27, Tobias Boege a ?crit : > > the funny thing was that it needed three commits to fix Emanuele's problem > which is two too much for this kind of error. > > Actually, I'm not really concered about localisation (one of the most > important lines in my .bashrc is LC_ALL=C :-)) and now my ignorance bit me. > > Basically, I added a simple line to the configure scripts so that the > interpreter, when compiled from a subversion repository, prints the revision > it was compiled from, like: > > $ gbx3 --version > 3.4.90 #5672 > > This number is extracted by a shell script line that makes assumptions on > the language settings of the system - which is apparently non-portable. And > that's the whole story. > > Regards, > Tobi > Ha ha. I have reworked completely the management of the TRUNK_VERSION constant, fixing the localization problem and so on, but I forgot to commit before leaving at noon! Now I have to check if what I have done is compatible with your changes... :-/ -- Beno?t Minisini From gambas at ...1... Thu May 23 00:19:18 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 23 May 2013 00:19:18 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <519D3F70.20207@...1...> References: <20130521155255.GH509@...2774...> <1369156798.2047.3.camel@...2516...> <20130521194612.GA516@...2774...> <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> Message-ID: <519D4466.50900@...1...> Le 22/05/2013 23:58, Beno?t Minisini a ?crit : > Le 22/05/2013 22:27, Tobias Boege a ?crit : >> >> the funny thing was that it needed three commits to fix Emanuele's >> problem >> which is two too much for this kind of error. >> >> Actually, I'm not really concered about localisation (one of the most >> important lines in my .bashrc is LC_ALL=C :-)) and now my ignorance >> bit me. >> >> Basically, I added a simple line to the configure scripts so that the >> interpreter, when compiled from a subversion repository, prints the >> revision >> it was compiled from, like: >> >> $ gbx3 --version >> 3.4.90 #5672 >> >> This number is extracted by a shell script line that makes assumptions on >> the language settings of the system - which is apparently >> non-portable. And >> that's the whole story. >> >> Regards, >> Tobi >> > > Ha ha. I have reworked completely the management of the TRUNK_VERSION > constant, fixing the localization problem and so on, but I forgot to > commit before leaving at noon! > > Now I have to check if what I have done is compatible with your > changes... :-/ > Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify the compilation flag for defining a constant. You'd rather use the 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED). -- Beno?t Minisini From rterry at ...1823... Thu May 23 00:26:34 2013 From: rterry at ...1823... (Richard Terry) Date: Thu, 23 May 2013 08:26:34 +1000 Subject: [Gambas-user] Global error management routine In-Reply-To: <519C7988.9040908@...1...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> Message-ID: <519D461A.5020901@...1823...> Beno?t Minisini wrote: > Le 22/05/2013 00:04, Richard Terry a ?crit : > >> Tobias Boege wrote: >> >>> Hi Benoit, >>> >>> when programming a component in C/C++, one can use the error hook to execute >>> a function when the interpreter is about to abort because of an error. >>> >>> In Gambas itself, we only have the local Catch blocks to execute code in >>> case of error in this or any context above in the stack. >>> >>> However, there is no global error handling routine like the above error hook >>> available for Gambas programs. It would be handy if the program ultimately >>> has to tidy up some of its business before it is killed. >>> >>> >> I'd second that, though I'm technically incapable of >> helping/understanding. Short of putting a catch statement in every >> single subroutine there seems no way in gambas to stop a program >> crashing when it enounters an unexpected error, which if you have others >> using the program for some mission-critical purpose this is nothing >> short of embarrassing/dangerous/annoying to the users. >> > > I will think about it... > I think this is particularly important as I've noticed many instances where the IDE when it builds an executable does not pic up on subtle errors eg textbox1= "test" instead of textbox.text = "text", or where the IDE runs the program without an error but the EXE will crash. > >> Though I use the latest packages for gambas3 I find the IDE crashes out >> unexpectedly enough (e.g several times in a few hour session) for me to >> have got into the habit of clicking the save button every few minutes as >> in recent times I've lost e.g 30 mins of code due to the ide suddenly >> 'disappearing'. >> >> Regards >> >> richard >> > > I have no crash, while I use the Gambas IDE every day. What package do > you use? What version? What kind of crash? Gambas error or segmentation > fault?... and so on. > > I use the Kendek ppa packages, so whatever version that is up to. There is no error to these crashes usually the IDE just vaporizes and disappears - its erratic - can go all day with no problem or occur several times in an hour, so have not been able to quantify this. Running on linux mint 14 Mate Desktop Whilst on the topic of the IDE one long standing bug is that at some point after heavy use highlighting a line (s) by clicking a thte start and dragging the mouse down to then do something with it like delete en-mass fails and the line instead of being highlighted only the two columns of characters on the left hand side of the IDE change colour. Closing the IDE and reloading fixes the problem. Something else - a "feature request": I find that when I'm programming I'm often working with a limited sub-set of subroutines eg half a dozen, jumping back and forth between them, running the program, debugging etc. It would be really handy (and there is plenty of room in the IDE next to the definitions combo, to have a combo which would contain the last most frequently used subroutines listed. That way instead of having to scroll down a long list of definitions, or search, one could just use the combo to jump to where you wanted. Having said all that the Gambas IDE is a dream compared to most IDE's - fabulous work. Regards Richard From rterry at ...1823... Thu May 23 00:28:47 2013 From: rterry at ...1823... (Richard Terry) Date: Thu, 23 May 2013 08:28:47 +1000 Subject: [Gambas-user] Detecting if a scroll bar has scrolled to the bottom. In-Reply-To: References: <519BF80C.1030102@...1823...> Message-ID: <519D469F.3080506@...1823...> Fabien Bodard wrote: > I'll send you an exemple > That would be great, thanks. richard > Le 22 mai 2013 00:42, "Richard Terry" a ?crit : > > >> In our installation wizard for EasyGP, Ian and I have put in the gnu >> public licence. >> >> I want to be able to detect if the user has scrolled all the way to the >> bottom before I allow the wizard to progress to the next page, after >> they have checked the 'agree' checkbox. >> >> Any help appreciated. >> >> richard >> >> >> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From shanep1967 at ...169... Thu May 23 14:09:00 2013 From: shanep1967 at ...169... (Shane) Date: Thu, 23 May 2013 22:09:00 +1000 Subject: [Gambas-user] curl ftp In-Reply-To: <5198EBF2.1010701@...1...> References: <5191EEA9.7090102@...169...> <5198EBF2.1010701@...1...> Message-ID: <519E06DC.6060601@...169...> On 20/05/13 01:12, Beno?t Minisini wrote: > Le 14/05/2013 09:58, Shane a ?crit : >> trying to use the ftp client but how do you monitor the status of files >> uploads etc? >> > In revision #5663, I have added a Progress event to the FtpClient class, > that is raised regularly while something is uploaded or downloaded. > > And I added four new properties to get the information about the > progress: Downloaded, Uploaded, TotalDownloaded and TotalUploaded. I > think they return byte counts, but the libcurl documentation is not very > clear. > > Please tell me if it fits your needs and works for you! > > Note that HttpClient does not raise the event yet, but it will. > > Regards, > hi Benoit I don't seem to be able to get the progress event to fire during an up load? From taboege at ...626... Thu May 23 14:23:27 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 23 May 2013 14:23:27 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <519D4466.50900@...1...> References: <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> Message-ID: <20130523122327.GA686@...2774...> On Thu, 23 May 2013, Beno?t Minisini wrote: > Le 22/05/2013 23:58, Beno?t Minisini a ?crit : > > Le 22/05/2013 22:27, Tobias Boege a ?crit : > >> > >> the funny thing was that it needed three commits to fix Emanuele's > >> problem > >> which is two too much for this kind of error. > >> > >> Actually, I'm not really concered about localisation (one of the most > >> important lines in my .bashrc is LC_ALL=C :-)) and now my ignorance > >> bit me. > >> > >> Basically, I added a simple line to the configure scripts so that the > >> interpreter, when compiled from a subversion repository, prints the > >> revision > >> it was compiled from, like: > >> > >> $ gbx3 --version > >> 3.4.90 #5672 > >> > >> This number is extracted by a shell script line that makes assumptions on > >> the language settings of the system - which is apparently > >> non-portable. And > >> that's the whole story. > >> > >> Regards, > >> Tobi > >> > > > > Ha ha. I have reworked completely the management of the TRUNK_VERSION > > constant, fixing the localization problem and so on, but I forgot to > > commit before leaving at noon! > > > > Now I have to check if what I have done is compatible with your > > changes... :-/ > > > > Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify > the compilation flag for defining a constant. You'd rather use the > 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED). > But when is this file regenerated? Only by configure, correct? This would mean that I have to issue a ./configure everytime I want the new correct version number from gbx3 which is less desirable, in my opinion, than changing a compiler flag. Regards, Tobi From taboege at ...626... Thu May 23 18:27:13 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 23 May 2013 18:27:13 +0200 Subject: [Gambas-user] HBox.Margin and .Padding not cumulative? Message-ID: <20130523162713.GA520@...2774...> Hi Benoit, the wiki[0] says that HBox.Margin and HBox.Padding produce a cumulative margin when both are defined. This seems to be wrong in reality. Test project attached. Note that the first click makes HBox.Padding equal to Desktop.Scale while HBox.Margin is set - but nothing happens. If both properties were cumulative, shouldn't the margin then be 2*Desktop.Scale? Regards, Tobi [0] http://gambasdoc.org/help/comp/gb.qt4/hbox/margin?v3 -------------- next part -------------- A non-text attachment was scrubbed... Name: hvboxen-0.0.1.tar.gz Type: application/octet-stream Size: 4865 bytes Desc: not available URL: From gambas.fr at ...626... Thu May 23 23:58:19 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 May 2013 23:58:19 +0200 Subject: [Gambas-user] HBox.Margin and .Padding not cumulative? In-Reply-To: <20130523162713.GA520@...2774...> References: <20130523162713.GA520@...2774...> Message-ID: When margin is set padding and spacing have the size of Margin in pixel Le 23 mai 2013 18:31, "Tobias Boege" a ?crit : > Hi Benoit, > > the wiki[0] says that HBox.Margin and HBox.Padding produce a cumulative > margin when both are defined. This seems to be wrong in reality. > > Test project attached. Note that the first click makes HBox.Padding equal > to > Desktop.Scale while HBox.Margin is set - but nothing happens. If both > properties were cumulative, shouldn't the margin then be 2*Desktop.Scale? > > Regards, > Tobi > > [0] http://gambasdoc.org/help/comp/gb.qt4/hbox/margin?v3 > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From taboege at ...626... Fri May 24 15:10:24 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 24 May 2013 15:10:24 +0200 Subject: [Gambas-user] HBox.Margin and .Padding not cumulative? In-Reply-To: References: <20130523162713.GA520@...2774...> Message-ID: <20130524131024.GC650@...2774...> On Thu, 23 May 2013, Fabien Bodard wrote: > When margin is set padding and spacing have the size of Margin in pixel This is another facet, isn't it? I was talking about Margin + Padding, when set together, are added to make the visible margin, i.e. they are cumulative. However it seems to me that your statement isn't true either. If it were like you said, then as soon as HBox.Margin is set to True, the padding (we ignore spacing here) would be Desktop.Scale. When I click on the button the first time, Desktop.Scale is added to HBox.Padding - but visually nothing happens. As a consequence, Padding must have still been 0 and Margin and Padding are *not* cumulative. Or not? Regards, Tobi From gambas.fr at ...626... Fri May 24 22:12:54 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 May 2013 22:12:54 +0200 Subject: [Gambas-user] HBox.Margin and .Padding not cumulative? In-Reply-To: <20130524131024.GC650@...2774...> References: <20130523162713.GA520@...2774...> <20130524131024.GC650@...2774...> Message-ID: They are not cumulative. if margin is set at true and padding = 0 then margin = Desktop.Scale if margin is set at true and padding = 5 then margin = 5 if spacing is set at true and padding = 0 then spacing = Desktop.Scale if spacing is et at true and padding = 5 then spacing = 5 padding define the space. 2013/5/24 Tobias Boege > On Thu, 23 May 2013, Fabien Bodard wrote: > > When margin is set padding and spacing have the size of Margin in pixel > > This is another facet, isn't it? I was talking about Margin + Padding, when > set together, are added to make the visible margin, i.e. they are > cumulative. > > However it seems to me that your statement isn't true either. If it were > like you said, then as soon as HBox.Margin is set to True, the padding (we > ignore spacing here) would be Desktop.Scale. When I click on the button the > first time, Desktop.Scale is added to HBox.Padding - but visually nothing > happens. > > As a consequence, Padding must have still been 0 and Margin and Padding are > *not* cumulative. Or not? > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From taboege at ...626... Fri May 24 22:28:44 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 24 May 2013 22:28:44 +0200 Subject: [Gambas-user] HBox.Margin and .Padding not cumulative? In-Reply-To: References: <20130523162713.GA520@...2774...> <20130524131024.GC650@...2774...> Message-ID: <20130524202844.GJ650@...2774...> On Fri, 24 May 2013, Fabien Bodard wrote: > They are not cumulative. > > if margin is set at true and padding = 0 then margin = Desktop.Scale > > if margin is set at true and padding = 5 then margin = 5 > > if spacing is set at true and padding = 0 then spacing = Desktop.Scale > > if spacing is et at true and padding = 5 then spacing = 5 > > padding define the space. > Alright. Then the documentation should be fixed. I don't find the right words to explain it there. Anybody? Regards, Tobi From taboege at ...626... Fri May 24 23:14:52 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 24 May 2013 23:14:52 +0200 Subject: [Gambas-user] Feature request: Read a component's .info file for help in the IDE Message-ID: <20130524211452.GK650@...2774...> Hi, it is said in [0] that the IDE can access an .info file of a project to get documentation out of it. I tried this with gb.openssl which I documented in its source code. It did not work since it's a component and not a project. As the gambas-devels may already know, I have a bunch of scripts to extract these comments and merge them into existing .info files. This works properly meanwhile. Consequently, I'd like to see the IDE display the help comments in a *component's* .info file. Is that possible? Regards, Tobi [0] http://gambasdoc.org/help/doc/helpcomments?v3 From gambas at ...1... Fri May 24 23:28:34 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 24 May 2013 23:28:34 +0200 Subject: [Gambas-user] Feature request: Read a component's .info file for help in the IDE In-Reply-To: <20130524211452.GK650@...2774...> References: <20130524211452.GK650@...2774...> Message-ID: <519FDB82.5070601@...1...> Le 24/05/2013 23:14, Tobias Boege a ?crit : > Hi, > > it is said in [0] that the IDE can access an .info file of a project to get > documentation out of it. > > I tried this with gb.openssl which I documented in its source code. It did > not work since it's a component and not a project. As the gambas-devels may > already know, I have a bunch of scripts to extract these comments and merge > them into existing .info files. This works properly meanwhile. Consequently, > I'd like to see the IDE display the help comments in a *component's* .info > file. Is that possible? > > Regards, > Tobi > > [0] http://gambasdoc.org/help/doc/helpcomments?v3 > No, component help must be written on the wiki. Component help can be written on the wiki only after I have uploaded the information files on the wiki server. I will upload the information files after having taken a look at the interface of your component. Regards, -- Beno?t Minisini From gambas at ...1... Fri May 24 23:33:35 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 24 May 2013 23:33:35 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130523122327.GA686@...2774...> References: <1369202645.2139.6.camel@...2516...> <20130522142655.GA992@...2774...> <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> Message-ID: <519FDCAF.5020205@...1...> Le 23/05/2013 14:23, Tobias Boege a ?crit : >> >> Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify >> the compilation flag for defining a constant. You'd rather use the >> 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED). >> > > But when is this file regenerated? Only by configure, correct? This would > mean that I have to issue a ./configure everytime I want the new correct > version number from gbx3 which is less desirable, in my opinion, than > changing a compiler flag. > > Regards, > Tobi > You get a point there. But you must find a way to get the svn version only when it changes. For example, we can imagine adding a special makefile rule that computes the svn version and put it in its custom header file. This rule will depend on the modification time of the /trunk/.svn directory (if it is possible). What do you think? -- Beno?t Minisini From gambas at ...1... Fri May 24 23:34:10 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 24 May 2013 23:34:10 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: <519E06DC.6060601@...169...> References: <5191EEA9.7090102@...169...> <5198EBF2.1010701@...1...> <519E06DC.6060601@...169...> Message-ID: <519FDCD2.7010406@...1...> Le 23/05/2013 14:09, Shane a ?crit : > On 20/05/13 01:12, Beno?t Minisini wrote: >> Le 14/05/2013 09:58, Shane a ?crit : >>> trying to use the ftp client but how do you monitor the status of files >>> uploads etc? >>> >> In revision #5663, I have added a Progress event to the FtpClient class, >> that is raised regularly while something is uploaded or downloaded. >> >> And I added four new properties to get the information about the >> progress: Downloaded, Uploaded, TotalDownloaded and TotalUploaded. I >> think they return byte counts, but the libcurl documentation is not very >> clear. >> >> Please tell me if it fits your needs and works for you! >> >> Note that HttpClient does not raise the event yet, but it will. >> >> Regards, >> > hi Benoit > > I don't seem to be able to get the progress event to fire during an > up load? > Indeed. Apparently I did as the curl documentation said, but the curl progress callback is never called. I will investigate... -- Beno?t Minisini From gambas at ...1... Fri May 24 23:39:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 24 May 2013 23:39:07 +0200 Subject: [Gambas-user] HBox.Margin and .Padding not cumulative? In-Reply-To: <20130524202844.GJ650@...2774...> References: <20130523162713.GA520@...2774...> <20130524131024.GC650@...2774...> <20130524202844.GJ650@...2774...> Message-ID: <519FDDFB.2010700@...1...> Le 24/05/2013 22:28, Tobias Boege a ?crit : > On Fri, 24 May 2013, Fabien Bodard wrote: >> They are not cumulative. >> >> if margin is set at true and padding = 0 then margin = Desktop.Scale >> >> if margin is set at true and padding = 5 then margin = 5 >> >> if spacing is set at true and padding = 0 then spacing = Desktop.Scale >> >> if spacing is et at true and padding = 5 then spacing = 5 >> >> padding define the space. >> > > Alright. Then the documentation should be fixed. I don't find the right > words to explain it there. Anybody? > > Regards, > Tobi > I fixed the documentation (that was the old text from Gambas 2). -- Beno?t Minisini From gambas at ...1... Sat May 25 00:23:45 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 00:23:45 +0200 Subject: [Gambas-user] curl ftp In-Reply-To: <519FDCD2.7010406@...1...> References: <5191EEA9.7090102@...169...> <5198EBF2.1010701@...1...> <519E06DC.6060601@...169...> <519FDCD2.7010406@...1...> Message-ID: <519FE871.8000404@...1...> Le 24/05/2013 23:34, Beno?t Minisini a ?crit : > Le 23/05/2013 14:09, Shane a ?crit : >> On 20/05/13 01:12, Beno?t Minisini wrote: >>> Le 14/05/2013 09:58, Shane a ?crit : >>>> trying to use the ftp client but how do you monitor the status of files >>>> uploads etc? >>>> >>> In revision #5663, I have added a Progress event to the FtpClient class, >>> that is raised regularly while something is uploaded or downloaded. >>> >>> And I added four new properties to get the information about the >>> progress: Downloaded, Uploaded, TotalDownloaded and TotalUploaded. I >>> think they return byte counts, but the libcurl documentation is not very >>> clear. >>> >>> Please tell me if it fits your needs and works for you! >>> >>> Note that HttpClient does not raise the event yet, but it will. >>> >>> Regards, >>> >> hi Benoit >> >> I don't seem to be able to get the progress event to fire during an >> up load? >> > > Indeed. Apparently I did as the curl documentation said, but the curl > progress callback is never called. I will investigate... > OK, my fault. The problem should be fixed in revision #5675. Regards, -- Beno?t Minisini From taboege at ...626... Sat May 25 11:37:57 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 25 May 2013 11:37:57 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <519FDCAF.5020205@...1...> References: <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> <519FDCAF.5020205@...1...> Message-ID: <20130525093757.GA540@...2774...> On Fri, 24 May 2013, Beno?t Minisini wrote: > Le 23/05/2013 14:23, Tobias Boege a ?crit : > >> > >> Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify > >> the compilation flag for defining a constant. You'd rather use the > >> 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED). > >> > > > > But when is this file regenerated? Only by configure, correct? This would > > mean that I have to issue a ./configure everytime I want the new correct > > version number from gbx3 which is less desirable, in my opinion, than > > changing a compiler flag. > > > > Regards, > > Tobi > > > > You get a point there. But you must find a way to get the svn version > only when it changes. For example, we can imagine adding a special > makefile rule that computes the svn version and put it in its custom > header file. This rule will depend on the modification time of the > /trunk/.svn directory (if it is possible). > > What do you think? > Good idea. Actually I thought about that, too, but rejected it because a Makefile rule that depends on .svn will not work on non-repository sources, like: make: *** No rule to make target `.svn', needed by `all'. Stop. which is from a Makefile inside my home directory - not svn versioned. What I didn't think of was this workaround: have a .PHONY target that compares timestamps of .svn to the header's instead of letting make do it. We could catch the case that .svn doesn't exist: --- trunk_version.h: TRUNK_VERSION = $(shell LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+") trunk_version.h: @if test -d .svn -a .svn -nt trunk_version.h ; then \ echo -e "/* TRUNK version if available */\n#define TRUNK_VERSION\t$(TRUNK_VERSION)\n" >trunk_version.h; \ fi .PHONY: trunk_version.h --- This worked in my home directory, i.e. did nothing but without complaint, and in trunk/ it created the trunk_version.h. Maybe ".svn" above should be prefixed with the path to the top-level Gambas directory? The lines are quite ugly. I couldn't find out how to use a here-document in a Makefile. Alas, I don't have time today to make it better. Regards, Tobi From taboege at ...626... Sat May 25 11:40:42 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 25 May 2013 11:40:42 +0200 Subject: [Gambas-user] Feature request: Read a component's .info file for help in the IDE In-Reply-To: <519FDB82.5070601@...1...> References: <20130524211452.GK650@...2774...> <519FDB82.5070601@...1...> Message-ID: <20130525094042.GB540@...2774...> On Fri, 24 May 2013, Beno?t Minisini wrote: > Le 24/05/2013 23:14, Tobias Boege a ?crit : > > Hi, > > > > it is said in [0] that the IDE can access an .info file of a project to get > > documentation out of it. > > > > I tried this with gb.openssl which I documented in its source code. It did > > not work since it's a component and not a project. As the gambas-devels may > > already know, I have a bunch of scripts to extract these comments and merge > > them into existing .info files. This works properly meanwhile. Consequently, > > I'd like to see the IDE display the help comments in a *component's* .info > > file. Is that possible? > > > > Regards, > > Tobi > > > > [0] http://gambasdoc.org/help/doc/helpcomments?v3 > > > > No, component help must be written on the wiki. > > Component help can be written on the wiki only after I have uploaded the > information files on the wiki server. > > I will upload the information files after having taken a look at the > interface of your component. > Do you mean that you can import an .info file to the wiki? This would be great to kick-start the gb.openssl documentation if you used my modified .info file. Regards, Tobi From ihaywood at ...1979... Sat May 25 13:07:34 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 25 May 2013 21:07:34 +1000 Subject: [Gambas-user] New gb.crypt.openssl component In-Reply-To: <20130520215835.GD709@...2774...> References: <20130520215835.GD709@...2774...> Message-ID: On Tue, May 21, 2013 at 7:58 AM, Tobias Boege wrote: > Hi folks, > > seems to be the day of new components... I just committed a gb.crypt.openssl > component to wrap the cryptographic functions in OpenSSL's libcrypto. The > idea came actually from Sebastian in conjunction with his gambas-online > project. But maybe it's useful to someone else. This is useful, thanks In your example code you stated there is no automatic way to convert strings to hex. It is possible to do using a loop and the Hex$ function, like so: Public Function String2Hex(s As String) As String Dim ret As String = "" Dim i As Integer For i = 1 To Len(s) ret &= Hex$(Asc(s, i), 2) Next Return ret End Cheers, Ian From gambas at ...1... Sat May 25 15:33:18 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 15:33:18 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130525093757.GA540@...2774...> References: <1369235421.2398.3.camel@...2516...> <20130522152936.GD992@...2774...> <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> <519FDCAF.5020205@...1...> <20130525093757.GA540@...2774...> Message-ID: <51A0BD9E.2070806@...1...> Le 25/05/2013 11:37, Tobias Boege a ?crit : > On Fri, 24 May 2013, Beno?t Minisini wrote: >> Le 23/05/2013 14:23, Tobias Boege a ?crit : >>>> >>>> Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify >>>> the compilation flag for defining a constant. You'd rather use the >>>> 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED). >>>> >>> >>> But when is this file regenerated? Only by configure, correct? This would >>> mean that I have to issue a ./configure everytime I want the new correct >>> version number from gbx3 which is less desirable, in my opinion, than >>> changing a compiler flag. >>> >>> Regards, >>> Tobi >>> >> >> You get a point there. But you must find a way to get the svn version >> only when it changes. For example, we can imagine adding a special >> makefile rule that computes the svn version and put it in its custom >> header file. This rule will depend on the modification time of the >> /trunk/.svn directory (if it is possible). >> >> What do you think? >> > > Good idea. Actually I thought about that, too, but rejected it because a > Makefile rule that depends on .svn will not work on non-repository sources, > like: > > make: *** No rule to make target `.svn', needed by `all'. Stop. > > which is from a Makefile inside my home directory - not svn versioned. > > What I didn't think of was this workaround: have a .PHONY target that > compares timestamps of .svn to the header's instead of letting make do it. > We could catch the case that .svn doesn't exist: > > --- > trunk_version.h: TRUNK_VERSION = $(shell LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+") > trunk_version.h: > @if test -d .svn -a .svn -nt trunk_version.h ; then \ > echo -e "/* TRUNK version if available */\n#define TRUNK_VERSION\t$(TRUNK_VERSION)\n" >trunk_version.h; \ > fi > > .PHONY: trunk_version.h > --- > > This worked in my home directory, i.e. did nothing but without complaint, > and in trunk/ it created the trunk_version.h. Maybe ".svn" above should be > prefixed with the path to the top-level Gambas directory? > > The lines are quite ugly. I couldn't find out how to use a here-document in > a Makefile. Alas, I don't have time today to make it better. > > Regards, > Tobi > My solution is in r5677: I took yours and simplified it by removing what I don't understand. :-) It creates a void 'trunk_version.h' if there is no '.svn' directory. All seems to work correctly, but I'm waiting for your opinion to be sure! :-) -- Beno?t Minisini From gambas at ...1... Sat May 25 16:03:25 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 16:03:25 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <20130521141316.GE509@...2774...> References: <20130521141316.GE509@...2774...> Message-ID: <51A0C4AD.1090504@...1...> Le 21/05/2013 16:13, Tobias Boege a ?crit : > Hi Benoit, > > when programming a component in C/C++, one can use the error hook to execute > a function when the interpreter is about to abort because of an error. > > In Gambas itself, we only have the local Catch blocks to execute code in > case of error in this or any context above in the stack. > > However, there is no global error handling routine like the above error hook > available for Gambas programs. It would be handy if the program ultimately > has to tidy up some of its business before it is killed. > > A rather dull example would be the one we initially intended: a Circular > from gb.data might be good to store program logs because it has a fixed > size. In case of an unexpected program error we would like to dump this > Circular. Easy when programming a component in C/C++ but impossible in > Gambas. AFAIK! > > Thoughts? > > Regards, > Tobi > Global error management routine has been implemented in revision #5678. This routine must be a static public method of the startup class, and must be named "Application_Error". Inside this method, you can use the properties of the Error class to get information about the error. If an uncatched error is raised while running Application_Error, then the program will abort with that error replacing the old one. Beware, this was not tested yet! The IDE has been modified to try to save all modified files before aborting if an error occurs. Enjoy! -- Beno?t Minisini From lists at ...2828... Sat May 25 18:29:07 2013 From: lists at ...2828... (CJ) Date: Sat, 25 May 2013 18:29:07 +0200 Subject: [Gambas-user] Test please ignore! Message-ID: <000001ce5964$fcbbc990$0f00a8c0@...2829...> Just a test since I've had problems posting to this list, please ignore! /CJ From lists at ...2828... Sat May 25 18:32:51 2013 From: lists at ...2828... (CJ) Date: Sat, 25 May 2013 18:32:51 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi Message-ID: <000001ce5965$821bc4f0$0f00a8c0@...2829...> After compiling and updating to latest stable 3.4.1 version I retested the HW interrupt code I had problems with when running 3.3.4 and have the same error when testing on the RaspberryPi... Code compiles OK but when I pull GPIO18 pin low (i.e generating the interrupt) it crashes with a "Stack overflow" error message. root at ...3122...:/home/Projekt/libwiringPi_irq# ./libwiringPi_irq.gambas wiringPi Init OK... IRQ setup OK... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... MMain.Main.110: #3: Stack overflow 1: MMain.Main.110 Segmentation fault Below is the output from gdb... ... (gdb) bt #0 THROW (code=0) at gb_error.c:465 #1 0x0004a9e4 in THROW_STACK () at gb_error.c:489 #2 0x0004a9e4 in THROW_STACK () at gb_error.c:489 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) A informed by Beno?t this is how to declare it in Gambas3 to use the interrupt function in wiringPi library... >Extern wiringPiIsr(iPin As Integer, iEdgeType As Integer, pFunction As Pointer) In "lib..." > >... > >And then you use the name of a static function as 'pFunction' argument >when calling wiringPiIsr. > >Gambas will automatically create a internal callback that will execute >the Gambas function through the interpreter as if it would be called >directly like a C function. As mentioned before problem may very well be in my code when setting up the interrupt handler, attached is the source code and wonder if I'm doing it correctly by placing the interrupt handler in a separate classfile so any pointer appreciated... /CJ -------------- next part -------------- A non-text attachment was scrubbed... Name: libwiringPi_irq.tar.gz Type: application/x-gzip Size: 19249 bytes Desc: not available URL: From gambas at ...1... Sat May 25 19:33:14 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 19:33:14 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <000001ce5965$821bc4f0$0f00a8c0@...2829...> References: <000001ce5965$821bc4f0$0f00a8c0@...2829...> Message-ID: <51A0F5DA.7050100@...1...> Le 25/05/2013 18:32, CJ a ?crit : > > After compiling and updating to latest stable 3.4.1 version I retested > the HW interrupt code I had problems with when running 3.3.4 and have the > same error when testing on the RaspberryPi... > > Code compiles OK but when I pull GPIO18 pin low (i.e generating the > interrupt) > it crashes with a "Stack overflow" error message. > > root at ...3122...:/home/Projekt/libwiringPi_irq# ./libwiringPi_irq.gambas > wiringPi Init OK... > IRQ setup OK... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > MMain.Main.110: #3: Stack overflow > 1: MMain.Main.110 > Segmentation fault > > Below is the output from gdb... > > ... > (gdb) bt > #0 THROW (code=0) at gb_error.c:465 > #1 0x0004a9e4 in THROW_STACK () at gb_error.c:489 > #2 0x0004a9e4 in THROW_STACK () at gb_error.c:489 > Backtrace stopped: previous frame identical to this frame (corrupt stack?) > (gdb) > > A informed by Beno?t this is how to declare it in Gambas3 to use the > interrupt > function in wiringPi library... > >> Extern wiringPiIsr(iPin As Integer, iEdgeType As Integer, pFunction As > Pointer) In "lib..." >> >> ... >> >> And then you use the name of a static function as 'pFunction' argument >> when calling wiringPiIsr. >> >> Gambas will automatically create a internal callback that will execute >> the Gambas function through the interpreter as if it would be called >> directly like a C function. > > As mentioned before problem may very well be in my code when setting up the > interrupt handler, attached is the source code and wonder if I'm doing it > correctly by placing the interrupt handler in a separate classfile so any > pointer > appreciated... > > /CJ > What happens if there is no code at all inside the interrupt handler? Do you know in which context the interrupt handler is run? (signal handler context? Something else?) And I don't understand why you get an error on line #110, whereas there is only 58 lines in your MMain.module file... Regards, -- Beno?t Minisini From lists at ...2828... Sat May 25 20:54:27 2013 From: lists at ...2828... (CJ) Date: Sat, 25 May 2013 20:54:27 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <51A0F5DA.7050100@...1...> Message-ID: <000001ce5979$4f334cc0$0f00a8c0@...2829...> > What happens if there is no code at all inside the interrupt handler? The same thing. > Do you know in which context the interrupt handler is run? (signal > handler context? Something else?) Here is the response from wiringPi's author Gordon Henderson... The interrupt handler is a standard pthread process. The wiringPiISR code creates the thread and that thread then waits for the interrupt, then calls the ISR function - so the function called has to be "thread safe" - something I possibly ought to better document... > And I don't understand why you get an error on line #110, > whereas there is only 58 lines in your MMain.module file... My bad! Reason to this is that I cleaned up the code before making the tar-ball below is the correct output for the attached code... root at ...3122...:/home/Projekt/libwiringPi_irq# ./libwiringPi_irq.gambas wiringPi Init OK... IRQ setup OK... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... MMain.Main.52: #3: Stack overflow 1: MMain.Main.52 And output from gdb... ... (gdb) bt #0 THROW (code=0) at gb_error.c:465 #1 0x0004a9e4 in THROW_STACK () at gb_error.c:489 #2 0x0004a9e4 in THROW_STACK () at gb_error.c:489 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) The stack overflow is happening on the "Wait 1" line in the Do...Loop and same thing happens if I remove the Wait and Print command in the Do...Loop. /CJ From gambas at ...1... Sat May 25 21:35:17 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 21:35:17 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <000001ce5979$4f334cc0$0f00a8c0@...2829...> References: <000001ce5979$4f334cc0$0f00a8c0@...2829...> Message-ID: <51A11275.2020604@...1...> Le 25/05/2013 20:54, CJ a ?crit : > >> What happens if there is no code at all inside the interrupt handler? > > The same thing. > >> Do you know in which context the interrupt handler is run? (signal >> handler context? Something else?) > > Here is the response from wiringPi's author Gordon Henderson... > > The interrupt handler is a standard pthread process. The wiringPiISR code > creates the thread and that thread then waits for the interrupt, then > calls the ISR function - so the function called has to be "thread safe" - > something I possibly ought to better document... The interpreter cannot be run in another thread. This is the reason why you get a crash. Two possible solutions : 1) A pure Gambas solution. But that needs writing a component in C/C++ to implement an interrupt handler that would write to a pipe that would be read by the main thread (the one that runs the Gambas interpreter). 2) Ask to the wiringPi's author to add a new function to handle the interrupt (or modify the current one) that proceeds that way: - Create an internal pipe. - Create the thread. - When an interrupt occurs, the thread writes a byte to the pipe. - The function returns the file descriptor of the other side of the pipe. That way, Gambas would just have to watch the file descriptor returned by the new wiringPiISR function to know if an interrupt has occured. Note that many other interpreters will be happy with that solution! Regards, -- Beno?t Minisini From introlinux at ...626... Sat May 25 22:43:00 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 25 May 2013 22:43:00 +0200 Subject: [Gambas-user] Preview only works with some files Message-ID: We are using FileChooser control with "ShowPreview" to True, but only get some previews and we don't know why. We find no aparent reason. I attached a screenshot. -------------- next part -------------- A non-text attachment was scrubbed... Name: preview.jpg Type: image/jpeg Size: 335431 bytes Desc: not available URL: From gambas at ...1... Sat May 25 22:53:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 22:53:00 +0200 Subject: [Gambas-user] Preview only works with some files In-Reply-To: References: Message-ID: <51A124AC.2050409@...1...> Le 25/05/2013 22:43, Antonio S?nchez a ?crit : > We are using FileChooser control with "ShowPreview" to True, but only get > some previews and we don't know why. We find no aparent reason. > > I attached a screenshot. > When the file is too big (> 64K), the preview is not shown. Maybe the limit is a bit low? -- Beno?t Minisini From introlinux at ...626... Sat May 25 23:05:16 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 25 May 2013 23:05:16 +0200 Subject: [Gambas-user] Preview only works with some files In-Reply-To: <51A124AC.2050409@...1...> References: <51A124AC.2050409@...1...> Message-ID: For our purpose, yes, it is a bit low. Where could we change this limit? 2013/5/25 Beno?t Minisini > Le 25/05/2013 22:43, Antonio S?nchez a ?crit : > > We are using FileChooser control with "ShowPreview" to True, but only get > > some previews and we don't know why. We find no aparent reason. > > > > I attached a screenshot. > > > > When the file is too big (> 64K), the preview is not shown. > > Maybe the limit is a bit low? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat May 25 23:11:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 25 May 2013 23:11:50 +0200 Subject: [Gambas-user] Preview only works with some files In-Reply-To: References: <51A124AC.2050409@...1...> Message-ID: <51A12916.8090403@...1...> Le 25/05/2013 23:05, Antonio S?nchez a ?crit : > For our purpose, yes, it is a bit low. > Where could we change this limit? > You can't at the moment, but you can handle the "Icon" event instead, and set the Icon property: that allows you to create the image preview yourself as you like. Regards, -- Beno?t Minisini From lists at ...2828... Sat May 25 23:48:46 2013 From: lists at ...2828... (CJ) Date: Sat, 25 May 2013 23:48:46 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <51A11275.2020604@...1...> Message-ID: <000001ce5991$a5215c40$0f00a8c0@...2829...> > The interpreter cannot be run in another thread. This is the > reason why you get a crash. Thanks for explaining the problem and possible solutions Beno?t! I have forwarded your input to wiringPi's author so lets see whats happening and if he may consider adding a "interpreter friendly" interrupt function to his library. /CJ From taboege at ...626... Sun May 26 10:08:38 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 May 2013 10:08:38 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <51A0C4AD.1090504@...1...> References: <20130521141316.GE509@...2774...> <51A0C4AD.1090504@...1...> Message-ID: <20130526080838.GC510@...2774...> On Sat, 25 May 2013, Beno?t Minisini wrote: > Le 21/05/2013 16:13, Tobias Boege a ?crit : > > Hi Benoit, > > > > when programming a component in C/C++, one can use the error hook to execute > > a function when the interpreter is about to abort because of an error. > > > > In Gambas itself, we only have the local Catch blocks to execute code in > > case of error in this or any context above in the stack. > > > > However, there is no global error handling routine like the above error hook > > available for Gambas programs. It would be handy if the program ultimately > > has to tidy up some of its business before it is killed. > > > > A rather dull example would be the one we initially intended: a Circular > > from gb.data might be good to store program logs because it has a fixed > > size. In case of an unexpected program error we would like to dump this > > Circular. Easy when programming a component in C/C++ but impossible in > > Gambas. AFAIK! > > > > Thoughts? > > > > Regards, > > Tobi > > > > Global error management routine has been implemented in revision #5678. > > This routine must be a static public method of the startup class, and > must be named "Application_Error". > > Inside this method, you can use the properties of the Error class to get > information about the error. > > If an uncatched error is raised while running Application_Error, then > the program will abort with that error replacing the old one. Beware, > this was not tested yet! > I did. This is my FMain.class: --- Static Public Sub Application_Error() Error "Error: "; Error.Text Print 12 / 0 End Public Sub Button1_Click() File.Load("/does/not/exist") End --- What currently happens is that, when I click on Button1, Application_Error() is called and prints the correct error. Then it produces an error and this again calls Application_Error(). The error information is updated correctly. However, the program does not abort until the Stack is exhausted. > The IDE has been modified to try to save all modified files before > aborting if an error occurs. > > Enjoy! Yes. Good application in the IDE! I experienced IDE crashes sometimes, too. AFAIR this was (almost) always in context of undoing some actions in the form editor (most probably involving creating and destroying controls very fast). Sadly, I couldn't reproduce this as the topic popped up recently. Regards, Tobi From taboege at ...626... Sun May 26 10:51:09 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 May 2013 10:51:09 +0200 Subject: [Gambas-user] IDE crash when undoing creation of a control in selection Message-ID: <20130526085109.GD510@...2774...> Hi Benoit, maybe I hit the send button too early with the last mail. I got a way to reproduce the IDE crash I was talking about: 1. Create two Buttons on a form; 2. Select both; 3. Ctrl+Z to undo creation of the 2nd Button. Possible results (according to my tests): 1. [13] Null Object in FForm.RefreshMenu.2320 2. [13] Null Object in FForm.SetControlProperty.3720 (observed only up to rev#5673. This does not make sense since there are no changes made to the IDE or interpreter at that point. Perhaps it's coincidence.) 3. See screenshot. This is unusual. It may have something to do with Application_Error() but this is only a wild guess. 4. Note that (at least after some tries (?)), the 2nd Button is still present in the FMain.form but it's not visible when opening the project in the IDE. But create another Button and it will be named Button3 despite there is only Button1 on the form. Regarding the 4th case, I observed that this seems to happen randomly. On my system there is kind of an indicator for this case. If I see Button2 at the top left corner of the form when the IDE crashes, it will remain in the .form file. It vanishes in ~3/4 of the cases. I also attach a project where the .form is corrupted this way. Strange only that Button2 is invisible even if it is in the .form... Also note that in the attached project, you cannot undo the creation of a single Button anymore. The IDE crashes, too, with the anonymous error on the screenshot. This was on rev#5678 with the whole source tree newly ./reconf'd etc.. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: idecrash.png Type: image/png Size: 139837 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: idecrash-0.0.1.tar.gz Type: application/octet-stream Size: 4786 bytes Desc: not available URL: From taboege at ...626... Sun May 26 11:13:11 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 May 2013 11:13:11 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <51A0BD9E.2070806@...1...> References: <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> <519FDCAF.5020205@...1...> <20130525093757.GA540@...2774...> <51A0BD9E.2070806@...1...> Message-ID: <20130526091311.GE510@...2774...> On Sat, 25 May 2013, Beno?t Minisini wrote: > Le 25/05/2013 11:37, Tobias Boege a ?crit : > > On Fri, 24 May 2013, Beno?t Minisini wrote: > >> Le 23/05/2013 14:23, Tobias Boege a ?crit : > >>>> > >>>> Sorry, I prefer my way of defining TRUNK_VERSION: you should not modify > >>>> the compilation flag for defining a constant. You'd rather use the > >>>> 'config.h' mechanism (AC_DEFINE & AC_DEFINE_UNQUOTED). > >>>> > >>> > >>> But when is this file regenerated? Only by configure, correct? This would > >>> mean that I have to issue a ./configure everytime I want the new correct > >>> version number from gbx3 which is less desirable, in my opinion, than > >>> changing a compiler flag. > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> You get a point there. But you must find a way to get the svn version > >> only when it changes. For example, we can imagine adding a special > >> makefile rule that computes the svn version and put it in its custom > >> header file. This rule will depend on the modification time of the > >> /trunk/.svn directory (if it is possible). > >> > >> What do you think? > >> > > > > Good idea. Actually I thought about that, too, but rejected it because a > > Makefile rule that depends on .svn will not work on non-repository sources, > > like: > > > > make: *** No rule to make target `.svn', needed by `all'. Stop. > > > > which is from a Makefile inside my home directory - not svn versioned. > > > > What I didn't think of was this workaround: have a .PHONY target that > > compares timestamps of .svn to the header's instead of letting make do it. > > We could catch the case that .svn doesn't exist: > > > > --- > > trunk_version.h: TRUNK_VERSION = $(shell LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo "[0-9]+") > > trunk_version.h: > > @if test -d .svn -a .svn -nt trunk_version.h ; then \ > > echo -e "/* TRUNK version if available */\n#define TRUNK_VERSION\t$(TRUNK_VERSION)\n" >trunk_version.h; \ > > fi > > > > .PHONY: trunk_version.h > > --- > > > > This worked in my home directory, i.e. did nothing but without complaint, > > and in trunk/ it created the trunk_version.h. Maybe ".svn" above should be > > prefixed with the path to the top-level Gambas directory? > > > > The lines are quite ugly. I couldn't find out how to use a here-document in > > a Makefile. Alas, I don't have time today to make it better. > > > > Regards, > > Tobi > > > > My solution is in r5677: I took yours and simplified it by removing what > I don't understand. :-) > > It creates a void 'trunk_version.h' if there is no '.svn' directory. > > All seems to work correctly, but I'm waiting for your opinion to be > sure! :-) > One thing: trunk_version.h is always up to date since it's .PHONY. But gbx.c and friends don't depend on trunk_version.h so these files won't be rebuilt when the trunk version changes (if they are not rebuilt anyway). I added this dependency in rev#5679. This assumes, however, that you have run the Makefile in main/ before you run the ones in gbc/ and gbx/. This sounds fair for me. Regards, Tobi From gambas at ...1... Sun May 26 11:47:40 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 26 May 2013 11:47:40 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <20130526091311.GE510@...2774...> References: <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> <519FDCAF.5020205@...1...> <20130525093757.GA540@...2774...> <51A0BD9E.2070806@...1...> <20130526091311.GE510@...2774...> Message-ID: <51A1DA3C.8090900@...1...> Le 26/05/2013 11:13, Tobias Boege a ?crit : > > One thing: trunk_version.h is always up to date since it's .PHONY. This is not what the 'make' documentation says. If a source file depends on a phony target like 'trunk_version.h' (which is the case as soon as the file is explicitely included), then the phony targer is always run. At least it behaves like that on my machine. Did you really check? > But gbx.c > and friends don't depend on trunk_version.h They do, as they include the 'trunk_version.h' file. -- Beno?t Minisini From gambas at ...1... Sun May 26 11:52:37 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 26 May 2013 11:52:37 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <51A1DA3C.8090900@...1...> References: <1369242310.23889.0.camel@...2516...> <20130522173348.GF992@...2774...> <519D1FDD.8050708@...546...> <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> <519FDCAF.5020205@...1...> <20130525093757.GA540@...2774...> <51A0BD9E.2070806@...1...> <20130526091311.GE510@...2774...> <51A1DA3C.8090900@...1...> Message-ID: <51A1DB65.1000101@...1...> Le 26/05/2013 11:47, Beno?t Minisini a ?crit : > Le 26/05/2013 11:13, Tobias Boege a ?crit : >> >> One thing: trunk_version.h is always up to date since it's .PHONY. > > This is not what the 'make' documentation says. > > If a source file depends on a phony target like 'trunk_version.h' (which > is the case as soon as the file is explicitely included), then the phony > targer is always run. > > At least it behaves like that on my machine. Did you really check? > >> But gbx.c >> and friends don't depend on trunk_version.h > > They do, as they include the 'trunk_version.h' file. > Maybe I see your problem; you have to run 'make' from /trunk/main so that 'trunk_version.h' is automatically regenerated. -- Beno?t Minisini From taboege at ...626... Sun May 26 12:08:58 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 May 2013 12:08:58 +0200 Subject: [Gambas-user] gbc3-gb_error.o compiling rev #5670 In-Reply-To: <51A1DB65.1000101@...1...> References: <20130522202724.GB306@...2774...> <519D3F70.20207@...1...> <519D4466.50900@...1...> <20130523122327.GA686@...2774...> <519FDCAF.5020205@...1...> <20130525093757.GA540@...2774...> <51A0BD9E.2070806@...1...> <20130526091311.GE510@...2774...> <51A1DA3C.8090900@...1...> <51A1DB65.1000101@...1...> Message-ID: <20130526100858.GG510@...2774...> On Sun, 26 May 2013, Beno?t Minisini wrote: > Le 26/05/2013 11:47, Beno?t Minisini a ?crit : > > Le 26/05/2013 11:13, Tobias Boege a ?crit : > >> > >> One thing: trunk_version.h is always up to date since it's .PHONY. > > > > This is not what the 'make' documentation says. > > > > If a source file depends on a phony target like 'trunk_version.h' (which > > is the case as soon as the file is explicitely included), then the phony > > targer is always run. > > > > At least it behaves like that on my machine. Did you really check? > > > >> But gbx.c > >> and friends don't depend on trunk_version.h > > > > They do, as they include the 'trunk_version.h' file. > > > > Maybe I see your problem; you have to run 'make' from /trunk/main so > that 'trunk_version.h' is automatically regenerated. > Ah, got it. make does not detect these dependencies of included files automatically[0]. The generated Makefiles use the gcc -M class of switches to generate .deps/*.Po files which contain this information and are then pulled in by the Makefiles. I didn't know this was possible so I felt to add the dependencies by hand. Will save me some work in other projects :-) I'll go and revert that commit. Regards, Tobi [0] http://scottmcpeak.com/autodepend/autodepend.html From gambas at ...1... Sun May 26 13:19:28 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 26 May 2013 13:19:28 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <20130526080838.GC510@...2774...> References: <20130521141316.GE509@...2774...> <51A0C4AD.1090504@...1...> <20130526080838.GC510@...2774...> Message-ID: <51A1EFC0.2070607@...1...> Le 26/05/2013 10:08, Tobias Boege a ?crit : > > I did. This is my FMain.class: > > --- > Static Public Sub Application_Error() > Error "Error: "; Error.Text > Print 12 / 0 > End > > Public Sub Button1_Click() > File.Load("/does/not/exist") > End > --- > > What currently happens is that, when I click on Button1, Application_Error() > is called and prints the correct error. Then it produces an error and this > again calls Application_Error(). The error information is updated correctly. > However, the program does not abort until the Stack is exhausted. > Fixed in revision #5681. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 26 13:40:53 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 26 May 2013 13:40:53 +0200 Subject: [Gambas-user] IDE crash when undoing creation of a control in selection In-Reply-To: <20130526085109.GD510@...2774...> References: <20130526085109.GD510@...2774...> Message-ID: <51A1F4C5.5020903@...1...> Le 26/05/2013 10:51, Tobias Boege a ?crit : > Hi Benoit, > > maybe I hit the send button too early with the last mail. I got a way to > reproduce the IDE crash I was talking about: > > 1. Create two Buttons on a form; > 2. Select both; > 3. Ctrl+Z to undo creation of the 2nd Button. > It should be fixed in revision #5682. Regards, -- Beno?t Minisini From taboege at ...626... Sun May 26 14:37:19 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 May 2013 14:37:19 +0200 Subject: [Gambas-user] IDE crash when undoing creation of a control in selection In-Reply-To: <51A1F4C5.5020903@...1...> References: <20130526085109.GD510@...2774...> <51A1F4C5.5020903@...1...> Message-ID: <20130526123719.GH510@...2774...> On Sun, 26 May 2013, Beno?t Minisini wrote: > Le 26/05/2013 10:51, Tobias Boege a ?crit : > > Hi Benoit, > > > > maybe I hit the send button too early with the last mail. I got a way to > > reproduce the IDE crash I was talking about: > > > > 1. Create two Buttons on a form; > > 2. Select both; > > 3. Ctrl+Z to undo creation of the 2nd Button. > > > > It should be fixed in revision #5682. > Not really. That result #4 now always happens. Screenshot attached. The Button2 is the one whose creation was undone. It moved to the top left corner after being undone, as I explained, and for some reason the .form file is screwed up. Nevertheless, I can afterwards undo other things what partially fixes the problem. However, the .form is different now. It does not contain the Text property (which may be related to your commit) but an empty entry for Button2 still: { Button2 Button } Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: idecrash.png Type: image/png Size: 140877 bytes Desc: not available URL: From taboege at ...626... Sun May 26 14:39:36 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 26 May 2013 14:39:36 +0200 Subject: [Gambas-user] Global error management routine In-Reply-To: <51A1EFC0.2070607@...1...> References: <20130521141316.GE509@...2774...> <51A0C4AD.1090504@...1...> <20130526080838.GC510@...2774...> <51A1EFC0.2070607@...1...> Message-ID: <20130526123936.GI510@...2774...> On Sun, 26 May 2013, Beno?t Minisini wrote: > Le 26/05/2013 10:08, Tobias Boege a ?crit : > > > > I did. This is my FMain.class: > > > > --- > > Static Public Sub Application_Error() > > Error "Error: "; Error.Text > > Print 12 / 0 > > End > > > > Public Sub Button1_Click() > > File.Load("/does/not/exist") > > End > > --- > > > > What currently happens is that, when I click on Button1, Application_Error() > > is called and prints the correct error. Then it produces an error and this > > again calls Application_Error(). The error information is updated correctly. > > However, the program does not abort until the Stack is exhausted. > > > > Fixed in revision #5681. > Indeed. Thanks. From tom at ...3139... Sun May 26 22:38:42 2013 From: tom at ...3139... (Tom) Date: Sun, 26 May 2013 16:38:42 -0400 Subject: [Gambas-user] How adjust Frame border Message-ID: <51A272D2.6000402@...3139...> I am new to Gambas but have used VB6 for many years. I like gambas very much so far. How do I add/change a border on the Frame control? When I put it on the form it does not show a border. I would like to change the width and color of the border. Also, is there a property that will change the position of the title to left/center/right/top/bottom? I would like to have the title in the top center. Tom From gambas at ...1... Sun May 26 23:22:13 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 26 May 2013 23:22:13 +0200 Subject: [Gambas-user] How adjust Frame border In-Reply-To: <51A272D2.6000402@...3139...> References: <51A272D2.6000402@...3139...> Message-ID: <51A27D05.6010904@...1...> Le 26/05/2013 22:38, Tom a ?crit : > I am new to Gambas but have used VB6 for many years. I like gambas very > much so far. > > How do I add/change a border on the Frame control? When I put it on the > form it does not show a border. > I would like to change the width and color of the border. > > Also, is there a property that will change the position of the title to > left/center/right/top/bottom? > I would like to have the title in the top center. > Tom > This is completely dependent on your widget theme, i.e. the widget theme draws the Frame control as it wants. Gambas decides nothing. My two cents: stop using frame controls everywhere. :-) -- Beno?t Minisini From tom at ...3139... Mon May 27 02:40:26 2013 From: tom at ...3139... (Tom) Date: Sun, 26 May 2013 20:40:26 -0400 Subject: [Gambas-user] How adjust Frame border In-Reply-To: <51A27D05.6010904@...1...> References: <51A272D2.6000402@...3139...> <51A27D05.6010904@...1...> Message-ID: <51A2AB7A.9080506@...3139...> On 5/26/2013 5:22 PM, Beno?t Minisini wrote: > Le 26/05/2013 22:38, Tom a ?crit : >> I am new to Gambas but have used VB6 for many years. I like gambas very >> much so far. >> >> How do I add/change a border on the Frame control? When I put it on the >> form it does not show a border. >> I would like to change the width and color of the border. >> >> Also, is there a property that will change the position of the title to >> left/center/right/top/bottom? >> I would like to have the title in the top center. >> Tom >> > This is completely dependent on your widget theme, i.e. the widget theme > draws the Frame control as it wants. Gambas decides nothing. > > My two cents: stop using frame controls everywhere. :-) What would you suggest to use as a container that has a title? There should be a property for the border color and border width regardless of the widget theme. I do not see it listed. The description shown on the right side middle when a frame is selected says it has an etched border. I have no idea how to change the widget theme. > From gambas at ...1... Mon May 27 10:16:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 May 2013 10:16:46 +0200 Subject: [Gambas-user] IDE crash when undoing creation of a control in selection In-Reply-To: <20130526123719.GH510@...2774...> References: <20130526085109.GD510@...2774...> <51A1F4C5.5020903@...1...> <20130526123719.GH510@...2774...> Message-ID: <51A3166E.803@...1...> Le 26/05/2013 14:37, Tobias Boege a ?crit : > On Sun, 26 May 2013, Beno?t Minisini wrote: >> Le 26/05/2013 10:51, Tobias Boege a ?crit : >>> Hi Benoit, >>> >>> maybe I hit the send button too early with the last mail. I got a way to >>> reproduce the IDE crash I was talking about: >>> >>> 1. Create two Buttons on a form; >>> 2. Select both; >>> 3. Ctrl+Z to undo creation of the 2nd Button. >>> >> >> It should be fixed in revision #5682. >> > > Not really. That result #4 now always happens. Screenshot attached. The > Button2 is the one whose creation was undone. It moved to the top left > corner after being undone, as I explained, and for some reason the .form > file is screwed up. Nevertheless, I can afterwards undo other things what > partially fixes the problem. > > However, the .form is different now. It does not contain the Text property > (which may be related to your commit) but an empty entry for Button2 still: > > { Button2 Button > } > > Regards, > Tobi > Is it better with revision #5683? -- Beno?t Minisini From taboege at ...626... Mon May 27 14:10:03 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 May 2013 14:10:03 +0200 Subject: [Gambas-user] IDE crash when undoing creation of a control in selection In-Reply-To: <51A3166E.803@...1...> References: <20130526085109.GD510@...2774...> <51A1F4C5.5020903@...1...> <20130526123719.GH510@...2774...> <51A3166E.803@...1...> Message-ID: <20130527121003.GA630@...2774...> On Mon, 27 May 2013, Beno?t Minisini wrote: > Le 26/05/2013 14:37, Tobias Boege a ?crit : > > On Sun, 26 May 2013, Beno?t Minisini wrote: > >> Le 26/05/2013 10:51, Tobias Boege a ?crit : > >>> Hi Benoit, > >>> > >>> maybe I hit the send button too early with the last mail. I got a way to > >>> reproduce the IDE crash I was talking about: > >>> > >>> 1. Create two Buttons on a form; > >>> 2. Select both; > >>> 3. Ctrl+Z to undo creation of the 2nd Button. > >>> > >> > >> It should be fixed in revision #5682. > >> > > > > Not really. That result #4 now always happens. Screenshot attached. The > > Button2 is the one whose creation was undone. It moved to the top left > > corner after being undone, as I explained, and for some reason the .form > > file is screwed up. Nevertheless, I can afterwards undo other things what > > partially fixes the problem. > > > > However, the .form is different now. It does not contain the Text property > > (which may be related to your commit) but an empty entry for Button2 still: > > > > { Button2 Button > > } > > > > Regards, > > Tobi > > > > Is it better with revision #5683? > Everything works! From taboege at ...626... Mon May 27 14:27:02 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 May 2013 14:27:02 +0200 Subject: [Gambas-user] Limit on inline array elements Message-ID: <20130527122702.GB630@...2774...> Hi, we got mail from a guy who gets a (roughly translated) "Too many arguments" error when he tries to create an inline array like: --- element = ["H", "He", ...] --- with 105 elements within the brackets. I don't know what he's trying to do but he says it's OK with 50 elements. So what's the limit here? Sorry, I'm too lazy to try to find that out by experimentation. Regards, Tobi From gambas at ...1... Mon May 27 15:03:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 May 2013 15:03:29 +0200 Subject: [Gambas-user] Limit on inline array elements In-Reply-To: <20130527122702.GB630@...2774...> References: <20130527122702.GB630@...2774...> Message-ID: <51A359A1.2030801@...1...> Le 27/05/2013 14:27, Tobias Boege a ?crit : > Hi, > > we got mail from a guy who gets a (roughly translated) "Too many arguments" > error when he tries to create an inline array like: > > --- > element = ["H", "He", ...] > --- > > with 105 elements within the brackets. I don't know what he's trying to do > but he says it's OK with 50 elements. So what's the limit here? Sorry, I'm > too lazy to try to find that out by experimentation. > > Regards, > Tobi > 63 : the maximum number of arguments of a function call. -- Beno?t Minisini From gambas at ...1... Mon May 27 16:12:47 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 27 May 2013 16:12:47 +0200 Subject: [Gambas-user] Editor bug (was Re: Global error management routine) In-Reply-To: <519D461A.5020901@...1823...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519D461A.5020901@...1823...> Message-ID: <51A369DF.6010704@...1...> Le 23/05/2013 00:26, Richard Terry a ?crit : > > Whilst on the topic of the IDE one long standing bug... Please start a new thread when you change the topic of the conversation! > ...is that at some > point after heavy use highlighting a line (s) by clicking a thte start > and dragging the mouse down to then do something with it like delete > en-mass fails and the line instead of being highlighted only the two > columns of characters on the left hand side of the IDE change colour. > Closing the IDE and reloading fixes the problem. Did you check that you didn't activate the block mode by pressing the INSERT key? Do you have a screenshot? > > Something else - a "feature request": I find that when I'm programming > I'm often working with a limited sub-set of subroutines eg half a dozen, > jumping back and forth between them, running the program, debugging > etc. It would be really handy (and there is plenty of room in the IDE > next to the definitions combo, to have a combo which would contain the > last most frequently used subroutines listed. That way instead of having > to scroll down a long list of definitions, or search, one could just use > the combo to jump to where you wanted. I will think about that. I mean, a solution that is not necessarily what you wrote. > > Having said all that the Gambas IDE is a dream compared to most IDE's - > fabulous work. > Thanks! Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon May 27 17:27:54 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 May 2013 18:27:54 +0300 Subject: [Gambas-user] Limit on inline array elements In-Reply-To: <20130527122702.GB630@...2774...> References: <20130527122702.GB630@...2774...> Message-ID: element.Insert(["H","He", ...]) element.Insert(["Sb","Te", ...]) Jussi On Mon, May 27, 2013 at 3:27 PM, Tobias Boege wrote: > Hi, > > we got mail from a guy who gets a (roughly translated) "Too many arguments" > error when he tries to create an inline array like: > > --- > element = ["H", "He", ...] > --- > > with 105 elements within the brackets. I don't know what he's trying to do > but he says it's OK with 50 elements. So what's the limit here? Sorry, I'm > too lazy to try to find that out by experimentation. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tom at ...3139... Mon May 27 18:00:09 2013 From: tom at ...3139... (Tom) Date: Mon, 27 May 2013 12:00:09 -0400 Subject: [Gambas-user] Editor bug (was Re: Global error management routine) In-Reply-To: <51A369DF.6010704@...1...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519D461A.5020901@...1823...> <51A369DF.6010704@...1...> Message-ID: <51A38309.7040806@...3139...> On 5/27/2013 10:12 AM, Beno?t Minisini wrote: > Le 23/05/2013 00:26, Richard Terry a ?crit : >> Whilst on the topic of the IDE one long standing bug... > Please start a new thread when you change the topic of the conversation! > >> ...is that at some >> point after heavy use highlighting a line (s) by clicking a thte start >> and dragging the mouse down to then do something with it like delete >> en-mass fails and the line instead of being highlighted only the two >> columns of characters on the left hand side of the IDE change colour. >> Closing the IDE and reloading fixes the problem. > Did you check that you didn't activate the block mode by pressing the > INSERT key? Do you have a screenshot? > >> Something else - a "feature request": I find that when I'm programming >> I'm often working with a limited sub-set of subroutines eg half a dozen, >> jumping back and forth between them, running the program, debugging >> etc. It would be really handy (and there is plenty of room in the IDE >> next to the definitions combo, to have a combo which would contain the >> last most frequently used subroutines listed. That way instead of having >> to scroll down a long list of definitions, or search, one could just use >> the combo to jump to where you wanted. > I will think about that. I mean, a solution that is not necessarily what > you wrote. Would an option to sort the existing list by "most recently used" work? Then a new list would not be needed. > >> Having said all that the Gambas IDE is a dream compared to most IDE's - >> fabulous work. >> > Thanks! > > Regards, > From gambas at ...2524... Mon May 27 20:31:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 27 May 2013 18:31:30 +0000 Subject: [Gambas-user] Issue 432 in gambas: Crash with Paste Special feature Message-ID: <0-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Crash Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 432 by jussi.la... at ...626...: Crash with Paste Special feature http://code.google.com/p/gambas/issues/detail?id=432 1) Describe the problem. IDE freezes (interpreter gives SGN11) when using "paste special" several times. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5683 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: - Desktop used: XFCE 5) Explain clearly how to reproduce the bug or the crash. 1. Open any project to IDE. 2. Select part of code and copy it. 3. Click on right mouse button and select paste special (paste as comment or as string). 4. Repeat step 2 and 3 several times. Starting program: /usr/bin/gbx3 warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffde240700 (LWP 2068)] [New Thread 0x7fffdda3f700 (LWP 2069)] [New Thread 0x7fffd7be6700 (LWP 2078)] [New Thread 0x7fff7a816700 (LWP 2081)] [Thread 0x7fffde240700 (LWP 2068) exited] Program received signal SIGSEGV, Segmentation fault. 0x000000000044c0d7 in clear (col=0xacc548) at gbx_c_collection.c:56 56 VARIANT_free(value); (gdb) (gdb) bt #0 0x000000000044c0d7 in clear (col=0xacc548) at gbx_c_collection.c:56 #1 0x000000000044c37a in Collection_free (_object=0xacc548, _param=0x7ffff64e7380) at gbx_c_collection.c:116 #2 0x0000000000412b90 in EXEC_native () at gbx_exec.c:1333 #3 0x0000000000413b30 in EXEC_special (special=1, class=0x68bb38, object=0xacc548, nparam=0, drop=1 '\001') at gbx_exec.c:1641 #4 0x0000000000413dbc in EXEC_special_inheritance (special=1, class=0x68bb38, object=0xacc548, nparam=0, drop=1 '\001') at gbx_exec.c:1697 #5 0x000000000041ace7 in CLASS_free (object=0xacc548) at gbx_class.c:727 #6 0x0000000000409d9a in VALUE_write (value=0x7ffff64e7340, addr=0x23a66e8, type=6863672) at gbx_value.c:985 #7 0x0000000000417a5e in EXEC_pop_unknown () at gbx_exec_pop.c:199 #8 0x000000000045d1ac in EXEC_loop () at gbx_exec_loop.c:669 #9 0x0000000000410bce in EXEC_function_loop () at gbx_exec.c:906 #10 0x00000000004107d4 in EXEC_function_real () at gbx_exec.c:870 #11 0x00000000004139a7 in EXEC_public_desc (class=0xa16d08, object=0x227b448, desc=0x2270f78, nparam=0) at gbx_exec.c:1583 #12 0x0000000000436c5d in raise_event (observer=0x227b448, object=0x22a39f8, func_id=190, nparam=0) at gbx_api.c:812 #13 0x0000000000437346 in GB_Raise (object=0x22a39f8, event_id=12, nparam=0) at gbx_api.c:948 #14 0x00007ffff60852ff in CWidget::eventFilter (this= 0x7ffff62d6a00 , widget=0x22a2990, event=0x7fffffffd240) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon May 27 21:54:42 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 27 May 2013 19:54:42 +0000 Subject: [Gambas-user] Issue 432 in gambas: Crash with Paste Special feature In-Reply-To: <0-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11210059805114163329-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 432 by benoit.m... at ...626...: Crash with Paste Special feature http://code.google.com/p/gambas/issues/detail?id=432 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From rterry at ...1823... Mon May 27 23:53:31 2013 From: rterry at ...1823... (richard terry) Date: Tue, 28 May 2013 07:53:31 +1000 Subject: [Gambas-user] Editor bug (was Re: Global error management routine) In-Reply-To: <51A369DF.6010704@...1...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519D461A.5020901@...1823...> <51A369DF.6010704@...1...> Message-ID: <51A3D5DB.7070507@...1823...> On 28/05/13 00:12, Beno?t Minisini wrote: > Le 23/05/2013 00:26, Richard Terry a ?crit : >> Whilst on the topic of the IDE one long standing bug... > Please start a new thread when you change the topic of the conversation! Sorry, I agree, it is misleading. > >> ...is that at some >> point after heavy use highlighting a line (s) by clicking a thte start >> and dragging the mouse down to then do something with it like delete >> en-mass fails and the line instead of being highlighted only the two >> columns of characters on the left hand side of the IDE change colour. >> Closing the IDE and reloading fixes the problem. > Did you check that you didn't activate the block mode by pressing the > INSERT key? Do you have a screenshot? No I didn't think of that I will check the status of this key next time it happens > >> Something else - a "feature request": I find that when I'm programming >> I'm often working with a limited sub-set of subroutines eg half a dozen, >> jumping back and forth between them, running the program, debugging >> etc. It would be really handy (and there is plenty of room in the IDE >> next to the definitions combo, to have a combo which would contain the >> last most frequently used subroutines listed. That way instead of having >> to scroll down a long list of definitions, or search, one could just use >> the combo to jump to where you wanted. > I will think about that. I mean, a solution that is not necessarily what > you wrote. Thanks Richard > >> Having said all that the Gambas IDE is a dream compared to most IDE's - >> fabulous work. >> > Thanks! > > Regards, > From rterry at ...1823... Mon May 27 23:54:32 2013 From: rterry at ...1823... (richard terry) Date: Tue, 28 May 2013 07:54:32 +1000 Subject: [Gambas-user] Editor bug (was Re: Global error management routine) In-Reply-To: <51A38309.7040806@...3139...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519D461A.5020901@...1823...> <51A369DF.6010704@...1...> <51A38309.7040806@...3139...> Message-ID: <51A3D618.7090109@...1823...> On 28/05/13 02:00, Tom wrote: > On 5/27/2013 10:12 AM, Beno?t Minisini wrote: >> Le 23/05/2013 00:26, Richard Terry a ?crit : >>> Whilst on the topic of the IDE one long standing bug... >> Please start a new thread when you change the topic of the conversation! >> >>> ...is that at some >>> point after heavy use highlighting a line (s) by clicking a thte start >>> and dragging the mouse down to then do something with it like delete >>> en-mass fails and the line instead of being highlighted only the two >>> columns of characters on the left hand side of the IDE change colour. >>> Closing the IDE and reloading fixes the problem. >> Did you check that you didn't activate the block mode by pressing the >> INSERT key? Do you have a screenshot? >> >>> Something else - a "feature request": I find that when I'm programming >>> I'm often working with a limited sub-set of subroutines eg half a dozen, >>> jumping back and forth between them, running the program, debugging >>> etc. It would be really handy (and there is plenty of room in the IDE >>> next to the definitions combo, to have a combo which would contain the >>> last most frequently used subroutines listed. That way instead of having >>> to scroll down a long list of definitions, or search, one could just use >>> the combo to jump to where you wanted. >> I will think about that. I mean, a solution that is not necessarily what >> you wrote. > Would an option to sort the existing list by "most recently used" work? Then a > new list would not be needed. The problem with that solution could be that if one loses the alphabetical order of the sub's it will be hard to quickly find any. Regards richard >>> Having said all that the Gambas IDE is a dream compared to most IDE's - >>> fabulous work. >>> >> Thanks! >> >> Regards, >> > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tom at ...3139... Tue May 28 00:02:32 2013 From: tom at ...3139... (Tom) Date: Mon, 27 May 2013 18:02:32 -0400 Subject: [Gambas-user] Editor bug (was Re: Global error management routine) In-Reply-To: <51A3D618.7090109@...1823...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519D461A.5020901@...1823...> <51A369DF.6010704@...1...> <51A38309.7040806@...3139...> <51A3D618.7090109@...1823...> Message-ID: <51A3D7F8.1050504@...3139...> On 5/27/2013 5:54 PM, richard terry wrote: > On 28/05/13 02:00, Tom wrote: >> On 5/27/2013 10:12 AM, Beno?t Minisini wrote: >>> Le 23/05/2013 00:26, Richard Terry a ?crit : >>>> Whilst on the topic of the IDE one long standing bug... >>> Please start a new thread when you change the topic of the conversation! >>> >>>> ...is that at some >>>> point after heavy use highlighting a line (s) by clicking a thte start >>>> and dragging the mouse down to then do something with it like delete >>>> en-mass fails and the line instead of being highlighted only the two >>>> columns of characters on the left hand side of the IDE change colour. >>>> Closing the IDE and reloading fixes the problem. >>> Did you check that you didn't activate the block mode by pressing the >>> INSERT key? Do you have a screenshot? >>> >>>> Something else - a "feature request": I find that when I'm programming >>>> I'm often working with a limited sub-set of subroutines eg half a dozen, >>>> jumping back and forth between them, running the program, debugging >>>> etc. It would be really handy (and there is plenty of room in the IDE >>>> next to the definitions combo, to have a combo which would contain the >>>> last most frequently used subroutines listed. That way instead of having >>>> to scroll down a long list of definitions, or search, one could just use >>>> the combo to jump to where you wanted. >>> I will think about that. I mean, a solution that is not necessarily what >>> you wrote. >> Would an option to sort the existing list by "most recently used" work? Then a >> new list would not be needed. > The problem with that solution could be that if one loses the > alphabetical order of the sub's it will be hard to quickly find any. It would be a checkbox option, or something similar that can be turned on/off with one click. Not a permanent setting, so alphabetical will be easy too. > > Regards > > richard > >>>> Having said all that the Gambas IDE is a dream compared to most IDE's - >>>> fabulous work. >>>> >>> Thanks! >>> >>> Regards, >>> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1823... Tue May 28 00:43:17 2013 From: rterry at ...1823... (richard terry) Date: Tue, 28 May 2013 08:43:17 +1000 Subject: [Gambas-user] Editor bug (was Re: Global error management routine) In-Reply-To: <51A3D7F8.1050504@...3139...> References: <20130521141316.GE509@...2774...> <519BEF61.4000002@...1823...> <519C7988.9040908@...1...> <519D461A.5020901@...1823...> <51A369DF.6010704@...1...> <51A38309.7040806@...3139...> <51A3D618.7090109@...1823...> <51A3D7F8.1050504@...3139...> Message-ID: <51A3E185.4040805@...1823...> On 28/05/13 08:02, Tom wrote: > On 5/27/2013 5:54 PM, richard terry wrote: >> On 28/05/13 02:00, Tom wrote: >>> On 5/27/2013 10:12 AM, Beno?t Minisini wrote: >>>> Le 23/05/2013 00:26, Richard Terry a ?crit : >>>>> Whilst on the topic of the IDE one long standing bug... >>>> Please start a new thread when you change the topic of the conversation! >>>> >>>>> ...is that at some >>>>> point after heavy use highlighting a line (s) by clicking a thte start >>>>> and dragging the mouse down to then do something with it like delete >>>>> en-mass fails and the line instead of being highlighted only the two >>>>> columns of characters on the left hand side of the IDE change colour. >>>>> Closing the IDE and reloading fixes the problem. >>>> Did you check that you didn't activate the block mode by pressing the >>>> INSERT key? Do you have a screenshot? >>>> >>>>> Something else - a "feature request": I find that when I'm programming >>>>> I'm often working with a limited sub-set of subroutines eg half a dozen, >>>>> jumping back and forth between them, running the program, debugging >>>>> etc. It would be really handy (and there is plenty of room in the IDE >>>>> next to the definitions combo, to have a combo which would contain the >>>>> last most frequently used subroutines listed. That way instead of having >>>>> to scroll down a long list of definitions, or search, one could just use >>>>> the combo to jump to where you wanted. >>>> I will think about that. I mean, a solution that is not necessarily what >>>> you wrote. >>> Would an option to sort the existing list by "most recently used" work? Then a >>> new list would not be needed. >> The problem with that solution could be that if one loses the >> alphabetical order of the sub's it will be hard to quickly find any. > It would be a checkbox option, or something similar that can be turned on/off > with one click. Not a permanent setting, so alphabetical will be easy too. Ok, sure that would be easy, good idea richard >> Regards >> >> richard >> >>>>> Having said all that the Gambas IDE is a dream compared to most IDE's - >>>>> fabulous work. >>>>> >>>> Thanks! >>>> >>>> Regards, >>>> >>> ------------------------------------------------------------------------------ >>> Try New Relic Now & We'll Send You this Cool Shirt >>> New Relic is the only SaaS-based application performance monitoring service >>> that delivers powerful full stack analytics. Optimize and monitor your >>> browser, app, & servers with just a few lines of code. Try New Relic >>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From x-bush at ...787... Tue May 28 05:58:41 2013 From: x-bush at ...787... (Alexander Bushuev) Date: Mon, 27 May 2013 20:58:41 -0700 (PDT) Subject: [Gambas-user] DB.Exec() not work with "arguments" (Gambas 3.4.1) In-Reply-To: <1369621737172-42074.post@...3046...> References: <1369621737172-42074.post@...3046...> Message-ID: <1369713521835-42091.post@...3046...> Close this message :) -- View this message in context: http://gambas.8142.n7.nabble.com/DB-Exec-not-work-with-arguments-Gambas-3-4-1-tp42074p42091.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Tue May 28 16:02:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 May 2013 14:02:47 +0000 Subject: [Gambas-user] Issue 433 in gambas: crash when made a postgres conection with wizard Message-ID: <0-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.0 Type-Bug Priority-High OpSys-Linux Dist-Debian Arch-Any Desktop-Any GUI-Any New issue 433 by mckayger... at ...626...: crash when made a postgres conection with wizard http://code.google.com/p/gambas/issues/detail?id=433 1) Describe the problem. in project go to conections-Z made new conection then specify all parameters whe click on databases, gambas said: Unable to store passwod _desktop_Password.put.86 this happen event choose store or not password remenber 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.0 from oficial releases Revision: Operating system: Linux Distribution: Debian squeeze, with postgresql 9.1 Architecture: x86 GUI component: QT4/GTK+ Desktop used: Razorqt/Openbox and also LXDE 3) Provide a little project that reproduces the bug or the crash. any that used a conexcion made throught wizard 4) If your project needs a database, try to provide it, or part of it. any db event postgresql has no security, i made a standar postgresql isntalation with no pass, trust all conections and open all ports to networking, i mean no security implemented 5) Explain clearly how to reproduce the bug or the crash. made a new project go to conections right click, open wizard and create conection using postgresql setup u'r conection and server try now to use a db from server and crash happen with Unable to store passwod _desktop_Password.put.86 Attachments: bambas3error.png 28.3 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue May 28 22:48:56 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 May 2013 20:48:56 +0000 Subject: [Gambas-user] Issue 433 in gambas: crash when made a postgres conection with wizard In-Reply-To: <0-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 433 by benoit.m... at ...626...: crash when made a postgres conection with wizard http://code.google.com/p/gambas/issues/detail?id=433 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue May 28 22:49:56 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 May 2013 20:49:56 +0000 Subject: [Gambas-user] Issue 433 in gambas: crash when made a postgres conection with wizard In-Reply-To: <1-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> <0-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 433 by benoit.m... at ...626...: crash when made a postgres conection with wizard http://code.google.com/p/gambas/issues/detail?id=433 Fixed in revision #5684. Now you have an error message, instead of an IDE crash. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue May 28 22:52:18 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 May 2013 20:52:18 +0000 Subject: [Gambas-user] Issue 431 in gambas: Packaging tool does not support copyleft-next license In-Reply-To: <0-6813199134517018827-16253775720232883088-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16253775720232883088-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16253775720232883088-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 431 by benoit.m... at ...626...: Packaging tool does not support copyleft-next license http://code.google.com/p/gambas/issues/detail?id=431 You can enter any license name in the wizard license field, so I don't see what the problem is. Can you elaborate? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed May 29 15:44:16 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 May 2013 13:44:16 +0000 Subject: [Gambas-user] Issue 433 in gambas: crash when made a postgres conection with wizard In-Reply-To: <2-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> <0-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9554425045092764917-gambas=googlecode.com@...2524...> Comment #3 on issue 433 by mckayger... at ...626...: crash when made a postgres conection with wizard http://code.google.com/p/gambas/issues/detail?id=433 where its the xvn/guit/mercurial repo for made my own patch? , due i used 3.4.0 and i cannot made a upstream package yet.. PLEASE: update web page, due find the trakker was very confused.. there's too many outdated info in the web page of project at sourge force also when i made a connection the parameters for sqlite db are swaped, name and host.. (docs do not say nothing abou it) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu May 30 04:01:24 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 30 May 2013 02:01:24 +0000 Subject: [Gambas-user] Issue 434 in gambas: makan durian ker ? Message-ID: <0-6813199134517018827-4231180488678179895-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 434 by itbase_d... at ...43...: makan durian ker ? http://code.google.com/p/gambas/issues/detail?id=434 1) Describe the problem. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK or BRANCHES/2.0 or 2.22.0 Revision: r1234 (if you use a development version) Operating system: Linux / FreeBSD Distribution: Ubuntu / Fedora / ArchLinux / Gentoo ... Architecture: x86 / x86_64 / ARM GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome / KDE ... 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ron at ...1740... Thu May 30 20:08:21 2013 From: ron at ...1740... (Ron) Date: Thu, 30 May 2013 20:08:21 +0200 Subject: [Gambas-user] Connect hang with latest revision Message-ID: Did something change in the latest 10 revisions trunk regarding socket connects? I upgraded my Gambas3 to latest rev, and now my project hangs when starting. this is the first part of the gdb bt: 0x7fffc6ffe000 0x00007f8a61c0dfdd in connect () at ../sysdeps/unix/syscall-template.S:81 81 ../sysdeps/unix/syscall-template.S: No such file or directory. (gdb) bt #0 0x00007f8a61c0dfdd in connect () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f8a5a0fab4a in CSocket_CallBackFromDns (_object=0x1427028) at CSocket.c:175 #2 CSocket_CallBackFromDns (_object=0x1427028) at CSocket.c:153 #3 0x0000000000412a03 in EVENT_check_post () at gbx_event.c:244 #4 0x00007f8a5ee595be in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #5 0x00007f8a5f3698ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #6 0x00007f8a5f36c25b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #7 0x00007f8a5ee3f63e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #8 0x00007f8a5ee43171 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #9 0x00007f8a5ee6de83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #10 0x00007f8a5de91f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #11 0x00007f8a5de92248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #12 0x00007f8a5de92304 in g_main_context_iteration () Will try to pinpoint the working revision again, if this is the cause... Regards, Ron_2nd. From gambas at ...1... Thu May 30 20:45:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 30 May 2013 20:45:27 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: References: Message-ID: <51A79E47.6050607@...1...> Le 30/05/2013 20:08, Ron a ?crit : > Did something change in the latest 10 revisions trunk regarding socket connects? > > I upgraded my Gambas3 to latest rev, and now my project hangs when starting. > > this is the first part of the gdb bt: > 0x7fffc6ffe000 > 0x00007f8a61c0dfdd in connect () at ../sysdeps/unix/syscall-template.S:81 > 81 ../sysdeps/unix/syscall-template.S: No such file or directory. > (gdb) bt > #0 0x00007f8a61c0dfdd in connect () at ../sysdeps/unix/syscall-template.S:81 > #1 0x00007f8a5a0fab4a in CSocket_CallBackFromDns (_object=0x1427028) > at CSocket.c:175 > #2 CSocket_CallBackFromDns (_object=0x1427028) at CSocket.c:153 > #3 0x0000000000412a03 in EVENT_check_post () at gbx_event.c:244 > #4 0x00007f8a5ee595be in QObject::event(QEvent*) () > from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #5 0x00007f8a5f3698ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) > () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #6 0x00007f8a5f36c25b in QApplication::notify(QObject*, QEvent*) () > from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #7 0x00007f8a5ee3f63e in QCoreApplication::notifyInternal(QObject*, QEvent*) > () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #8 0x00007f8a5ee43171 in > QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) > () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #9 0x00007f8a5ee6de83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > #10 0x00007f8a5de91f05 in g_main_context_dispatch () > from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #11 0x00007f8a5de92248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #12 0x00007f8a5de92304 in g_main_context_iteration () > > Will try to pinpoint the working revision again, if this is the cause... > Regards, > Ron_2nd. > Mmm, no, the gb.net component has not been modified... -- Beno?t Minisini From ea7dfh at ...2382... Thu May 30 20:48:21 2013 From: ea7dfh at ...2382... (Jesus) Date: Thu, 30 May 2013 20:48:21 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work Message-ID: <51A79EF5.2080106@...2382...> Hi all AFAIR this used to work until now: Shell "ls -la" To variable Exec ["ls", "-la"] To anothervariable But now, whatever command I use, if it has one or more arguments beginning with a dash or double dash, I don't get any output. Quoting it with Shell$() function does not help. Also, I've tried using process reading, to no avail. If you would issue the command without arguments, it then works fine. Is this a bug, or am I doing something wrong? Regards Gambas 3.4.90 r5682 [System] OperatingSystem=Linux Kernel=3.2.0-23-generic Architecture=x86_64 Distribution=Linux Mint 13 Maya Desktop=GNOME Theme=QPlastique Language=es_ES.UTF-8 Memory=16034M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Poppler=libpoppler.so.19.0.0 -- Jesus Guardon From ron at ...1740... Thu May 30 20:56:20 2013 From: ron at ...1740... (Ron) Date: Thu, 30 May 2013 20:56:20 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51A79E47.6050607@...1...> References: <51A79E47.6050607@...1...> Message-ID: Strange i updated two machines and they both hang at startup trying to connect to a tcp socket. Will downgrade tomorrow and try to isolate it. Regards, Ron_2nd Op 30 mei 2013 20:45 schreef "Beno?t Minisini" het volgende: > Le 30/05/2013 20:08, Ron a ?crit : > > Did something change in the latest 10 revisions trunk regarding socket > connects? > > > > I upgraded my Gambas3 to latest rev, and now my project hangs when > starting. > > > > this is the first part of the gdb bt: > > 0x7fffc6ffe000 > > 0x00007f8a61c0dfdd in connect () at ../sysdeps/unix/syscall-template.S:81 > > 81 ../sysdeps/unix/syscall-template.S: No such file or directory. > > (gdb) bt > > #0 0x00007f8a61c0dfdd in connect () at > ../sysdeps/unix/syscall-template.S:81 > > #1 0x00007f8a5a0fab4a in CSocket_CallBackFromDns (_object=0x1427028) > > at CSocket.c:175 > > #2 CSocket_CallBackFromDns (_object=0x1427028) at CSocket.c:153 > > #3 0x0000000000412a03 in EVENT_check_post () at gbx_event.c:244 > > #4 0x00007f8a5ee595be in QObject::event(QEvent*) () > > from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #5 0x00007f8a5f3698ec in QApplicationPrivate::notify_helper(QObject*, > QEvent*) > > () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #6 0x00007f8a5f36c25b in QApplication::notify(QObject*, QEvent*) () > > from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > > #7 0x00007f8a5ee3f63e in QCoreApplication::notifyInternal(QObject*, > QEvent*) > > () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #8 0x00007f8a5ee43171 in > > QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) > > () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #9 0x00007f8a5ee6de83 in ?? () from > /usr/lib/x86_64-linux-gnu/libQtCore.so.4 > > #10 0x00007f8a5de91f05 in g_main_context_dispatch () > > from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > > #11 0x00007f8a5de92248 in ?? () from > /lib/x86_64-linux-gnu/libglib-2.0.so.0 > > #12 0x00007f8a5de92304 in g_main_context_iteration () > > > > Will try to pinpoint the working revision again, if this is the cause... > > Regards, > > Ron_2nd. > > > > Mmm, no, the gb.net component has not been modified... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu May 30 21:04:59 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 30 May 2013 21:04:59 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: References: <51A79E47.6050607@...1...> Message-ID: <51A7A2DB.4060701@...1...> Le 30/05/2013 20:56, Ron a ?crit : > Strange i updated two machines and they both hang at startup trying to > connect to a tcp socket. > Will downgrade tomorrow and try to isolate it. > > Regards, > Ron_2nd Do you have the old revision number before the hang? -- Beno?t Minisini From ea7dfh at ...2382... Thu May 30 21:30:34 2013 From: ea7dfh at ...2382... (Jesus) Date: Thu, 30 May 2013 21:30:34 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <51A79EF5.2080106@...2382...> References: <51A79EF5.2080106@...2382...> Message-ID: <51A7A8DA.40705@...2382...> El 30/05/13 20:48, Jesus escribi?: > Hi all > > AFAIR this used to work until now: > > Shell "ls -la" To variable > Exec ["ls", "-la"] To anothervariable > > But now, whatever command I use, if it has one or more arguments > beginning with a dash or double dash, I don't get any output. > > Quoting it with Shell$() function does not help. Also, I've tried using > process reading, to no avail. > > If you would issue the command without arguments, it then works fine. > > Is this a bug, or am I doing something wrong? > > Regards > > Gambas 3.4.90 r5682 Disregard my last message. This only occurs with some commands, for example "ifconfig --help". But minutes ago, it didn't work either. Weird... Regards -- Jesus Guardon From nemh at ...2007... Thu May 30 21:35:30 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Thu, 30 May 2013 21:35:30 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <51A79EF5.2080106@...2382...> References: <51A79EF5.2080106@...2382...> Message-ID: <20130530213530.638890d9@...3104...> An interesting example, why do not you use native methods? Dim item As String For Each item In Dir(User.Home).Sort() With Stat(User.Home & "/" & item) Print .Auth & " " & .User & " " & .Group & " " & .Size & " " & .LastModified & " " & item End With Next > Hi all > > AFAIR this used to work until now: > > Shell "ls -la" To variable > Exec ["ls", "-la"] To anothervariable > > But now, whatever command I use, if it has one or more arguments > beginning with a dash or double dash, I don't get any output. > > Quoting it with Shell$() function does not help. Also, I've tried > using process reading, to no avail. > > If you would issue the command without arguments, it then works fine. > > Is this a bug, or am I doing something wrong? > > Regards > > Gambas 3.4.90 r5682 > > [System] > OperatingSystem=Linux > Kernel=3.2.0-23-generic > Architecture=x86_64 > Distribution=Linux Mint 13 Maya > Desktop=GNOME > Theme=QPlastique > Language=es_ES.UTF-8 > Memory=16034M > > [Libraries] > Curl=libcurl.so.4.2.0 > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+=libgtk-x11-2.0.so.0.2400.10 > Qt4=libQtCore.so.4.8.1 > SDL=libSDL-1.2.so.0.11.3 > Poppler=libpoppler.so.19.0.0 > From ea7dfh at ...2382... Thu May 30 23:50:30 2013 From: ea7dfh at ...2382... (Jesus) Date: Thu, 30 May 2013 23:50:30 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <20130530213530.638890d9@...3104...> References: <51A79EF5.2080106@...2382...> <20130530213530.638890d9@...3104...> Message-ID: <51A7C9A6.40304@...2382...> El 30/05/13 21:35, Kende Kriszti?n escribi?: > An interesting example, why do not you use native methods? > > Dim item As String > > For Each item In Dir(User.Home).Sort() > > With Stat(User.Home & "/" & item) > > Print .Auth & " " & .User & " " & .Group & " " & .Size & " " & .LastModified & " " & item > > End With > > Next > > >> Hi all >> >> AFAIR this used to work until now: >> >> Shell "ls -la" To variable >> Exec ["ls", "-la"] To anothervariable >> >> But now, whatever command I use, if it has one or more arguments >> beginning with a dash or double dash, I don't get any output. >> >> Quoting it with Shell$() function does not help. Also, I've tried >> using process reading, to no avail. >> >> If you would issue the command without arguments, it then works fine. >> >> Is this a bug, or am I doing something wrong? >> >> Regards >> >> Gambas 3.4.90 r5682 >> That's not the case. What I wanted to point out is why some commands does not work when some arguments are given. Obviously, my first example is pointless. Have you tested the following? Shell "ifconfig --help" To somevar Why this does not return anything? Regards -- Jesus Guardon From rterry at ...1823... Fri May 31 00:07:05 2013 From: rterry at ...1823... (richard terry) Date: Fri, 31 May 2013 08:07:05 +1000 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> <5192E65E.9070604@...1823...> <51932E8D.4080708@...1823...> Message-ID: <51A7CD89.9020200@...1823...> Another columnview question if possible The columnviews used to resize their columns to match the contents, they don't seem to do so any longer. I've tried setting every property there is, and in the end have had to write a sub to manually adjust the columns to a reasonable size. For what should be very simple, could anyone think what I could be doing wrong, or give me a simple example of loading a columnview with data which does resize automatically? Regards richard On 16/05/13 07:59, Fabien Bodard wrote: > In fact I think I need a better explanation or an example... > What do you really want ? > > To generate a kind of elementclick event? > > Normally you just have to do.: > $sKey = cvw.Item.Key > In the cvw_Click event > And then use the value of $sKey in the cvw_menu event > > Or maybe I have missed something and so tell us more > > Best regards, > Fabien Bodard > Le 15 mai 2013 08:44, "Richard Terry" a ?crit : > >> Fabien Bodard wrote: >>> Use a flag!!! >>> Le 15 mai 2013 03:46, "Richard Terry" a ?crit >> : >> Sorry Fabien, don't mean to be a pest but if this was a simple problem >> I've figure it myself. I don't understand why this code works erratically. >> >> Could you explain what you mean by use a flag with a couple of lines of >> sample code. >> >> Regards >> >> richard >> >>>> Beno?t Minisini wrote: >>>> >>>>> Le 08/05/2013 02:03, Richard Terry a ?crit : >>>>> >>>>> >>>>>> Hi List, >>>>>> >>>>>> >>>>>> >>>>> > ... >>>>> > >>>>> >>>>> >>>>>> However, lets say I want to popup a menu of the letters collection: >>>>>> >>>>>> If I right mouse click on the list to bring up the menu the >>>>>> cvwLetters_Menu event triggers, but if one inspects the cvwLetters >>>>>> control itself in the IDE, the cvwLetters.item.key is null, however >> the >>>>>> cvwletters.selected[0] does contain the value one would expect to be >> in >>>>>> the cvwLetters.item.key. >>>>>> >>>>>> I've tried doing e.g cvwLetters.movecurrent() before popping up the >>>>>> menu, this does not seem to make much difference. >>>>>> >>>>>> >>>>> The Menu event is not an event managed by the ColumnView control, but >> by >>>>> its Control parent class. This is the reason why the Item property is >>>>> not set during the Menu event handler. The Menu event is raised even if >>>>> you don't click on an item. >>>>> >>>>> Normally, the Click event will be raised before the Menu event, and so >>>>> you can store the key of the ColumnView.Item property during the Click >>>>> event handler (which is a ColumnView event) to use it later during the >>>>> Menu event handler. >>>>> >>>>> >>>>> >>>>>> Also I've a chronic problem trying to generate a columnview click >> event >>>>>> in code, with a similar outcome to the above - the item.key is not set >>>>>> >>>>>> >>>>> The Item property *is* set during a Click event handler. What are you >>>>> talking about with "generate a columnview click event"? >>>>> >>>>> >>>>> >>>> What I meant was this. Lets say you have loaded the columnview with >>>> data. Now, if the user was sitting in front of the program and wanted to >>>> select an item in the columnview, then he would click on the column >>>> which one would then trap the event and do something with it. >>>> >>>> I often need to be able to emulate that in code, ie have the program do >>>> the same thing. Doing this >>>> >>>> columnview1.Movefirst() >>>> columnview1.item.selected = True >>>> >>>> will sometimes work ie this triggeres the columnview1_Select() routine >>>> and any code associated with this. >>>> >>>> Hope this is clearer. >>>> >>>> Regards >>>> >>>> Richard >>>> >>>> Richard >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> AlienVault Unified Security Management (USM) platform delivers complete >>>> security visibility with the essential security capabilities. Easily and >>>> efficiently configure, manage, and operate all of your security controls >>>> from a single console and one unified framework. Download a free trial. >>>> http://p.sf.net/sfu/alienvault_d2d >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >> ------------------------------------------------------------------------------ >>> AlienVault Unified Security Management (USM) platform delivers complete >>> security visibility with the essential security capabilities. Easily and >>> efficiently configure, manage, and operate all of your security controls >>> from a single console and one unified framework. Download a free trial. >>> http://p.sf.net/sfu/alienvault_d2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> ------------------------------------------------------------------------------ >> AlienVault Unified Security Management (USM) platform delivers complete >> security visibility with the essential security capabilities. Easily and >> efficiently configure, manage, and operate all of your security controls >> from a single console and one unified framework. Download a free trial. >> http://p.sf.net/sfu/alienvault_d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1823... Fri May 31 00:15:33 2013 From: rterry at ...1823... (richard terry) Date: Fri, 31 May 2013 08:15:33 +1000 Subject: [Gambas-user] The WebCam Examples crash Message-ID: <51A7CF85.4090808@...1823...> I've asked about this before and wonder if anyone can help, as the web cam is/was critical to my clinical practice as it is integrated with EasyGP and I used to continually use it all day to do things ranging from snapping the patient's photo for their file, to taking pictures of skin lesions, rashes, etc etc, and inserting them directly into the notes. As previously mentioned this used to work on my old kubuntu 9 machine, but no versions since eg 10/11/12 and now on Linux Mint ditto. Running the examples, or even my program does bring up the video image, but as soon as the form closes the program dies, below is the terminal printout. I can't believe I'm the only one in the world with this problem. I wonder if anyone else on the list could run the samples and report back - give suggestions or guidance. Regards richard gb.v4l: v4l2: Device is V4L2!: Resource temporarily unavailable gb.v4l: v4l2: cropping not supported: Invalid argument gb.v4l: v4l2: Capture ON: Invalid argument gb.v4l: v4l2: 'Source' not currently implemented for V4L2: Invalid argument gb.v4l: v4l2: cropping not supported: Invalid argument gb.v4l: v4l2: Capture ON: Invalid argument gb.v4l: v4l2: cropping not supported: Invalid argument gb.v4l: v4l2: Capture ON: Invalid argument *** glibc detected *** MyWebCam: double free or corruption (!prev): 0x00000000009e2b40 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f5e8ef21b96] MyWebCam[0x40f424] MyWebCam[0x408077] MyWebCam[0x4351a3] MyWebCam[0x40a4fd] MyWebCam[0x40abc3] MyWebCam[0x41fb87] MyWebCam[0x420a6d] /usr/lib/gambas3/gb.gtk.so(+0x5a88f)[0x7f5e8d77088f] /usr/lib/gambas3/gb.gtk.so(+0x4a42d)[0x7f5e8d76042d] /usr/lib/gambas3/gb.gtk.so(+0x4a4ff)[0x7f5e8d7604ff] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x136599)[0x7f5e8cfde599] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x190)[0x7f5e8c04b140] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21550)[0x7f5e8c05c550] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x9cb)[0x7f5e8c0640cb] /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f5e8c064642] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x24f95e)[0x7f5e8d0f795e] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x54b)[0x7f5e8cfdcf5b] /usr/lib/gambas3/gb.gtk.so(+0x5e09e)[0x7f5e8d77409e] /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bd7c)[0x7f5e8cc51d7c] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x135)[0x7f5e8bd8bab5] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x47de8)[0x7f5e8bd8bde8] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7f5e8bd8bea4] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_iteration_do+0x1d)[0x7f5e8cfdbedd] /usr/lib/gambas3/gb.gtk.so(+0x5bd0a)[0x7f5e8d771d0a] /usr/lib/gambas3/gb.gtk.so(+0x5bd75)[0x7f5e8d771d75] MyWebCam[0x40481a] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f5e8eec476d] MyWebCam[0x40492d] ======= Memory map: ======== 00400000-0044f000 r-xp 00000000 08:03 788835 /usr/bin/gbx3 0064e000-0064f000 r--p 0004e000 08:03 788835 /usr/bin/gbx3 0064f000-00659000 rw-p 0004f000 08:03 788835 /usr/bin/gbx3 00659000-0065c000 rw-p 00000000 00:00 0 007e3000-00b78000 rw-p 00000000 00:00 0 [heap] 7f5e74000000-7f5e74022000 rw-p 00000000 00:00 0 7f5e74022000-7f5e78000000 ---p 00000000 00:00 0 7f5e7b927000-7f5e7b987000 rw-s 00000000 00:04 1933344 /SYSV00000000 (deleted) 7f5e7b987000-7f5e7b989000 r-xp 00000000 08:03 1311998 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so 7f5e7b989000-7f5e7bb88000 ---p 00002000 08:03 1311998 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so 7f5e7bb88000-7f5e7bb89000 r--p 00001000 08:03 1311998 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so 7f5e7bb89000-7f5e7bb8a000 rw-p 00002000 08:03 1311998 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so 7f5e7bb8a000-7f5e7bb8b000 ---p 00000000 00:00 0 7f5e7bb8b000-7f5e7c38b000 rw-p 00000000 00:00 0 [stack:3355] 7f5e7c38b000-7f5e7c397000 r-xp 00000000 08:03 2100975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f5e7c397000-7f5e7c596000 ---p 0000c000 08:03 2100975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f5e7c596000-7f5e7c597000 r--p 0000b000 08:03 2100975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f5e7c597000-7f5e7c598000 rw-p 0000c000 08:03 2100975 /lib/x86_64-linux-gnu/libudev.so.0.13.0 7f5e7c5b7000-7f5e7c5ec000 r-xp 00000000 08:03 1312470 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f5e7c5ec000-7f5e7c7ec000 ---p 00035000 08:03 1312470 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f5e7c7ec000-7f5e7c7f1000 r--p 00035000 08:03 1312470 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f5e7c7f1000-7f5e7c7f2000 rw-p 0003a000 08:03 1312470 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so 7f5e7c7f2000-7f5e7c821000 r-xp 00000000 08:03 1312133 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f5e7c821000-7f5e7ca20000 ---p 0002f000 08:03 1312133 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f5e7ca20000-7f5e7ca21000 r--p 0002e000 08:03 1312133 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f5e7ca21000-7f5e7ca23000 rw-p 0002f000 08:03 1312133 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so 7f5e7ca23000-7f5e7dd24000 r--p 00000000 08:03 2008689 /usr/share/icons/hicolor/icon-theme.cache 7f5e7dd24000-7f5e80fed000 r--p 00000000 08:03 1996331 /usr/share/icons/mate/icon-theme.cache 7f5e80fed000-7f5e85253000 r--p 00000000 08:03 1981540 /usr/share/icons/gnome/icon-theme.cache 7f5e85253000-7f5e8548c000 r--p 00000000 08:16 34608010 /home/richard/.icons/Tango/icon-theme.cache 7f5e8592b000-7f5e8592d000 r-xp 00000000 08:03 1312661 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f5e8592d000-7f5e85b2c000 ---p 00002000 08:03 1312661 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f5e85b2c000-7f5e85b2d000 r--p 00001000 08:03 1312661 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f5e85b2d000-7f5e85b2e000 rw-p 00002000 08:03 1312661 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f5e85b2e000-7f5e85b58000 r-xp 00000000 08:03 1312401 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so 7f5e85b58000-7f5e85d58000 ---p 0002a000 08:03 1312401 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so 7f5e85d58000-7f5e85d59000 r--p 0002a000 08:03 1312401 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so 7f5e85d59000-7f5e85d5a000 rw-p 0002b000 08:03 1312401 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so 7f5e85d5a000-7f5e85d66000 r-xp 00000000 08:03 2102960 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f5e85d66000-7f5e85f65000 ---p 0000c000 08:03 2102960 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f5e85f65000-7f5e85f66000 r--p 0000b000 08:03 2102960 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f5e85f66000-7f5e85f67000 rw-p 0000c000 08:03 2102960 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f5e85f67000-7f5e85f71000 r-xp 00000000 08:03 2102953 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f5e85f71000-7f5e86171000 ---p 0000a000 08:03 2102953 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f5e86171000-7f5e86172000 r--p 0000a000 08:03 2102953 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f5e86172000-7f5e86173000 rw-p 0000b000 08:03 2102953 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f5e86173000-7f5e8618a000 r-xp 00000000 08:03 2102972 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f5e8618a000-7f5e86389000 ---p 00017000 08:03 2102972 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f5e86389000-7f5e8638a000 r--p 00016000 08:03 2102972 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f5e8638a000-7f5e8638b000 rw-p 00017000 08:03 2102972 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f5e8638b000-7f5e8638d000 rw-p 00000000 00:00 0 7f5e8638d000-7f5e86395000 r-xp 00000000 08:03 2102977 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f5e86395000-7f5e86594000 ---p 00008000 08:03 2102977 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f5e86594000-7f5e86595000 r--p 00007000 08:03 2102977 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f5e86595000-7f5e86596000 rw-p 00008000 08:03 2102977 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f5e86596000-7f5e865a9000 r-xp 00000000 08:03 798122 /usr/lib/gambas3/gb.eval.so.0.0.0 7f5e865a9000-7f5e867a9000 ---p 00013000 08:03 798122 /usr/lib/gambas3/gb.ev From jussi.lahtinen at ...626... Fri May 31 00:29:13 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 31 May 2013 01:29:13 +0300 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <51A7C9A6.40304@...2382...> References: <51A79EF5.2080106@...2382...> <20130530213530.638890d9@...3104...> <51A7C9A6.40304@...2382...> Message-ID: It's because ifconfig is bit weird... there is no --help option and so output is directed to standard error output (invalid option). This creates empty file: $ ( ifconfig --help ) 1> test.txt This creates file with the actual content: $ ( ifconfig --help ) 2> test.txt So, to use it with gambas do this: Shell "ifconfig" To somevar Jussi On Fri, May 31, 2013 at 12:50 AM, Jesus wrote: > El 30/05/13 21:35, Kende Kriszti?n escribi?: > > An interesting example, why do not you use native methods? > > > > Dim item As String > > > > For Each item In Dir(User.Home).Sort() > > > > With Stat(User.Home & "/" & item) > > > > Print .Auth & " " & .User & " " & .Group & " " & .Size & " " & > .LastModified & " " & item > > > > End With > > > > Next > > > > > >> Hi all > >> > >> AFAIR this used to work until now: > >> > >> Shell "ls -la" To variable > >> Exec ["ls", "-la"] To anothervariable > >> > >> But now, whatever command I use, if it has one or more arguments > >> beginning with a dash or double dash, I don't get any output. > >> > >> Quoting it with Shell$() function does not help. Also, I've tried > >> using process reading, to no avail. > >> > >> If you would issue the command without arguments, it then works fine. > >> > >> Is this a bug, or am I doing something wrong? > >> > >> Regards > >> > >> Gambas 3.4.90 r5682 > >> > > That's not the case. What I wanted to point out is why some commands > does not work when some arguments are given. Obviously, my first example > is pointless. > > Have you tested the following? > > Shell "ifconfig --help" To somevar > > Why this does not return anything? > > Regards > -- > Jesus Guardon > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri May 31 00:31:26 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 31 May 2013 01:31:26 +0300 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: References: <51A79EF5.2080106@...2382...> <20130530213530.638890d9@...3104...> <51A7C9A6.40304@...2382...> Message-ID: Hmmm... no "--help" seems to be documented option... Then I don't understand why it's output goes to standard error. But it does anyway. Jussi On Fri, May 31, 2013 at 1:29 AM, Jussi Lahtinen wrote: > It's because ifconfig is bit weird... there is no --help option and so > output is directed to standard error output (invalid option). > > This creates empty file: > $ ( ifconfig --help ) 1> test.txt > > This creates file with the actual content: > $ ( ifconfig --help ) 2> test.txt > > > So, to use it with gambas do this: > Shell "ifconfig" To somevar > > > Jussi > > > > > On Fri, May 31, 2013 at 12:50 AM, Jesus wrote: > >> El 30/05/13 21:35, Kende Kriszti?n escribi?: >> > An interesting example, why do not you use native methods? >> > >> > Dim item As String >> > >> > For Each item In Dir(User.Home).Sort() >> > >> > With Stat(User.Home & "/" & item) >> > >> > Print .Auth & " " & .User & " " & .Group & " " & .Size & " " & >> .LastModified & " " & item >> > >> > End With >> > >> > Next >> > >> > >> >> Hi all >> >> >> >> AFAIR this used to work until now: >> >> >> >> Shell "ls -la" To variable >> >> Exec ["ls", "-la"] To anothervariable >> >> >> >> But now, whatever command I use, if it has one or more arguments >> >> beginning with a dash or double dash, I don't get any output. >> >> >> >> Quoting it with Shell$() function does not help. Also, I've tried >> >> using process reading, to no avail. >> >> >> >> If you would issue the command without arguments, it then works fine. >> >> >> >> Is this a bug, or am I doing something wrong? >> >> >> >> Regards >> >> >> >> Gambas 3.4.90 r5682 >> >> >> >> That's not the case. What I wanted to point out is why some commands >> does not work when some arguments are given. Obviously, my first example >> is pointless. >> >> Have you tested the following? >> >> Shell "ifconfig --help" To somevar >> >> Why this does not return anything? >> >> Regards >> -- >> Jesus Guardon >> >> >> ------------------------------------------------------------------------------ >> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET >> Get 100% visibility into your production application - at no cost. >> Code-level diagnostics for performance bottlenecks with <2% overhead >> Download for free and get started troubleshooting in minutes. >> http://p.sf.net/sfu/appdyn_d2d_ap1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From nemh at ...2007... Fri May 31 08:15:02 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Fri, 31 May 2013 08:15:02 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <51A7C9A6.40304@...2382...> References: <51A79EF5.2080106@...2382...> <20130530213530.638890d9@...3104...> <51A7C9A6.40304@...2382...> Message-ID: <20130531081502.0d4d8c44@...3104...> Thu, 30 May 2013 23:50:30 +0200 -n Jesus ?rta: > El 30/05/13 21:35, Kende Kriszti?n escribi?: > > An interesting example, why do not you use native methods? > > > > Dim item As String > > > > For Each item In Dir(User.Home).Sort() > > > > With Stat(User.Home & "/" & item) > > > > Print .Auth & " " & .User & " " & .Group & " " & .Size & " " > > & .LastModified & " " & item > > > > End With > > > > Next > > > > > >> Hi all > >> > >> AFAIR this used to work until now: > >> > >> Shell "ls -la" To variable > >> Exec ["ls", "-la"] To anothervariable > >> > >> But now, whatever command I use, if it has one or more arguments > >> beginning with a dash or double dash, I don't get any output. > >> > >> Quoting it with Shell$() function does not help. Also, I've tried > >> using process reading, to no avail. > >> > >> If you would issue the command without arguments, it then works > >> fine. > >> > >> Is this a bug, or am I doing something wrong? > >> > >> Regards > >> > >> Gambas 3.4.90 r5682 > >> > > That's not the case. What I wanted to point out is why some commands > does not work when some arguments are given. Obviously, my first > example is pointless. > > Have you tested the following? > > Shell "ifconfig --help" To somevar > > Why this does not return anything? > > Regards It's works: Shell "ifconfig --help 2>&1" To somevar but stderr cannot be seen. From gambas.fr at ...626... Fri May 31 10:22:55 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 31 May 2013 10:22:55 +0200 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: <51A7CD89.9020200@...1823...> References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> <5192E65E.9070604@...1823...> <51932E8D.4080708@...1823...> <51A7CD89.9020200@...1823...> Message-ID: What is the good size ? Do you want to have an autoresize horizontal ? Vertical ? with word wrap ? 2013/5/31 richard terry > Another columnview question if possible > > The columnviews used to resize their columns to match the contents, they > don't seem to do so any longer. I've tried setting every property there > is, and in the end have had to write a sub to manually adjust the > columns to a reasonable size. > > For what should be very simple, could anyone think what I could be doing > wrong, or give me a simple example of loading a columnview with data > which does resize automatically? > > > Regards > > richard > > > On 16/05/13 07:59, Fabien Bodard wrote: > > In fact I think I need a better explanation or an example... > > What do you really want ? > > > > To generate a kind of elementclick event? > > > > Normally you just have to do.: > > $sKey = cvw.Item.Key > > In the cvw_Click event > > And then use the value of $sKey in the cvw_menu event > > > > Or maybe I have missed something and so tell us more > > > > Best regards, > > Fabien Bodard > > Le 15 mai 2013 08:44, "Richard Terry" a > ?crit : > > > >> Fabien Bodard wrote: > >>> Use a flag!!! > >>> Le 15 mai 2013 03:46, "Richard Terry" a > ?crit > >> : > >> Sorry Fabien, don't mean to be a pest but if this was a simple problem > >> I've figure it myself. I don't understand why this code works > erratically. > >> > >> Could you explain what you mean by use a flag with a couple of lines of > >> sample code. > >> > >> Regards > >> > >> richard > >> > >>>> Beno?t Minisini wrote: > >>>> > >>>>> Le 08/05/2013 02:03, Richard Terry a ?crit : > >>>>> > >>>>> > >>>>>> Hi List, > >>>>>> > >>>>>> > >>>>>> > >>>>> > ... > >>>>> > > >>>>> > >>>>> > >>>>>> However, lets say I want to popup a menu of the letters collection: > >>>>>> > >>>>>> If I right mouse click on the list to bring up the menu the > >>>>>> cvwLetters_Menu event triggers, but if one inspects the cvwLetters > >>>>>> control itself in the IDE, the cvwLetters.item.key is null, however > >> the > >>>>>> cvwletters.selected[0] does contain the value one would expect to be > >> in > >>>>>> the cvwLetters.item.key. > >>>>>> > >>>>>> I've tried doing e.g cvwLetters.movecurrent() before popping up the > >>>>>> menu, this does not seem to make much difference. > >>>>>> > >>>>>> > >>>>> The Menu event is not an event managed by the ColumnView control, but > >> by > >>>>> its Control parent class. This is the reason why the Item property is > >>>>> not set during the Menu event handler. The Menu event is raised even > if > >>>>> you don't click on an item. > >>>>> > >>>>> Normally, the Click event will be raised before the Menu event, and > so > >>>>> you can store the key of the ColumnView.Item property during the > Click > >>>>> event handler (which is a ColumnView event) to use it later during > the > >>>>> Menu event handler. > >>>>> > >>>>> > >>>>> > >>>>>> Also I've a chronic problem trying to generate a columnview click > >> event > >>>>>> in code, with a similar outcome to the above - the item.key is not > set > >>>>>> > >>>>>> > >>>>> The Item property *is* set during a Click event handler. What are you > >>>>> talking about with "generate a columnview click event"? > >>>>> > >>>>> > >>>>> > >>>> What I meant was this. Lets say you have loaded the columnview with > >>>> data. Now, if the user was sitting in front of the program and wanted > to > >>>> select an item in the columnview, then he would click on the column > >>>> which one would then trap the event and do something with it. > >>>> > >>>> I often need to be able to emulate that in code, ie have the program > do > >>>> the same thing. Doing this > >>>> > >>>> columnview1.Movefirst() > >>>> columnview1.item.selected = True > >>>> > >>>> will sometimes work ie this triggeres the columnview1_Select() routine > >>>> and any code associated with this. > >>>> > >>>> Hope this is clearer. > >>>> > >>>> Regards > >>>> > >>>> Richard > >>>> > >>>> Richard > >>>> > >>>> > >>>> > >> > ------------------------------------------------------------------------------ > >>>> AlienVault Unified Security Management (USM) platform delivers > complete > >>>> security visibility with the essential security capabilities. Easily > and > >>>> efficiently configure, manage, and operate all of your security > controls > >>>> from a single console and one unified framework. Download a free > trial. > >>>> http://p.sf.net/sfu/alienvault_d2d > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> > >> > ------------------------------------------------------------------------------ > >>> AlienVault Unified Security Management (USM) platform delivers complete > >>> security visibility with the essential security capabilities. Easily > and > >>> efficiently configure, manage, and operate all of your security > controls > >>> from a single console and one unified framework. Download a free trial. > >>> http://p.sf.net/sfu/alienvault_d2d > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> > >> > >> > ------------------------------------------------------------------------------ > >> AlienVault Unified Security Management (USM) platform delivers complete > >> security visibility with the essential security capabilities. Easily and > >> efficiently configure, manage, and operate all of your security controls > >> from a single console and one unified framework. Download a free trial. > >> http://p.sf.net/sfu/alienvault_d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > AlienVault Unified Security Management (USM) platform delivers complete > > security visibility with the essential security capabilities. Easily and > > efficiently configure, manage, and operate all of your security controls > > from a single console and one unified framework. Download a free trial. > > http://p.sf.net/sfu/alienvault_d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri May 31 10:25:16 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 31 May 2013 10:25:16 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51A7CF85.4090808@...1823...> References: <51A7CF85.4090808@...1823...> Message-ID: me too : *** Error in `WebCam': double free or corruption (!prev): 0x0000000001a6eb90 *** ======= Backtrace: ========= /usr/lib/libc.so.6(+0x788ae)[0x7fbdf7e178ae] /usr/lib/libc.so.6(+0x79587)[0x7fbdf7e18587] WebCam[0x40f0ca] WebCam[0x4090e3] WebCam[0x409e52] WebCam[0x434556] WebCam[0x40a1cf] WebCam[0x40a890] WebCam[0x41e9dd] WebCam[0x420465] /usr/lib64/gambas3/gb.qt4.so(+0x47be3)[0x7fbdf6b38be3] /usr/lib64/gambas3/gb.qt4.so(+0x420c1)[0x7fbdf6b330c1] WebCam[0x41255e] /usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e)[0x7fbdf4e45c5e] /usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8c)[0x7fbdf535d0ac] /usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x270)[0x7fbdf5363670] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d)[0x7fbdf4e2dc3d] /usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ef)[0x7fbdf4e30c8f] /usr/lib/libQtCore.so.4(_ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x2f)[0x7fbdf4e5dacf] /usr/lib/libQtGui.so.4(+0x266986)[0x7fbdf53fa986] /usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x2f)[0x7fbdf4e2c96f] /usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x175)[0x7fbdf4e2cc65] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x8b)[0x7fbdf4e31ccb] /usr/lib64/gambas3/gb.qt4.so(+0x3e2fa)[0x7fbdf6b2f2fa] WebCam[0x404577] /usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7fbdf7dc0a15] WebCam[0x40467d] ======= Memory map: ======== 00400000-0044f000 r-xp 00000000 08:08 1703972 /usr/bin/gbx3 0064e000-00658000 rw-p 0004e000 08:08 1703972 /usr/bin/gbx3 00658000-0065b000 rw-p 00000000 00:00 0 016ce000-01a86000 rw-p 00000000 00:00 0 [heap] 7fbde57af000-7fbde585f000 r--p 00000000 08:08 2104931 /usr/share/fonts/TTF/DejaVuSans.ttf 7fbde585f000-7fbde586a000 r-xp 00000000 08:08 1704059 /usr/lib/libnss_files-2.17.so 7fbde586a000-7fbde5a6a000 ---p 0000b000 08:08 1704059 /usr/lib/libnss_files-2.17.so 7fbde5a6a000-7fbde5a6b000 r--p 0000b000 08:08 1704059 /usr/lib/libnss_files-2.17.so 7fbde5a6b000-7fbde5a6c000 rw-p 0000c000 08:08 1704059 /usr/lib/libnss_files-2.17.so 7fbde5a6c000-7fbde647c000 rw-s 00000000 08:08 2232486 /var/tmp/kdecache-fabien/icon-cache.kcache 7fbde647c000-7fbde6480000 r-xp 00000000 08:08 2097938 /usr/lib/kde4/plugins/imageformats/kimg_xview.so 7fbde6480000-7fbde667f000 ---p 00004000 08:08 2097938 /usr/lib/kde4/plugins/imageformats/kimg_xview.so 7fbde667f000-7fbde6680000 r--p 00003000 08:08 2097938 /usr/lib/kde4/plugins/imageformats/kimg_xview.so 7fbde6680000-7fbde6681000 rw-p 00004000 08:08 2097938 /usr/lib/kde4/plugins/imageformats/kimg_xview.so 7fbde6681000-7fbde6690000 r-xp 00000000 08:08 2097935 /usr/lib/kde4/plugins/imageformats/kimg_xcf.so 7fbde6690000-7fbde688f000 ---p 0000f000 08:08 2097935 /usr/lib/kde4/plugins/imageformats/kimg_xcf.so 7fbde688f000-7fbde6890000 r--p 0000e000 08:08 2097935 /usr/lib/kde4/plugins/imageformats/kimg_xcf.so 7fbde6890000-7fbde6891000 rw-p 0000f000 08:08 2097935 /usr/lib/kde4/plugins/imageformats/kimg_xcf.so 7fbde6891000-7fbde6895000 rw-p 00000000 00:00 0 7fbde6895000-7fbde689a000 r-xp 00000000 08:08 2097932 /usr/lib/kde4/plugins/imageformats/kimg_tga.so 7fbde689a000-7fbde6a99000 ---p 00005000 08:08 2097932 /usr/lib/kde4/plugins/imageformats/kimg_tga.so 7fbde6a99000-7fbde6a9a000 r--p 00004000 08:08 2097932 /usr/lib/kde4/plugins/imageformats/kimg_tga.so 7fbde6a9a000-7fbde6a9b000 rw-p 00005000 08:08 2097932 /usr/lib/kde4/plugins/imageformats/kimg_tga.so 7fbde6a9b000-7fbde6aa4000 r-xp 00000000 08:08 2097934 /usr/lib/kde4/plugins/imageformats/kimg_rgb.so 7fbde6aa4000-7fbde6ca3000 ---p 00009000 08:08 2097934 /usr/lib/kde4/plugins/imageformats/kimg_rgb.so 7fbde6ca3000-7fbde6ca4000 r--p 00008000 08:08 2097934 /usr/lib/kde4/plugins/imageformats/kimg_rgb.so 7fbde6ca4000-7fbde6ca5000 rw-p 00009000 08:08 2097934 /usr/lib/kde4/plugins/imageformats/kimg_rgb.so 7fbde6ca5000-7fbde6caa000 r-xp 00000000 08:08 2097933 /usr/lib/kde4/plugins/imageformats/kimg_ras.so 7fbde6caa000-7fbde6ea9000 ---p 00005000 08:08 2097933 /usr/lib/kde4/plugins/imageformats/kimg_ras.so 7fbde6ea9000-7fbde6eaa000 r--p 00004000 08:08 2097933 /usr/lib/kde4/plugins/imageformats/kimg_ras.so 7fbde6eaa000-7fbde6eab000 rw-p 00005000 08:08 2097933 /usr/lib/kde4/plugins/imageformats/kimg_ras.so 7fbde6eab000-7fbde6eb0000 r-xp 00000000 08:08 2097937 /usr/lib/kde4/plugins/imageformats/kimg_psd.so 7fbde6eb0000-7fbde70af000 ---p 00005000 08:08 2097937 /usr/lib/kde4/plugins/imageformats/kimg_psd.so 7fbde70af000-7fbde70b0000 r--p 00004000 08:08 2097937 /usr/lib/kde4/plugins/imageformats/kimg_psd.so 7fbde70b0000-7fbde70b1000 rw-p 00005000 08:08 2097937 /usr/lib/kde4/plugins/imageformats/kimg_psd.so 7fbde70b1000-7fbde70b6000 r-xp 00000000 08:08 2097940 /usr/lib/kde4/plugins/imageformats/kimg_pic.so 7fbde70b6000-7fbde72b5000 ---p 00005000 08:08 2097940 /usr/lib/kde4/plugins/imageformats/kimg_pic.so 7fbde72b5000-7fbde72b6000 r--p 00004000 08:08 2097940 /usr/lib/kde4/plugins/imageformats/kimg_pic.so 7fbde72b6000-7fbde72b7000 rw-p 00005000 08:08 2097940 /usr/lib/kde4/plugins/imageformats/kimg_pic.so 7fbde72b7000-7fbde72be000 r-xp 00000000 08:08 2097931 /usr/lib/kde4/plugins/imageformats/kimg_pcx.so 7fbde72be000-7fbde74be000 ---p 00007000 08:08 2097931 /usr/lib/kde4/plugins/imageformats/kimg_pcx.so 7fbde74be000-7fbde74bf000 r--p 00007000 08:08 2097931 /usr/lib/kde4/plugins/imageformats/kimg_pcx.so 7fbde74bf000-7fbde74c0000 rw-p 00008000 08:08 2097931 /usr/lib/kde4/plugins/imageformats/kimg_pcx.so 7fbde74c0000-7fbde750e000 r-xp 00000000 08:08 1731919 /usr/lib/libjasper.so.1.0.0 7fbde750e000-7fbde770d000 ---p 0004e000 08:08 1731919 /usr/lib/libjasper.so.1.0.0 7fbde770d000-7fbde770e000 r--p 0004d000 08:08 1731919 /usr/lib/libjasper.so.1.0.0 7fbde770e000-7fbde7712000 rw-p 0004e000 08:08 1731919 /usr/lib/libjasper.so.1.0.0 7fbde7712000-7fbde7719000 rw-p 00000000 00:00 0 7fbde7719000-7fbde771e000 r-xp 00000000 08:08 2097929 /usr/lib/kde4/plugins/imageformats/kimg_jp2.so 7fbde771e000-7fbde791d000 ---p 00005000 08:08 2097929 /usr/lib/kde4/plugins/imageformats/kimg_jp2.so 7fbde791d000-7fbde791e000 r--p 00004000 08:08 2097929 /usr/lib/kde4/plugins/imageformats/kimg_jp2.so 7fbde791e000-7fbde791f000 rw-p 00005000 08:08 2097929 /usr/lib/kde4/plugins/imageformats/kimg_jp2.so 7fbde791f000-7fbde7925000 r-xp 00000000 08:08 1731944 /usr/lib/libIlmThread-2_0.so.10.0.0 7fbde7925000-7fbde7b24000 ---p 00006000 08:08 1731944 /usr/lib/libIlmThread-2_0.so.10.0.0 7fbde7b24000-7fbde7b25000 r--p 00005000 08:08 1731944 /usr/lib/libIlmThread-2_0.so.10.0.0 7fbde7b25000-7fbde7b26000 rw-p 00006000 08:08 1731944 /usr/lib/libIlmThread-2_0.so.10.0.0 7fbde7b26000-7fbde7b29000 r-xp 00000000 08:08 1731949 /usr/lib/libIexMath-2_0.so.10.0.0 7fbde7b29000-7fbde7d29000 ---p 00003000 08:08 1731949 /usr/lib/libIexMath-2_0.so.10.0.0 7fbde7d29000-7fbde7d2a000 r--p 00003000 08:08 1731949 /usr/lib/libIexMath-2_0.so.10.0.0 7fbde7d2a000-7fbde7d2b000 rw-p 00004000 08:08 1731949 /usr/lib/libIexMath-2_0.so.10.0.0 7fbde7d2b000-7fbde7d3c000 r-xp 00000000 08:08 1731937 /usr/lib/libImath-2_0.so.10.0.0 7fbde7d3c000-7fbde7f3b000 ---p 00011000 08:08 1731937 /usr/lib/libImath-2_0.so.10.0.0 7fbde7f3b000-7fbde7f3c000 r--p 00010000 08:08 1731937 /usr/lib/libImath-2_0.so.10.0.0 7fbde7f3c000-7fbde7f3d000 rw-p 00011000 08:08 1731937 /usr/lib/libImath-2_0.so.10.0.0 7fbde7f3d000-7fbde7f7f000 r-xp 00000000 08:08 1747563 /usr/lib/libHalf.so.10.0.0 7fbde7f7f000-7fbde817e000 ---p 00042000 08:08 1747563 /usr/lib/libHalf.so.10.0.0 7fbde817e000-7fbde817f000 r--p 00041000 08:08 1747563 /usr/lib/libHalf.so.10.0.0 7fbde817f000-7fbde8180000 rw-p 00042000 08:08 1747563 /usr/lib/libHalf.so.10.0.0 7fbde8180000-7fbde819c000 r-xp 00000000 08:08 1731936 /usr/lib/libIex-2_0.so.10.0.0 7fbde819c000-7fbde839c000 ---p 0001c000 08:08 1731936 /usr/lib/libIex-2_0.so.10.0.0 7fbde839c000-7fbde83a0000 r- 2013/5/31 richard terry > I've asked about this before and wonder if anyone can help, as the web > cam is/was critical to my clinical practice as it is integrated with > EasyGP and I used to continually use it all day to do things ranging > from snapping the patient's photo for their file, to taking pictures of > skin lesions, rashes, etc etc, and inserting them directly into the notes. > > As previously mentioned this used to work on my old kubuntu 9 machine, > but no versions since eg 10/11/12 and now on Linux Mint ditto. > > Running the examples, or even my program does bring up the video image, > but as soon as the form closes the program dies, below is the terminal > printout. > > I can't believe I'm the only one in the world with this problem. > > I wonder if anyone else on the list could run the samples and report > back - give suggestions or guidance. > > Regards > > richard > > gb.v4l: v4l2: Device is V4L2!: Resource temporarily unavailable > gb.v4l: v4l2: cropping not supported: Invalid argument > gb.v4l: v4l2: Capture ON: Invalid argument > gb.v4l: v4l2: 'Source' not currently implemented for V4L2: Invalid argument > gb.v4l: v4l2: cropping not supported: Invalid argument > gb.v4l: v4l2: Capture ON: Invalid argument > gb.v4l: v4l2: cropping not supported: Invalid argument > gb.v4l: v4l2: Capture ON: Invalid argument > *** glibc detected *** MyWebCam: double free or corruption (!prev): > 0x00000000009e2b40 *** > ======= Backtrace: ========= > /lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f5e8ef21b96] > MyWebCam[0x40f424] > MyWebCam[0x408077] > MyWebCam[0x4351a3] > MyWebCam[0x40a4fd] > MyWebCam[0x40abc3] > MyWebCam[0x41fb87] > MyWebCam[0x420a6d] > /usr/lib/gambas3/gb.gtk.so(+0x5a88f)[0x7f5e8d77088f] > /usr/lib/gambas3/gb.gtk.so(+0x4a42d)[0x7f5e8d76042d] > /usr/lib/gambas3/gb.gtk.so(+0x4a4ff)[0x7f5e8d7604ff] > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x136599)[0x7f5e8cfde599] > > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x190)[0x7f5e8c04b140] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21550)[0x7f5e8c05c550] > > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x9cb)[0x7f5e8c0640cb] > > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f5e8c064642] > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x24f95e)[0x7f5e8d0f795e] > > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x54b)[0x7f5e8cfdcf5b] > /usr/lib/gambas3/gb.gtk.so(+0x5e09e)[0x7f5e8d77409e] > /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bd7c)[0x7f5e8cc51d7c] > > /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x135)[0x7f5e8bd8bab5] > /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x47de8)[0x7f5e8bd8bde8] > > /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7f5e8bd8bea4] > > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_iteration_do+0x1d)[0x7f5e8cfdbedd] > /usr/lib/gambas3/gb.gtk.so(+0x5bd0a)[0x7f5e8d771d0a] > /usr/lib/gambas3/gb.gtk.so(+0x5bd75)[0x7f5e8d771d75] > MyWebCam[0x40481a] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f5e8eec476d] > MyWebCam[0x40492d] > ======= Memory map: ======== > 00400000-0044f000 r-xp 00000000 08:03 788835 > /usr/bin/gbx3 > 0064e000-0064f000 r--p 0004e000 08:03 788835 > /usr/bin/gbx3 > 0064f000-00659000 rw-p 0004f000 08:03 788835 > /usr/bin/gbx3 > 00659000-0065c000 rw-p 00000000 00:00 0 > 007e3000-00b78000 rw-p 00000000 00:00 0 > [heap] > 7f5e74000000-7f5e74022000 rw-p 00000000 00:00 0 > 7f5e74022000-7f5e78000000 ---p 00000000 00:00 0 > 7f5e7b927000-7f5e7b987000 rw-s 00000000 00:04 1933344 > /SYSV00000000 (deleted) > 7f5e7b987000-7f5e7b989000 r-xp 00000000 08:03 1311998 > > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so > 7f5e7b989000-7f5e7bb88000 ---p 00002000 08:03 1311998 > > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so > 7f5e7bb88000-7f5e7bb89000 r--p 00001000 08:03 1311998 > > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so > 7f5e7bb89000-7f5e7bb8a000 rw-p 00002000 08:03 1311998 > > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so > 7f5e7bb8a000-7f5e7bb8b000 ---p 00000000 00:00 0 > 7f5e7bb8b000-7f5e7c38b000 rw-p 00000000 00:00 0 > [stack:3355] > 7f5e7c38b000-7f5e7c397000 r-xp 00000000 08:03 2100975 > /lib/x86_64-linux-gnu/libudev.so.0.13.0 > 7f5e7c397000-7f5e7c596000 ---p 0000c000 08:03 2100975 > /lib/x86_64-linux-gnu/libudev.so.0.13.0 > 7f5e7c596000-7f5e7c597000 r--p 0000b000 08:03 2100975 > /lib/x86_64-linux-gnu/libudev.so.0.13.0 > 7f5e7c597000-7f5e7c598000 rw-p 0000c000 08:03 2100975 > /lib/x86_64-linux-gnu/libudev.so.0.13.0 > 7f5e7c5b7000-7f5e7c5ec000 r-xp 00000000 08:03 1312470 > /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so > 7f5e7c5ec000-7f5e7c7ec000 ---p 00035000 08:03 1312470 > /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so > 7f5e7c7ec000-7f5e7c7f1000 r--p 00035000 08:03 1312470 > /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so > 7f5e7c7f1000-7f5e7c7f2000 rw-p 0003a000 08:03 1312470 > /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so > 7f5e7c7f2000-7f5e7c821000 r-xp 00000000 08:03 1312133 > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so > 7f5e7c821000-7f5e7ca20000 ---p 0002f000 08:03 1312133 > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so > 7f5e7ca20000-7f5e7ca21000 r--p 0002e000 08:03 1312133 > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so > 7f5e7ca21000-7f5e7ca23000 rw-p 0002f000 08:03 1312133 > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so > 7f5e7ca23000-7f5e7dd24000 r--p 00000000 08:03 2008689 > /usr/share/icons/hicolor/icon-theme.cache > 7f5e7dd24000-7f5e80fed000 r--p 00000000 08:03 1996331 > /usr/share/icons/mate/icon-theme.cache > 7f5e80fed000-7f5e85253000 r--p 00000000 08:03 1981540 > /usr/share/icons/gnome/icon-theme.cache > 7f5e85253000-7f5e8548c000 r--p 00000000 08:16 34608010 > /home/richard/.icons/Tango/icon-theme.cache > 7f5e8592b000-7f5e8592d000 r-xp 00000000 08:03 1312661 > /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so > 7f5e8592d000-7f5e85b2c000 ---p 00002000 08:03 1312661 > /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so > 7f5e85b2c000-7f5e85b2d000 r--p 00001000 08:03 1312661 > /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so > 7f5e85b2d000-7f5e85b2e000 rw-p 00002000 08:03 1312661 > /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so > 7f5e85b2e000-7f5e85b58000 r-xp 00000000 08:03 1312401 > /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so > 7f5e85b58000-7f5e85d58000 ---p 0002a000 08:03 1312401 > /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so > 7f5e85d58000-7f5e85d59000 r--p 0002a000 08:03 1312401 > /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so > 7f5e85d59000-7f5e85d5a000 rw-p 0002b000 08:03 1312401 > /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so > 7f5e85d5a000-7f5e85d66000 r-xp 00000000 08:03 2102960 > /lib/x86_64-linux-gnu/libnss_files-2.15.so > 7f5e85d66000-7f5e85f65000 ---p 0000c000 08:03 2102960 > /lib/x86_64-linux-gnu/libnss_files-2.15.so > 7f5e85f65000-7f5e85f66000 r--p 0000b000 08:03 2102960 > /lib/x86_64-linux-gnu/libnss_files-2.15.so > 7f5e85f66000-7f5e85f67000 rw-p 0000c000 08:03 2102960 > /lib/x86_64-linux-gnu/libnss_files-2.15.so > 7f5e85f67000-7f5e85f71000 r-xp 00000000 08:03 2102953 > /lib/x86_64-linux-gnu/libnss_nis-2.15.so > 7f5e85f71000-7f5e86171000 ---p 0000a000 08:03 2102953 > /lib/x86_64-linux-gnu/libnss_nis-2.15.so > 7f5e86171000-7f5e86172000 r--p 0000a000 08:03 2102953 > /lib/x86_64-linux-gnu/libnss_nis-2.15.so > 7f5e86172000-7f5e86173000 rw-p 0000b000 08:03 2102953 > /lib/x86_64-linux-gnu/libnss_nis-2.15.so > 7f5e86173000-7f5e8618a000 r-xp 00000000 08:03 2102972 > /lib/x86_64-linux-gnu/libnsl-2.15.so > 7f5e8618a000-7f5e86389000 ---p 00017000 08:03 2102972 > /lib/x86_64-linux-gnu/libnsl-2.15.so > 7f5e86389000-7f5e8638a000 r--p 00016000 08:03 2102972 > /lib/x86_64-linux-gnu/libnsl-2.15.so > 7f5e8638a000-7f5e8638b000 rw-p 00017000 08:03 2102972 > /lib/x86_64-linux-gnu/libnsl-2.15.so > 7f5e8638b000-7f5e8638d000 rw-p 00000000 00:00 0 > 7f5e8638d000-7f5e86395000 r-xp 00000000 08:03 2102977 > /lib/x86_64-linux-gnu/libnss_compat-2.15.so > 7f5e86395000-7f5e86594000 ---p 00008000 08:03 2102977 > /lib/x86_64-linux-gnu/libnss_compat-2.15.so > 7f5e86594000-7f5e86595000 r--p 00007000 08:03 2102977 > /lib/x86_64-linux-gnu/libnss_compat-2.15.so > 7f5e86595000-7f5e86596000 rw-p 00008000 08:03 2102977 > /lib/x86_64-linux-gnu/libnss_compat-2.15.so > 7f5e86596000-7f5e865a9000 r-xp 00000000 08:03 798122 > /usr/lib/gambas3/gb.eval.so.0.0.0 > 7f5e865a9000-7f5e867a9000 ---p 00013000 08:03 798122 > /usr/lib/gambas3/gb.ev > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Fri May 31 10:27:13 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 31 May 2013 10:27:13 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> Message-ID: and the MyWebCam too ... it seem to have some change on v4l2 lib. 2013/5/31 Fabien Bodard > me too : > *** Error in `WebCam': double free or corruption (!prev): > 0x0000000001a6eb90 *** > ======= Backtrace: ========= > /usr/lib/libc.so.6(+0x788ae)[0x7fbdf7e178ae] > /usr/lib/libc.so.6(+0x79587)[0x7fbdf7e18587] > WebCam[0x40f0ca] > WebCam[0x4090e3] > WebCam[0x409e52] > WebCam[0x434556] > WebCam[0x40a1cf] > WebCam[0x40a890] > WebCam[0x41e9dd] > WebCam[0x420465] > /usr/lib64/gambas3/gb.qt4.so(+0x47be3)[0x7fbdf6b38be3] > /usr/lib64/gambas3/gb.qt4.so(+0x420c1)[0x7fbdf6b330c1] > WebCam[0x41255e] > /usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e)[0x7fbdf4e45c5e] > > /usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8c)[0x7fbdf535d0ac] > > /usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x270)[0x7fbdf5363670] > > /usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d)[0x7fbdf4e2dc3d] > > /usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ef)[0x7fbdf4e30c8f] > > /usr/lib/libQtCore.so.4(_ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x2f)[0x7fbdf4e5dacf] > /usr/lib/libQtGui.so.4(+0x266986)[0x7fbdf53fa986] > > /usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x2f)[0x7fbdf4e2c96f] > > /usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x175)[0x7fbdf4e2cc65] > /usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x8b)[0x7fbdf4e31ccb] > /usr/lib64/gambas3/gb.qt4.so(+0x3e2fa)[0x7fbdf6b2f2fa] > WebCam[0x404577] > /usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7fbdf7dc0a15] > WebCam[0x40467d] > ======= Memory map: ======== > 00400000-0044f000 r-xp 00000000 08:08 1703972 > /usr/bin/gbx3 > 0064e000-00658000 rw-p 0004e000 08:08 1703972 > /usr/bin/gbx3 > 00658000-0065b000 rw-p 00000000 00:00 0 > 016ce000-01a86000 rw-p 00000000 00:00 0 > [heap] > 7fbde57af000-7fbde585f000 r--p 00000000 08:08 2104931 > /usr/share/fonts/TTF/DejaVuSans.ttf > 7fbde585f000-7fbde586a000 r-xp 00000000 08:08 1704059 > /usr/lib/libnss_files-2.17.so > 7fbde586a000-7fbde5a6a000 ---p 0000b000 08:08 1704059 > /usr/lib/libnss_files-2.17.so > 7fbde5a6a000-7fbde5a6b000 r--p 0000b000 08:08 1704059 > /usr/lib/libnss_files-2.17.so > 7fbde5a6b000-7fbde5a6c000 rw-p 0000c000 08:08 1704059 > /usr/lib/libnss_files-2.17.so > 7fbde5a6c000-7fbde647c000 rw-s 00000000 08:08 2232486 > /var/tmp/kdecache-fabien/icon-cache.kcache > 7fbde647c000-7fbde6480000 r-xp 00000000 08:08 2097938 > /usr/lib/kde4/plugins/imageformats/kimg_xview.so > 7fbde6480000-7fbde667f000 ---p 00004000 08:08 2097938 > /usr/lib/kde4/plugins/imageformats/kimg_xview.so > 7fbde667f000-7fbde6680000 r--p 00003000 08:08 2097938 > /usr/lib/kde4/plugins/imageformats/kimg_xview.so > 7fbde6680000-7fbde6681000 rw-p 00004000 08:08 2097938 > /usr/lib/kde4/plugins/imageformats/kimg_xview.so > 7fbde6681000-7fbde6690000 r-xp 00000000 08:08 2097935 > /usr/lib/kde4/plugins/imageformats/kimg_xcf.so > 7fbde6690000-7fbde688f000 ---p 0000f000 08:08 2097935 > /usr/lib/kde4/plugins/imageformats/kimg_xcf.so > 7fbde688f000-7fbde6890000 r--p 0000e000 08:08 2097935 > /usr/lib/kde4/plugins/imageformats/kimg_xcf.so > 7fbde6890000-7fbde6891000 rw-p 0000f000 08:08 2097935 > /usr/lib/kde4/plugins/imageformats/kimg_xcf.so > 7fbde6891000-7fbde6895000 rw-p 00000000 00:00 0 > 7fbde6895000-7fbde689a000 r-xp 00000000 08:08 2097932 > /usr/lib/kde4/plugins/imageformats/kimg_tga.so > 7fbde689a000-7fbde6a99000 ---p 00005000 08:08 2097932 > /usr/lib/kde4/plugins/imageformats/kimg_tga.so > 7fbde6a99000-7fbde6a9a000 r--p 00004000 08:08 2097932 > /usr/lib/kde4/plugins/imageformats/kimg_tga.so > 7fbde6a9a000-7fbde6a9b000 rw-p 00005000 08:08 2097932 > /usr/lib/kde4/plugins/imageformats/kimg_tga.so > 7fbde6a9b000-7fbde6aa4000 r-xp 00000000 08:08 2097934 > /usr/lib/kde4/plugins/imageformats/kimg_rgb.so > 7fbde6aa4000-7fbde6ca3000 ---p 00009000 08:08 2097934 > /usr/lib/kde4/plugins/imageformats/kimg_rgb.so > 7fbde6ca3000-7fbde6ca4000 r--p 00008000 08:08 2097934 > /usr/lib/kde4/plugins/imageformats/kimg_rgb.so > 7fbde6ca4000-7fbde6ca5000 rw-p 00009000 08:08 2097934 > /usr/lib/kde4/plugins/imageformats/kimg_rgb.so > 7fbde6ca5000-7fbde6caa000 r-xp 00000000 08:08 2097933 > /usr/lib/kde4/plugins/imageformats/kimg_ras.so > 7fbde6caa000-7fbde6ea9000 ---p 00005000 08:08 2097933 > /usr/lib/kde4/plugins/imageformats/kimg_ras.so > 7fbde6ea9000-7fbde6eaa000 r--p 00004000 08:08 2097933 > /usr/lib/kde4/plugins/imageformats/kimg_ras.so > 7fbde6eaa000-7fbde6eab000 rw-p 00005000 08:08 2097933 > /usr/lib/kde4/plugins/imageformats/kimg_ras.so > 7fbde6eab000-7fbde6eb0000 r-xp 00000000 08:08 2097937 > /usr/lib/kde4/plugins/imageformats/kimg_psd.so > 7fbde6eb0000-7fbde70af000 ---p 00005000 08:08 2097937 > /usr/lib/kde4/plugins/imageformats/kimg_psd.so > 7fbde70af000-7fbde70b0000 r--p 00004000 08:08 2097937 > /usr/lib/kde4/plugins/imageformats/kimg_psd.so > 7fbde70b0000-7fbde70b1000 rw-p 00005000 08:08 2097937 > /usr/lib/kde4/plugins/imageformats/kimg_psd.so > 7fbde70b1000-7fbde70b6000 r-xp 00000000 08:08 2097940 > /usr/lib/kde4/plugins/imageformats/kimg_pic.so > 7fbde70b6000-7fbde72b5000 ---p 00005000 08:08 2097940 > /usr/lib/kde4/plugins/imageformats/kimg_pic.so > 7fbde72b5000-7fbde72b6000 r--p 00004000 08:08 2097940 > /usr/lib/kde4/plugins/imageformats/kimg_pic.so > 7fbde72b6000-7fbde72b7000 rw-p 00005000 08:08 2097940 > /usr/lib/kde4/plugins/imageformats/kimg_pic.so > 7fbde72b7000-7fbde72be000 r-xp 00000000 08:08 2097931 > /usr/lib/kde4/plugins/imageformats/kimg_pcx.so > 7fbde72be000-7fbde74be000 ---p 00007000 08:08 2097931 > /usr/lib/kde4/plugins/imageformats/kimg_pcx.so > 7fbde74be000-7fbde74bf000 r--p 00007000 08:08 2097931 > /usr/lib/kde4/plugins/imageformats/kimg_pcx.so > 7fbde74bf000-7fbde74c0000 rw-p 00008000 08:08 2097931 > /usr/lib/kde4/plugins/imageformats/kimg_pcx.so > 7fbde74c0000-7fbde750e000 r-xp 00000000 08:08 1731919 > /usr/lib/libjasper.so.1.0.0 > 7fbde750e000-7fbde770d000 ---p 0004e000 08:08 1731919 > /usr/lib/libjasper.so.1.0.0 > 7fbde770d000-7fbde770e000 r--p 0004d000 08:08 1731919 > /usr/lib/libjasper.so.1.0.0 > 7fbde770e000-7fbde7712000 rw-p 0004e000 08:08 1731919 > /usr/lib/libjasper.so.1.0.0 > 7fbde7712000-7fbde7719000 rw-p 00000000 00:00 0 > 7fbde7719000-7fbde771e000 r-xp 00000000 08:08 2097929 > /usr/lib/kde4/plugins/imageformats/kimg_jp2.so > 7fbde771e000-7fbde791d000 ---p 00005000 08:08 2097929 > /usr/lib/kde4/plugins/imageformats/kimg_jp2.so > 7fbde791d000-7fbde791e000 r--p 00004000 08:08 2097929 > /usr/lib/kde4/plugins/imageformats/kimg_jp2.so > 7fbde791e000-7fbde791f000 rw-p 00005000 08:08 2097929 > /usr/lib/kde4/plugins/imageformats/kimg_jp2.so > 7fbde791f000-7fbde7925000 r-xp 00000000 08:08 1731944 > /usr/lib/libIlmThread-2_0.so.10.0.0 > 7fbde7925000-7fbde7b24000 ---p 00006000 08:08 1731944 > /usr/lib/libIlmThread-2_0.so.10.0.0 > 7fbde7b24000-7fbde7b25000 r--p 00005000 08:08 1731944 > /usr/lib/libIlmThread-2_0.so.10.0.0 > 7fbde7b25000-7fbde7b26000 rw-p 00006000 08:08 1731944 > /usr/lib/libIlmThread-2_0.so.10.0.0 > 7fbde7b26000-7fbde7b29000 r-xp 00000000 08:08 1731949 > /usr/lib/libIexMath-2_0.so.10.0.0 > 7fbde7b29000-7fbde7d29000 ---p 00003000 08:08 1731949 > /usr/lib/libIexMath-2_0.so.10.0.0 > 7fbde7d29000-7fbde7d2a000 r--p 00003000 08:08 1731949 > /usr/lib/libIexMath-2_0.so.10.0.0 > 7fbde7d2a000-7fbde7d2b000 rw-p 00004000 08:08 1731949 > /usr/lib/libIexMath-2_0.so.10.0.0 > 7fbde7d2b000-7fbde7d3c000 r-xp 00000000 08:08 1731937 > /usr/lib/libImath-2_0.so.10.0.0 > 7fbde7d3c000-7fbde7f3b000 ---p 00011000 08:08 1731937 > /usr/lib/libImath-2_0.so.10.0.0 > 7fbde7f3b000-7fbde7f3c000 r--p 00010000 08:08 1731937 > /usr/lib/libImath-2_0.so.10.0.0 > 7fbde7f3c000-7fbde7f3d000 rw-p 00011000 08:08 1731937 > /usr/lib/libImath-2_0.so.10.0.0 > 7fbde7f3d000-7fbde7f7f000 r-xp 00000000 08:08 1747563 > /usr/lib/libHalf.so.10.0.0 > 7fbde7f7f000-7fbde817e000 ---p 00042000 08:08 1747563 > /usr/lib/libHalf.so.10.0.0 > 7fbde817e000-7fbde817f000 r--p 00041000 08:08 1747563 > /usr/lib/libHalf.so.10.0.0 > 7fbde817f000-7fbde8180000 rw-p 00042000 08:08 1747563 > /usr/lib/libHalf.so.10.0.0 > 7fbde8180000-7fbde819c000 r-xp 00000000 08:08 1731936 > /usr/lib/libIex-2_0.so.10.0.0 > 7fbde819c000-7fbde839c000 ---p 0001c000 08:08 1731936 > /usr/lib/libIex-2_0.so.10.0.0 > 7fbde839c000-7fbde83a0000 r- > > > 2013/5/31 richard terry > >> I've asked about this before and wonder if anyone can help, as the web >> cam is/was critical to my clinical practice as it is integrated with >> EasyGP and I used to continually use it all day to do things ranging >> from snapping the patient's photo for their file, to taking pictures of >> skin lesions, rashes, etc etc, and inserting them directly into the notes. >> >> As previously mentioned this used to work on my old kubuntu 9 machine, >> but no versions since eg 10/11/12 and now on Linux Mint ditto. >> >> Running the examples, or even my program does bring up the video image, >> but as soon as the form closes the program dies, below is the terminal >> printout. >> >> I can't believe I'm the only one in the world with this problem. >> >> I wonder if anyone else on the list could run the samples and report >> back - give suggestions or guidance. >> >> Regards >> >> richard >> >> gb.v4l: v4l2: Device is V4L2!: Resource temporarily unavailable >> gb.v4l: v4l2: cropping not supported: Invalid argument >> gb.v4l: v4l2: Capture ON: Invalid argument >> gb.v4l: v4l2: 'Source' not currently implemented for V4L2: Invalid >> argument >> gb.v4l: v4l2: cropping not supported: Invalid argument >> gb.v4l: v4l2: Capture ON: Invalid argument >> gb.v4l: v4l2: cropping not supported: Invalid argument >> gb.v4l: v4l2: Capture ON: Invalid argument >> *** glibc detected *** MyWebCam: double free or corruption (!prev): >> 0x00000000009e2b40 *** >> ======= Backtrace: ========= >> /lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f5e8ef21b96] >> MyWebCam[0x40f424] >> MyWebCam[0x408077] >> MyWebCam[0x4351a3] >> MyWebCam[0x40a4fd] >> MyWebCam[0x40abc3] >> MyWebCam[0x41fb87] >> MyWebCam[0x420a6d] >> /usr/lib/gambas3/gb.gtk.so(+0x5a88f)[0x7f5e8d77088f] >> /usr/lib/gambas3/gb.gtk.so(+0x4a42d)[0x7f5e8d76042d] >> /usr/lib/gambas3/gb.gtk.so(+0x4a4ff)[0x7f5e8d7604ff] >> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x136599)[0x7f5e8cfde599] >> >> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x190)[0x7f5e8c04b140] >> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21550)[0x7f5e8c05c550] >> >> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x9cb)[0x7f5e8c0640cb] >> >> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f5e8c064642] >> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x24f95e)[0x7f5e8d0f795e] >> >> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x54b)[0x7f5e8cfdcf5b] >> /usr/lib/gambas3/gb.gtk.so(+0x5e09e)[0x7f5e8d77409e] >> /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bd7c)[0x7f5e8cc51d7c] >> >> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x135)[0x7f5e8bd8bab5] >> /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x47de8)[0x7f5e8bd8bde8] >> >> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7f5e8bd8bea4] >> >> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_iteration_do+0x1d)[0x7f5e8cfdbedd] >> /usr/lib/gambas3/gb.gtk.so(+0x5bd0a)[0x7f5e8d771d0a] >> /usr/lib/gambas3/gb.gtk.so(+0x5bd75)[0x7f5e8d771d75] >> MyWebCam[0x40481a] >> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f5e8eec476d] >> MyWebCam[0x40492d] >> ======= Memory map: ======== >> 00400000-0044f000 r-xp 00000000 08:03 788835 >> /usr/bin/gbx3 >> 0064e000-0064f000 r--p 0004e000 08:03 788835 >> /usr/bin/gbx3 >> 0064f000-00659000 rw-p 0004f000 08:03 788835 >> /usr/bin/gbx3 >> 00659000-0065c000 rw-p 00000000 00:00 0 >> 007e3000-00b78000 rw-p 00000000 00:00 0 >> [heap] >> 7f5e74000000-7f5e74022000 rw-p 00000000 00:00 0 >> 7f5e74022000-7f5e78000000 ---p 00000000 00:00 0 >> 7f5e7b927000-7f5e7b987000 rw-s 00000000 00:04 1933344 >> /SYSV00000000 (deleted) >> 7f5e7b987000-7f5e7b989000 r-xp 00000000 08:03 1311998 >> >> /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so >> 7f5e7b989000-7f5e7bb88000 ---p 00002000 08:03 1311998 >> >> /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so >> 7f5e7bb88000-7f5e7bb89000 r--p 00001000 08:03 1311998 >> >> /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so >> 7f5e7bb89000-7f5e7bb8a000 rw-p 00002000 08:03 1311998 >> >> /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so >> 7f5e7bb8a000-7f5e7bb8b000 ---p 00000000 00:00 0 >> 7f5e7bb8b000-7f5e7c38b000 rw-p 00000000 00:00 0 >> [stack:3355] >> 7f5e7c38b000-7f5e7c397000 r-xp 00000000 08:03 2100975 >> /lib/x86_64-linux-gnu/libudev.so.0.13.0 >> 7f5e7c397000-7f5e7c596000 ---p 0000c000 08:03 2100975 >> /lib/x86_64-linux-gnu/libudev.so.0.13.0 >> 7f5e7c596000-7f5e7c597000 r--p 0000b000 08:03 2100975 >> /lib/x86_64-linux-gnu/libudev.so.0.13.0 >> 7f5e7c597000-7f5e7c598000 rw-p 0000c000 08:03 2100975 >> /lib/x86_64-linux-gnu/libudev.so.0.13.0 >> 7f5e7c5b7000-7f5e7c5ec000 r-xp 00000000 08:03 1312470 >> /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so >> 7f5e7c5ec000-7f5e7c7ec000 ---p 00035000 08:03 1312470 >> /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so >> 7f5e7c7ec000-7f5e7c7f1000 r--p 00035000 08:03 1312470 >> /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so >> 7f5e7c7f1000-7f5e7c7f2000 rw-p 0003a000 08:03 1312470 >> /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so >> 7f5e7c7f2000-7f5e7c821000 r-xp 00000000 08:03 1312133 >> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so >> 7f5e7c821000-7f5e7ca20000 ---p 0002f000 08:03 1312133 >> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so >> 7f5e7ca20000-7f5e7ca21000 r--p 0002e000 08:03 1312133 >> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so >> 7f5e7ca21000-7f5e7ca23000 rw-p 0002f000 08:03 1312133 >> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so >> 7f5e7ca23000-7f5e7dd24000 r--p 00000000 08:03 2008689 >> /usr/share/icons/hicolor/icon-theme.cache >> 7f5e7dd24000-7f5e80fed000 r--p 00000000 08:03 1996331 >> /usr/share/icons/mate/icon-theme.cache >> 7f5e80fed000-7f5e85253000 r--p 00000000 08:03 1981540 >> /usr/share/icons/gnome/icon-theme.cache >> 7f5e85253000-7f5e8548c000 r--p 00000000 08:16 34608010 >> /home/richard/.icons/Tango/icon-theme.cache >> 7f5e8592b000-7f5e8592d000 r-xp 00000000 08:03 1312661 >> /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so >> 7f5e8592d000-7f5e85b2c000 ---p 00002000 08:03 1312661 >> /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so >> 7f5e85b2c000-7f5e85b2d000 r--p 00001000 08:03 1312661 >> /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so >> 7f5e85b2d000-7f5e85b2e000 rw-p 00002000 08:03 1312661 >> /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so >> 7f5e85b2e000-7f5e85b58000 r-xp 00000000 08:03 1312401 >> /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so >> 7f5e85b58000-7f5e85d58000 ---p 0002a000 08:03 1312401 >> /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so >> 7f5e85d58000-7f5e85d59000 r--p 0002a000 08:03 1312401 >> /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so >> 7f5e85d59000-7f5e85d5a000 rw-p 0002b000 08:03 1312401 >> /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so >> 7f5e85d5a000-7f5e85d66000 r-xp 00000000 08:03 2102960 >> /lib/x86_64-linux-gnu/libnss_files-2.15.so >> 7f5e85d66000-7f5e85f65000 ---p 0000c000 08:03 2102960 >> /lib/x86_64-linux-gnu/libnss_files-2.15.so >> 7f5e85f65000-7f5e85f66000 r--p 0000b000 08:03 2102960 >> /lib/x86_64-linux-gnu/libnss_files-2.15.so >> 7f5e85f66000-7f5e85f67000 rw-p 0000c000 08:03 2102960 >> /lib/x86_64-linux-gnu/libnss_files-2.15.so >> 7f5e85f67000-7f5e85f71000 r-xp 00000000 08:03 2102953 >> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >> 7f5e85f71000-7f5e86171000 ---p 0000a000 08:03 2102953 >> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >> 7f5e86171000-7f5e86172000 r--p 0000a000 08:03 2102953 >> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >> 7f5e86172000-7f5e86173000 rw-p 0000b000 08:03 2102953 >> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >> 7f5e86173000-7f5e8618a000 r-xp 00000000 08:03 2102972 >> /lib/x86_64-linux-gnu/libnsl-2.15.so >> 7f5e8618a000-7f5e86389000 ---p 00017000 08:03 2102972 >> /lib/x86_64-linux-gnu/libnsl-2.15.so >> 7f5e86389000-7f5e8638a000 r--p 00016000 08:03 2102972 >> /lib/x86_64-linux-gnu/libnsl-2.15.so >> 7f5e8638a000-7f5e8638b000 rw-p 00017000 08:03 2102972 >> /lib/x86_64-linux-gnu/libnsl-2.15.so >> 7f5e8638b000-7f5e8638d000 rw-p 00000000 00:00 0 >> 7f5e8638d000-7f5e86395000 r-xp 00000000 08:03 2102977 >> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >> 7f5e86395000-7f5e86594000 ---p 00008000 08:03 2102977 >> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >> 7f5e86594000-7f5e86595000 r--p 00007000 08:03 2102977 >> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >> 7f5e86595000-7f5e86596000 rw-p 00008000 08:03 2102977 >> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >> 7f5e86596000-7f5e865a9000 r-xp 00000000 08:03 798122 >> /usr/lib/gambas3/gb.eval.so.0.0.0 >> 7f5e865a9000-7f5e867a9000 ---p 00013000 08:03 798122 >> /usr/lib/gambas3/gb.ev >> >> >> ------------------------------------------------------------------------------ >> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET >> Get 100% visibility into your production application - at no cost. >> Code-level diagnostics for performance bottlenecks with <2% overhead >> Download for free and get started troubleshooting in minutes. >> http://p.sf.net/sfu/appdyn_d2d_ap1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From adrien.prokopowicz at ...626... Fri May 31 10:37:00 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Fri, 31 May 2013 10:37:00 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> Message-ID: Le Fri, 31 May 2013 10:25:16 +0200, Fabien Bodard a ?crit: > me too : > [...] Hi, Same thing here. My v4l version is 0.9.5, and valgrind's output is attached. -- Adrien Prokopowicz -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-out.tar.bz2 Type: application/bzip2 Size: 2840 bytes Desc: not available URL: From lordheavym at ...626... Fri May 31 11:07:38 2013 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 31 May 2013 11:07:38 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> Message-ID: <3683554.IBFUsYn7cG@...2592...> Le vendredi 31 mai 2013 10:37:00 Adrien Prokopowicz a ?crit : > Le Fri, 31 May 2013 10:25:16 +0200, Fabien Bodard a > > ?crit: > > me too : > > [...] > > Hi, > > Same thing here. My v4l version is 0.9.5, and valgrind's output is > attached. And probably a better gdb output: --8<-- [lordh at ...2346... WebCam]$ gdb gbx3 GNU gdb (GDB) 7.6 Copyright (C) 2013 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 "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx3...Reading symbols from /usr/lib/debug/usr/bin/gbx3.debug...done. done. (gdb) run Starting program: /usr/bin/gbx3 warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. gb.v4l: v4l2: Device is V4L2!: Ressource temporairement non disponible gb.v4l: v4l2: Capture ON: Argument invalide Program received signal SIGSEGV, Segmentation fault. OBJECT_detach (ob=ob at ...2861...=0xa09138) at gbx_object.c:122 122 gbx_object.c: Aucun fichier ou dossier de ce type. (gdb) bt #0 OBJECT_detach (ob=ob at ...2861...=0xa09138) at gbx_object.c:122 #1 0x000000000042674a in OBJECT_free (class=0x6ab7e8, ob=0xa09138) at gbx_object.c:230 #2 0x00000000004267c5 in OBJECT_release (class=, ob=) at gbx_object.c:350 #3 0x000000000040f3e2 in CLASS_free (object=0xa09138) at gbx_class.c:731 #4 0x000000000040941f in RELEASE_many (value=0x7ffff6707040, value at ...2861...=0x7ffff6707120, n=1, n at ...2861...=8) at gbx_exec.c:238 #5 0x000000000040a18e in EXEC_leave_keep () at gbx_exec.c:811 #6 0x0000000000434716 in EXEC_loop () at gbx_exec_loop.c:1028 #7 0x000000000040a50b in EXEC_function_loop () at gbx_exec.c:906 #8 0x000000000040abc7 in EXEC_function_real () at gbx_exec.c:870 #9 0x000000000041ed4b in raise_event (observer=observer at ...2861...=0x8c2658, object=object at ...2861...=0x8c2658, func_id=158, func_id at ...2861...=159, nparam=nparam at ...2861...=0) at gbx_api.c:810 #10 0x00000000004207ee in GB_Raise (object=0x8c2658, event_id=, nparam=0) at gbx_api.c:946 #11 0x00007ffff60a5ca0 in CWINDOW_activate (ob=ob at ...2861...=0x8c2658) at CWindow.cpp:2613 #12 0x00007ffff60a0281 in post_focus_change () at CWidget.cpp:2335 #13 0x0000000000412886 in EVENT_check_post () at gbx_event.c:244 #14 0x00007ffff43b2c5e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4 #15 0x00007ffff48ca0ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #16 0x00007ffff48d0670 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #17 0x00007ffff439ac3d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #18 0x00007ffff439dc8f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4 #19 0x00007ffff43caacf in QEventDispatcherUNIX::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #20 0x00007ffff4967986 in ?? () from /usr/lib/libQtGui.so.4 #21 0x00007ffff439996f in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #22 0x00007ffff4399c65 in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #23 0x00007ffff439eccb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #24 0x00007ffff609c4ba in hook_loop () at main.cpp:777 #25 0x000000000040482e in main (argc=1, argv=0x7fffffffe1f8) at gbx.c:402 -->8-- -- Laurent Carlier ArchLinux Trusted User http://www.archlinux.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part. URL: From rterry at ...1823... Fri May 31 12:02:10 2013 From: rterry at ...1823... (Richard Terry) Date: Fri, 31 May 2013 20:02:10 +1000 Subject: [Gambas-user] Chronic columnview Woes In-Reply-To: References: <51899644.5000000@...1823...> <518A3107.3000008@...1...> <5192E65E.9070604@...1823...> <51932E8D.4080708@...1823...> <51A7CD89.9020200@...1823...> Message-ID: <51A87522.605@...1823...> Fabien Bodard wrote: > What is the good size ? > > Do you want to have an autoresize horizontal ? > > Vertical ? > > with word wrap ? > just to do what a columnview should do ie the columnview's column sizes fit the contents so they can be read This works sort-of-erratically and used to work properly, no idea why. i.e horizontal column widths I mean Word wrap no richard > > > > 2013/5/31 richard terry > > >> Another columnview question if possible >> >> The columnviews used to resize their columns to match the contents, they >> don't seem to do so any longer. I've tried setting every property there >> is, and in the end have had to write a sub to manually adjust the >> columns to a reasonable size. >> >> For what should be very simple, could anyone think what I could be doing >> wrong, or give me a simple example of loading a columnview with data >> which does resize automatically? >> >> >> Regards >> >> richard >> >> >> On 16/05/13 07:59, Fabien Bodard wrote: >> >>> In fact I think I need a better explanation or an example... >>> What do you really want ? >>> >>> To generate a kind of elementclick event? >>> >>> Normally you just have to do.: >>> $sKey = cvw.Item.Key >>> In the cvw_Click event >>> And then use the value of $sKey in the cvw_menu event >>> >>> Or maybe I have missed something and so tell us more >>> >>> Best regards, >>> Fabien Bodard >>> Le 15 mai 2013 08:44, "Richard Terry" a >>> >> ?crit : >> >>>> Fabien Bodard wrote: >>>> >>>>> Use a flag!!! >>>>> Le 15 mai 2013 03:46, "Richard Terry" a >>>>> >> ?crit >> >>>> : >>>> Sorry Fabien, don't mean to be a pest but if this was a simple problem >>>> I've figure it myself. I don't understand why this code works >>>> >> erratically. >> >>>> Could you explain what you mean by use a flag with a couple of lines of >>>> sample code. >>>> >>>> Regards >>>> >>>> richard >>>> >>>> >>>>>> Beno?t Minisini wrote: >>>>>> >>>>>> >>>>>>> Le 08/05/2013 02:03, Richard Terry a ?crit : >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi List, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> > ... >>>>>>> > >>>>>>> >>>>>>> >>>>>>> >>>>>>>> However, lets say I want to popup a menu of the letters collection: >>>>>>>> >>>>>>>> If I right mouse click on the list to bring up the menu the >>>>>>>> cvwLetters_Menu event triggers, but if one inspects the cvwLetters >>>>>>>> control itself in the IDE, the cvwLetters.item.key is null, however >>>>>>>> >>>> the >>>> >>>>>>>> cvwletters.selected[0] does contain the value one would expect to be >>>>>>>> >>>> in >>>> >>>>>>>> the cvwLetters.item.key. >>>>>>>> >>>>>>>> I've tried doing e.g cvwLetters.movecurrent() before popping up the >>>>>>>> menu, this does not seem to make much difference. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> The Menu event is not an event managed by the ColumnView control, but >>>>>>> >>>> by >>>> >>>>>>> its Control parent class. This is the reason why the Item property is >>>>>>> not set during the Menu event handler. The Menu event is raised even >>>>>>> >> if >> >>>>>>> you don't click on an item. >>>>>>> >>>>>>> Normally, the Click event will be raised before the Menu event, and >>>>>>> >> so >> >>>>>>> you can store the key of the ColumnView.Item property during the >>>>>>> >> Click >> >>>>>>> event handler (which is a ColumnView event) to use it later during >>>>>>> >> the >> >>>>>>> Menu event handler. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Also I've a chronic problem trying to generate a columnview click >>>>>>>> >>>> event >>>> >>>>>>>> in code, with a similar outcome to the above - the item.key is not >>>>>>>> >> set >> >>>>>>>> >>>>>>> The Item property *is* set during a Click event handler. What are you >>>>>>> talking about with "generate a columnview click event"? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> What I meant was this. Lets say you have loaded the columnview with >>>>>> data. Now, if the user was sitting in front of the program and wanted >>>>>> >> to >> >>>>>> select an item in the columnview, then he would click on the column >>>>>> which one would then trap the event and do something with it. >>>>>> >>>>>> I often need to be able to emulate that in code, ie have the program >>>>>> >> do >> >>>>>> the same thing. Doing this >>>>>> >>>>>> columnview1.Movefirst() >>>>>> columnview1.item.selected = True >>>>>> >>>>>> will sometimes work ie this triggeres the columnview1_Select() routine >>>>>> and any code associated with this. >>>>>> >>>>>> Hope this is clearer. >>>>>> >>>>>> Regards >>>>>> >>>>>> Richard >>>>>> >>>>>> Richard >>>>>> >>>>>> >>>>>> >>>>>> >> ------------------------------------------------------------------------------ >> >>>>>> AlienVault Unified Security Management (USM) platform delivers >>>>>> >> complete >> >>>>>> security visibility with the essential security capabilities. Easily >>>>>> >> and >> >>>>>> efficiently configure, manage, and operate all of your security >>>>>> >> controls >> >>>>>> from a single console and one unified framework. Download a free >>>>>> >> trial. >> >>>>>> http://p.sf.net/sfu/alienvault_d2d >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>>> >> ------------------------------------------------------------------------------ >> >>>>> AlienVault Unified Security Management (USM) platform delivers complete >>>>> security visibility with the essential security capabilities. Easily >>>>> >> and >> >>>>> efficiently configure, manage, and operate all of your security >>>>> >> controls >> >>>>> from a single console and one unified framework. Download a free trial. >>>>> http://p.sf.net/sfu/alienvault_d2d >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>>> >>>> >> ------------------------------------------------------------------------------ >> >>>> AlienVault Unified Security Management (USM) platform delivers complete >>>> security visibility with the essential security capabilities. Easily and >>>> efficiently configure, manage, and operate all of your security controls >>>> from a single console and one unified framework. Download a free trial. >>>> http://p.sf.net/sfu/alienvault_d2d >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >> ------------------------------------------------------------------------------ >> >>> AlienVault Unified Security Management (USM) platform delivers complete >>> security visibility with the essential security capabilities. Easily and >>> efficiently configure, manage, and operate all of your security controls >>> from a single console and one unified framework. Download a free trial. >>> http://p.sf.net/sfu/alienvault_d2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET >> Get 100% visibility into your production application - at no cost. >> Code-level diagnostics for performance bottlenecks with <2% overhead >> Download for free and get started troubleshooting in minutes. >> http://p.sf.net/sfu/appdyn_d2d_ap1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > From gambas at ...1... Fri May 31 14:06:27 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 31 May 2013 14:06:27 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <20130531081502.0d4d8c44@...3104...> References: <51A79EF5.2080106@...2382...> <20130530213530.638890d9@...3104...> <51A7C9A6.40304@...2382...> <20130531081502.0d4d8c44@...3104...> Message-ID: <51A89243.4060706@...1...> Le 31/05/2013 08:15, Kende Kriszti?n a ?crit : > > It's works: > > Shell "ifconfig --help 2>&1" To somevar > > but stderr cannot be seen. > Yes. I have updated the documentation with that information. -- Beno?t Minisini From ea7dfh at ...2382... Fri May 31 14:12:37 2013 From: ea7dfh at ...2382... (Jesus) Date: Fri, 31 May 2013 14:12:37 +0200 Subject: [Gambas-user] Shell - commands with arguments doesn't work In-Reply-To: <20130531081502.0d4d8c44@...3104...> References: <51A79EF5.2080106@...2382...> <20130530213530.638890d9@...3104...> <51A7C9A6.40304@...2382...> <20130531081502.0d4d8c44@...3104...> Message-ID: <51A893B5.5080605@...2382...> El 31/05/13 08:15, Kende Kriszti?n escribi?: > Thu, 30 May 2013 23:50:30 +0200 -n > Jesus ?rta: > >> El 30/05/13 21:35, Kende Kriszti?n escribi?: >>> An interesting example, why do not you use native methods? >>> >>> Dim item As String >>> >>> For Each item In Dir(User.Home).Sort() >>> >>> With Stat(User.Home & "/" & item) >>> >>> Print .Auth & " " & .User & " " & .Group & " " & .Size & " " >>> & .LastModified & " " & item >>> >>> End With >>> >>> Next >>> >>> >>>> Hi all >>>> >>>> AFAIR this used to work until now: >>>> >>>> Shell "ls -la" To variable >>>> Exec ["ls", "-la"] To anothervariable >>>> >>>> But now, whatever command I use, if it has one or more arguments >>>> beginning with a dash or double dash, I don't get any output. >>>> >>>> Quoting it with Shell$() function does not help. Also, I've tried >>>> using process reading, to no avail. >>>> >>>> If you would issue the command without arguments, it then works >>>> fine. >>>> >>>> Is this a bug, or am I doing something wrong? >>>> >>>> Regards >>>> >>>> Gambas 3.4.90 r5682 >>>> >> >> That's not the case. What I wanted to point out is why some commands >> does not work when some arguments are given. Obviously, my first >> example is pointless. >> >> Have you tested the following? >> >> Shell "ifconfig --help" To somevar >> >> Why this does not return anything? >> >> Regards > > It's works: > > Shell "ifconfig --help 2>&1" To somevar > > but stderr cannot be seen. > Hi, Kende and Jussi Thanks for your clarifications. I should have realized about stderr. Regards -- Jesus Guardon From gambas at ...1... Fri May 31 14:40:05 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 May 2013 14:40:05 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <3683554.IBFUsYn7cG@...2592...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> Message-ID: <51A89A25.9010008@...1...> Le 31/05/2013 11:07, Laurent Carlier a ?crit : > Le vendredi 31 mai 2013 10:37:00 Adrien Prokopowicz a ?crit : >> Le Fri, 31 May 2013 10:25:16 +0200, Fabien Bodard a >> >> ?crit: >>> me too : >>> [...] >> >> Hi, >> >> Same thing here. My v4l version is 0.9.5, and valgrind's output is >> attached. > > And probably a better gdb output: > ... The creators of the component have disappeared. Beside the fact that I don't have time now and I don't know Video4Linux at all, I don't have a webcam too that would allow me to do some tests. ;-/ Does someone know if Linux has sort of "virtual webcam device" that would allow to test Video4Linux code without having a true video device? -- Beno?t Minisini From taboege at ...626... Fri May 31 15:21:48 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 May 2013 15:21:48 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51A89A25.9010008@...1...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> Message-ID: <20130531132148.GC764@...2774...> On Fri, 31 May 2013, Beno?t Minisini wrote: > Le 31/05/2013 11:07, Laurent Carlier a ?crit : > > Le vendredi 31 mai 2013 10:37:00 Adrien Prokopowicz a ?crit : > >> Le Fri, 31 May 2013 10:25:16 +0200, Fabien Bodard a > >> > >> ?crit: > >>> me too : > >>> [...] > >> > >> Hi, > >> > >> Same thing here. My v4l version is 0.9.5, and valgrind's output is > >> attached. > > > > And probably a better gdb output: > > ... > > The creators of the component have disappeared. Beside the fact that I > don't have time now and I don't know Video4Linux at all, I don't have a > webcam too that would allow me to do some tests. ;-/ > > Does someone know if Linux has sort of "virtual webcam device" that > would allow to test Video4Linux code without having a true video device? > This one[0] looks nifty but it's a kernel module... Regards, Tobi [0] https://github.com/umlaeute/v4l2loopback From gambas at ...1... Fri May 31 15:41:53 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 May 2013 15:41:53 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <20130531132148.GC764@...2774...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> Message-ID: <51A8A8A1.9030401@...1...> Hi, Ford anyone could test if gb.media (the gstreamer component) can be used to deal with V4L2 devices? There are gstreamer plugins for that: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html -- Beno?t Minisini From gambas at ...1... Fri May 31 16:06:43 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 May 2013 16:06:43 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51A8A8A1.9030401@...1...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> <51A8A8A1.9030401@...1...> Message-ID: <51A8AE73.9030101@...1...> Le 31/05/2013 15:41, Beno?t Minisini a ?crit : > Hi, > > Ford anyone could test if gb.media (the gstreamer component) can be used > to deal with V4L2 devices? > > There are gstreamer plugins for that: > > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html > > Here is what I told Richard: Look at the "MediaPlayer" example: you can play any video files (or sound files) with it. It is based on the gb.media component which is a simplified interface to the GStreamer multimedia library. That library (and so gb.media) works by putting "plugins" together. It's like Legos. The MediaPlayer is based on a big GStreamer plugin that implements a full media player. Hopefully, GStreamer has a plugin named "v4l2src" that gets images from a Video4Linux device. So, by replacing the "file" input plugin by the "v4l2src" plugin in the MediaPlayer, you can see your webcam anywhere on the screen. It should be just a matter of setting the right properties of the "v4l2src" plugin. Google and a little elbow grease should help there. If someone has more time than me *and* a webcam to test if the gb.v4l component can easily be replaced by gb.media, it would be cool! :-) -- Beno?t Minisini From gambas at ...1... Fri May 31 16:08:05 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 May 2013 16:08:05 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51A8A8A1.9030401@...1...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> <51A8A8A1.9030401@...1...> Message-ID: <51A8AEC5.8040801@...1...> Le 31/05/2013 15:41, Beno?t Minisini a ?crit : > Hi, > > Ford anyone could test if gb.media (the gstreamer component) can be used > to deal with V4L2 devices? > Read "Could anyone". Don't know what I have smoked... -- Beno?t Minisini From taboege at ...626... Fri May 31 20:37:07 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 May 2013 20:37:07 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51A8A8A1.9030401@...1...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> <51A8A8A1.9030401@...1...> Message-ID: <20130531183707.GA530@...2774...> On Fri, 31 May 2013, Beno?t Minisini wrote: > Hi, > > Ford anyone could test if gb.media (the gstreamer component) can be used > to deal with V4L2 devices? > > There are gstreamer plugins for that: > > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html > This is what I did: - Install and load that v4l2loopback because I have no webcam (/dev/video0 is created) - Install gst-plugins-good (with the v4l2 gstreamer plugin; this caused minor confusion on Arch Linux because I installed the gstreamer-1.0 packages instead of Gambas' 0.10 ones.) - As per the wiki of v4l2loopback, execute: $ gst-launch-0.10 videotestsrc ! v4l2sink device=/dev/video0 which feeds /dev/video0 with sample data - And execute: $ gst-launch-0.10 v4l2src device=/dev/video0 ! xvimagesink which displays the stuff properly. But now I can't get the Gambas part to work because I don't understand how these things work. Regards, Tobi From introlinux at ...626... Fri May 31 21:00:25 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Fri, 31 May 2013 21:00:25 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? Message-ID: Hi! Since no one knows how to solve the problem of grid background, I have no choice but to install the old version of gambas 3.3.1 until It will be auto-magicaly-solved. Is it possible to have multiple versions of GAMBAS coexist on the same system? Is there any PYTHONPATH equivalent in GAMBAS to run some programs with an old version of GAMBAS located in other place? Thanks. From taboege at ...626... Fri May 31 21:08:04 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 31 May 2013 21:08:04 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: Message-ID: <20130531190804.GB530@...2774...> On Fri, 31 May 2013, Antonio S?nchez wrote: > Hi! > > Since no one knows how to solve the problem of grid background, I have > no choice > but to install the old version of gambas 3.3.1 until It will be > auto-magicaly-solved. Is it possible to have multiple versions of GAMBAS > coexist on the same system? Is there any PYTHONPATH equivalent in GAMBAS to > run some programs with an old version of GAMBAS located in other place? > I posted this question in March this year[0]. Basically, what you want is not officially supported. You need to tweak your system in order to maintain different versions of Gambas on the same system and switch between them. I didn't try it out but it should be possible as stated in that thread. Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=30547651 From jussi.lahtinen at ...626... Fri May 31 21:30:52 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 31 May 2013 22:30:52 +0300 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: Message-ID: I understand that the grid color annoys you, but personally I don't think it's that bad. However, do you have this file in your system, and perhaps something in it? ~/.gtkrc-2.0 Jussi On Fri, May 31, 2013 at 10:00 PM, Antonio S?nchez wrote: > Hi! > > Since no one knows how to solve the problem of grid background, I have > no choice > but to install the old version of gambas 3.3.1 until It will be > auto-magicaly-solved. Is it possible to have multiple versions of GAMBAS > coexist on the same system? Is there any PYTHONPATH equivalent in GAMBAS to > run some programs with an old version of GAMBAS located in other place? > > Thanks. > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri May 31 21:36:43 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 May 2013 21:36:43 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: Message-ID: <51A8FBCB.9000802@...1...> Le 31/05/2013 21:00, Antonio S?nchez a ?crit : > Hi! > > Since no one knows how to solve the problem of grid background, I have > no choice > but to install the old version of gambas 3.3.1 until It will be > auto-magicaly-solved. Is it possible to have multiple versions of GAMBAS > coexist on the same system? Is there any PYTHONPATH equivalent in GAMBAS to > run some programs with an old version of GAMBAS located in other place? > > Thanks. I now see the behaviour you are describing. I didn't see it before because the effect was very light, and my screen being big, I have to put my eye just in front of it too see that my white background was not really white! I'm now searching where that background color comes from... -- Beno?t Minisini From gambas at ...1... Fri May 31 21:55:24 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 31 May 2013 21:55:24 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A8FBCB.9000802@...1...> References: <51A8FBCB.9000802@...1...> Message-ID: <51A9002C.4020402@...1...> Le 31/05/2013 21:36, Beno?t Minisini a ?crit : > Le 31/05/2013 21:00, Antonio S?nchez a ?crit : >> Hi! >> >> Since no one knows how to solve the problem of grid background, I have >> no choice >> but to install the old version of gambas 3.3.1 until It will be >> auto-magicaly-solved. Is it possible to have multiple versions of GAMBAS >> coexist on the same system? Is there any PYTHONPATH equivalent in >> GAMBAS to >> run some programs with an old version of GAMBAS located in other place? >> >> Thanks. > > I now see the behaviour you are describing. I didn't see it before > because the effect was very light, and my screen being big, I have to > put my eye just in front of it too see that my white background was not > really white! > > I'm now searching where that background color comes from... > I spoke too fast. For me, everything is normal: the default background color of all view widgets is the color defined in the KDE control panel (first color of the "color" tab). Most of the time, that color is not white, but slightly colored. Moreover, the IconView and the GridView both have the same background color in 3.4.1 version, whereas it was not the case of your screenshot of the IDE option dialog. Are you really sure that you are using the 3.4.1 version? -- Beno?t Minisini From introlinux at ...626... Fri May 31 23:54:04 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Fri, 31 May 2013 23:54:04 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A9002C.4020402@...1...> References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> Message-ID: What bothers is not only the fact that when I choose the white colour in the IDE of GAMBAS, it appears orange, but the text, that instead of being black, it's blur. It seems to have an onion layer on the grid. Could you watch the video-report about gb.gui and qt.gui? https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1