From sourceforge-raindog2 at ...94... Sun Dec 1 00:29:48 2013 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 30 Nov 2013 18:29:48 -0500 Subject: [Gambas-user] gambas documentation offline include in source (gb.web) In-Reply-To: References: Message-ID: <529A74EC.1000805@...94...> On 11/30/2013 11:59 AM, PICCORO McKAY Lenz wrote: >> Yes, the Gambas documentation wiki is a CGI program written in >> Gambas. I think the source is included in the Gambas tarball as an >> example, or used to be. > Could be possible to buld the documentation locally? if are atached to > the sources? Should be... I did apt-get source gambas3 and the source for the program is here inside the tarball: gambas3-3.1.1/app/src/doc.cgi/ > this could solve the problem of online documentation ... for me will be > very usefully when i go in a journey to Tepuys, where no are a interenet > connection. This might help. It seems to be only English (I didn't realize when I started that it doesn't give you the language links if you're using a crawler, and the English version alone took half an hour to crawl from a host on the same subnet as the server) but I hope it'll get you started. Works well on my own laptop. It's 23.1 MB, expands to 83. http://www.gambasdoc.org/gambasdoc-static-20131130.tar.gz Rob From john.aaron.rose at ...626... Sun Dec 1 10:26:03 2013 From: john.aaron.rose at ...626... (John Rose) Date: Sun, 01 Dec 2013 09:26:03 +0000 Subject: [Gambas-user] Web apps Message-ID: <529B00AB.8070007@...626...> Thanks, Rob, Piccoro & Benoit, for your responses, I don't see the Gambas Documentation Wiki app in the examples for Gambas 3.5.1: where can it be obtained? Can the Gambas project for http://www.gambasforge.org/index.html be downloaded? Please direct me to an example of (ideally) a Gambas app (running in, say, Firefox) that displays & updates data (from a database). -- Regards, John From gambas.fr at ...626... Sun Dec 1 10:33:27 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 1 Dec 2013 10:33:27 +0100 Subject: [Gambas-user] Web apps In-Reply-To: <529B00AB.8070007@...626...> References: <529B00AB.8070007@...626...> Message-ID: Take a look on SourceForge Le 1 d?c. 2013 10:27, "John Rose" a ?crit : > Thanks, Rob, Piccoro & Benoit, for your responses, > > I don't see the Gambas Documentation Wiki app in the examples for Gambas > 3.5.1: where can it be obtained? Can the Gambas project for > http://www.gambasforge.org/index.html be downloaded? Please direct me to > an example of (ideally) a Gambas app (running in, say, Firefox) that > displays & updates data (from a database). > > -- > Regards, John > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sun Dec 1 11:16:47 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 01 Dec 2013 20:46:47 +1030 Subject: [Gambas-user] Semi-persistent pop-up form? In-Reply-To: <5282853C.1040206@...546...> References: <5282853C.1040206@...546...> Message-ID: <1385893007.9723.37.camel@...2688...> On Tue, 2013-11-12 at 12:45 -0700, paulwheeler wrote: > Bruce, > > Unfortunately, I have no answer for your question, but wanted to say that your illustrations are SO COOL! > > If you don't mind my asking, how did you do them? > > paul Hi Paul, Thanks for the comp. But the "overlay" is just a normal gambas form with the Mask attribute set. I did write up how to do it (for my own benefit) about 4 weeks ago .. somewhere! Since then I have been a little bit away due to a racehorse that kicked me, apparently several times, and spent some time in hospital. I'll see if I can find that set of notes in the coming days. cheers Bruce From bbruen at ...2308... Sun Dec 1 11:18:07 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 01 Dec 2013 20:48:07 +1030 Subject: [Gambas-user] gb.xml "unSerialize" In-Reply-To: References: <1382173765.3512.6.camel@...2688...> <52624F21.2000502@...1950...> <526291E9.1080406@...1...> <1382206557.3512.21.camel@...2688...> Message-ID: <1385893087.9723.38.camel@...2688...> On Sat, 2013-10-19 at 22:29 +0200, Adrien Prokopowicz wrote: > Well, looks like there is a little bug here. I will fix that tomorrow. > > Le Sat, 19 Oct 2013 20:15:57 +0200, Bruce a ?crit: > > First, thanks all for the replies. > > > > re: Content v Contents > > I think (not that Australian is the definitive interpretation of > > the English language) that it depends on the explicit usage. > > "The content of this box is dangerous" refers to the > > entire contents of the box as a single entity. > > "The contents of this box are dangerous" refers to each > > and every item contained in the box. > > (if that makes it any clearer??) > > > > Now my problem, that I should have made clearer in the first place, is > > that the SQL string is an attribute of the node. > > > > > > > > I have no problem writing the xml out. > > wkXMLtask.NewAttribute("sql",sSQL) > > converts any internal >'s and <'s to < and > automagically. > > However, > > sSQL=wkXMLtask.GetAttribute("sql") > > leaves the XML encoded characters as they are. > > > > Bruce > > > Hello Adrien? Has tomorrow come yet? Bruce From bbruen at ...2308... Sun Dec 1 11:28:08 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 01 Dec 2013 20:58:08 +1030 Subject: [Gambas-user] Semi-persistent pop-up form? In-Reply-To: <5282457B.3090504@...1...> References: <1384202847.443.17.camel@...2688...> <52814C8E.80101@...1...> <1384211944.443.22.camel@...2688...> <5282457B.3090504@...1...> Message-ID: <1385893688.9723.48.camel@...2688...> On Tue, 2013-11-12 at 16:12 +0100, Beno?t Minisini wrote: > Le 12/11/2013 00:19, Bruce a ?crit : > > On Mon, 2013-11-11 at 22:30 +0100, Beno?t Minisini wrote: > >> Le 11/11/2013 21:47, Bruce a ?crit : > >>> Is there some way to make a popup form only close on a specific user > >>> action? > >>> > >>> In the attached picture, I have a popup form displaying some statistical > >>> guff about the data displayed in the main form. (I have pixelised the > >>> main form just to highlight the popup.) > >>> > >>> As per design, as soon as the user clicks on the main form, the popup > >>> disappears. In fact, as soon as the user clicks (anything) the popup > >>> disappears. > >>> > >>> What I would like to have happen is that the popup remain active until > >>> the user performs a specific action e.g. presses Alt+F, or whatever. > >>> > >>> (I have tried both the Show and ShowModal approaches, but they have > >>> other problems with things like positioning the popup correctly, > >>> multiple copies etc etc. ShowPopup seems to give the best operation so > >>> far.) > >>> > >>> Even getting to the point of only closing the popup if the click is > >>> within the main form window would help. > >>> > >>> Any ideas? > >>> > >>> tia > >>> Bruce > >>> > >> > >> Look at the Window.Utility property. > >> > >> Regards, > >> > > > > Wonderful! Almost there. The only problem I have left (ha-ha!) is > > moving the main form to another virtual desktop. In LXDE I can drag the > > main form to the next or prior desktop (or use the window menu "Send to > > Desktop"), I presume that there are equivalent features on other > > desktops, I've just forgotten. > > > > When I do this with the "utility" window open it moves the main form > > correctly but leaves the utility on the original desktop. > > > > This may be an LXDE or OpenBox issue, but I thought maybe someone has > > got an idea. > > > > tia > > > > This may be a window manager issue: on KDE, if you move the main window > on another virtual desktop, the utility window follows. > > Check which gui component you actually use: gb.qt4 or gb.gtk. If you use > gb.gui, define the GB_GUI environment variable to "gb.qt4" or "gb.gtk". > > The problem may come from that (i.e. the toolkit may not give enough > information to the window manager to let him decide what to do with the > utility window). > > On X11, the window manager job is... managing windows. The application > must not deal with that. So if the window manager is not very clever, > you have problems like that! > Yep, it's definitely an LXDE "feature". :-( I've tried it in various vm's using different window managers and mainly they work. The utility window follows the main window across the desktops. I think the answer is in your last sentence. The LXDE wm is by design "not very clever" (actually I'll change that to "not too clever, but does expose a lot of portland stuff that can be used"). It is a pity that the portland project now seems to be very defunct and each and every distro seems to be creating their own variant of the scripts. On the other hand (!!! :-) )I do like the fact that gambas is carrying its' own portland script versions. This means that I _can_ tailor the (local) gb.desktop versions to work properly without having to muck about with the client's distro version. Let's call this one "over and done". cheers Bruce From nigelverity at ...67... Sun Dec 1 12:26:41 2013 From: nigelverity at ...67... (Nigel Verity) Date: Sun, 1 Dec 2013 11:26:41 +0000 Subject: [Gambas-user] Compiling a Gambas Project Message-ID: Hi When I perform a "Compile" or "Compile All" operation from the Gambas menu any language syntax errors seem to be identified correctly. The same applies to declaration errors. However, I have noticed that calls to non-existant functions (as a result of spelling errors) are often not flagged. As a result the code passes the compilation checks and I can create an executable. The coding problems do, however, result in runtime errors. Is there a setting to ensure that compilation identifies ALL problems, or is it just a shortcoming with the compile process? Regards Nige From gambas at ...1... Sun Dec 1 16:15:28 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 01 Dec 2013 16:15:28 +0100 Subject: [Gambas-user] Web apps In-Reply-To: <529B00AB.8070007@...626...> References: <529B00AB.8070007@...626...> Message-ID: <529B5290.3020909@...1...> Le 01/12/2013 10:26, John Rose a ?crit : > Thanks, Rob, Piccoro & Benoit, for your responses, > > I don't see the Gambas Documentation Wiki app in the examples for Gambas > 3.5.1: where can it be obtained? Can the Gambas project for > http://www.gambasforge.org/index.html be downloaded? Please direct me to > an example of (ideally) a Gambas app (running in, say, Firefox) that > displays & updates data (from a database). > The wiki app is a very bad example of web applications made with Gambas. It was a quick & dirty project done with the beta version of Gambas 2! Now you have a gb.web component that helps a lot. -- Beno?t Minisini From ea7dfh at ...2382... Sun Dec 1 16:54:08 2013 From: ea7dfh at ...2382... (Jesus) Date: Sun, 01 Dec 2013 16:54:08 +0100 Subject: [Gambas-user] Configure method of ToolBar Message-ID: <529B5BA0.3000500@...2382...> Hi all I'm trying to get up and running a project which have a Toolbar and some toolbuttons in it. I'd like to mimic the same behavior toolbars have in Gambas' IDE. I've read the docs about Toolbar (gb.form.mdi) but calling the configure method throws an error aborting my application. BTW, all the toolbuttons have set an Action property, but note that I haven't any workspace in the main form, just the toolbar. This is the code I'm using in a minimal test application: ------8<---------------------------------- Public Sub ToolBar1_MouseDown() If Mouse.Right Then ToolBar1.Configure End ------8<---------------------------------- The error text is in the 'Toolbar1.Configure' line: "Not an object" The stack back-trace: FToolBarConfig.InitAction.108 FToolBarConfig.SetCurrentToolBar.54 FToolBarConfig.Run.17 Action._ConfigureToolBar.21 ToolBar.Configure.34 FMain.ToolBar1_MouseDown.20 What am I doing wrong? [System] Gambas=3.5.90 r5975 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] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 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 Regards -- Jesus Guardon From taboege at ...626... Sun Dec 1 17:42:30 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 1 Dec 2013 17:42:30 +0100 Subject: [Gambas-user] Compiling a Gambas Project In-Reply-To: References: Message-ID: <20131201164230.GB515@...2774...> On Sun, 01 Dec 2013, Nigel Verity wrote: > Hi > > When I perform a "Compile" or "Compile All" operation from the Gambas menu any language syntax errors seem to be identified correctly. The same applies to declaration errors. However, I have noticed that calls to non-existant functions (as a result of spelling errors) are often not flagged. As a result the code passes the compilation checks and I can create an executable. The coding problems do, however, result in runtime errors. > > Is there a setting to ensure that compilation identifies ALL problems, or is it just a shortcoming with the compile process? > > Regards > > Nige I suspect that you didn't use the proper terms in your explanation... An attempted call to a non-existent *function* is reported at compile time - for sure, always. If you call a *method* of an object, the situation is different because Gambas resolves method calls at runtime. This is needed to support all the good OOP mechanisms such as virtual dispatching, method overriding and the _unknown() special method! You see, it's actually a feature ;-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From nigelverity at ...67... Sun Dec 1 18:15:08 2013 From: nigelverity at ...67... (Nigel Verity) Date: Sun, 1 Dec 2013 17:15:08 +0000 Subject: [Gambas-user] Compiling A Gambas Project Message-ID: Hi Tobi Perhaps if I describe a scenario I encountered yesterday you can advise on whether the behaviour should be expected or whether there is actually a bug. I always structure my projects using the default approach so that each form has its associated .class file in which the form-specific code resides. However, user-defined functions which may be used on multiple forms I place in a .module file, usually called mdlShared. My problem yesterday involved calls to mdlShared.setFontAttributes(). After a bit of redesigning I replaced this function with mdlShared.setFont(). Unfortunately I forgot to remove several calls to .setFontAttributes() even though I had removed the function itself. These calls were not detected by "Compile All" but resulted in runtime errors. Regards Nige From taboege at ...626... Sun Dec 1 18:23:42 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 1 Dec 2013 18:23:42 +0100 Subject: [Gambas-user] Compiling A Gambas Project Message-ID: <20131201172342.GD515@...2774...> On Sun, 01 Dec 2013, Nigel Verity wrote: > > > > Hi Tobi > > Perhaps if I describe a scenario I encountered yesterday you can advise on whether the behaviour should be expected or whether there is actually a bug. > > I always structure my projects using the default approach so that each form has its associated .class file in which the form-specific code resides. However, user-defined functions which may be used on multiple forms I place in a .module file, usually called mdlShared. > > My problem yesterday involved calls to mdlShared.setFontAttributes(). After a bit of redesigning I replaced this function with mdlShared.setFont(). Unfortunately I forgot to remove several calls to .setFontAttributes() even though I had removed the function itself. These calls were not detected by "Compile All" but resulted in runtime errors. > Yes, this is the correct behaviour as a module is only a static class. If you use a module, you use a "singleton" of that class. Being a singleton or not, you use an *object* and to support inheritance and method overriding - which Gambas does for modules - the interpreter needs to resolve method calls, as in your case, not before runtime. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From matti.eber at ...3240... Sun Dec 1 18:45:15 2013 From: matti.eber at ...3240... (Matti) Date: Sun, 01 Dec 2013 18:45:15 +0100 Subject: [Gambas-user] Where are the examples in gambas 3.5.1? In-Reply-To: <006b4c$c0377s@...3239...> References: <006b4c$c01vk2@...3239...> <64e542$bvigbc@...3015...> <5299262D.5020709@...3240...> <006b4c$c0377s@...3239...> Message-ID: <529B75AB.1090400@...3240...> G'day Carl, something seems to be wrong in both of our repositories. I looked at my gambas (didn't use it for quite a while) and saw that it is 3.4.1! Then looked into YaSt to see why it was not updated automatically. Most of the components in the repository are 3.5.1, but some (e.g. gb.gui) are 3.4.1. Trying to update gambas results in a lot of dependency-conflict messages between 3.4 and 3.5. So, I keep the old version until the repo is fixed. Your problems obviously come from this version-mix. I think you should open YaSt and set all the components back to 3.4.1. There is a 'versions' tab where you can choose. Then just wait... By the way: How to find out who is maintaining a repo? Would be great to send them a mail that something is wrong. Matti Am 30.11.2013 23:40, schrieb Carl Nilsson: > G'day Matti: > Now I'm getting confused again! Is not the repository you refer to > a repository only for the opemSUSE? I have assumed my openSUSE 12.2 > is working fine, but it is the gambas install that gives me > problems. The openSUSE 12.2 I actually have comes from a > store-boughten DVD set put out by (I think) UnixAcademy.com. Seems > to go on just fine. I use the KDE gui. Reason I'm trying to stick > with it is that I bought some moderately expensive books on SUSE > Linux for those long winter nights (that have just > passed). Yesterday i removed the troublesome gambas 3.5 install and > tried again, but munix9 is the only repo that I know that gives me > something approaching a "one-line" install. Once again, I had > trouble with four packages (including the examples) with missing > dependencies. I couldn't initially install gambas-gb-v4l because of > missing -tools and needing tv-common; examples needed libmlib2.so.1 > etc. However, I played around with trying to install those packages > one by one and finally they did install with no complaints about > dependencies. Now all the packages are installed (white ticks on a > black background for all of them) at the gambas 3.5.1 -2.5 level > except for gb-gui, gb-maps and script which are at the 3.4.1-2.29 > level. I don't know if that is a problem? > The fact that I got gambas 3.5 (whether I wanted it or not) from > munix9 suggests that somebody is working and trying to keep it up to date. > Now my examples show in gambas 3.5.1, but I still have problems. > > When I start gambas 3.5.1 I get my "tip of the day" and "recent > projects". If I go to examples, like "dragNdrop", the project opens > and I get a "project is read only" notice. Fair enough! I just get a > mottled grey screen on the right. Under the project "sources", if I > left click "FDragNdrop", nothing happens (I need to refresh my memory > on these operations with gambas). If I right click it, I immediately > get a fatal error, namely: [2] cannot load class "_Gui': > FMain.tvwProject_Menu.257 - and automatically exit from gambas. All > the examples I have tried act similarly. > > Now, I can't help wondering if this error is related to the fact that > gb-gui is installed at the 3.4 level, whereas most of gambas is > installed at 3.5 level? So far as I'm aware (not very far!), munix9 > did not give me the option of installing at the 3.4 level. It's > possible that this gambas install can be retrieved quite simply by > installing a different package - I don't know and I await advice. > > I recall that (as I said in my post last September 2012) I did get an > earlier gambas3 successfully installed under a real installation of > SUSE 10 on an older machine, so one way or another, I should be able > to get it going under SUSE 12.2. My (real paper) reference books are > all about SUSE 10 and 11, but I expect are still reasonably good for > SUSE 12. They are my real monetary investment that I'm trying to > save. In addition, although I'm struggling, this is a learning > process about real-world Linux - but not getting me far into gambas, > which is where i really want to spend my time. I appreciate any > assist you can provide at this stage. > > In the meantime, I have downloaded Mint 13 "Maya" and will try > installing that tonight under VMPlayer. I saw and downloaded Willy > Raets ebook "how to Gambas" which gives an installing path for that > version of Linux - which might produce an interesting comparison for me. > > Thank you for your continued interest. > Carl > > At 10:41 AM 30/11/2013, you wrote: >> Hi Carl, >> >> I don't know if this munix9.rpm is still working and up to date. >> Right now, I can recommend (for 12.3) the repository >> http://download.opensuse.org/repositories/Education/openSUSE_12.3/ >> Somebody is doing a good job there, and each stable version seems to >> be complete. >> Regards, Matti >> >> Am 29.11.2013 12:42, schrieb Carl Nilsson: >>> G'day again: >>> To my (slight) embarrassment, I see that I asked the same question >>> fourteen months ago (27-28 Sep 2012) and got pointed in the correct >>> direction by Matti - and so got gambas 3.2 with its' examples running >>> on openSUSE 12.2 . Guess that's what you expect from Seniors like >>> me. Amazing how time flies when you are busy on other things - not >>> to mention the memory! Anyway, I'll follow that path again and >>> apologise for taking up your email space. (Just as well I subscribe >>> on the gambas-user list and keep the emails!). >>> Carl >>> >>> At 01:38 PM 29/11/2013, you wrote: >>>> G'day: >>>> I have installed gambas 3.5.1 from munix9 rpm running under openSUSE >>>> 12.2 on a Virtual Machine (VMWare Player) on a Win 7 32 bit >>>> desktop. gambas seems fine, but there are no examples. ...(snip) >>>> Regards Carl >>>> >>>> Carl S Nilsson >>>> 137 Gordons Hill Road >>>> Lindisfarne, Tas. >>>> Australia 7015 >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> AppDynamics Pro! >>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> Carl S Nilsson >>> 137 Gordons Hill Road >>> Lindisfarne, Tas. >>> Australia 7015 >>> >> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Carl S Nilsson > 137 Gordons Hill Road > Lindisfarne, Tas. > Australia 7015 > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Sun Dec 1 21:30:39 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 1 Dec 2013 12:30:39 -0800 (PST) Subject: [Gambas-user] Online radio with "Shell" Message-ID: <1385929839648-44487.post@...3046...> Hi! Help me please. I want to make some small GUI app for online radio using "Shell" Here is sample string for terminal. *"mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3"* How can I use it? Hext does not work: *Public Sub Form_Open() Dim a As String Shell "mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3" To a Print a End* Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487.html Sent from the gambas-user mailing list archive at Nabble.com. From nemh at ...2007... Sun Dec 1 21:43:33 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sun, 01 Dec 2013 21:43:33 +0100 Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <1385929839648-44487.post@...3046...> References: <1385929839648-44487.post@...3046...> Message-ID: <529B9F75.5060003@...2007...> 2013-12-01 21:30 keltez?ssel, abbat81 ?rta: > Hi! > Help me please. > I want to make some small GUI app for online radio using "Shell" > Here is sample string for terminal. > > > *"mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3"* > > > How can I use it? > > Hext does not work: > > *Public Sub Form_Open() > Dim a As String > Shell "mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3" To a > Print a > End* > > Thanks > ? Exec ["mplayer", "-cache", "128", "http://music.myradio.ua/trance_news128.mp3"] Wait From taboege at ...626... Sun Dec 1 21:55:39 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 1 Dec 2013 21:55:39 +0100 Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <1385929839648-44487.post@...3046...> References: <1385929839648-44487.post@...3046...> Message-ID: <20131201205539.GF515@...2774...> On Sun, 01 Dec 2013, abbat81 wrote: > Hi! > Help me please. > I want to make some small GUI app for online radio using "Shell" > Here is sample string for terminal. > > > *"mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3"* > > > How can I use it? > > Hext does not work: > > *Public Sub Form_Open() > Dim a As String > Shell "mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3" To a > Print a > End* > > Thanks We did a GUI for mplayer to play webradio. Sadly it is not online yet and the code needs a serious cleanup. See I don't want to send it to you prematurely - also because Hans wrote the most part of it. As a hint, look at mplayer's -slave switch. Then you can control it by sending commands Print #$hMPlayer, sCommand Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From abbat.81 at ...787... Sun Dec 1 23:20:40 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 1 Dec 2013 14:20:40 -0800 (PST) Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <20131201205539.GF515@...2774...> References: <1385929839648-44487.post@...3046...> <20131201205539.GF515@...2774...> Message-ID: <1385936440518-44490.post@...3046...> Hi Tobi, Can you explain or give example please? I don't understand how to use "Print #$hMPlayer, sCommand" I got: "Unknown identifier #$hMPlayer" How should I declare the #$hMPlayer? Thaks -- View this message in context: http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44490.html Sent from the gambas-user mailing list archive at Nabble.com. From abbat.81 at ...787... Sun Dec 1 23:31:08 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 1 Dec 2013 14:31:08 -0800 (PST) Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <529B9F75.5060003@...2007...> References: <1385929839648-44487.post@...3046...> <529B9F75.5060003@...2007...> Message-ID: <1385937068262-44491.post@...3046...> Hi Kendek, Thank you for your reply. Using your code I got a music. Also I have a information about playback in console of Gambas. Can I send that info to any GUI control? Thanks. :) -- View this message in context: http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44491.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun Dec 1 23:33:59 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 1 Dec 2013 23:33:59 +0100 Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <1385936440518-44490.post@...3046...> References: <1385929839648-44487.post@...3046...> <20131201205539.GF515@...2774...> <1385936440518-44490.post@...3046...> Message-ID: <20131201223359.GG515@...2774...> On Sun, 01 Dec 2013, abbat81 wrote: > Hi Tobi, > Can you explain or give example please? > > I don't understand how to use > "Print #$hMPlayer, sCommand" > > I got: > "Unknown identifier #$hMPlayer" > > How should I declare the #$hMPlayer? > > Thaks You want to communicate with the mplayer process, don't you? So --8<---------------- Private $hMPlayer As Process Public Sub _new() $hMPlayer = Shell "mplayer -slave " For Input Output As "MPlayer" End Public Sub btnStopPlayback_Click() Print #$hMPlayer, "stop" End ' etc. --8<---------------- For a list of supported commands... google. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From abbat.81 at ...787... Mon Dec 2 00:07:30 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 1 Dec 2013 15:07:30 -0800 (PST) Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <20131201223359.GG515@...2774...> References: <1385929839648-44487.post@...3046...> <20131201205539.GF515@...2774...> <1385936440518-44490.post@...3046...> <20131201223359.GG515@...2774...> Message-ID: <1385939250185-44493.post@...3046...> Tobi, thank you.. and excuse me please, but last question. How to start that process? Public Sub Button3_Click() _new() End Thanks, Peter -- View this message in context: http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44493.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Mon Dec 2 00:10:51 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 2 Dec 2013 00:10:51 +0100 Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <1385939250185-44493.post@...3046...> References: <1385929839648-44487.post@...3046...> <20131201205539.GF515@...2774...> <1385936440518-44490.post@...3046...> <20131201223359.GG515@...2774...> <1385939250185-44493.post@...3046...> Message-ID: <20131201231051.GH515@...2774...> On Sun, 01 Dec 2013, abbat81 wrote: > Tobi, thank you.. > and excuse me please, but last question. > > How to start that process? > > > Public Sub Button3_Click() > _new() > End > _new() is automatically called when your form (I suspected you use forms) is created. You can equivalently well put the code I wrote down in _new() into a btnStartMPlayer_Click() event handler for some Button. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From abbat.81 at ...787... Mon Dec 2 00:29:14 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 1 Dec 2013 15:29:14 -0800 (PST) Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <20131201231051.GH515@...2774...> References: <1385929839648-44487.post@...3046...> <20131201205539.GF515@...2774...> <1385936440518-44490.post@...3046...> <20131201223359.GG515@...2774...> <1385939250185-44493.post@...3046...> <20131201231051.GH515@...2774...> Message-ID: <1385940554609-44495.post@...3046...> Tobi, here is the my code: Private $hMPlayer As Process Public Sub _new() $hMPlayer = Shell "mplayer -slave -cache 128 http://music.myradio.ua/trance_news128.mp3>" For Input Output As "MPlayer" End Public Sub btnStopPlayback_Click() Print #$hMPlayer, "stop" End Public Sub Button1_Click() _new() End And it does not work. Nothing happens. Yes, I use a form. I use a same project where works well next way: Exec ["mplayer", "-cache", "128", "http://music.myradio.ua/trance_news128.mp3"] Wait Maybe I need to add some more component to my project? What's wrong? Thanks, Peter -- View this message in context: http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44495.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Mon Dec 2 00:46:34 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Dec 2013 01:46:34 +0200 Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: <1385940554609-44495.post@...3046...> References: <1385929839648-44487.post@...3046...> <20131201205539.GF515@...2774...> <1385936440518-44490.post@...3046...> <20131201223359.GG515@...2774...> <1385939250185-44493.post@...3046...> <20131201231051.GH515@...2774...> <1385940554609-44495.post@...3046...> Message-ID: Private $hMPlayer As Process Public Sub _new() $hMPlayer = Shell "mplayer -slave -cache 128 http://music.myradio.ua/trance_news128.mp3>" For Input Output As "MPlayer" End Public Sub btnStopPlayback_Click() Print #$hMPlayer, "stop" End Public Sub Button1_Click() _new() End --> Private $hMPlayer As Process Public Sub _new() $hMPlayer = Shell "mplayer -slave -cache 128 http://music.myradio.ua/trance_news128.mp3" For Input Output As "MPlayer" End Public Sub btnStopPlayback_Click() Print #$hMPlayer, "stop" End Jussi On Mon, Dec 2, 2013 at 1:29 AM, abbat81 wrote: > Tobi, > > here is the my code: > > Private $hMPlayer As Process > > Public Sub _new() > $hMPlayer = Shell "mplayer -slave -cache 128 > http://music.myradio.ua/trance_news128.mp3>" For Input Output As "MPlayer" > End > > Public Sub btnStopPlayback_Click() > Print #$hMPlayer, "stop" > End > > Public Sub Button1_Click() > _new() > End > > > And it does not work. Nothing happens. > Yes, I use a form. > I use a same project where works well next way: > Exec ["mplayer", "-cache", "128", > "http://music.myradio.ua/trance_news128.mp3"] Wait > > Maybe I need to add some more component to my project? > What's wrong? > > Thanks, > Peter > > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44495.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mmcg29440 at ...3163... Mon Dec 2 01:58:34 2013 From: mmcg29440 at ...3163... (Marty) Date: Sun, 01 Dec 2013 19:58:34 -0500 Subject: [Gambas-user] Further info on DataaCheckBox Bugs Message-ID: <529BDB3A.8080801@...3163...> I have cross checked the properties and events between the CheckBox control and the DataCheckBox control and find them to be different. The CheckBox control supports the trisate property, the first click sets false the second true and the click event works as expected. The DataCheckBox does not have the tristate property. The syntax checker says it's not a valid property. The DataCheckBox click event is not raised when the user clicks on the control. The DataCheckBox requires three clicks to change between true and false. This appears to be a bug in the DataCheckBox control. It would be simple to test. Just a form with a datasource attached to a MySQL table and a DataCheckBox control. I need to use the DataCheckBox and it's Click event in my project. Would appreciate one of the Gambas experts comments and advice on a possible work around. Marty From gambas at ...1... Mon Dec 2 02:15:54 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Dec 2013 02:15:54 +0100 Subject: [Gambas-user] Further info on DataaCheckBox Bugs In-Reply-To: <529BDB3A.8080801@...3163...> References: <529BDB3A.8080801@...3163...> Message-ID: <529BDF4A.4020501@...1...> Le 02/12/2013 01:58, Marty a ?crit : > I have cross checked the properties and events between the CheckBox > control and the DataCheckBox control and find them to be different. The > CheckBox control supports the trisate property, the first click sets > false the second true and the click event works as expected. The > DataCheckBox does not have the tristate property. The syntax checker > says it's not a valid property. The DataCheckBox click event is not > raised when the user clicks on the control. The DataCheckBox requires > three clicks to change between true and false. > > This appears to be a bug in the DataCheckBox control. It would be simple > to test. Just a form with a datasource attached to a MySQL table and a > DataCheckBox control. I need to use the DataCheckBox and it's Click > event in my project. Would appreciate one of the Gambas experts comments > and advice on a possible work around. > > Marty > DataCheckBox is a data-bound control that aims at displaying the value of a Boolean database field. Hence, it can takes three different values (True, False and Null), or two (True and False) if the field is mandatory. The tristate value of a DataCheckBox only depends on the database field definition, so there is no need for a tristate property. There is actually a bug in DataCheckBox where the mandatory status is not detected. I will try to fix it. As for the Click event, a data bound control directly modifies the database field it is associated with. So, normally, you don't need the Click event. Regards, -- Beno?t Minisini From vuott at ...325... Mon Dec 2 10:17:01 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 2 Dec 2013 09:17:01 +0000 (GMT) Subject: [Gambas-user] Online radio with "Shell" In-Reply-To: Message-ID: <1385975821.29225.YahooMailBasic@...3065...> ...and without Shell...... ;-) *************************** Private wv As WebView Public Sub Form_Open() With wv = New WebView(Me) .X = 10 .Y = 10 .W = 430 .H = 100 End With End Public Sub Button1_Click() wv.HTML = "" End -------------------------------------------- Lun 2/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Online radio with "Shell" A: "mailing list for gambas users" Data: Luned? 2 dicembre 2013, 00:46 Private $hMPlayer As Process Public Sub _new() ? $hMPlayer = Shell "mplayer -slave -cache 128 http://music.myradio.ua/trance_news128.mp3>" For Input Output As "MPlayer" End Public Sub btnStopPlayback_Click() ? Print #$hMPlayer, "stop" End Public Sub Button1_Click() ? _new() End --> Private $hMPlayer As Process Public Sub _new() ? $hMPlayer = Shell "mplayer -slave -cache 128 http://music.myradio.ua/trance_news128.mp3" For Input Output As "MPlayer" End Public Sub btnStopPlayback_Click() ? Print #$hMPlayer, "stop" End Jussi On Mon, Dec 2, 2013 at 1:29 AM, abbat81 wrote: > Tobi, > > here is the my code: > > Private $hMPlayer As Process > > Public Sub _new() >???$hMPlayer = Shell "mplayer -slave -cache 128 > http://music.myradio.ua/trance_news128.mp3>" For Input Output As "MPlayer" > End > > Public Sub btnStopPlayback_Click() >???Print #$hMPlayer, "stop" > End > > Public Sub Button1_Click() >???_new() > End > > > And it does not work. Nothing happens. > Yes, I use a form. > I use a same project where works well next way: > Exec ["mplayer", "-cache", "128", > "http://music.myradio.ua/trance_news128.mp3"] Wait > > Maybe I need to add some more component to my project? > What's wrong? > > Thanks, > Peter > > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44495.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mike.crean at ...2897... Mon Dec 2 12:17:59 2013 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 2 Dec 2013 03:17:59 -0800 (PST) Subject: [Gambas-user] shell Message-ID: <1385983079.27557.YahooMailNeo@...3052...> Hey boys, I am trying to emulate the terminal string sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' any help please. I have also tried shell "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'" this runs with out error and but will not change data in the direction file. It stays at the old value of "in". If I run it from a terminal the string works fine. Thanks in advance Mike From mike.crean at ...2897... Mon Dec 2 12:28:05 2013 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 2 Dec 2013 03:28:05 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <1385983685.50697.YahooMailNeo@...3095...> Hey boys, I am trying to emulate the terminal string sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' any help please. I have also tried shell "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'" this runs with out error and but will not change data in the direction file. It stays at the old value of "in". If I run it from a terminal the string works fine. Thanks in advance Mike From nemh at ...2007... Mon Dec 2 12:53:35 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 02 Dec 2013 12:53:35 +0100 Subject: [Gambas-user] shell In-Reply-To: <1385983079.27557.YahooMailNeo@...3052...> References: <1385983079.27557.YahooMailNeo@...3052...> Message-ID: <529C74BF.4@...2007...> 2013-12-02 12:17 keltez?ssel, Mike Crean ?rta: > > Hey boys, I am trying to emulate the terminal string sudo sh -c > 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on > BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, > "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] > and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction' any help please. So the shell command is the following: sudo sh -c "echo out >/sys/class/gpio/gpio27/direction" (with '>') ? Try this: Exec ["sudo", "sh", "-c", "echo out >/sys/class/gpio/gpio27/direction"] Or use Gambas executable with root permission: File.Save("/sys/class/gpio/gpio27/direction", "out\n") > I > have also tried shell "sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction'" this runs with out error and > but will not change data in the direction file. It stays at the old > value of "in". > > If > I run it from a terminal the string works fine. > > Thanks > in advance > Mike Kendek From taboege at ...626... Mon Dec 2 12:55:31 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 2 Dec 2013 12:55:31 +0100 Subject: [Gambas-user] shell In-Reply-To: <1385983079.27557.YahooMailNeo@...3052...> References: <1385983079.27557.YahooMailNeo@...3052...> Message-ID: <20131202115531.GA619@...2774...> On Mon, 02 Dec 2013, Mike Crean wrote: > > Hey boys, I am trying to emulate the terminal string sudo sh -c > 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on > BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, > "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] > and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction' any help please. > If you write Exec [System.Shell, "sudo sh -c ..."], then the second string is the first and only argument to System.Shell. At least on my system, the default shell tries to execute that program. However, "sudo sh -c ..." is normally not a program. "sudo" is a program, "sh" is one and "-c" and "..." are arguments but the whole string is not a program name. You have to put them all in separate entries in the Exec array: Exec [System.Shell, "sudo", "sh", "-c", "..."]. > I > have also tried shell "sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction'" this runs with out error and > but will not change data in the direction file. It stays at the old > value of "in". > > If > I run it from a terminal the string works fine. > > Thanks > in advance > Mike Are you really sure that the *same* command works in a terminal? I mean: $ sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' All the echo's I have seen so far will *not* write "out" to /sys/class/gpio/gpio27/direction if called that way. They will just print "out /sys/class/gpio/gpio27/direction" literally. You may need to redirect "out" to the file like in $ sudo sh -c 'echo out >/sys/class/gpio/gpio27/direction' Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Mon Dec 2 13:30:17 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Dec 2013 14:30:17 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <1385983685.50697.YahooMailNeo@...3095...> References: <1385983685.50697.YahooMailNeo@...3095...> Message-ID: Given string to exec is invalid. http://gambasdoc.org/help/lang/exec?v3 shell "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'" Why this would do anything? sudo is without any input, unnecessary "sh -c" and then command which output should be "out /sys/class/gpio/gpio27/direction". If you want to put word "out" to file, you need to use direction. Example "echo out > /sys/class/gpio/gpio27/direction". I don't think your command works in terminal either. Maybe you want to do something like this: "gksudo echo out > /sys/class/gpio/gpio27/direction" ? Jussi On Mon, Dec 2, 2013 at 1:28 PM, Mike Crean wrote: > Hey boys, I am trying to emulate the terminal string sudo sh -c > 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on > BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, > "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] > and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction' any help please. > > I > have also tried shell "sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction'" this runs with out error and > but will not change data in the direction file. It stays at the old > value of "in". > > If > I run it from a terminal the string works fine. > > Thanks > in advance > Mike > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nilsson at ...1979... Mon Dec 2 14:04:38 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Tue, 03 Dec 2013 00:04:38 +1100 Subject: [Gambas-user] Where are the examples in gambas 3.5.1? In-Reply-To: <529B75AB.1090400@...3240...> References: <006b4c$c01vk2@...3239...> <64e542$bvigbc@...3015...> <5299262D.5020709@...3240...> <006b4c$c0377s@...3239...> <529B75AB.1090400@...3240...> Message-ID: <64e542$bvktam@...3015...> G'day Matti: I don't have a success story to report yet, but I have not been idle and thought I should report. I spent quite some time looking at that 'versions' tab. Couldn't actually do anything with it until later today when I realised that only some packages had alternate versions from which to choose. Couldn't install/choose either a complete set of gambas 3.5.1 or 3.4.1. I removed and reinstalled gambas3 from the 'Education' repo - after removing the munix9 repo) and got all 3.4.1, but the last four (incl v4l and examples, as I recall) would not install because of missing dependencies. Then I locked all the installed packages and tried to reinstate the munix9 to see if the remaining four 3.5 packages helped. That's where i got stuck for a while - feeling stupid again - because I had not written down the exact name and URL of the munix9 repo. Finaloly got it to work, but the 3.5 versions also had missing dependencies Gave that a rest in the meantime and tried Mint 13 'maya', as I had some guidance to getting gambas3 from Willy Raets 'How to gambas'. However, during gambas3 install, I kept getting an error "E" about "no space left on device to write". Got a headache and left it! Tonight I had another idea and made an iso image file from my SUSE 12.2 DVD, then burned another DVD so as to have a spare. I then removed the existing SUSE OS from within my VMWare player and started afresh with this spare DVD (should make absolutely no difference, but I have an impression that some small ones resulted - like being able to expand the KDE panel to full screen, which I could not do before, no matter how I fiddled - no matter). I wanted to start afresh after all my messing around with repos and packages. However, bearing in mind that, before installing gambas, it is desirable to update the OS, I once more found that (being a fresh install), it did not have an update repo entry under Yast. So I found some instructions on the net (on 'howtoforge.com) and used zypper to add a repo, refresh and update. To my surprise the compueter has spent an hour doing just that! I don't recall adding an update repo before and I suspect it only looked at the DVD when I asked for an update. All sorts of 586 packages were downloaded and installed. This may make a difference! It's late again and I may leave trying to install gambas until the morning. However, one more thing: In surfing around, I came across this URL: http://www.traffictool.net/vmware/opensuse122.html . Now, this looks very interesting. I am new to using virtual machines. I installed VM Player and assumed that, in order to install a virtual OS like Linux, I just installed under VM Player (as it asks me to) a normal distro. However, this 'Traffic Tool' site has specific downloads for various Linux versions specifically for VM Player! Why I wonder? This also might make a difference? I will test it out in the next few days. Stand by! regards from Tasmania Carl At 04:45 AM 2/12/2013, you wrote: >G'day Carl, > >something seems to be wrong in both of our repositories. >I looked at my gambas (didn't use it for quite a while) and saw that >it is 3.4.1! >Then looked into YaSt to see why it was not updated automatically. >Most of the components in the repository are 3.5.1, but some (e.g. >gb.gui) are 3.4.1. >Trying to update gambas results in a lot of dependency-conflict >messages between 3.4 and 3.5. > >So, I keep the old version until the repo is fixed. >Your problems obviously come from this version-mix. >I think you should open YaSt and set all the components back to >3.4.1. There is a 'versions' tab where you can choose. >Then just wait... > >By the way: How to find out who is maintaining a repo? Would be >great to send them a mail that something is wrong. >Matti > >Am 30.11.2013 23:40, schrieb Carl Nilsson: > > G'day Matti: > > Now I'm getting confused again! Is not the repository you refer to > > a repository only for the opemSUSE? I have assumed my openSUSE 12.2 > > is working fine, but it is the gambas install that gives me > > problems. The openSUSE 12.2 I actually have comes from a > > store-boughten DVD set put out by (I think) UnixAcademy.com. Seems > > to go on just fine. I use the KDE gui. Reason I'm trying to stick > > with it is that I bought some moderately expensive books on SUSE > > Linux for those long winter nights (that have just > > passed). Yesterday i removed the troublesome gambas 3.5 install and > > tried again, but munix9 is the only repo that I know that gives me > > something approaching a "one-line" install. Once again, I had > > trouble with four packages (including the examples) with missing > > dependencies. I couldn't initially install gambas-gb-v4l because of > > missing -tools and needing tv-common; examples needed libmlib2.so.1 > > etc. However, I played around with trying to install those packages > > one by one and finally they did install with no complaints about > > dependencies. Now all the packages are installed (white ticks on a > > black background for all of them) at the gambas 3.5.1 -2.5 level > > except for gb-gui, gb-maps and script which are at the 3.4.1-2.29 > > level. I don't know if that is a problem? > > The fact that I got gambas 3.5 (whether I wanted it or not) from > > munix9 suggests that somebody is working and trying to keep it up to date. > > Now my examples show in gambas 3.5.1, but I still have problems. > > > > When I start gambas 3.5.1 I get my "tip of the day" and "recent > > projects". If I go to examples, like "dragNdrop", the project opens > > and I get a "project is read only" notice. Fair enough! I just get a > > mottled grey screen on the right. Under the project "sources", if I > > left click "FDragNdrop", nothing happens (I need to refresh my memory > > on these operations with gambas). If I right click it, I immediately > > get a fatal error, namely: [2] cannot load class "_Gui': > > FMain.tvwProject_Menu.257 - and automatically exit from gambas. All > > the examples I have tried act similarly. > > > > Now, I can't help wondering if this error is related to the fact that > > gb-gui is installed at the 3.4 level, whereas most of gambas is > > installed at 3.5 level? So far as I'm aware (not very far!), munix9 > > did not give me the option of installing at the 3.4 level. It's > > possible that this gambas install can be retrieved quite simply by > > installing a different package - I don't know and I await advice. > > > > I recall that (as I said in my post last September 2012) I did get an > > earlier gambas3 successfully installed under a real installation of > > SUSE 10 on an older machine, so one way or another, I should be able > > to get it going under SUSE 12.2. My (real paper) reference books are > > all about SUSE 10 and 11, but I expect are still reasonably good for > > SUSE 12. They are my real monetary investment that I'm trying to > > save. In addition, although I'm struggling, this is a learning > > process about real-world Linux - but not getting me far into gambas, > > which is where i really want to spend my time. I appreciate any > > assist you can provide at this stage. > > > > In the meantime, I have downloaded Mint 13 "Maya" and will try > > installing that tonight under VMPlayer. I saw and downloaded Willy > > Raets ebook "how to Gambas" which gives an installing path for that > > version of Linux - which might produce an interesting comparison for me. > > > > Thank you for your continued interest. > > Carl > > > > At 10:41 AM 30/11/2013, you wrote: > >> Hi Carl, > >> > >> I don't know if this munix9.rpm is still working and up to date. > >> Right now, I can recommend (for 12.3) the repository > >> http://download.opensuse.org/repositories/Education/openSUSE_12.3/ > >> Somebody is doing a good job there, and each stable version seems to > >> be complete. > >> Regards, Matti > >> > >> Am 29.11.2013 12:42, schrieb Carl Nilsson: > >>> G'day again: > >>> To my (slight) embarrassment, I see that I asked the same question > >>> fourteen months ago (27-28 Sep 2012) and got pointed in the correct > >>> direction by Matti - and so got gambas 3.2 with its' examples running > >>> on openSUSE 12.2 . Guess that's what you expect from Seniors like > >>> me. Amazing how time flies when you are busy on other things - not > >>> to mention the memory! Anyway, I'll follow that path again and > >>> apologise for taking up your email space. (Just as well I subscribe > >>> on the gambas-user list and keep the emails!). > >>> Carl > >>> > >>> At 01:38 PM 29/11/2013, you wrote: > >>>> G'day: > >>>> I have installed gambas 3.5.1 from munix9 rpm running under openSUSE > >>>> 12.2 on a Virtual Machine (VMWare Player) on a Win 7 32 bit > >>>> desktop. gambas seems fine, but there are no examples. ...(snip) > >>>> Regards Carl > >>>> > >>>> Carl S Nilsson > >>>> 137 Gordons Hill Road > >>>> Lindisfarne, Tas. > >>>> Australia 7015 > >>>> > >>>> > >>>> > >> > ------------------------------------------------------------------------------ > >>>> Rapidly troubleshoot problems before they affect your business. Most IT > >>>> organizations don't have a clear picture of how application performance > >>>> affects their revenue. With AppDynamics, you get 100% > visibility into your > >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > >> AppDynamics Pro! > >>>> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> Carl S Nilsson > >>> 137 Gordons Hill Road > >>> Lindisfarne, Tas. > >>> Australia 7015 > >>> > >> > ------------------------------------------------------------------------------ > >>> Rapidly troubleshoot problems before they affect your business. Most IT > >>> organizations don't have a clear picture of how application performance > >>> affects their revenue. With AppDynamics, you get 100% > visibility into your > >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > >> AppDynamics Pro! > >>> > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > >> > ------------------------------------------------------------------------------ > >> Rapidly troubleshoot problems before they affect your business. Most IT > >> organizations don't have a clear picture of how application performance > >> affects their revenue. With AppDynamics, you get 100% visibility into your > >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics Pro! > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Carl S Nilsson > > 137 Gordons Hill Road > > Lindisfarne, Tas. > > Australia 7015 > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >------------------------------------------------------------------------------ >Rapidly troubleshoot problems before they affect your business. Most IT >organizations don't have a clear picture of how application performance >affects their revenue. With AppDynamics, you get 100% visibility into your >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From mckaygerhard at ...626... Mon Dec 2 15:15:07 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 2 Dec 2013 09:45:07 -0430 Subject: [Gambas-user] gambas documentation offline include in source (gb.web) Message-ID: From: Rob Kudla > Should be... I did apt-get source gambas3 and the source for the program is > here inside the tarball: > > gambas3-3.1.1/app/src/doc.cgi/ > yes, but the idea its to generate when user/admin goes to install, and the ide use it that in preference to online > > > this could solve the problem of online documentation ... for me will be > > very usefully when i go in a journey to Tepuys, where no are a interenet > > connection. > > This might help. It seems to be only English (I didn't realize when I > started that it doesn't give you the language links if you're using a > crawler, and the English version alone took half an hour to crawl from a > host on the same subnet as the server) but I hope it'll get you started. > Works well on my own laptop. It's 23.1 MB, expands to 83. > > http://www.gambasdoc.org/gambasdoc-static-20131130.tar.gz > thanks for the file Rob, but the wiki of gambas like to be reproducible locally too at least, how could users or admins/packages can generate the documentation locally and use it prefered to online? i see some lines of code prepared for that inside ide source, also i see configure do not touch or generate any doc.. benoit what do u think about it? > > Rob > From: John Rose > Subject: Re: [Gambas-user] Web apps > > I don't see the Gambas Documentation Wiki app in the examples for Gambas > 3.5.1: where can it be obtained? Can the Gambas project for > search the sources men > http://www.gambasforge.org/index.html be downloaded? Please direct me to > an example of (ideally) a Gambas app (running in, say, Firefox) that > displays & updates data (from a database). > read the web, seem do u use too many windo... From mmcg29440 at ...3163... Mon Dec 2 16:10:48 2013 From: mmcg29440 at ...3163... (Marty) Date: Mon, 02 Dec 2013 10:10:48 -0500 Subject: [Gambas-user] DataCheckBox Bugs Message-ID: <529CA2F8.2000001@...3163...> Benoit, Thank you for your explanation. I now understand why the tristate and click properties are not supported by the DataCheckBox control. You might want to revise the docs and auto-complete on this control to remove remove references to these properties. I've changed the fields in the table to be non null. This should make for a true/false only input. As I would like to use the click event I had to find a work around. I'm using a CheckBox control set equal to the field in the datasource. (CheckBox3.Value = DataSource1!Renter). Then I'll save the value of the checkbox back to the datasource. Do you see any problems with this approach? Again thanks for your help. Marty From nicholso at ...2533... Mon Dec 2 17:08:42 2013 From: nicholso at ...2533... (MinnesotaJon) Date: Mon, 2 Dec 2013 08:08:42 -0800 (PST) Subject: [Gambas-user] shell In-Reply-To: <1385983079.27557.YahooMailNeo@...3052...> References: <1385983079.27557.YahooMailNeo@...3052...> Message-ID: <1386000522898-44508.post@...3046...> Maybe I'm not understanding the problem, but "sudo" always wants a password, right? In which case you have to feed it a password with the Exec or Shell command. I'm not a shell script expert (just learning), but I assume that the string would look like this: Exec [system.shell, "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'<< EOF\nmypassword\nEOF"] where you have already dimensioned and set the value of "mypassword" in your code. If you have dimensioned a variable like "strShellResponseString", you will be able to display a response from sudo in your program, if the password is incorrect: Exec [system.shell, "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'<< EOF\nmypassword\nEOF"] TO strShellResponseString note: My additional code is a "here document" code block. "<<" feeds a command list to an interactive program or a command, like sudo. "EOF" means end-of-file, but it also terminates input from stdin. The newline escape code "\n" is needed before and after the password variable, to place the password where sudo expects it, after a linefeed from stdin, followed by another linefeed. And then the second "EOF" terminates this input, which allows sudo to evaluate the password and either execute the sh command, or give an error message if the password is wrong. No extra spaces in all of this, or they'll be interpreted as part of the code! -- View this message in context: http://gambas.8142.n7.nabble.com/shell-tp44500p44508.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Mon Dec 2 18:14:04 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 02 Dec 2013 18:14:04 +0100 Subject: [Gambas-user] shell In-Reply-To: <1386000522898-44508.post@...3046...> References: <1385983079.27557.YahooMailNeo@...3052...> <1386000522898-44508.post@...3046...> Message-ID: <529CBFDC.6000208@...221...> You could allow a certain user to execute a command via the sudo system. I've got this here, one of the teachers is able to switch the internet on and off for students by applying a script. Normally, only the admin is allowed to change the filter chain... A Gambas front-end picks out the persons in the current class and feeds the script with their terminal data. Rolf Am 02.12.2013 17:08, schrieb MinnesotaJon: > Maybe I'm not understanding the problem, but "sudo" always wants a password, > right? In which case you have to feed it a password with the Exec or Shell > command. I'm not a shell script expert (just learning), but I assume that > the string would look like this: > > Exec [system.shell, "sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction'<< EOF\nmypassword\nEOF"] > where you have already dimensioned and set the value of "mypassword" in your > code. > > If you have dimensioned a variable like "strShellResponseString", you will > be able to display a response from sudo in your program, if the password is > incorrect: > Exec [system.shell, "sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction'<< EOF\nmypassword\nEOF"] TO > strShellResponseString > > note: My additional code is a "here document" code block. "<<" feeds a > command list to an interactive program or a command, like sudo. "EOF" means > end-of-file, but it also terminates input from stdin. The newline escape > code "\n" is needed before and after the password variable, to place the > password where sudo expects it, after a linefeed from stdin, followed by > another linefeed. And then the second "EOF" terminates this input, which > allows sudo to evaluate the password and either execute the sh command, or > give an error message if the password is wrong. No extra spaces in all of > this, or they'll be interpreted as part of the code! > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/shell-tp44500p44508.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Dec 2 18:16:45 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 2 Dec 2013 18:16:45 +0100 Subject: [Gambas-user] gambas documentation offline include in source (gb.web) In-Reply-To: References: Message-ID: <20131202171645.GB619@...2774...> On Mon, 02 Dec 2013, PICCORO McKAY Lenz wrote: > From: Rob Kudla > > > Should be... I did apt-get source gambas3 and the source for the program is > > here inside the tarball: > > > > gambas3-3.1.1/app/src/doc.cgi/ > > > yes, but the idea its to generate when user/admin goes to install, and the > ide use it that in preference to online > > > > > > > this could solve the problem of online documentation ... for me will be > > > very usefully when i go in a journey to Tepuys, where no are a interenet > > > connection. > > > > This might help. It seems to be only English (I didn't realize when I > > started that it doesn't give you the language links if you're using a > > crawler, and the English version alone took half an hour to crawl from a > > host on the same subnet as the server) but I hope it'll get you started. > > Works well on my own laptop. It's 23.1 MB, expands to 83. > > > > http://www.gambasdoc.org/gambasdoc-static-20131130.tar.gz > > > thanks for the file Rob, but the wiki of gambas like to be reproducible > locally too > > at least, how could users or admins/packages can generate the documentation > locally and use it prefered to online? > > i see some lines of code prepared for that inside ide source, also i see > configure do not touch or generate any doc.. > Here we are again on my favourite topic! :-) IIRC, the situation was like this to *me* when we talked about this the last time: Gambas components have .info files which contain information about virtually every class, method, property, event (did I miss something?) defined in a component. Look, e.g., at /usr/share/gambas3/info/gb.map.info. You will see that also documentation from Gambas components is included by the compiler. I have written a bunch of scripts and a program to also extract in-source documentation from C/C++ components and merge them into the component's .info file so that we _can_ have all the documentation of all components in their .info files - potentially. The only drawback currently is that gbi3 generates the .info files for all components first and my scripts would have to be run in a 2nd phase over all the C/C++ components to patch the .info's. (Let's keep aside that my program is not _that_ flexible at the moment because I only needed it to document my gb.data and gb.openssl components.) But let's suppose, we have all the documentation in the .info files ready. (To be clear, you can document any item there: classes, constants, methods, properties, events - everything.) Then it would be easy (in fact, I think it is already partially (?) implemented) to let the IDE read these .info files and display the help (if you are offline). Even better, we could write a module to regenerate the gambasdoc.org pages from these .info files because they are structured similarly (one page per class/method/property/event/...) - which would make a dream of mine come true: not having to click around anymore in the web interface. (Not that it is _that_ horrible (by far not!) but writing documentation in-source is more comfortable (also by far!) and seems less prone to the not-consistent-with- the-implementation kind of flaws.) Alas, Sebastian Kulesz who aimed at redesigning the gambasdoc.org engine, doc.cgi, (his project was then called gb.wiki, IIRC), doesn't have time to continue at the moment. To sum up: if we do want to write documentation in-source (which I would prefer, but that's really MHO), then we can already have all documentation in the components' .info files. In a next step, we would write a parser to let the IDE display this help and then a module (or a standalone program) for gb.wiki to regenerate the documentation database from .info files and in effect, everyone can have his own local copy of the help - of any version he wants (because then documentation is completely revision-bound) - and gambasdoc.org just happens to provide a reasonably recent version of the docs online. Regards, Tobi From bbruen at ...2308... Mon Dec 2 22:16:37 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 03 Dec 2013 07:46:37 +1030 Subject: [Gambas-user] gambas documentation offline include in source (gb.web) In-Reply-To: <20131202171645.GB619@...2774...> References: <20131202171645.GB619@...2774...> Message-ID: <1386018997.23590.3.camel@...2688...> On Mon, 2013-12-02 at 18:16 +0100, Tobias Boege wrote: > In a next step, we would write a parser to let the IDE display this > help and Its already there. Local modules inline help is shown even if there is no internet connection. Another idea would be to somehow generate all the structural help from gambasdoc back into the .info files. > then a module (or a standalone program) for gb.wiki to regenerate the > documentation database from .info files and in effect, everyone can > have his > own local copy of the help - of any version he wants (because then > documentation is completely revision-bound) - and gambasdoc.org just > happens > to provide a reasonably recent version of the docs online. However, there is all the other non-module information that is in gambasdoc.org - it would not be available. B From ekimtrah at ...67... Mon Dec 2 23:53:34 2013 From: ekimtrah at ...67... (Michael Hart) Date: Tue, 03 Dec 2013 09:53:34 +1100 Subject: [Gambas-user] Webview editing problem In-Reply-To: References: Message-ID: <529D0F6E.2040200@...67...> On 29/11/13 09:39, michael wrote: > I have written a small project which is intended to test editing an html page (I would like to create a wysiwyg markdown editor). I have attached a copy. I am having trouble with editing the html programattically (http://gambasdoc.org/help/comp/gb.qt4.webkit/webview?v3, using the Eval method to run the JavaScript document.execCommand). I have copied the relevant code from the supplied WebBrowser project, and sending the Cut command works in the WebBrowser project but not in mine. Sending the Bold or Delete command does work in mine, using the keyboard to edit the html does work in mine (eg Ctrl C, typing etc.). > I am using Debian 7 Gnome, with Gambas 3.4.1 which I installed from source (the repo version 3.1.1 is too old for another program I have written). > Any Ideas ? > > Thank you > Michael. > No reply yet, it has been a while ?? But I have found the solution, by going through the WebBrowser example and commenting out the lines I didn't need, one line or Sub at a time. What is needed was the line WebSettings[WebSettings.JavascriptCanAccessClipboard] = True in the Form_Open() Sub. This allows me to click on the cut button which executes the command document.execCommand('Cut', false, false) This makes sense, since the WebView help page says "using the Eval method to run the JavaScript document.execCommand)" however it isn't stated on the WebView help page that you need to enable this. I think that such a statement would be a good idea. Michael From ea7dfh at ...2382... Tue Dec 3 00:41:25 2013 From: ea7dfh at ...2382... (Jesus) Date: Tue, 03 Dec 2013 00:41:25 +0100 Subject: [Gambas-user] Configure method of ToolBar In-Reply-To: <529B5BA0.3000500@...2382...> References: <529B5BA0.3000500@...2382...> Message-ID: <529D1AA5.3050906@...2382...> El 01/12/13 16:54, Jesus escribi?: > Hi all > > I'm trying to get up and running a project which have a Toolbar and some > toolbuttons in it. I'd like to mimic the same behavior toolbars have in > Gambas' IDE. I've read the docs about Toolbar (gb.form.mdi) but calling > the configure method throws an error aborting my application. > BTW, all the toolbuttons have set an Action property, but note that I > haven't any workspace in the main form, just the toolbar. > > This is the code I'm using in a minimal test application: > ------8<---------------------------------- > Public Sub ToolBar1_MouseDown() > > If Mouse.Right Then ToolBar1.Configure > > End > ------8<---------------------------------- > The error text is in the 'Toolbar1.Configure' line: "Not an object" > The stack back-trace: > > FToolBarConfig.InitAction.108 > FToolBarConfig.SetCurrentToolBar.54 > FToolBarConfig.Run.17 > Action._ConfigureToolBar.21 > ToolBar.Configure.34 > FMain.ToolBar1_MouseDown.20 > > What am I doing wrong? Finally I've found what I was doing wrong. The 'Key' toolbar's property *must* be set with a unique name. Failing to do this, will lead to a dumb toolbar. No need to call Configure from a mouse event. Hope this helps someone else. Regards -- Jesus Guardon From gambas at ...1... Tue Dec 3 01:27:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 03 Dec 2013 01:27:00 +0100 Subject: [Gambas-user] Configure method of ToolBar In-Reply-To: <529D1AA5.3050906@...2382...> References: <529B5BA0.3000500@...2382...> <529D1AA5.3050906@...2382...> Message-ID: <529D2554.2040604@...1...> Le 03/12/2013 00:41, Jesus a ?crit : > El 01/12/13 16:54, Jesus escribi?: >> Hi all >> >> I'm trying to get up and running a project which have a Toolbar and some >> toolbuttons in it. I'd like to mimic the same behavior toolbars have in >> Gambas' IDE. I've read the docs about Toolbar (gb.form.mdi) but calling >> the configure method throws an error aborting my application. >> BTW, all the toolbuttons have set an Action property, but note that I >> haven't any workspace in the main form, just the toolbar. >> >> This is the code I'm using in a minimal test application: >> ------8<---------------------------------- >> Public Sub ToolBar1_MouseDown() >> >> If Mouse.Right Then ToolBar1.Configure >> >> End >> ------8<---------------------------------- >> The error text is in the 'Toolbar1.Configure' line: "Not an object" >> The stack back-trace: >> >> FToolBarConfig.InitAction.108 >> FToolBarConfig.SetCurrentToolBar.54 >> FToolBarConfig.Run.17 >> Action._ConfigureToolBar.21 >> ToolBar.Configure.34 >> FMain.ToolBar1_MouseDown.20 >> >> What am I doing wrong? > > Finally I've found what I was doing wrong. The 'Key' toolbar's property > *must* be set with a unique name. Failing to do this, will lead to a > dumb toolbar. No need to call Configure from a mouse event. Hope this > helps someone else. > > Regards > > I have added an explicit error message if the Configure() method is called without Key being defined. Regards, -- Beno?t Minisini From ivan-kern at ...308... Tue Dec 3 07:22:16 2013 From: ivan-kern at ...308... (Ivan Kern) Date: Tue, 3 Dec 2013 07:22:16 +0100 Subject: [Gambas-user] shell In-Reply-To: <1385983079.27557.YahooMailNeo@...3052...> References: <1385983079.27557.YahooMailNeo@...3052...> Message-ID: <000f01ceeff0$070f8450$152e8cf0$@freenet.de> Hi Try Shell "echo 'mypassword' |sudo -S sh -c 'echo out /sys/class/gpio/gpio27/direction" Regards -----Urspr?ngliche Nachricht----- Von: Mike Crean [mailto:mike.crean at ...2897...] Gesendet: Montag, 2. Dezember 2013 12:18 An: Mike Betreff: [Gambas-user] shell Hey boys, I am trying to emulate the terminal string sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out /sys/class/gpio/gpio27/direction' any help please. I have also tried shell "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'" this runs with out error and but will not change data in the direction file. It stays at the old value of "in". If I run it from a terminal the string works fine. Thanks in advance Mike ---------------------------------------------------------------------------- -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Tue Dec 3 09:07:31 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Dec 2013 10:07:31 +0200 Subject: [Gambas-user] shell In-Reply-To: <000f01ceeff0$070f8450$152e8cf0$@freenet.de> References: <1385983079.27557.YahooMailNeo@...3052...> <000f01ceeff0$070f8450$152e8cf0$@freenet.de> Message-ID: > Try > Shell "echo 'mypassword' |sudo -S sh -c 'echo out > /sys/class/gpio/gpio27/direction" > Bad idea. Firstly, it supports only one password, which is stored as plain text. Secondly, if the password is variable it would need proper sanitation before entering it to shell. Jussi From mike.crean at ...2897... Tue Dec 3 12:10:53 2013 From: mike.crean at ...2897... (Mike Crean) Date: Tue, 3 Dec 2013 03:10:53 -0800 (PST) Subject: [Gambas-user] shell Message-ID: <1386069053.30037.YahooMailNeo@...3052...> Hey Ivan, thanks very much for that. I forgot all about the piping command. ? Regards Mike From gambas at ...2524... Tue Dec 3 15:33:24 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 03 Dec 2013 14:33:24 +0000 Subject: [Gambas-user] Issue 479 in gambas: SegFault 11 on sqlitedataset.cpp Message-ID: <0-6813199134517018827-15257353629022945454-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 479 by marcobra... at ...626...: SegFault 11 on sqlitedataset.cpp http://code.google.com/p/gambas/issues/detail?id=479 1) Describe the problem. The program has stopped unexpectedly: Errore di segmentazione (11) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.12.2-031202-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=3944M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 3) Provide a little project that reproduces the bug or the crash. Cannot provide since it use postgresql data... 5) Explain clearly how to reproduce the bug or the crash. Starting app yesterday (2 Dic 2013) was working fine today i was don an trunk upgrade and a clean recompilation of gambas Here debug info: 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". bt [New Thread 0x7fffdcf9e700 (LWP 7243)] [New Thread 0x7fffd7fff700 (LWP 7244)] [New Thread 0x7fffd71ca700 (LWP 7245)] Could not resolve property : linearGradient9800 Program received signal SIGSEGV, Segmentation fault. 0x00007fffebd9e0cb in callback (res_ptr=0xac3520, ncol=0, reslt=0x0, cols=0x0, stmt=0xd41a28) at sqlitedataset.cpp:376 376 if (*last_table) (gdb) (gdb) bt #0 0x00007fffebd9e0cb in callback (res_ptr=0xac3520, ncol=0, reslt=0x0, cols=0x0, stmt=0xd41a28) at sqlitedataset.cpp:376 #1 0x00007fffebd9e425 in my_sqlite3_exec (db=0xc55968, zSql=0xc64798 "PRAGMA index_list('civici')", pArg=0xac3520, xCallback=0x7fffebd9df67 , pzErrMsg=) at sqlitedataset.cpp:272 #2 0x00007fffebd9e5e4 in SqliteDataset::exec (this=0xac3400, sql=...) at sqlitedataset.cpp:840 #3 0x00007fffebd9777b in do_query (db=0xab31e0, error=0x7fffebd9fd70 "Unable to get primary key: &1", pres=0x7fffffffd240, qtemp=, nsubst=) at main.cpp:344 #4 0x00007fffebd994e6 in table_primary_key (db=0xab31e0, table=0xae2e90 "civici", primary=0xaf60b8) at main.cpp:1419 #5 0x00007ffff0f509da in CTABLE_primary_key (_object=0xaf6068, _param=) at CTable.c:200 #6 0x000000000040ac01 in EXEC_call_native (exec=, object=, type=6680280, param=) at gbx_exec.c:1166 #7 0x000000000040cef3 in EXEC_push_unknown (code=) at gbx_exec_push.c:407 #8 0x0000000000436baa in EXEC_loop () at gbx_exec_loop.c:577 -- 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 Dec 3 15:37:09 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 03 Dec 2013 14:37:09 +0000 Subject: [Gambas-user] Issue 479 in gambas: SegFault 11 on sqlitedataset.cpp In-Reply-To: <0-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version -Type-Bug Version-TRUNK Type-Crash Comment #1 on issue 479 by benoit.m... at ...626...: SegFault 11 on sqlitedataset.cpp http://code.google.com/p/gambas/issues/detail?id=479 Fixed in revision #5977. -- 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 paulwheeler at ...546... Tue Dec 3 16:22:43 2013 From: paulwheeler at ...546... (paulwheeler) Date: Tue, 03 Dec 2013 08:22:43 -0700 Subject: [Gambas-user] gb.db Unknown symbol 'Fields' in class 'Connection' In-Reply-To: References: Message-ID: <529DF743.7090102@...546...> The correct one is: htable.Fields I assume you have this line in your code: Dim hTable As Table Your code is similar to mine, but I do not use the "with". I do the full line. hTable.Fields.Add("cod_ficha", db.String, 20) Try doing it that way. Maybe there is a bug in the "With"??? paul On 11/30/2013 02:44 PM, PICCORO McKAY Lenz wrote: > and then i have this error when run in another runtime environment: > > Unknown symbol 'Fields' in class 'Connection' > > i have this code: > > If Not consq.Tables.Exist("sysasis_listado") Then > hTable = consq.Tables.Add("sysasis_listado") > With hTable.Fields > .Add("cod_ficha", db.String, 20) ' FICHA/Cedu, el id > del trabajador en VNZ es numero de la CI > .Add("cod_lugar", db.String, 20, lugar) ' nombre de > ubicacion(tienda o sobrenombre) en al que > .Add("fec_actualizacion", db.Date,, Now) ' fecha del > registro de dia de su huella dactilar > .Add("cod_usuasys", db.String, 20) ' ficha / cedula / > id del trabajador NOTA ESTE NO ES CI, en VNZ es CI > End With > hTable.PrimaryKey = ["cod_ficha", "cod_lugar"] > hTable.Update > If Error Then > Print "Error - new db remote: " & Error.Code & " " & > Error.Text > Else > Print "Advertencia - new db remote: created " & > Error.Code & " " & Error.Text > Endif > Else > Print "Advertencia - new db remote: existe: " & Error.Code > & " " & Error.Text > Endif > > What its the correct? htable.Field or htable.Fields ? please urgency > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Dec 3 16:34:22 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 03 Dec 2013 15:34:22 +0000 Subject: [Gambas-user] Issue 479 in gambas: SegFault 11 on sqlitedataset.cpp In-Reply-To: <1-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> <0-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15257353629022945454-gambas=googlecode.com@...2524...> Comment #2 on issue 479 by marcobra... at ...626...: SegFault 11 on sqlitedataset.cpp http://code.google.com/p/gambas/issues/detail?id=479 Confirm 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 ea7dfh at ...2382... Tue Dec 3 20:03:26 2013 From: ea7dfh at ...2382... (Jesus) Date: Tue, 03 Dec 2013 20:03:26 +0100 Subject: [Gambas-user] Configure method of ToolBar In-Reply-To: <529D2554.2040604@...1...> References: <529B5BA0.3000500@...2382...> <529D1AA5.3050906@...2382...> <529D2554.2040604@...1...> Message-ID: <529E2AFE.8020601@...2382...> El 03/12/13 01:27, Beno?t Minisini escribi?: > Le 03/12/2013 00:41, Jesus a ?crit : >> El 01/12/13 16:54, Jesus escribi?: >>> Hi all >>> >>> I'm trying to get up and running a project which have a Toolbar and some >>> toolbuttons in it. I'd like to mimic the same behavior toolbars have in >>> Gambas' IDE. I've read the docs about Toolbar (gb.form.mdi) but calling >>> the configure method throws an error aborting my application. >>> BTW, all the toolbuttons have set an Action property, but note that I >>> haven't any workspace in the main form, just the toolbar. >>> >>> This is the code I'm using in a minimal test application: >>> ------8<---------------------------------- >>> Public Sub ToolBar1_MouseDown() >>> >>> If Mouse.Right Then ToolBar1.Configure >>> >>> End >>> ------8<---------------------------------- >>> The error text is in the 'Toolbar1.Configure' line: "Not an object" >>> The stack back-trace: >>> >>> FToolBarConfig.InitAction.108 >>> FToolBarConfig.SetCurrentToolBar.54 >>> FToolBarConfig.Run.17 >>> Action._ConfigureToolBar.21 >>> ToolBar.Configure.34 >>> FMain.ToolBar1_MouseDown.20 >>> >>> What am I doing wrong? >> >> Finally I've found what I was doing wrong. The 'Key' toolbar's property >> *must* be set with a unique name. Failing to do this, will lead to a >> dumb toolbar. No need to call Configure from a mouse event. Hope this >> helps someone else. >> >> Regards >> >> > > I have added an explicit error message if the Configure() method is > called without Key being defined. > > Regards, > Great! However I can't see the change in latest commits. 8-/ Regards -- Jesus Guardon From gambas at ...1... Tue Dec 3 21:48:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 03 Dec 2013 21:48:42 +0100 Subject: [Gambas-user] Configure method of ToolBar In-Reply-To: <529E2AFE.8020601@...2382...> References: <529B5BA0.3000500@...2382...> <529D1AA5.3050906@...2382...> <529D2554.2040604@...1...> <529E2AFE.8020601@...2382...> Message-ID: <529E43AA.8040102@...1...> Le 03/12/2013 20:03, Jesus a ?crit : > > Great! However I can't see the change in latest commits. 8-/ > > Regards > It's only on my hard drive at the moment. :-) -- Beno?t Minisini From whenamalone at ...626... Wed Dec 4 01:19:08 2013 From: whenamalone at ...626... (monika) Date: Tue, 3 Dec 2013 16:19:08 -0800 (PST) Subject: [Gambas-user] Fwd: At Right Angles Message-ID: volume -2 nov-3 apu_133983_at_right_angles_november_2013_low_res_pdf.pdf (15M) -- View this message in context: http://gambas.8142.n7.nabble.com/Fwd-At-Right-Angles-tp44524.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Dec 4 08:42:11 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 04 Dec 2013 08:42:11 +0100 Subject: [Gambas-user] Fwd: At Right Angles In-Reply-To: References: Message-ID: <529EDCD3.2030601@...221...> Am 04.12.2013 01:19, schrieb monika: > volume -2 nov-3 > > > apu_133983_at_right_angles_november_2013_low_res_pdf.pdf (15M) > Wow! Just wow, Monika! Though I'm one of those persons to whom maths is kinda magical thing, it was a delight to browse this magazine. The whole time I thought "if only my maths teachers had shown 50 % of that creativity and passion to the subject..." ;) Were you involved in the layout? I'd have a question on it... Regards Rolf From dl7nb at ...17... Wed Dec 4 08:58:08 2013 From: dl7nb at ...17... (Wolfgang) Date: Wed, 04 Dec 2013 08:58:08 +0100 Subject: [Gambas-user] New to this list Message-ID: <529EE090.5050600@...17...> Hello all, I am new to this list and ... well ... I need help. Programming in Gambas is fun and does what I want in (almost) every situation. So far so good. But when I make an installation package of my program (for Ubuntu 12.04, debian) I have always this Icon showing some tools in a box when installing the package, which then is placed in the starter-bar, too. I have tried a lot, but I can not make an own Icon for the starter-bar. After starting my program all Forms/windows have their correct icon (which I have set before in the Form.Icon) But in the starter-bar there is always this "silly" Icon showing tools. I have learned that icons have to be in png-format... Where do I set my own program-package-icon? Do I need a specific size? May be a simple way to do right, but I don not know :-( Can you help? Wolf From willy at ...2734... Wed Dec 4 16:06:17 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 04 Dec 2013 16:06:17 +0100 Subject: [Gambas-user] New to this list In-Reply-To: <529EE090.5050600@...17...> References: <529EE090.5050600@...17...> Message-ID: <1386169577.5297.5.camel@...3024...> On Wed, 2013-12-04 at 08:58 +0100, Wolfgang wrote: > Hello all, > > I am new to this list and ... well ... I need help. Programming in > Gambas is fun and does what I want in (almost) every situation. So far > so good. > > But when I make an installation package of my program (for Ubuntu 12.04, > debian) I have always this Icon showing some tools in a box when > installing the package, which then is placed in the starter-bar, too. I > have tried a lot, but I can not make an own Icon for the starter-bar. > > After starting my program all Forms/windows have their correct icon > (which I have set before in the Form.Icon) > > But in the starter-bar there is always this "silly" Icon showing tools. > > I have learned that icons have to be in png-format... > > Where do I set my own program-package-icon? > Do I need a specific size? > > May be a simple way to do right, but I don not know :-( > Can you help? > > Wolf Hi Wolf, Welcome to the list. If you go to your project properties (menu Project -> Properties), you can click on the Gambas icon on tab General and browse for a .png image that will become your projects icon. This icon will then be used to represent your application and used by the packager as well. Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From john.aaron.rose at ...626... Wed Dec 4 17:50:39 2013 From: john.aaron.rose at ...626... (John Rose) Date: Wed, 04 Dec 2013 16:50:39 +0000 Subject: [Gambas-user] Desktop.Windows Message-ID: <529F5D5F.3050507@...626...> Previously, someone directed me to the app fenetreronde in order to acces a list of windows (i.e. not just those which are used by a Gambas app). So one can access windows characteristics by: Dim dWindow As DesktopWindow = Null Desktop.Windows.Refresh() For Each dWindow In Desktop.Windows windowTitles &= dWindow.Name & "\n" If dWindow.SkipTaskbar = False Then Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & dWindow.Height Endif Next I would like for the user to select a window by clicking on it. Only way that I can think of to do that is to specify a transparent window covering the whole desktop which has a mouse click event. Is that the best way? If so, how would one allow for the situation where a user clicks a point which is within 2 overlapping windows, as I do not see an appropriate property of dWindow (as defined above)? From john.aaron.rose at ...626... Wed Dec 4 18:01:15 2013 From: john.aaron.rose at ...626... (John Rose) Date: Wed, 04 Dec 2013 17:01:15 +0000 Subject: [Gambas-user] Selecting a window Message-ID: <529F5FDB.1030607@...626...> I want the user to be able to click a point within one of the windows displayed on the desktop (i.e. not just Gambas forms) in order to select that window. The code below shows how to access properties of all windows: Dim dWindow As DesktopWindow = Null Desktop.Windows.Refresh() For Each dWindow In Desktop.Windows If dWindow.Minimized = False Then Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & dWindow.Height Endif Next The only way I've thought of is to define a transparent form covering the whole desktop with an associated mouse click event, which supplies the co-ordinates of the point clicked. Then by examination of each dWindow property (i.e. X, Y, Width, Height), one can determine which window has been clicked. Is that the best way? But how can one allow for the situation where the user has clicked a point which is within 2 windows i.e. is there a property of dWindow which shows if that window is the 'top' one (i.e. covering the other one at that point)? From dl7nb at ...17... Wed Dec 4 19:56:14 2013 From: dl7nb at ...17... (Wolfgang) Date: Wed, 04 Dec 2013 19:56:14 +0100 Subject: [Gambas-user] New to this list In-Reply-To: <1386169577.5297.5.camel@...3024...> References: <529EE090.5050600@...17...> <1386169577.5297.5.camel@...3024...> Message-ID: <529F7ACE.9090906@...17...> Hi Willy, Thank you very much for the quick answer. (wow, as I can see in "abt Gambas" you're a "big one" ;-) .... That was exactly what I tried. An I tried it with many different .png images of all sizes. It shows up in Project->Properties, but it did not work! I still have that funny toolbox for both the packager and the app. The same happens when I use the example projects. Their Project-properties show different icons. But the *.deb packages all produce these toolbox-icons. The Icons for all my forms show the right Icons as I have defined in the Form.property! Are there rules for the .png files??? I forgot in 1st post: I am using Gambas 3.5.1 What am I doing wrong?? Or did I find something special??? Wolf Hi Wolf, Welcome to the list. If you go to your project properties (menu Project -> Properties), you can click on the Gambas icon on tab General and browse for a .png image that will become your projects icon. This icon will then be used to represent your application and used by the packager as well. Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Dec 4 20:16:03 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 4 Dec 2013 20:16:03 +0100 Subject: [Gambas-user] New to this list In-Reply-To: <529F7ACE.9090906@...17...> References: <529EE090.5050600@...17...> <1386169577.5297.5.camel@...3024...> <529F7ACE.9090906@...17...> Message-ID: I'm not sure the packager initialize correctly the *.desktop file ... I need to test 2013/12/4 Wolfgang : > Hi Willy, > > Thank you very much for the quick answer. (wow, as I can see in "abt > Gambas" you're a "big one" ;-) > .... > That was exactly what I tried. An I tried it with many different .png > images of all sizes. > It shows up in Project->Properties, but it did not work! I still have > that funny toolbox for both the packager and the app. > > The same happens when I use the example projects. Their > Project-properties show different icons. But the *.deb packages all > produce these toolbox-icons. > > The Icons for all my forms show the right Icons as I have defined in the > Form.property! > > Are there rules for the .png files??? > > I forgot in 1st post: I am using Gambas 3.5.1 > > What am I doing wrong?? Or did I find something special??? > > Wolf > > Hi Wolf, > Welcome to the list. If you go to your project properties (menu Project > -> Properties), you can click on the Gambas icon on tab General and > browse for a .png image that will become your projects icon. This icon > will then be used to represent your application and used by the packager > as well. > > Kind regards, Willy (aka gbWilly) > > http://gambasshowcase.org/ http://howtogambas.org http://gambos.org > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps > with a single code base. Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Wed Dec 4 20:18:50 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 4 Dec 2013 20:18:50 +0100 Subject: [Gambas-user] Selecting a window In-Reply-To: <529F5FDB.1030607@...626...> References: <529F5FDB.1030607@...626...> Message-ID: I'm sure to understand what you want to achieve ... what do you mean by select a windows ? 2013/12/4 John Rose : > I want the user to be able to click a point within one of the windows > displayed on the desktop (i.e. not just Gambas forms) in order to select > that window. The code below shows how to access properties of all windows: > Dim dWindow As DesktopWindow = Null > Desktop.Windows.Refresh() > For Each dWindow In Desktop.Windows > If dWindow.Minimized = False Then > Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & > ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & > dWindow.Height > Endif > Next > > The only way I've thought of is to define a transparent form covering > the whole desktop with an associated mouse click event, which supplies > the co-ordinates of the point clicked. Then by examination of each > dWindow property (i.e. X, Y, Width, Height), one can determine which > window has been clicked. Is that the best way? But how can one allow for > the situation where the user has clicked a point which is within 2 > windows i.e. is there a property of dWindow which shows if that window > is the 'top' one (i.e. covering the other one at that point)? > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From ea7dfh at ...2382... Wed Dec 4 22:23:56 2013 From: ea7dfh at ...2382... (Jesus) Date: Wed, 04 Dec 2013 22:23:56 +0100 Subject: [Gambas-user] Calling a sub from a Webview Message-ID: <529F9D6C.508@...2382...> Hi all I currently helping to port a VB6 program to Gambas3, but to my surprise, it does weird things like these from the post title: it is calling methods and functions from the html code inside a webbrowser control. It has a wb control that acts like a sort of wizard/help thing, and the html links in that view are calling methods inside the application. That links are as 'some action' So the question is, could it be done with gambas somehow? Regards -- Jesus Guardon From taboege at ...626... Wed Dec 4 22:32:45 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 4 Dec 2013 22:32:45 +0100 Subject: [Gambas-user] Calling a sub from a Webview In-Reply-To: <529F9D6C.508@...2382...> References: <529F9D6C.508@...2382...> Message-ID: <20131204213245.GF509@...2774...> On Wed, 04 Dec 2013, Jesus wrote: > Hi all > > I currently helping to port a VB6 program to Gambas3, but to my > surprise, it does weird things like these from the post title: it is > calling methods and functions from the html code inside a webbrowser > control. > > It has a wb control that acts like a sort of wizard/help thing, and the > html links in that view are calling methods inside the application. That > links are as 'some action' > > So the question is, could it be done with gambas somehow? > > Regards > -- > Jesus Guardon Jesus (meant as an interjection)! I know I shouldn't question other people's design choices but this is just mad. Actually it might have seemed like an elegant way to communicate with an HTML page to the original author of that program - I understand that - but this is just asking for trouble, IMHO. However, I guess Object.Call() is your best bet here. Regards, Tobi From ea7dfh at ...2382... Wed Dec 4 22:52:45 2013 From: ea7dfh at ...2382... (Jesus) Date: Wed, 04 Dec 2013 22:52:45 +0100 Subject: [Gambas-user] Calling a sub from a Webview In-Reply-To: <20131204213245.GF509@...2774...> References: <529F9D6C.508@...2382...> <20131204213245.GF509@...2774...> Message-ID: <529FA42D.30904@...2382...> El 04/12/13 22:32, Tobias Boege escribi?: > On Wed, 04 Dec 2013, Jesus wrote: >> Hi all >> >> I currently helping to port a VB6 program to Gambas3, but to my >> surprise, it does weird things like these from the post title: it is >> calling methods and functions from the html code inside a webbrowser >> control. >> >> It has a wb control that acts like a sort of wizard/help thing, and the >> html links in that view are calling methods inside the application. That >> links are as 'some action' >> >> So the question is, could it be done with gambas somehow? >> >> Regards >> -- >> Jesus Guardon > > Jesus (meant as an interjection)! I know I shouldn't question other people's > design choices but this is just mad. Actually it might have seemed like an > elegant way to communicate with an HTML page to the original author of that > program - I understand that - but this is just asking for trouble, IMHO. > > However, I guess Object.Call() is your best bet here. > > Regards, > Tobi > Hi Tobi, thanks for reply I am at your side about some (mad) practices, but... I think Object.Call is suitable for calling or executing code inside or outside of the current class, but not the other way round, IIUC. How could I execute Object.Call from inside a webview? None of the events webview exposes are suitable for doing this IMO, since the webview.url is a property, not a method. I will experiment, thanks for the tip! Regards -- Jesus Guardon From taboege at ...626... Wed Dec 4 23:33:23 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 4 Dec 2013 23:33:23 +0100 Subject: [Gambas-user] Calling a sub from a Webview In-Reply-To: <529FA42D.30904@...2382...> References: <529F9D6C.508@...2382...> <20131204213245.GF509@...2774...> <529FA42D.30904@...2382...> Message-ID: <20131204223323.GG509@...2774...> On Wed, 04 Dec 2013, Jesus wrote: > El 04/12/13 22:32, Tobias Boege escribi?: > > On Wed, 04 Dec 2013, Jesus wrote: > >> Hi all > >> > >> I currently helping to port a VB6 program to Gambas3, but to my > >> surprise, it does weird things like these from the post title: it is > >> calling methods and functions from the html code inside a webbrowser > >> control. > >> > >> It has a wb control that acts like a sort of wizard/help thing, and the > >> html links in that view are calling methods inside the application. That > >> links are as 'some action' > >> > >> So the question is, could it be done with gambas somehow? > >> > >> Regards > >> -- > >> Jesus Guardon > > > > Jesus (meant as an interjection)! I know I shouldn't question other people's > > design choices but this is just mad. Actually it might have seemed like an > > elegant way to communicate with an HTML page to the original author of that > > program - I understand that - but this is just asking for trouble, IMHO. > > > > However, I guess Object.Call() is your best bet here. > > > > Regards, > > Tobi > > > > Hi Tobi, thanks for reply > > I am at your side about some (mad) practices, but... > > I think Object.Call is suitable for calling or executing code inside or > outside of the current class, but not the other way round, IIUC. How > could I execute Object.Call from inside a webview? None of the events > webview exposes are suitable for doing this IMO, since the webview.url > is a property, not a method. > > I will experiment, thanks for the tip! > Ahh, I got you wrong apparently... My answer can be applied if you have any occasion (event) to parse an (X)HTML element for this special attribute href="act:some_class.method". Then you can extract the class and method name and use Object.Call(). You can (ab)use the WebView's Click event like this: Modify the element to look like this: some action Then, when clicked, the WebView will load the valid URL (the anchor sign had to be prepended to make it valid - to trigger the Click event, in turn) and provide you a WebFrame object in whose Url property you have the wanted act:some_class.method string somewhere. Now parse and execute. I think it's too late for me to find clear words, so I attach a minimal example. (Note that the code is executed twice in this project which is certainly not desirable. You'll sure find a way to prevent this yourself.) Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: execute-code-from-webview-0.0.1.tar.gz Type: application/octet-stream Size: 5313 bytes Desc: not available URL: From ea7dfh at ...2382... Wed Dec 4 23:48:13 2013 From: ea7dfh at ...2382... (Jesus) Date: Wed, 04 Dec 2013 23:48:13 +0100 Subject: [Gambas-user] Calling a sub from a Webview In-Reply-To: <20131204223323.GG509@...2774...> References: <529F9D6C.508@...2382...> <20131204213245.GF509@...2774...> <529FA42D.30904@...2382...> <20131204223323.GG509@...2774...> Message-ID: <529FB12D.4090608@...2382...> El 04/12/13 23:33, Tobias Boege escribi?: > On Wed, 04 Dec 2013, Jesus wrote: >> El 04/12/13 22:32, Tobias Boege escribi?: >>> On Wed, 04 Dec 2013, Jesus wrote: >>>> Hi all >>>> >>>> I currently helping to port a VB6 program to Gambas3, but to my >>>> surprise, it does weird things like these from the post title: it is >>>> calling methods and functions from the html code inside a webbrowser >>>> control. >>>> >>>> It has a wb control that acts like a sort of wizard/help thing, and the >>>> html links in that view are calling methods inside the application. That >>>> links are as 'some action' >>>> >>>> So the question is, could it be done with gambas somehow? >>>> >>>> Regards >>>> -- >>>> Jesus Guardon >>> >>> Jesus (meant as an interjection)! I know I shouldn't question other people's >>> design choices but this is just mad. Actually it might have seemed like an >>> elegant way to communicate with an HTML page to the original author of that >>> program - I understand that - but this is just asking for trouble, IMHO. >>> >>> However, I guess Object.Call() is your best bet here. >>> >>> Regards, >>> Tobi >>> >> >> Hi Tobi, thanks for reply >> >> I am at your side about some (mad) practices, but... >> >> I think Object.Call is suitable for calling or executing code inside or >> outside of the current class, but not the other way round, IIUC. How >> could I execute Object.Call from inside a webview? None of the events >> webview exposes are suitable for doing this IMO, since the webview.url >> is a property, not a method. >> >> I will experiment, thanks for the tip! >> > > Ahh, I got you wrong apparently... My answer can be applied if you have any > occasion (event) to parse an (X)HTML element for this special attribute > href="act:some_class.method". Then you can extract the class and method name > and use Object.Call(). > > You can (ab)use the WebView's Click event like this: Modify the element > to look like this: > > some action > > Then, when clicked, the WebView will load the valid URL (the anchor sign had > to be prepended to make it valid - to trigger the Click event, in turn) and > provide you a WebFrame object in whose Url property you have the wanted > act:some_class.method string somewhere. Now parse and execute. > > I think it's too late for me to find clear words, so I attach a minimal > example. (Note that the code is executed twice in this project which is > certainly not desirable. You'll sure find a way to prevent this yourself.) > > Regards, > Tobi Many thanks, Tobi I think this is a good starting point. Just hope I will not get crazy after that. Now I'm going to sleep and tomorrow I will give it a fresh (re)view. Regards -- Jesus Guardon From vuott at ...325... Thu Dec 5 00:00:24 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 4 Dec 2013 23:00:24 +0000 (GMT) Subject: [Gambas-user] R: Desktop.Windows In-Reply-To: <529F5D5F.3050507@...626...> Message-ID: <1386198024.90751.YahooMailBasic@...3065...> Hi, What do you mean with "select a window" ? bye vuott -------------------------------------------- Mer 4/12/13, John Rose ha scritto: Oggetto: [Gambas-user] Desktop.Windows A: "MailingList GambasUsers" Data: Mercoled? 4 dicembre 2013, 17:50 Previously, someone directed me to the app fenetreronde in order to acces a list of windows (i.e. not just those which are used by a Gambas app). So one can access windows characteristics by: Dim dWindow As DesktopWindow = Null Desktop.Windows.Refresh() For Each dWindow In Desktop.Windows ???windowTitles &= dWindow.Name & "\n" ???If dWindow.SkipTaskbar = False Then ? ? ? Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & dWindow.Height ???Endif Next I would like for the user to select a window by clicking on it. Only way that I can think of to do that is to specify a transparent window covering the whole desktop which has a mouse click event. Is that the best way? If so, how would one allow for the situation where a user clicks a point which is within 2 overlapping windows, as I do not see an appropriate property of dWindow (as defined above)? ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Thu Dec 5 00:10:51 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 05 Dec 2013 09:40:51 +1030 Subject: [Gambas-user] Selecting a window In-Reply-To: References: <529F5FDB.1030607@...626...> Message-ID: <1386198651.23590.22.camel@...2688...> On Wed, 2013-12-04 at 20:18 +0100, Fabien Bodard wrote: > I'm sure to understand what you want to achieve ... what do you mean > by select a windows ? > > 2013/12/4 John Rose : > > I want the user to be able to click a point within one of the windows > > displayed on the desktop (i.e. not just Gambas forms) in order to select > > that window. The code below shows how to access properties of all windows: > > Dim dWindow As DesktopWindow = Null > > Desktop.Windows.Refresh() > > For Each dWindow In Desktop.Windows > > If dWindow.Minimized = False Then > > Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & > > ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & > > dWindow.Height > > Endif > > Next > > > > The only way I've thought of is to define a transparent form covering > > the whole desktop with an associated mouse click event, which supplies > > the co-ordinates of the point clicked. Then by examination of each > > dWindow property (i.e. X, Y, Width, Height), one can determine which > > window has been clicked. Is that the best way? But how can one allow for > > the situation where the user has clicked a point which is within 2 > > windows i.e. is there a property of dWindow which shows if that window > > is the 'top' one (i.e. covering the other one at that point)? > > Like Fabian, without understanding exactly what you want to achieve, why not just shell out to xprop where all this is apparently already solved? Bruce From tercoide at ...67... Thu Dec 5 00:34:57 2013 From: tercoide at ...67... (terco IDE) Date: Wed, 4 Dec 2013 23:34:57 +0000 Subject: [Gambas-user] Calling a sub from a Webview In-Reply-To: References: Message-ID: Hi: i'm the mad guy who made that VB code wich calls Funcitions from the HTML code :) I'n new to Gambas, but from what I've read, it is possible to set up an Object Observer ...so why not intercept the webview control and do things BEFORE the Click event takes place? Saludos Martin > From: gambas-user-request at lists.sourceforge.net > Subject: Gambas-user Digest, Vol 91, Issue 10 > To: gambas-user at lists.sourceforge.net > Date: Wed, 4 Dec 2013 22:34:03 +0000 > > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's Topics: > > 1. Re: New to this list (Wolfgang) > 2. Re: New to this list (Fabien Bodard) > 3. Re: Selecting a window (Fabien Bodard) > 4. Calling a sub from a Webview (Jesus) > 5. Re: Calling a sub from a Webview (Tobias Boege) > 6. Re: Calling a sub from a Webview (Jesus) > 7. Re: Calling a sub from a Webview (Tobias Boege) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 04 Dec 2013 19:56:14 +0100 > From: Wolfgang > Subject: Re: [Gambas-user] New to this list > To: willy at ...2734..., mailing list for gambas users > > Message-ID: <529F7ACE.9090906 at ...17...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Willy, > > Thank you very much for the quick answer. (wow, as I can see in "abt > Gambas" you're a "big one" ;-) > .... > That was exactly what I tried. An I tried it with many different .png > images of all sizes. > It shows up in Project->Properties, but it did not work! I still have > that funny toolbox for both the packager and the app. > > The same happens when I use the example projects. Their > Project-properties show different icons. But the *.deb packages all > produce these toolbox-icons. > > The Icons for all my forms show the right Icons as I have defined in the > Form.property! > > Are there rules for the .png files??? > > I forgot in 1st post: I am using Gambas 3.5.1 > > What am I doing wrong?? Or did I find something special??? > > Wolf > > Hi Wolf, > Welcome to the list. If you go to your project properties (menu Project > -> Properties), you can click on the Gambas icon on tab General and > browse for a .png image that will become your projects icon. This icon > will then be used to represent your application and used by the packager > as well. > > Kind regards, Willy (aka gbWilly) > > http://gambasshowcase.org/ http://howtogambas.org http://gambos.org > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps > with a single code base. Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------ > > Message: 2 > Date: Wed, 4 Dec 2013 20:16:03 +0100 > From: Fabien Bodard > Subject: Re: [Gambas-user] New to this list > To: mailing list for gambas users > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I'm not sure the packager initialize correctly the *.desktop file ... > I need to test > > 2013/12/4 Wolfgang : > > Hi Willy, > > > > Thank you very much for the quick answer. (wow, as I can see in "abt > > Gambas" you're a "big one" ;-) > > .... > > That was exactly what I tried. An I tried it with many different .png > > images of all sizes. > > It shows up in Project->Properties, but it did not work! I still have > > that funny toolbox for both the packager and the app. > > > > The same happens when I use the example projects. Their > > Project-properties show different icons. But the *.deb packages all > > produce these toolbox-icons. > > > > The Icons for all my forms show the right Icons as I have defined in the > > Form.property! > > > > Are there rules for the .png files??? > > > > I forgot in 1st post: I am using Gambas 3.5.1 > > > > What am I doing wrong?? Or did I find something special??? > > > > Wolf > > > > Hi Wolf, > > Welcome to the list. If you go to your project properties (menu Project > > -> Properties), you can click on the Gambas icon on tab General and > > browse for a .png image that will become your projects icon. This icon > > will then be used to represent your application and used by the packager > > as well. > > > > Kind regards, Willy (aka gbWilly) > > > > http://gambasshowcase.org/ http://howtogambas.org http://gambos.org > > ------------------------------------------------------------------------------ > > Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps > > with a single code base. Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > > _______________________________________________ Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > Sponsored by Intel(R) XDK > > Develop, test and display web and hybrid apps with a single code base. > > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > > ------------------------------ > > Message: 3 > Date: Wed, 4 Dec 2013 20:18:50 +0100 > From: Fabien Bodard > Subject: Re: [Gambas-user] Selecting a window > To: mailing list for gambas users > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I'm sure to understand what you want to achieve ... what do you mean > by select a windows ? > > 2013/12/4 John Rose : > > I want the user to be able to click a point within one of the windows > > displayed on the desktop (i.e. not just Gambas forms) in order to select > > that window. The code below shows how to access properties of all windows: > > Dim dWindow As DesktopWindow = Null > > Desktop.Windows.Refresh() > > For Each dWindow In Desktop.Windows > > If dWindow.Minimized = False Then > > Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & > > ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & > > dWindow.Height > > Endif > > Next > > > > The only way I've thought of is to define a transparent form covering > > the whole desktop with an associated mouse click event, which supplies > > the co-ordinates of the point clicked. Then by examination of each > > dWindow property (i.e. X, Y, Width, Height), one can determine which > > window has been clicked. Is that the best way? But how can one allow for > > the situation where the user has clicked a point which is within 2 > > windows i.e. is there a property of dWindow which shows if that window > > is the 'top' one (i.e. covering the other one at that point)? > > > > > > > > ------------------------------------------------------------------------------ > > Sponsored by Intel(R) XDK > > Develop, test and display web and hybrid apps with a single code base. > > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > > ------------------------------ > > Message: 4 > Date: Wed, 04 Dec 2013 22:23:56 +0100 > From: Jesus > Subject: [Gambas-user] Calling a sub from a Webview > To: mailing list for gambas users > Message-ID: <529F9D6C.508 at ...2382...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi all > > I currently helping to port a VB6 program to Gambas3, but to my > surprise, it does weird things like these from the post title: it is > calling methods and functions from the html code inside a webbrowser > control. > > It has a wb control that acts like a sort of wizard/help thing, and the > html links in that view are calling methods inside the application. That > links are as 'some action' > > So the question is, could it be done with gambas somehow? > > Regards > -- > Jesus Guardon > > > > ------------------------------ > > Message: 5 > Date: Wed, 4 Dec 2013 22:32:45 +0100 > From: Tobias Boege > Subject: Re: [Gambas-user] Calling a sub from a Webview > To: mailing list for gambas users > Message-ID: <20131204213245.GF509 at ...2774...> > Content-Type: text/plain; charset=us-ascii > > On Wed, 04 Dec 2013, Jesus wrote: > > Hi all > > > > I currently helping to port a VB6 program to Gambas3, but to my > > surprise, it does weird things like these from the post title: it is > > calling methods and functions from the html code inside a webbrowser > > control. > > > > It has a wb control that acts like a sort of wizard/help thing, and the > > html links in that view are calling methods inside the application. That > > links are as 'some action' > > > > So the question is, could it be done with gambas somehow? > > > > Regards > > -- > > Jesus Guardon > > Jesus (meant as an interjection)! I know I shouldn't question other people's > design choices but this is just mad. Actually it might have seemed like an > elegant way to communicate with an HTML page to the original author of that > program - I understand that - but this is just asking for trouble, IMHO. > > However, I guess Object.Call() is your best bet here. > > Regards, > Tobi > > > > ------------------------------ > > Message: 6 > Date: Wed, 04 Dec 2013 22:52:45 +0100 > From: Jesus > Subject: Re: [Gambas-user] Calling a sub from a Webview > To: mailing list for gambas users > Message-ID: <529FA42D.30904 at ...2382...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > El 04/12/13 22:32, Tobias Boege escribi?: > > On Wed, 04 Dec 2013, Jesus wrote: > >> Hi all > >> > >> I currently helping to port a VB6 program to Gambas3, but to my > >> surprise, it does weird things like these from the post title: it is > >> calling methods and functions from the html code inside a webbrowser > >> control. > >> > >> It has a wb control that acts like a sort of wizard/help thing, and the > >> html links in that view are calling methods inside the application. That > >> links are as 'some action' > >> > >> So the question is, could it be done with gambas somehow? > >> > >> Regards > >> -- > >> Jesus Guardon > > > > Jesus (meant as an interjection)! I know I shouldn't question other people's > > design choices but this is just mad. Actually it might have seemed like an > > elegant way to communicate with an HTML page to the original author of that > > program - I understand that - but this is just asking for trouble, IMHO. > > > > However, I guess Object.Call() is your best bet here. > > > > Regards, > > Tobi > > > > Hi Tobi, thanks for reply > > I am at your side about some (mad) practices, but... > > I think Object.Call is suitable for calling or executing code inside or > outside of the current class, but not the other way round, IIUC. How > could I execute Object.Call from inside a webview? None of the events > webview exposes are suitable for doing this IMO, since the webview.url > is a property, not a method. > > I will experiment, thanks for the tip! > > Regards > -- > Jesus Guardon > > > > ------------------------------ > > Message: 7 > Date: Wed, 4 Dec 2013 23:33:23 +0100 > From: Tobias Boege > Subject: Re: [Gambas-user] Calling a sub from a Webview > To: mailing list for gambas users > Message-ID: <20131204223323.GG509 at ...2774...> > Content-Type: text/plain; charset="us-ascii" > > On Wed, 04 Dec 2013, Jesus wrote: > > El 04/12/13 22:32, Tobias Boege escribi?: > > > On Wed, 04 Dec 2013, Jesus wrote: > > >> Hi all > > >> > > >> I currently helping to port a VB6 program to Gambas3, but to my > > >> surprise, it does weird things like these from the post title: it is > > >> calling methods and functions from the html code inside a webbrowser > > >> control. > > >> > > >> It has a wb control that acts like a sort of wizard/help thing, and the > > >> html links in that view are calling methods inside the application. That > > >> links are as 'some action' > > >> > > >> So the question is, could it be done with gambas somehow? > > >> > > >> Regards > > >> -- > > >> Jesus Guardon > > > > > > Jesus (meant as an interjection)! I know I shouldn't question other people's > > > design choices but this is just mad. Actually it might have seemed like an > > > elegant way to communicate with an HTML page to the original author of that > > > program - I understand that - but this is just asking for trouble, IMHO. > > > > > > However, I guess Object.Call() is your best bet here. > > > > > > Regards, > > > Tobi > > > > > > > Hi Tobi, thanks for reply > > > > I am at your side about some (mad) practices, but... > > > > I think Object.Call is suitable for calling or executing code inside or > > outside of the current class, but not the other way round, IIUC. How > > could I execute Object.Call from inside a webview? None of the events > > webview exposes are suitable for doing this IMO, since the webview.url > > is a property, not a method. > > > > I will experiment, thanks for the tip! > > > > Ahh, I got you wrong apparently... My answer can be applied if you have any > occasion (event) to parse an (X)HTML element for this special attribute > href="act:some_class.method". Then you can extract the class and method name > and use Object.Call(). > > You can (ab)use the WebView's Click event like this: Modify the element > to look like this: > > some action > > Then, when clicked, the WebView will load the valid URL (the anchor sign had > to be prepended to make it valid - to trigger the Click event, in turn) and > provide you a WebFrame object in whose Url property you have the wanted > act:some_class.method string somewhere. Now parse and execute. > > I think it's too late for me to find clear words, so I attach a minimal > example. (Note that the code is executed twice in this project which is > certainly not desirable. You'll sure find a way to prevent this yourself.) > > Regards, > Tobi > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: execute-code-from-webview-0.0.1.tar.gz > Type: application/octet-stream > Size: 5313 bytes > Desc: not available > > ------------------------------ > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 91, Issue 10 > ******************************************* From john.aaron.rose at ...626... Thu Dec 5 09:33:08 2013 From: john.aaron.rose at ...626... (John Rose) Date: Thu, 05 Dec 2013 08:33:08 +0000 Subject: [Gambas-user] Re Selecting a window Message-ID: <52A03A44.80600@...626...> The reason for 'Selecting a window' is for the user to select a window (by clicking any point within that window) to be recorded using the x11grab facility of ffmpeg (for this, the window's left, top, width & height need to be obtained): the window would normally be a Firefox tab's 'window' where a video is being played. So from the user's selection, the app needs to identify that window (rather than say a window 'below' that window which has a common point). I hope that I've made this clearer. PS Apologies for sending 2 messages on this topic (the other having subject of "Desktop.Windows"): this occurred due to my ISP playing up so that I thought that my first attempt hadn't gone when it had). From taboege at ...626... Thu Dec 5 11:19:02 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 5 Dec 2013 11:19:02 +0100 Subject: [Gambas-user] Calling a sub from a Webview In-Reply-To: References: Message-ID: <20131205101902.GA510@...2774...> On Wed, 04 Dec 2013, terco IDE wrote: > Hi: > i'm the mad guy who made that VB code wich calls Funcitions from the HTML code :) > > I'n new to Gambas, but from what I've read, it is possible to set up an Object Observer ...so why not intercept the webview control and do things BEFORE the Click event takes place? > That's indeed a cleaner solution because it leaves the WebView alone but in the Observer_Click() handler, you would do exactly the same as in the WebView_Click() handler. Regards, Tobi From tercoide at ...67... Thu Dec 5 13:20:15 2013 From: tercoide at ...67... (terco IDE) Date: Thu, 5 Dec 2013 12:20:15 +0000 Subject: [Gambas-user] Matrix resize In-Reply-To: References: Message-ID: First of everything: BIG thanks to Benoit for crating Gambas! Is there any workaround for resizing matrices? rigth now, I'm using this code notMatrix.Resize(100*200) ' 100 rows, 200 cols ' get element [row,col] x = notMatrix[col + row*200] , and on a big program, code get's really dirty Thanks! Saludos Martin From nilsson at ...1979... Thu Dec 5 13:32:24 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Thu, 05 Dec 2013 23:32:24 +1100 Subject: [Gambas-user] Where are the examples in gambas 3.5.1? In-Reply-To: <64e542$bvktam@...3015...> References: <006b4c$c01vk2@...3239...> <64e542$bvigbc@...3015...> <5299262D.5020709@...3240...> <006b4c$c0377s@...3239...> <529B75AB.1090400@...3240...> <64e542$bvktam@...3015...> Message-ID: <64e542$bvonqn@...3015...> G'day Matti and all: Now I do have a success story. This correspondence is really on the wrong forum - it is not really an issue for Gambas, as most of you realised from the start. It is an issue for openSUSE and those who make up distros and Linux novices like myself. After putting in as much time as I could take in front of the computers over the last few days, I finally have gambas3 properly installed under openSUSE 12.2. It should not be such a struggle. Under the distros for openSUSE available in either the munix9 repo (gambas 3.5.1) or the opensuse Education repo (gambas 3.4.1), four gb major components had missing dependencies in my partly-installed openSUSE 12.2/i586/. These were (in gambas 3.4.1) image-imlib, sdl, v4l and examples. As best as I noted, image-imlib needed imlib2, sdl needed libogg, v4l needed v4l-tools and v4l-tools needed tv-common. Most of my time was spent surfing around looking for suitable packages. For a Linux novice, this can be quite daunting. It's a bit like being lost in a forest without a compass that you can trust and use. There are plenty laying around, but they all point in different directions! Some posts said it was absolutely necessary to compile and install imlib2 from a tarball, for example. I tried that, got it compiled but apparently not correctly installed. In turned out that imlib2 needed libjpeg, libpng, freetype 2.1.x and then libmlib2-1, all to be separately found and installed. etc etc. Then a breakthrough - yet another net search brought me back near my starting point, to software.opensuse.org/search. That /search facility proved my lifesaver, it came up with apt (or was it app?) packages for the missing dependencies that installed automatically. The imlib for gambas3 was the hardest nut for me to crack. I still don't know if I will actually need it or not, as I won't be processing images with my own project, but I was determined to get it in. Once that was done, 'examples' jumped in of its own accord. I learned a bit more about Linux and of course, that is only scratching at the surface. At last I'm under the skin of my Linux and starting in on Gambas. Talk to you some more later on, Matti. Thanks for responding. Carl At 12:04 AM 3/12/2013, you wrote: >G'day Matti: >I don't have a success story to report yet, but I have not been idle >and thought I should report. >I spent quite some time looking at that 'versions' tab. Couldn't >actually do anything with it until later today when I realised that >only some packages had alternate versions from which to >choose. Couldn't install/choose either a complete set of gambas >3.5.1 or 3.4.1. (snip) Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From gambas.fr at ...626... Thu Dec 5 14:31:33 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Dec 2013 14:31:33 +0100 Subject: [Gambas-user] Re Selecting a window In-Reply-To: <52A03A44.80600@...626...> References: <52A03A44.80600@...626...> Message-ID: Quick and dirty but it's a way 2013/12/5 John Rose : > The reason for 'Selecting a window' is for the user to select a window > (by clicking any point within that window) to be recorded using the > x11grab facility of ffmpeg (for this, the window's left, top, width & > height need to be obtained): the window would normally be a Firefox > tab's 'window' where a video is being played. So from the user's > selection, the app needs to identify that window (rather than say a > window 'below' that window which has a common point). I hope that I've > made this clearer. > > PS Apologies for sending 2 messages on this topic (the other having > subject of "Desktop.Windows"): this occurred due to my ISP playing up so > that I thought that my first attempt hadn't gone when it had). > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Windowsselector-0.0.1.tar.gz Type: application/x-gzip Size: 5115 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Dec 5 16:29:01 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Dec 2013 17:29:01 +0200 Subject: [Gambas-user] Matrix resize In-Reply-To: References: Message-ID: Unfortunately this is missing feature from Gambas. Maybe Benoit has reason for it, I don't know. However here is code for resizing 2D arrays: Private Function Resize2DArray(hArray As Object, SizeX As Integer, SizeY As Integer) As Object Dim hNewArray As Object = Object.New(Object.Type(hArray), [SizeX, SizeY]) Dim ii As Integer, jj As Integer For ii = 0 To Min(hNewArray.Bounds[0], hArray.Bounds[0]) - 1 For jj = 0 To Min(hNewArray.Bounds[1], hArray.Bounds[1]) - 1 hNewArray[ii, jj] = hArray[ii, jj] Next Next Return hNewArray End And here is how to use it: Dim iMyArray As New Integer[5, 5] iMyArray = Resize2DArray(iMyArray, 10, 10) As it's not native method, it's not that fast, but fortunately Gambas is *very* often fast enough! Jussi On Thu, Dec 5, 2013 at 2:20 PM, terco IDE wrote: > First of everything: BIG thanks to Benoit for crating Gambas! > > Is there any workaround for resizing matrices? > > rigth now, I'm using this code > > notMatrix.Resize(100*200) ' 100 rows, 200 cols > > ' get element [row,col] > > x = notMatrix[col + row*200] > > , and on a big program, code get's really dirty > > > Thanks! > > > Saludos > Martin > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Thu Dec 5 17:20:26 2013 From: john.aaron.rose at ...626... (John Rose) Date: Thu, 05 Dec 2013 16:20:26 +0000 Subject: [Gambas-user] Selecting a window Message-ID: <52A0A7CA.7000002@...626...> Fabien, I've looked at your "quick & dirty way". I don't think that it's what I want. I want the user to be able to select a window on the desktop (i.e. not just Gambas forms in a Gambas app) by clicking on any point in that window, not selecting it by dragging on the corners of a rectangle to its corners before clicking. Below is shown the method that I identified but is it the best/only way? Also, I don't see how to allow for the situation where the user has clicked a point which is within 2 or more windows i.e. is there a property of dWindow which shows if that window is the 'top' one (i.e. covering the other one(s) at that point)? This means that the user has to first ensure that the required window in on 'top'. As I previously said, the code below shows how to access properties of all windows (i.e. not just Gambas forms in a Gambas app): Dim dWindow As DesktopWindow = Null Desktop.Windows.Refresh() For Each dWindow In Desktop.Windows If dWindow.Minimized = False Then Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & dWindow.Height Endif Next The only way I've thought of is to define a transparent form covering the whole desktop with an associated mouse click event, which supplies the co-ordinates of the point clicked. Then by examination of the properties (i.e. X, Y, Width, Height) of each dWindow, one can determine which window has been clicked by the user. -- Regards, John From gambas at ...2524... Thu Dec 5 17:33:44 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 05 Dec 2013 16:33:44 +0000 Subject: [Gambas-user] Issue 480 in gambas: Managing SVN conflicts Message-ID: <0-6813199134517018827-5634757093306268453-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 480 by ea7... at ...626...: Managing SVN conflicts http://code.google.com/p/gambas/issues/detail?id=480 1) Describe the problem. Since I'm working in a little team, we are using SVN to manage a project. We all set up the project to use SVN in the IDE and we soon discovered some issues with SVN conflicts, not able to being resolved from the IDE. I've found in the gambas sources there is a form to do this, but when SVN finds a conflict, it stays waiting until timeout. There's no action on Gambas IDE, no message (only the console one from SVN executable) and finally we need to resolve it from outside the IDE. My SVN version is: svn, version 1.6.17 (r1128011) Spanish Here is a snippet of the last issue (in an extern terminal): $ svn up U estru3d/hlp/status.htm U estru3d/.src/modUtils.module U estru3d/.src/modGraphics.module U estru3d/.src/modEstru.module Se descubri? un conflicto en ?estru3d/.src/FMain.form?. Seleccione: (p) posponer, (df) ver dif. completo, (e) editar, (mc) m?o conflicto, (tc) de ellos conflicto, (s) mostrar todas las opciones: mc G estru3d/.src/FMain.form G estru3d/.src/FMain.class U estru3d/.src/modCalculus.module Actualizado a la revisi?n 23. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Gambas=TRUNK 3.5.90 r5977 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] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 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 3) Provide a little project that reproduces the bug or the crash. If you really want it, I need to setup an account to you in our system. 5) Explain clearly how to reproduce the bug or the crash. Two or more people modifying a file under version control will sooner or later trigger a conflict. When it arises, no action was taken in Gambas IDE. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Thu Dec 5 17:54:25 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Dec 2013 17:54:25 +0100 Subject: [Gambas-user] Matrix resize In-Reply-To: References: Message-ID: You can use arrays of array private MyArray as new Object[] Public sub _New() ResizeMyArray(MyArray,15,12) end Public sub ResizeMyArray(hMyArray as Object[], X as integer, y as integer) hMyArray.Resize(X) For i = 0 to hMyArray.max if hMyArray [i] then hMyArray[i].Resize(y) else hMyArray[i] = new Integer[Y] endif next For the call : value = MyArray[1][2] 2013/12/5 Jussi Lahtinen : > Unfortunately this is missing feature from Gambas. Maybe Benoit has reason > for it, I don't know. > > However here is code for resizing 2D arrays: > > Private Function Resize2DArray(hArray As Object, SizeX As Integer, SizeY As > Integer) As Object > > Dim hNewArray As Object = Object.New(Object.Type(hArray), [SizeX, SizeY]) > Dim ii As Integer, jj As Integer > > For ii = 0 To Min(hNewArray.Bounds[0], hArray.Bounds[0]) - 1 > For jj = 0 To Min(hNewArray.Bounds[1], hArray.Bounds[1]) - 1 > hNewArray[ii, jj] = hArray[ii, jj] > Next > Next > > Return hNewArray > > End > > > And here is how to use it: > > Dim iMyArray As New Integer[5, 5] > > iMyArray = Resize2DArray(iMyArray, 10, 10) > > > As it's not native method, it's not that fast, but fortunately Gambas is > *very* often fast enough! > > > Jussi > > > > On Thu, Dec 5, 2013 at 2:20 PM, terco IDE wrote: > >> First of everything: BIG thanks to Benoit for crating Gambas! >> >> Is there any workaround for resizing matrices? >> >> rigth now, I'm using this code >> >> notMatrix.Resize(100*200) ' 100 rows, 200 cols >> >> ' get element [row,col] >> >> x = notMatrix[col + row*200] >> >> , and on a big program, code get's really dirty >> >> >> Thanks! >> >> >> Saludos >> Martin >> >> >> >> ------------------------------------------------------------------------------ >> Sponsored by Intel(R) XDK >> Develop, test and display web and hybrid apps with a single code base. >> Download it for free now! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Thu Dec 5 18:25:30 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Dec 2013 18:25:30 +0100 Subject: [Gambas-user] Selecting a window In-Reply-To: <52A0A7CA.7000002@...626...> References: <52A0A7CA.7000002@...626...> Message-ID: Like this ? 2013/12/5 John Rose : > Fabien, > > I've looked at your "quick & dirty way". I don't think that it's what I > want. I want the user to be able to select a window on the desktop (i.e. > not just Gambas forms in a Gambas app) by clicking on any point in that > window, not selecting it by dragging on the corners of a rectangle to > its corners before clicking. Below is shown the method that I identified > but is it the best/only way? Also, I don't see how to allow for the > situation where the user has clicked a point which is within 2 or more > windows i.e. is there a property of dWindow which shows if that window > is the 'top' one (i.e. covering the other one(s) at that point)? This > means that the user has to first ensure that the required window in on > 'top'. > > As I previously said, the code below shows how to access properties of > all windows (i.e. not just Gambas forms in a Gambas app): > Dim dWindow As DesktopWindow = Null > Desktop.Windows.Refresh() > For Each dWindow In Desktop.Windows > If dWindow.Minimized = False Then > Print "Window: Name=" & dWindow.Name & ", " & "X=" & dWindow.X & > ", Y=" & dWindow.Y & ", " & "Width=" & dWindow.Width & ", Height=" & > dWindow.Height > Endif > Next > > The only way I've thought of is to define a transparent form covering > the whole desktop with an associated mouse click event, which supplies > the co-ordinates of the point clicked. Then by examination of the > properties (i.e. X, Y, Width, Height) of each dWindow, one can determine > which window has been clicked by the user. > > -- > Regards, John > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: Windowsselector-0.0.1.tar.gz Type: application/x-gzip Size: 5614 bytes Desc: not available URL: From tercoide at ...67... Thu Dec 5 23:53:05 2013 From: tercoide at ...67... (terco IDE) Date: Thu, 5 Dec 2013 22:53:05 +0000 Subject: [Gambas-user] Matrix resize In-Reply-To: References: Message-ID: I prefer the Jussi aproach, because a lot of code is already wrtitten with [r,c] format and is easier to read. I hope that works for Public arrays! Thanks Martin > Subject: Re: [Gambas-user] Matrix resize > To: mailing list for gambas users > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > You can use arrays of array > > > private MyArray as new Object[] > > Public sub _New() > ResizeMyArray(MyArray,15,12) > end > > > > Public sub ResizeMyArray(hMyArray as Object[], X as integer, y as integer) > > hMyArray.Resize(X) > > For i = 0 to hMyArray.max > if hMyArray [i] then > hMyArray[i].Resize(y) > else > hMyArray[i] = new Integer[Y] > endif > next > > > > For the call : > > value = MyArray[1][2] > > > 2013/12/5 Jussi Lahtinen : > > Unfortunately this is missing feature from Gambas. Maybe Benoit has reason > > for it, I don't know. > > > > However here is code for resizing 2D arrays: > > > > Private Function Resize2DArray(hArray As Object, SizeX As Integer, SizeY As > > Integer) As Object > > > > Dim hNewArray As Object = Object.New(Object.Type(hArray), [SizeX, SizeY]) > > Dim ii As Integer, jj As Integer > > > > For ii = 0 To Min(hNewArray.Bounds[0], hArray.Bounds[0]) - 1 > > For jj = 0 To Min(hNewArray.Bounds[1], hArray.Bounds[1]) - 1 > > hNewArray[ii, jj] = hArray[ii, jj] > > Next > > Next > > > > Return hNewArray > > > > End > > > > > > And here is how to use it: > > > > Dim iMyArray As New Integer[5, 5] > > > > iMyArray = Resize2DArray(iMyArray, 10, 10) > > > > > > As it's not native method, it's not that fast, but fortunately Gambas is > > *very* often fast enough! > > > > > > Jussi > > > > > > > > On Thu, Dec 5, 2013 at 2:20 PM, terco IDE wrote: > > > >> First of everything: BIG thanks to Benoit for creating Gambas! > >> > >> Is there any workaround for resizing matrices? > >> > >> rigth now, I'm using this code > >> > >> notMatrix.Resize(100*200) ' 100 rows, 200 cols > >> > >> ' get element [row,col] > >> > >> x = notMatrix[col + row*200] > >> > >> , and on a big program, code get's really dirty > >> > >> > >> Thanks! > >> > >> > >> Saludos > >> Martin > >> > >> From vuott at ...325... Fri Dec 6 01:36:57 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 6 Dec 2013 00:36:57 +0000 (GMT) Subject: [Gambas-user] R: Matrix resize In-Reply-To: Message-ID: <1386290217.96349.YahooMailBasic@...3066...> ...maybe: Private b As Byte Private bb As Byte[] Public Sub Button1_Click() Inc b ' We define the "new" number of rows in a two-dimensional matrix ' with a new value one greater than the previous: bb = New Byte[b, 3] bb[b - 1, 1] = b Print bb[b - 1, 1] End -------------------------------------------- Gio 5/12/13, terco IDE ha scritto: Oggetto: [Gambas-user] Matrix resize A: "gambas-user at lists.sourceforge.net" Data: Gioved? 5 dicembre 2013, 13:20 First of everything: BIG thanks to Benoit for crating Gambas! Is there any workaround for resizing matrices? rigth now, I'm using this code notMatrix.Resize(100*200)? ' 100 rows, 200 cols ' get element [row,col] x = notMatrix[col + row*200] , and on a big program, code get's really dirty Thanks! Saludos Martin ??? ???????? ?????? ??? ? ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From john.aaron.rose at ...626... Fri Dec 6 14:48:04 2013 From: john.aaron.rose at ...626... (John Rose) Date: Fri, 06 Dec 2013 13:48:04 +0000 Subject: [Gambas-user] Selecting a window Message-ID: <52A1D594.4060401@...626...> Fabien, I think that I'm starting to understand 'Drawing'. I don't understand how the whole -- Regards, John From john.aaron.rose at ...626... Fri Dec 6 15:36:03 2013 From: john.aaron.rose at ...626... (John Rose) Date: Fri, 06 Dec 2013 14:36:03 +0000 Subject: [Gambas-user] Selecting a window Message-ID: <52A1E0D3.3090003@...626...> Fabien, I think that I'm starting to understand 'Drawing' in your example & I'll use it in my app. I saw the results (i.e. gray semi-transparent) of: Draw.FillColor = Color.SetAlpha(Color.Black, 125) Draw.FillStyle = Fill.Solid Draw.Rect(.X, .Y, .Width, .Height) But I didn't understand how it worked nor could I find any documentation for it. Is there any documentation & where is it? I was also interested to see the gb.gui component being used rather than gb.gtk or gb.qt4. When I used that (with Gambas 3.5.1), it generated a .deb with .qt4, .deb with gtk & .deb without either qt4 or gtk in the filename. Guessing: qt4 will result in always running qt4 controls, .gtk will result in always running gtk controls, without gtk & qt4 will result in running gtk if gnome desktop and qt4 if running kde desktop. Is this correct? PS Finger trouble from me: I accidentally sent an incomplete version of this message just before sending this. -- Regards, John From gambas at ...2524... Fri Dec 6 19:43:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 06 Dec 2013 18:43:47 +0000 Subject: [Gambas-user] Issue 480 in gambas: Managing SVN conflicts In-Reply-To: <0-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.5.0 Comment #1 on issue 480 by benoit.m... at ...626...: Managing SVN conflicts http://code.google.com/p/gambas/issues/detail?id=480 (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... Fri Dec 6 19:44:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 06 Dec 2013 18:44:47 +0000 Subject: [Gambas-user] Issue 477 in gambas: String.InStr with an empty pattern, causes a signal 11 In-Reply-To: <0-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.5.0 Comment #1 on issue 477 by benoit.m... at ...626...: String.InStr with an empty pattern, causes a signal 11 http://code.google.com/p/gambas/issues/detail?id=477 (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... Fri Dec 6 19:46:44 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 06 Dec 2013 18:46:44 +0000 Subject: [Gambas-user] Issue 478 in gambas: Right-to-left language support In-Reply-To: <0-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 478 by benoit.m... at ...626...: Right-to-left language support http://code.google.com/p/gambas/issues/detail?id=478 I can do something for TreeView and GridView, but not for Slider and TextArea that are native controls (i.e. they are implemented by the underlying toolkit, GTK+ or QT4). -- 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 Dec 6 19:52:05 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 06 Dec 2013 18:52:05 +0000 Subject: [Gambas-user] Issue 477 in gambas: String.InStr with an empty pattern, causes a signal 11 In-Reply-To: <1-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> <0-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4318250813695274488-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 477 by benoit.m... at ...626...: String.InStr with an empty pattern, causes a signal 11 http://code.google.com/p/gambas/issues/detail?id=477 Fixed in revision #5979. -- 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 john.aaron.rose at ...626... Fri Dec 6 20:17:28 2013 From: john.aaron.rose at ...626... (John Rose) Date: Fri, 06 Dec 2013 19:17:28 +0000 Subject: [Gambas-user] Line continuation Message-ID: <52A222C8.4030808@...626...> Is there a line continuation character available for code? I find that I often have very long lines (e.g. in Exec commands). From gambas at ...1... Fri Dec 6 20:37:58 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 06 Dec 2013 20:37:58 +0100 Subject: [Gambas-user] Line continuation In-Reply-To: <52A222C8.4030808@...626...> References: <52A222C8.4030808@...626...> Message-ID: <52A22796.1050402@...1...> Le 06/12/2013 20:17, John Rose a ?crit : > Is there a line continuation character available for code? I find that I > often have very long lines (e.g. in Exec commands). > There is no line continuation character, but you usually can go to another line inside an expression after a comma. Regards, -- Beno?t Minisini From iss_boss at ...770... Fri Dec 6 22:04:57 2013 From: iss_boss at ...770... (ISS Boss) Date: Fri, 06 Dec 2013 16:04:57 -0500 Subject: [Gambas-user] Line continuation In-Reply-To: <52A22796.1050402@...1...> References: <52A222C8.4030808@...626...> <52A22796.1050402@...1...> Message-ID: <52A23BF9.6060805@...770...> I agree with John, Beno??t. There really should be a specific character to continue a line; if only to keep from confusing anyone maintaining the code. Put it on the 'nice to have' list, anyway. Bill Beno??t Minisini wrote, On 12/06/2013 14:37: Le 06/12/2013 20:17, John Rose a ??crit : Is there a line continuation character available for code? I find that I often have very long lines (e.g. in Exec commands). There is no line continuation character, but you usually can go to another line inside an expression after a comma. Regards, From vuott at ...325... Fri Dec 6 23:53:28 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 6 Dec 2013 22:53:28 +0000 (GMT) Subject: [Gambas-user] Gambas-3 on Linux Mint "16": autoreconf: failed to run aclocal... Message-ID: <1386370408.41261.YahooMailBasic@...3064...> Hello, I updated my Linux Mint to "16" version - 64bit. I installed the development packages (for Ubuntu) needed to compile all Gambas-3 components. Then I followed: ~ $ svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk ~ $ cd trunk but when I start ~/trunk $ ./reconf-all I obtain these lines: libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --output=aclocal.m4t Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326. autoreconf: failed to run aclocal: No such file or directory How can I fix it? Thanks vuott From gp at ...3050... Fri Dec 6 21:32:41 2013 From: gp at ...3050... (Gianni Piccini) Date: Fri, 06 Dec 2013 21:32:41 +0100 Subject: [Gambas-user] Debian unstable Message-ID: <52A23469.3030502@...3050...> :-)))) Finally I can see 3.5.1 :-(((( me at ...3246...:~$ gambas3 ** Oops! Internal error! ** ** Cannot find interface of library 'gb.geom' ERROR: #27: Cannot load component 'gb.geom': cannot find component ** Program aborting. Sorry! :-( ** Please send a bug report at gambas at ...1... Any ideas? I'm running a mixed Debian amd64 testing/sid, with Lxde and kernel 3.11.8-1... From gambas at ...1... Sat Dec 7 00:10:21 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 07 Dec 2013 00:10:21 +0100 Subject: [Gambas-user] Gambas-3 on Linux Mint "16": autoreconf: failed to run aclocal... In-Reply-To: <1386370408.41261.YahooMailBasic@...3064...> References: <1386370408.41261.YahooMailBasic@...3064...> Message-ID: <52A2595D.5020701@...1...> Le 06/12/2013 23:53, Ru Vuott a ?crit : > Hello, > > I updated my Linux Mint to "16" version - 64bit. > > I installed the development packages (for Ubuntu) needed to compile all Gambas-3 components. Then I followed: > > ~ $ svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk > > ~ $ cd trunk > > but when I start > > ~/trunk $ ./reconf-all > > I obtain these lines: > > libtoolize: putting auxiliary files in `.'. > libtoolize: copying file `./ltmain.sh' > libtoolize: You should add the contents of the following files to `aclocal.m4': > libtoolize: `/usr/share/aclocal/libtool.m4' > libtoolize: `/usr/share/aclocal/ltoptions.m4' > libtoolize: `/usr/share/aclocal/ltversion.m4' > libtoolize: `/usr/share/aclocal/ltsugar.m4' > libtoolize: `/usr/share/aclocal/lt~obsolete.m4' > libtoolize: Remember to add `LT_INIT' to configure.ac. > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and > libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal --output=aclocal.m4t > Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326. > autoreconf: failed to run aclocal: No such file or directory > > How can I fix it? > > Thanks > > vuott > I guess you have to install the development package that includes the 'aclocal' program. Normally that package should be in the autoconf & automake package. -- Beno?t Minisini From vuott at ...325... Sat Dec 7 00:21:53 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 6 Dec 2013 23:21:53 +0000 (GMT) Subject: [Gambas-user] Gambas-3 on Linux Mint "16": autoreconf: failed to run aclocal... In-Reply-To: <52A2595D.5020701@...1...> Message-ID: <1386372113.99048.YahooMailBasic@...3065...> Hi Beno?t, yeeessss: I needed "automake" package ! Thanks a lot ! Vuottt -------------------------------------------- Sab 7/12/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Gambas-3 on Linux Mint "16": autoreconf: failed to run aclocal... A: "mailing list for gambas users" Data: Sabato 7 dicembre 2013, 00:10 Le 06/12/2013 23:53, Ru Vuott a ?crit : > Hello, > > I updated my Linux Mint to "16" version - 64bit. > > I installed the development packages (for Ubuntu) needed to compile all Gambas-3 components.? Then I followed: > > ~ $ svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk > > ~ $ cd trunk > > but when I start > > ~/trunk $ ./reconf-all > > I obtain these lines: > > libtoolize: putting auxiliary files in `.'. > libtoolize: copying file `./ltmain.sh' > libtoolize: You should add the contents of the following files to `aclocal.m4': > libtoolize:???`/usr/share/aclocal/libtool.m4' > libtoolize:???`/usr/share/aclocal/ltoptions.m4' > libtoolize:???`/usr/share/aclocal/ltversion.m4' > libtoolize:???`/usr/share/aclocal/ltsugar.m4' > libtoolize:???`/usr/share/aclocal/lt~obsolete.m4' > libtoolize: Remember to add `LT_INIT' to configure.ac. > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and > libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal? --output=aclocal.m4t > Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326. > autoreconf: failed to run aclocal: No such file or directory > > How can I fix it? > > Thanks > > vuott > I guess you have to install the development package that includes the 'aclocal' program. Normally that package should be in the autoconf & automake package. -- Beno?t Minisini ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Sat Dec 7 00:41:53 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 6 Dec 2013 23:41:53 +0000 (GMT) Subject: [Gambas-user] Again about Gambas-3 on Linux Mint "16"... Message-ID: <1386373313.33726.YahooMailBasic@...3065...> Hello, well I solved problem with ./reconf-all, but now at the end of ./configure -C I have this messages: || || THESE COMPONENTS ARE DISABLED: || - gb.gmp || - gb.openal || - gb.qt4.opengl || - gb.qt4.webkit || What have I to do ? Thanks vuott From vuott at ...325... Sat Dec 7 00:44:59 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 6 Dec 2013 23:44:59 +0000 (GMT) Subject: [Gambas-user] R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: <1386373313.33726.YahooMailBasic@...3065...> Message-ID: <1386373499.50744.YahooMailBasic@...3066...> Well, I solved about gb.gmp installing "libgmp-dev" but about others ? vuott -------------------------------------------- Sab 7/12/13, Ru Vuott ha scritto: Oggetto: [Gambas-user] Again about Gambas-3 on Linux Mint "16"... A: gambas-user at lists.sourceforge.net Data: Sabato 7 dicembre 2013, 00:41 Hello, well I solved problem with ./reconf-all, but now at the end of ./configure -C? I have this messages: || || THESE COMPONENTS ARE DISABLED: || - gb.gmp || - gb.openal || - gb.qt4.opengl || - gb.qt4.webkit || What have I to do ? Thanks vuott ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Sat Dec 7 02:16:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 07 Dec 2013 01:16:57 +0000 Subject: [Gambas-user] Issue 480 in gambas: Managing SVN conflicts In-Reply-To: <1-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> <0-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5634757093306268453-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 480 by benoit.m... at ...626...: Managing SVN conflicts http://code.google.com/p/gambas/issues/detail?id=480 Conflict management should have been fixed in revision #5986. Please confirm the next time you have conflicts. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Sat Dec 7 11:56:51 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 7 Dec 2013 10:56:51 +0000 (GMT) Subject: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: <1386373499.50744.YahooMailBasic@...3066...> Message-ID: <1386413811.19814.YahooMailBasic@...3064...> > but now at the end of ./configure -C? I have this messages: > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.qt4.opengl > || - gb.qt4.webkit > || In fact, at the end of "sudo make install" I obtain these lines: ........ Compiling Networking/WebBrowser/... gbc: error: Component not found: gb.qt4.webkit ...... ...... Compiling OpenGL/Md2Model/... FMain.form:8: error: Unknown identifier: GLArea ..... ....... Compiling OpenGL/PDFPresentation/... FMain.form:7: error: Unknown identifier: GlArea ..... ....... make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/vuott/trunk/examples' make[1]: Leaving directory `/home/vuott/trunk/examples' Making install in . make[1]: Entering directory `/home/vuott/trunk' make[2]: Entering directory `/home/vuott/trunk' || || Unable to compile gambas3 || make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/vuott/trunk' make[1]: Leaving directory `/home/vuott/trunk' ----------------------------------- What have I to do ? How can I solve ? Thanks vuott From nemh at ...2007... Sat Dec 7 12:28:37 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sat, 07 Dec 2013 12:28:37 +0100 Subject: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: <1386413811.19814.YahooMailBasic@...3064...> References: <1386413811.19814.YahooMailBasic@...3064...> Message-ID: <52A30665.1040808@...2007...> 2013-12-07 11:56 keltez?ssel, Ru Vuott ?rta: >> but now at the end of ./configure -C I have this messages: >> >> || >> || THESE COMPONENTS ARE DISABLED: >> || - gb.qt4.opengl >> || - gb.qt4.webkit >> || > > In fact, at the end of "sudo make install" I obtain these lines: > > ........ > Compiling Networking/WebBrowser/... > gbc: error: Component not found: gb.qt4.webkit > ...... > ...... > Compiling OpenGL/Md2Model/... > FMain.form:8: error: Unknown identifier: GLArea > ..... > ....... > Compiling OpenGL/PDFPresentation/... > FMain.form:7: error: Unknown identifier: GlArea > ..... > ....... > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/vuott/trunk/examples' > make[1]: Leaving directory `/home/vuott/trunk/examples' > Making install in . > make[1]: Entering directory `/home/vuott/trunk' > make[2]: Entering directory `/home/vuott/trunk' > > || > || Unable to compile gambas3 > || > > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/vuott/trunk' > make[1]: Leaving directory `/home/vuott/trunk' > > ----------------------------------- > > What have I to do ? How can I solve ? > > Thanks > vuott > > Please use Gambas PPA, or use Debian source with debuild command. (Or at least install all dependent packages.) Kendek From dl7nb at ...17... Sat Dec 7 12:37:01 2013 From: dl7nb at ...17... (Wolfgang) Date: Sat, 07 Dec 2013 12:37:01 +0100 Subject: [Gambas-user] Odd behaviour solved ( was: New to this list) In-Reply-To: References: <529EE090.5050600@...17...> <1386169577.5297.5.camel@...3024...> <529F7ACE.9090906@...17...> Message-ID: <52A3085D.7010505@...17...> Hello Fabien, The odd behaviour of the icon is NOT a problem with Gambas but with Ubuntu! The Programm icon is incorrect displayed at installing and in the lauchpad. After a reboot of Ubuntu all is correctly displayed. This seems to be a problem with ubuntu (or with my own setup). I will test and if the error can be relocated I will send an error mail to ubuntu. Thank you any way, it is such a good feeling when you are being helped. I used to work with a compiler for windows/osx/linux for a big money and problems there were "collected" and - partly - never been reacted on. So I was my best decision to go with Gambas! Greetings from snowy Bavaria Wolf Am 04.12.2013 20:16, schrieb Fabien Bodard: > I'm not sure the packager initialize correctly the *.desktop file ... > I need to test > > 2013/12/4 Wolfgang : >> Hi Willy, >> >> Thank you very much for the quick answer. (wow, as I can see in "abt >> Gambas" you're a "big one" ;-) >> .... >> That was exactly what I tried. An I tried it with many different .png >> images of all sizes. >> It shows up in Project->Properties, but it did not work! I still have >> that funny toolbox for both the packager and the app. >> >> The same happens when I use the example projects. Their >> Project-properties show different icons. But the *.deb packages all >> produce these toolbox-icons. >> >> The Icons for all my forms show the right Icons as I have defined in the >> Form.property! >> >> Are there rules for the .png files??? >> >> I forgot in 1st post: I am using Gambas 3.5.1 >> >> What am I doing wrong?? Or did I find something special??? >> >> Wolf >> >> Hi Wolf, >> Welcome to the list. If you go to your project properties (menu Project >> -> Properties), you can click on the Gambas icon on tab General and >> browse for a .png image that will become your projects icon. This icon >> will then be used to represent your application and used by the packager >> as well. >> >> Kind regards, Willy (aka gbWilly) >> >> http://gambasshowcase.org/ http://howtogambas.org http://gambos.org >> ------------------------------------------------------------------------------ >> Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps >> with a single code base. Download it for free now! >> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >> _______________________________________________ Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Sponsored by Intel(R) XDK >> Develop, test and display web and hybrid apps with a single code base. >> Download it for free now! >> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sat Dec 7 12:52:37 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 7 Dec 2013 13:52:37 +0200 Subject: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: <1386413811.19814.YahooMailBasic@...3064...> References: <1386373499.50744.YahooMailBasic@...3066...> <1386413811.19814.YahooMailBasic@...3064...> Message-ID: gb.qt4.webkit is used by the IDE and thus it's mandatory. You need to install libqtwebkit-dev. Jussi On Sat, Dec 7, 2013 at 12:56 PM, Ru Vuott wrote: > > > but now at the end of ./configure -C I have this messages: > > > > || > > || THESE COMPONENTS ARE DISABLED: > > || - gb.qt4.opengl > > || - gb.qt4.webkit > > || > > In fact, at the end of "sudo make install" I obtain these lines: > > ........ > Compiling Networking/WebBrowser/... > gbc: error: Component not found: gb.qt4.webkit > ...... > ...... > Compiling OpenGL/Md2Model/... > FMain.form:8: error: Unknown identifier: GLArea > ..... > ....... > Compiling OpenGL/PDFPresentation/... > FMain.form:7: error: Unknown identifier: GlArea > ..... > ....... > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/vuott/trunk/examples' > make[1]: Leaving directory `/home/vuott/trunk/examples' > Making install in . > make[1]: Entering directory `/home/vuott/trunk' > make[2]: Entering directory `/home/vuott/trunk' > > || > || Unable to compile gambas3 > || > > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/vuott/trunk' > make[1]: Leaving directory `/home/vuott/trunk' > > ----------------------------------- > > What have I to do ? How can I solve ? > > Thanks > vuott > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sat Dec 7 13:18:56 2013 From: ea7dfh at ...2382... (Jesus) Date: Sat, 07 Dec 2013 13:18:56 +0100 Subject: [Gambas-user] Line continuation In-Reply-To: <52A23BF9.6060805@...770...> References: <52A222C8.4030808@...626...> <52A22796.1050402@...1...> <52A23BF9.6060805@...770...> Message-ID: <52A31230.5030102@...2382...> El 06/12/13 22:04, ISS Boss escribi?: > > I agree with John, Beno??t. There really should be a specific character to > continue a line; if only to keep from confusing anyone maintaining the > code. Put it on the 'nice to have' list, anyway. > Bill > Beno??t Minisini wrote, On 12/06/2013 14:37: > > Le 06/12/2013 20:17, John Rose a ??crit : > > Is there a line continuation character available for code? I find that I > often have very long lines (e.g. in Exec commands). > > There is no line continuation character, but you usually can go to > another line inside an expression after a comma. > > Regards, My vote is for underscore _ Regards -- Jesus Guardon From mike.crean at ...2897... Sat Dec 7 13:40:21 2013 From: mike.crean at ...2897... (Mike Crean) Date: Sat, 7 Dec 2013 04:40:21 -0800 (PST) Subject: [Gambas-user] Line continuation In-Reply-To: <52A31230.5030102@...2382...> References: <52A222C8.4030808@...626...> <52A22796.1050402@...1...> <52A23BF9.6060805@...770...> <52A31230.5030102@...2382...> Message-ID: <1386420021.59610.YahooMailNeo@...3249...> Me to. keep it same as?most basic's use underscore On Saturday, 7 December 2013 8:19 PM, Jesus wrote: El 06/12/13 22:04, ISS Boss escribi?: > >? ? I agree with John, Beno??t.? There really should be a specific character to >? ? continue a line; if only to keep from confusing anyone maintaining the >? ? code.? Put it on the 'nice to have' list, anyway. >? ? Bill >? ? Beno??t Minisini wrote, On 12/06/2013 14:37: > > Le 06/12/2013 20:17, John Rose a ??crit : > > Is there a line continuation character available for code? I find that I > often have very long lines (e.g. in Exec commands). > > There is no line continuation character, but you usually can go to > another line inside an expression after a comma. > > Regards, My vote is for underscore _ Regards -- Jesus Guardon ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Sat Dec 7 13:44:54 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 7 Dec 2013 08:14:54 -0430 Subject: [Gambas-user] Matrix resize Message-ID: matrix resie canot be directly, u must make it indirect throught another matrix, by ejample trhought method, like previous m,ail show u with arrays (but dont use that) also dinamyc sizes or matrix cannot be done,, u must use idividual dinamic arrays From mike.crean at ...2897... Sat Dec 7 13:45:22 2013 From: mike.crean at ...2897... (Mike Crean) Date: Sat, 7 Dec 2013 04:45:22 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <1386420322.36630.YahooMailNeo@...3099...> Me to. Keep it the same as most BASIC's use the underscore _ as line extension. ? Regards to all Mike ? PS if you do it, have a merry Christmas From vuott at ...325... Sat Dec 7 14:51:13 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 7 Dec 2013 13:51:13 +0000 (GMT) Subject: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: Message-ID: <1386424273.19688.YahooMailBasic@...3065...> mmm... good, Jussi. So I solved gb.qt4.webkit ! ...but I still have "gb.qt4.opengl" problem. In fact at the end of "~ $ ./configure -C" I obtain: || THESE COMPONENTS ARE DISABLED: || - gb.qt4.opengl || What is the library I must install ? Thanks vuott -------------------------------------------- Sab 7/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... A: "mailing list for gambas users" Data: Sabato 7 dicembre 2013, 12:52 gb.qt4.webkit is used by the IDE and thus it's mandatory. You need to install libqtwebkit-dev. Jussi On Sat, Dec 7, 2013 at 12:56 PM, Ru Vuott wrote: > > > but now at the end of ./configure -C? I have this messages: > > > >? || > >? || THESE COMPONENTS ARE DISABLED: > >? || - gb.qt4.opengl > >? || - gb.qt4.webkit > >? || > > In fact, at the end of "sudo make install"? I obtain these lines: > > ........ > Compiling Networking/WebBrowser/... > gbc: error: Component not found: gb.qt4.webkit > ...... > ...... > Compiling OpenGL/Md2Model/... > FMain.form:8: error: Unknown identifier: GLArea > ..... > ....... > Compiling OpenGL/PDFPresentation/... > FMain.form:7: error: Unknown identifier: GlArea > ..... > ....... > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/vuott/trunk/examples' > make[1]: Leaving directory `/home/vuott/trunk/examples' > Making install in . > make[1]: Entering directory `/home/vuott/trunk' > make[2]: Entering directory `/home/vuott/trunk' > > || > || Unable to compile gambas3 > || > > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/vuott/trunk' > make[1]: Leaving directory `/home/vuott/trunk' > > ----------------------------------- > >???What have I to do ? How can I solve ? > >???Thanks >???vuott > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nemh at ...2007... Sat Dec 7 14:57:38 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sat, 07 Dec 2013 14:57:38 +0100 Subject: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: <1386424273.19688.YahooMailBasic@...3065...> References: <1386424273.19688.YahooMailBasic@...3065...> Message-ID: <52A32952.4000204@...2007...> 2013-12-07 14:51 keltez?ssel, Ru Vuott ?rta: > mmm... good, Jussi. > So I solved gb.qt4.webkit ! ...but I still have "gb.qt4.opengl" problem. > > In fact at the end of "~ $ ./configure -C" I obtain: > > || THESE COMPONENTS ARE DISABLED: > || - gb.qt4.opengl > || > > What is the library I must install ? > > Thanks > vuott > > Install these packages before compiling: bzip2, gettext, kdelibs5-dev, libalure-dev, libbz2-dev, libcurl4-openssl-dev, libdbus-1-dev, libffi-dev, libglew-dev, libgmime-2.6-dev, libgmp-dev, libgnome-keyring-dev, libgsl0-dev, libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev, libgtk2.0-dev, libgtkglext1-dev, libimlib2-dev, libjpeg-dev, libmysqlclient-dev, libncurses5-dev, libopenal-dev, libpangox-1.0-dev, libpcre3-dev, libpng12-dev, libpoppler-private-dev, libpq-dev, libqt4-dev, libqt4-opengl-dev, libqtwebkit-dev, librsvg2-dev, libsdl1.2-dev, libsdl-gfx1.2-dev, libsdl-mixer1.2-dev, libsdl-sound1.2-dev, libsdl-ttf2.0-dev, libsqlite0-dev, libsqlite3-dev, libssl-dev, libv4l-dev, libxml2-dev, libxslt1-dev, libxt-dev, libxtst-dev, linux-libc-dev, llvm-3.2-dev, mesa-common-dev, pkg-config, unixodbc-dev, zlib1g-dev So now install libqt4-opengl-dev package. Kendek From vuott at ...325... Sat Dec 7 17:22:20 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 7 Dec 2013 16:22:20 +0000 (GMT) Subject: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... In-Reply-To: <52A32952.4000204@...2007...> Message-ID: <1386433340.15519.YahooMailBasic@...3065...> Hi Kendek, well, it was enough to install libqt4-opengl-dev package. Thank you very much. vuott -------------------------------------------- Sab 7/12/13, Kende Kriszti?n ha scritto: Oggetto: Re: [Gambas-user] R: R: Again about Gambas-3 on Linux Mint "16"... A: gambas-user at lists.sourceforge.net Data: Sabato 7 dicembre 2013, 14:57 2013-12-07 14:51 keltez?ssel, Ru Vuott ?rta: > mmm... good, Jussi. >???So I solved gb.qt4.webkit !? ...but I still have "gb.qt4.opengl" problem. > > In fact at the end of "~ $ ./configure -C" I obtain: > > || THESE COMPONENTS ARE DISABLED: > || - gb.qt4.opengl > || > > What is the library I must install ? > > Thanks > vuott > > Install these packages before compiling: bzip2, gettext, kdelibs5-dev, libalure-dev, libbz2-dev, libcurl4-openssl-dev, libdbus-1-dev, libffi-dev, libglew-dev, libgmime-2.6-dev, libgmp-dev, libgnome-keyring-dev, libgsl0-dev, libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev, libgtk2.0-dev, libgtkglext1-dev, libimlib2-dev, libjpeg-dev, libmysqlclient-dev, libncurses5-dev, libopenal-dev, libpangox-1.0-dev, libpcre3-dev, libpng12-dev, libpoppler-private-dev, libpq-dev, libqt4-dev, libqt4-opengl-dev, libqtwebkit-dev, librsvg2-dev, libsdl1.2-dev, libsdl-gfx1.2-dev, libsdl-mixer1.2-dev, libsdl-sound1.2-dev, libsdl-ttf2.0-dev, libsqlite0-dev, libsqlite3-dev, libssl-dev, libv4l-dev, libxml2-dev, libxslt1-dev, libxt-dev, libxtst-dev, linux-libc-dev, llvm-3.2-dev, mesa-common-dev, pkg-config, unixodbc-dev, zlib1g-dev So now install libqt4-opengl-dev package. Kendek ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nicholso at ...2533... Sat Dec 7 18:27:46 2013 From: nicholso at ...2533... (MinnesotaJon) Date: Sat, 7 Dec 2013 09:27:46 -0800 (PST) Subject: [Gambas-user] Line continuation In-Reply-To: <52A222C8.4030808@...626...> References: <52A222C8.4030808@...626...> Message-ID: <1386437266667-44582.post@...3046...> If you are using SHELL, you can assign lines to variables. If the string continues on multiple lines, assign the text to string variables, and concatenate those variables. The example below merely shows SHELL accepting a string variable as its command string: DIM sRes as String DIM shellString as String shellString = "cat /proc/meminfo" Shell shellString To sRes If you use EXEC, the flexibility is more limited, as the command cannot be contained in a variable, but the following will work: DIM execString as String DIM sRes as String execString = "/proc/meminfo" Exec ["cat", execString] To sRes -- View this message in context: http://gambas.8142.n7.nabble.com/Line-continuation-tp44561p44582.html Sent from the gambas-user mailing list archive at Nabble.com. From greg.raffaelle at ...2755... Sun Dec 8 02:17:08 2013 From: greg.raffaelle at ...2755... (Greg Raffaelle) Date: Sat, 07 Dec 2013 19:17:08 -0600 Subject: [Gambas-user] Forcenewpage in report component Message-ID: <52A3C894.2070104@...2755...> Thanks Fabien for adding the "ForceNewPage" setting to the report component. I am close to getting the report for my application to look like I want using the new ForceNewPage setting. However I am having problems with the automatic page numbering now. My report consists of X number of pages with tables that are repeated Y number of times with new data each time (the report is then X times Y pages long). For example a report may consist of two pages of data in tables that are repeated three times to create a six page report. The page numbers now only show up on the last X number of pages in the report (the last two pages in the example - the first four pages do not get numbered). Any help fixing this would be appreciated. I have attached the class and report files for the code used to create the report. Thanks, Greg -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: OutputReport.class URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: OutputReport.report URL: From gambas at ...1... Sun Dec 8 10:30:09 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 08 Dec 2013 10:30:09 +0100 Subject: [Gambas-user] Problems reading pdf attachment using pop3 client In-Reply-To: <1385813660691-44465.post@...3046...> References: <1385806775875-44464.post@...3046...> <1385813660691-44465.post@...3046...> Message-ID: <52A43C21.7040508@...1...> Le 30/11/2013 13:14, bill-lancaster a ?crit : > Some further information. > > If I download emails containing pdf files using .Message.ToString() and save > the email to file then try to decode the attachment with-: > > Dim hMimeMessage As MimeMessage > Dim hMimePart As MimePart > Dim sTemp As String > Dialog.Title = "Select a text file" > If Dialog.OpenFile() Then Return > sTemp = File.Load(Dialog.Path) > hMimeMessage = New MimeMessage(sTemp) > For Each hMimePart In hMimeMessage.Part > If hMimePart.Disposition = "attachment" Then > File.Save(User.Home &/ "New Folder" &/ hMimePart.FileName, > Mime.Decode(sTemp, hMimePart.ContentEncoding)) > Endif > Next > > The saved file is unreadable. > kmail however can open the saved email and displays the attachment OK. > > BTW I'm using Gambas 3.5 > You are not doing the right thing: Mime.Decode() is just a decoding routine (like UnBase64$). You don't have to use it, all is done automatically by the "Data" property of the message part. Moreover, a MIME message is a recursive structure. Usually mail clients hides that by displaying the message contents linearly. So you must parse the parts recursively until you find your attachment. Here is an example: --8<-------------------------------------------------------------------- ' Gambas module Private $iLevel As Integer Public Sub Main() Dim hMessage As New MimeMessage ' MyPopMessageData is retrieved (for example) with the ' Pop3Client[].Text property hMessage = New MimeMessage(File.Load(MyPopMessageData)) PrintPart(hMessage.Part) End Public Sub PrintPart(hPart As MimePart) Dim hChild As MimePart Print String$($iLevel, "| "); "| " Print String$($iLevel, "| "); "+-"; If(hPart.Count, "+", "-");; Print hPart;; hPart.ContentType;; hPart.FileName Inc $iLevel For Each hChild In hPart PrintPart(hChild) Next Dec $iLevel If hPart.ContentType = "application/pdf" Then ' I found the PDF attachment! File.Save("~/found-it.pdf", hPart.Data) Endif End --8<-------------------------------------------------------------------- Regards, -- Beno?t Minisini From john.aaron.rose at ...626... Sun Dec 8 14:29:11 2013 From: john.aaron.rose at ...626... (John Rose) Date: Sun, 08 Dec 2013 13:29:11 +0000 Subject: [Gambas-user] Stopping a CLI program Message-ID: <52A47427.9020009@...626...> I want to be able to stop a CLI program (started by an Exec statement) as though the user was keying in a special character from the keyboard. Specifically, I want to stop ffmpeg recording to disk when grabbing streaming video using x11grab. The recording is stopped by the user entering q if the program is started by entering ffmpeg (followed by its parameters) in a Terminal. How is this done in Gambas3? From taboege at ...626... Sun Dec 8 18:00:23 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 8 Dec 2013 18:00:23 +0100 Subject: [Gambas-user] Line continuation In-Reply-To: <1386437266667-44582.post@...3046...> References: <52A222C8.4030808@...626...> <1386437266667-44582.post@...3046...> Message-ID: <20131208170023.GA5905@...2774...> On Sat, 07 Dec 2013, MinnesotaJon wrote: > If you are using SHELL, you can assign lines to variables. If the string > continues on multiple lines, assign the text to string variables, and > concatenate those variables. > The example below merely shows SHELL accepting a string variable as its > command string: > > DIM sRes as String > DIM shellString as String > > shellString = "cat /proc/meminfo" > Shell shellString To sRes > > If you use EXEC, the flexibility is more limited, as the command cannot be > contained in a variable, but the following will work: > > DIM execString as String > DIM sRes as String > execString = "/proc/meminfo" > Exec ["cat", execString] To sRes > Of course, it can: --8<---------------- Dim aExec As String[] Dim sRes As String aExec = ["cat", "/proc/meminfo"] ' Use aExec.Add() to add more arguments Exec aExec To sRes --8<---------------- -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Sun Dec 8 18:06:06 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Dec 2013 19:06:06 +0200 Subject: [Gambas-user] Bug with process events? Message-ID: See attached project. If event is raised something corrupts/event is missed. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: ProcessEventBug-0.0.1.tar.gz Type: application/x-gzip Size: 5278 bytes Desc: not available URL: From taboege at ...626... Sun Dec 8 18:06:39 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 8 Dec 2013 18:06:39 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <52A47427.9020009@...626...> References: <52A47427.9020009@...626...> Message-ID: <20131208170639.GB5905@...2774...> On Sun, 08 Dec 2013, John Rose wrote: > I want to be able to stop a CLI program (started by an Exec statement) > as though the user was keying in a special character from the keyboard. > Specifically, I want to stop ffmpeg recording to disk when grabbing > streaming video using x11grab. The recording is stopped by the user > entering q if the program is started by entering ffmpeg (followed by its > parameters) in a Terminal. How is this done in Gambas3? > I guess you can Print #hFfmpeg, "q" if you opened it For Output... However, in my project, I simply use hFfmpeg.Kill() without losing any information. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at ...626... Sun Dec 8 18:18:02 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Dec 2013 19:18:02 +0200 Subject: [Gambas-user] Bug with process events? In-Reply-To: References: Message-ID: Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. Jussi On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen wrote: > See attached project. If event is raised something corrupts/event is > missed. > > > Jussi > From pinozollo at ...626... Sun Dec 8 21:11:40 2013 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 08 Dec 2013 17:11:40 -0300 Subject: [Gambas-user] How to get the Version of the program ? Message-ID: <52A4D27C.6060802@...626...> Please... is there a way to get/print/put in a string variable the version of the program itself ? Thanks Pino From nemh at ...2007... Sun Dec 8 21:19:05 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sun, 08 Dec 2013 21:19:05 +0100 Subject: [Gambas-user] How to get the Version of the program ? In-Reply-To: <52A4D27C.6060802@...626...> References: <52A4D27C.6060802@...626...> Message-ID: <52A4D439.6010205@...2007...> 2013-12-08 21:11 keltez?ssel, Pino Zollo ?rta: > Please... > > is there a way to get/print/put in a string variable > > the version of the program itself ? > > Thanks > > Pino > > > Print Application.Version Kendek From bill-lancaster at ...2231... Mon Dec 9 14:55:42 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Mon, 9 Dec 2013 05:55:42 -0800 (PST) Subject: [Gambas-user] Problems reading pdf attachment using pop3 client In-Reply-To: <52A43C21.7040508@...1...> References: <1385806775875-44464.post@...3046...> <1385813660691-44465.post@...3046...> <52A43C21.7040508@...1...> Message-ID: <1386597341897-44592.post@...3046...> Thank you Beno?t - it works fine now! -- View this message in context: http://gambas.8142.n7.nabble.com/Problems-reading-pdf-attachment-using-pop3-client-tp44464p44592.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Mon Dec 9 19:16:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 9 Dec 2013 20:16:29 +0200 Subject: [Gambas-user] Bug with process events? In-Reply-To: References: Message-ID: Can someone try to reproduce this with other system? Jussi On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen wrote: > Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. > > Jussi > > > On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen wrote: > >> See attached project. If event is raised something corrupts/event is >> missed. >> >> >> Jussi >> > > From taboege at ...626... Mon Dec 9 19:32:19 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 9 Dec 2013 19:32:19 +0100 Subject: [Gambas-user] Bug with process events? In-Reply-To: References: Message-ID: <20131209183219.GA522@...2774...> On Mon, 09 Dec 2013, Jussi Lahtinen wrote: > Can someone try to reproduce this with other system? > > Jussi > > > On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen wrote: > > > Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. > > > > Jussi > > > > > > On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen wrote: > > > >> See attached project. If event is raised something corrupts/event is > >> missed. > >> > >> > >> Jussi > >> > > Although I don't know what you expect me to report, I get exactly one line asking "what went wrong". I attached a patch that fixes this without having to comment the Raise line out. Seems like Raise is taken by the interpreter as an opportunity to process pending events? I don't know. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: ProcessEventBug-0.0.1~ProcessEventBug-0.0.1.patch Type: text/x-diff Size: 423 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Dec 9 20:30:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 9 Dec 2013 21:30:29 +0200 Subject: [Gambas-user] Bug with process events? In-Reply-To: <20131209183219.GA522@...2774...> References: <20131209183219.GA522@...2774...> Message-ID: > Although I don't know what you expect me to report, I get exactly one line > asking "what went wrong". > > I attached a patch that fixes this without having to comment the Raise line > out. Seems like Raise is taken by the interpreter as an opportunity to > process pending events? I don't know. > Seems that your fix only makes the bug appear more rarely. If you change "Wait 0.1" to "Wait 0.01", you will see that the missing/extra characters appear randomly and more often. What is your operating system? Jussi From gambas at ...2524... Mon Dec 9 22:00:48 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 09 Dec 2013 21:00:48 +0000 Subject: [Gambas-user] Issue 478 in gambas: Right-to-left language support In-Reply-To: <1-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> <0-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7144166956085109315-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #2 on issue 478 by benoit.m... at ...626...: Right-to-left language support http://code.google.com/p/gambas/issues/detail?id=478 Revision #5994 should be far better for TreeView, GridView, ListView, ColumnView, ToolBar, HSplit and VSplit controls. But not perfect yet: there are still problems with column resizing and sorting in TreeView and GridView controls. I join a screenshot of the IDE in arabic. Attachments: gambas-ide-ar.png 284 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 ea7dfh at ...2382... Mon Dec 9 22:38:42 2013 From: ea7dfh at ...2382... (Jesus) Date: Mon, 09 Dec 2013 22:38:42 +0100 Subject: [Gambas-user] Popup menu in project tree Message-ID: <52A63862.1080204@...2382...> Hi all When I right click over an item in the project tree, say "Data" folder, there's not a full menu, so I cannot add a new file or whatever. If such a folder contains a sub-item, then I am able to add another file by right clicking on the sub-item. I don't remember if it was previously this way, so please, can someone check this? I've attached a capture explaining the situation. gambas 3.5.90 r5986 -- Jesus Guardon -------------- next part -------------- A non-text attachment was scrubbed... Name: projectmenu.png Type: image/png Size: 63558 bytes Desc: not available URL: From taboege at ...626... Mon Dec 9 23:05:08 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 9 Dec 2013 23:05:08 +0100 Subject: [Gambas-user] Bug with process events? In-Reply-To: References: <20131209183219.GA522@...2774...> Message-ID: <20131209220508.GD522@...2774...> On Mon, 09 Dec 2013, Jussi Lahtinen wrote: > > Although I don't know what you expect me to report, I get exactly one line > > asking "what went wrong". > > > > I attached a patch that fixes this without having to comment the Raise line > > out. Seems like Raise is taken by the interpreter as an opportunity to > > process pending events? I don't know. > > > > Seems that your fix only makes the bug appear more rarely. > If you change "Wait 0.1" to "Wait 0.01", you will see that the > missing/extra characters appear randomly and more often. > Confirm! > What is your operating system? > Arch Linux. From tercoide at ...67... Tue Dec 10 00:17:16 2013 From: tercoide at ...67... (terco IDE) Date: Mon, 9 Dec 2013 23:17:16 +0000 Subject: [Gambas-user] FW: Matrix resize In-Reply-To: References: , Message-ID: I prefer the Jussi aproach, because a lot of code is already wrtitten with [row,col] format and is easier to read. I hope that works for Public arrays! Thanks Martin > Subject: Re: [Gambas-user] Matrix resize > To: mailing list for gambas users > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > You can use arrays of array > > > private MyArray as new Object[] > > Public sub _New() > ResizeMyArray(MyArray,15,12) > end > > > > Public sub ResizeMyArray(hMyArray as Object[], X as integer, y as integer) > > hMyArray.Resize(X) > > For i = 0 to hMyArray.max > if hMyArray [i] then > hMyArray[i].Resize(y) > else > hMyArray[i] = new Integer[Y] > endif > next > > > > For the call : > > value = MyArray[1][2] > > > 2013/12/5 Jussi Lahtinen : > > Unfortunately this is missing feature from Gambas. Maybe Benoit has reason > > for it, I don't know. > > > > However here is code for resizing 2D arrays: > > > > Private Function Resize2DArray(hArray As Object, SizeX As Integer, SizeY As > > Integer) As Object > > > > Dim hNewArray As Object = Object.New(Object.Type(hArray), [SizeX, SizeY]) > > Dim ii As Integer, jj As Integer > > > > For ii = 0 To Min(hNewArray.Bounds[0], hArray.Bounds[0]) - 1 > > For jj = 0 To Min(hNewArray.Bounds[1], hArray.Bounds[1]) - 1 > > hNewArray[ii, jj] = hArray[ii, jj] > > Next > > Next > > > > Return hNewArray > > > > End > > > > > > And here is how to use it: > > > > Dim iMyArray As New Integer[5, 5] > > > > iMyArray = Resize2DArray(iMyArray, 10, 10) > > > > > > As it's not native method, it's not that fast, but fortunately Gambas is > > *very* often fast enough! > > > > > > Jussi > > > > > > > > On Thu, Dec 5, 2013 at 2:20 PM, terco IDE wrote: > > > >> First of everything: BIG thanks to Benoit for creating Gambas! > >> > >> Is there any workaround for resizing matrices? > >> > >> rigth now, I'm using this code > >> > >> notMatrix.Resize(100*200) ' 100 rows, 200 cols > >> > >> ' get element [row,col] > >> > >> x = notMatrix[col + row*200] > >> > >> , and on a big program, code get's really dirty > >> > >> > >> Thanks! > >> > >> > >> Saludos > >> Martin > >> > >> From gambas at ...1... Tue Dec 10 02:46:54 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 10 Dec 2013 02:46:54 +0100 Subject: [Gambas-user] Bug with process events? In-Reply-To: References: Message-ID: <52A6728E.2020900@...1...> Le 08/12/2013 18:06, Jussi Lahtinen a ?crit : > See attached project. If event is raised something corrupts/event is missed. > > > Jussi > > EXEC ... TO (and SHELL ... TO) calls the event loop, so by using it inside the "Something" event handler, you are calling the event loop recursively, and an inner Process_Read is called while the outer is not yet terminated. Just put a breakpoint on your "What went wrong" message and look at the stack backtrace. The first character is not yet added to Main.sWord, while all the inner Process_Read are called as the event is raised before, so that first character is missing when reaching the end test. Just put the Raise Something after adding the character to Main.sWord, for example. I can't help you more without knowing exactly what you want to achieve. -- Beno?t Minisini From john.aaron.rose at ...626... Tue Dec 10 09:44:04 2013 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 10 Dec 2013 08:44:04 +0000 Subject: [Gambas-user] Line continuation Message-ID: <52A6D454.4090609@...626...> Tobias, I liked your ideas of: Dim aExec As String[] Dim sRes As String aExec = ["cat", "/proc/meminfo"] ' Use aExec.Add() to add more arguments Exec aExec To sRes and (thread 'Stopping a CLI program): Print #hFfmpeg, "q" if you opened it For Output... Currently I have: Private hffmpeg as Process Private sOutput As String ... Dim aExec As String ... aExec = ["ffmpeg"] aExec.Add("-f x11grab") aExec.Add("-s " & iScreenWidth & "x" & iScreenHeight) aExec.Add("-i :0.0+" & iScreenLeft & "," & iScreenTop & "+nomouse") aExec.Add("-f pulse") aExec.Add("-i " & "$(pactl list | grep -A2 '^Source #' | grep 'Name: .*\\.monitor$' | awk '{print $NF}' | tail -n1)") aExec.Add("-f " & sFileFormat) aExec.Add("-vcodec" & svcodec) aExec.Add("-r 25") aExec.Add("-vb 1024k") aExec.Add("-acodec" & sacodec) aExec.Add("-ac 2") aExec.Add("-ab 128k") aExec.Add("-async 1") aExec.Add("-threads " & bThreads) aExec.Add("-y") aExec.Add(sVideoPath) hffmpeg = Exec aExec Wait For Read As "Messages" ... Public Sub Messages_Read() Dim sLine As String Read #Last, sLine, -256 sOutput &= sLine End Public Sub Messages_Kill() Print sOutput End ... Ideally, I'd like to add "Write" to the Exec line (as it seems to me that it won't go wrong if ffmpeg 'corrupts' the output file in comparison to using"hffmpeg.Kill()") , so that I can use (in a Stop button's click event): Print #hffmpeg, "q" However, I can't get the syntax right. I've tried 'Write' after 'For', 'Write' after 'Messages', 'For Write' between 'aExec' & 'For'. Is it possible to do this? I don't understand the explanation of using Input instead of Read & Output instead of Write (i.e. "If you use the *INPUT* and *OUTPUT* keywords instead of *READ* and *WRITE*, then the process is executed inside a virtual terminal. The process will think running inside a true terminal.virtual terminal."). What are the implications of this, e.g. for my app? From jussi.lahtinen at ...626... Tue Dec 10 14:19:33 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 10 Dec 2013 15:19:33 +0200 Subject: [Gambas-user] Bug with process events? In-Reply-To: <52A6728E.2020900@...1...> References: <52A6728E.2020900@...1...> Message-ID: Hmmm... not sure I understood correctly. Why then it doesn't fail every time? Anyway, what I'm really trying to do is raise event (when signal arises from another program), but wait until the system is IDLE. Here is the IDLE detection code: Do Exec ["xprintidle"] To sTmp Sleep 0.25 Loop Until CLong(Trim$(sTmp)) > WaitIDLE Or bClosing = True I don't know where to put it without causing problems. Also I don't know any other proper IDLE detection method. Jussi On Tue, Dec 10, 2013 at 3:46 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 08/12/2013 18:06, Jussi Lahtinen a ?crit : > > See attached project. If event is raised something corrupts/event is > missed. > > > > > > Jussi > > > > > > EXEC ... TO (and SHELL ... TO) calls the event loop, so by using it > inside the "Something" event handler, you are calling the event loop > recursively, and an inner Process_Read is called while the outer is not > yet terminated. > > Just put a breakpoint on your "What went wrong" message and look at the > stack backtrace. > > The first character is not yet added to Main.sWord, while all the inner > Process_Read are called as the event is raised before, so that first > character is missing when reaching the end test. > > Just put the Raise Something after adding the character to Main.sWord, > for example. > > I can't help you more without knowing exactly what you want to achieve. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Tue Dec 10 14:33:28 2013 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 10 Dec 2013 13:33:28 +0000 Subject: [Gambas-user] Obtaining Sound Output Monitor's Name Message-ID: <52A71828.8050002@...626...> I'm trying to obtain the sound output monitor's name (as a string using the Shell command) for later use in an Exec command (calling ffmpeg). Running the appropriate command in a Terminal gives: john at ...2811...:~$ pactl list | grep -A2 '^Source #' | grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1 alsa_output.pci-0000_00_1b.0.analog-stereo.monitor I have Gambas code for opening FMain form as: Dim sSoundMonitorExtractor As String Me.Center() sSoundMonitorExtractor = Shell$("pactl list | grep -A2 '^Source #' | grep 'Name: .*\\.monitor$' | awk '{print $NF}' | tail -n1") Shell sSoundMonitorExtractor To sSoundMonitor Print "Sound Monitor = " & sSoundMonitor I have 2 backslashes in the Shell$'s string as otherwise the compiler objects. When I run the Gambas executable, the Console displays: Sound Monitor = I.e. sSoundMonitor is not set. What am I doing wrong? Regards, John From john.aaron.rose at ...626... Tue Dec 10 14:49:38 2013 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 10 Dec 2013 13:49:38 +0000 Subject: [Gambas-user] Stopping a CLI program Message-ID: <52A71BF2.406@...626...> Tobias, I just realised that a post that I made on the 'Line continuation' thread is better in this thread. The details are: I liked your ideas of: Dim aExec As String[] Dim sRes As String aExec = ["cat", "/proc/meminfo"] ' Use aExec.Add() to add more arguments Exec aExec To sRes and (thread 'Stopping a CLI program): Print #hFfmpeg, "q" if you opened it For Output... Currently I have: Private hffmpeg as Process Private sOutput As String ... Dim aExec As String ... aExec = ["ffmpeg"] aExec.Add("-f x11grab") aExec.Add("-s " & iScreenWidth & "x" & iScreenHeight) aExec.Add("-i :0.0+" & iScreenLeft & "," & iScreenTop & "+nomouse") aExec.Add("-f pulse") aExec.Add("-i " & "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor") aExec.Add("-f " & sFileFormat) aExec.Add("-vcodec" & svcodec) aExec.Add("-r 25") aExec.Add("-vb 1024k") aExec.Add("-acodec" & sacodec) aExec.Add("-ac 2") aExec.Add("-ab 128k") aExec.Add("-async 1") aExec.Add("-threads " & bThreads) aExec.Add("-y") aExec.Add(sVideoPath) hffmpeg = Exec aExec Wait For Read As "Messages" ... Public Sub Messages_Read() Dim sLine As String Read #Last, sLine, -256 sOutput &= sLine End Public Sub Messages_Kill() Print sOutput End ... Ideally, I'd like to add "Write" to the Exec line (as it seems to me that it won't go wrong if ffmpeg 'corrupts' the output file in comparison to using"hffmpeg.Kill()") , so that I can use (in a Stop button's click event): Print #hffmpeg, "q" However, I can't get the syntax right. I've tried 'Write' after 'For', 'Write' after 'Messages', 'For Write' between 'aExec' & 'For'. Is it possible to do this? I don't understand the explanation of using Input instead of Read & Output instead of Write (i.e. "If you use the *INPUT* and *OUTPUT* keywords instead of *READ* and *WRITE*, then the process is executed inside a virtual terminal. The process will think running inside a true terminal.virtual terminal."). What are the implications of this, e.g. for my app? -- Regards, John From gambas at ...1... Tue Dec 10 15:01:41 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 10 Dec 2013 15:01:41 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <52A71BF2.406@...626...> References: <52A71BF2.406@...626...> Message-ID: <52A71EC5.2070504@...1...> Le 10/12/2013 14:49, John Rose a ?crit : > Tobias, > I just realised that a post that I made on the 'Line continuation' > thread is better in this thread. The details are: > I liked your ideas of: > Dim aExec As String[] > Dim sRes As String > aExec = ["cat", "/proc/meminfo"] > ' Use aExec.Add() to add more arguments > Exec aExec To sRes ---> It is faster and shorter to do: sRes = File.Load("/proc/meminfo") -- Beno?t Minisini From pinozollo at ...626... Tue Dec 10 20:15:00 2013 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 10 Dec 2013 16:15:00 -0300 Subject: [Gambas-user] Gambas3 crash Message-ID: <52A76834.4040909@...626...> While adding a component...in the process of converting a Gambas2 program Gambas3 crashes ...see the attached image Thanks Pino -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas3_Crash.jpg Type: image/jpeg Size: 36814 bytes Desc: not available URL: From nicholso at ...2533... Tue Dec 10 20:42:16 2013 From: nicholso at ...2533... (MinnesotaJon) Date: Tue, 10 Dec 2013 11:42:16 -0800 (PST) Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <52A71EC5.2070504@...1...> References: <52A71BF2.406@...626...> <52A71EC5.2070504@...1...> Message-ID: <1386704535968-44615.post@...3046...> Right -- my fault! When I suggested the example "/proc/meminfo", I was just looking for any script example, to discuss using string variables in SHELL and EXEC for very long command strings. Tobias provided the coolest option to do that job. But you've pointed out that I could have chosen a better example. Jon -- View this message in context: http://gambas.8142.n7.nabble.com/Stopping-a-CLI-program-tp44612p44615.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Tue Dec 10 21:06:40 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 10 Dec 2013 21:06:40 +0100 Subject: [Gambas-user] Obtaining Sound Output Monitor's Name In-Reply-To: <52A71828.8050002@...626...> References: <52A71828.8050002@...626...> Message-ID: <20131210200640.GB474@...2774...> On Tue, 10 Dec 2013, John Rose wrote: > I'm trying to obtain the sound output monitor's name (as a string using > the Shell command) for later use in an Exec command (calling ffmpeg). > > Running the appropriate command in a Terminal gives: > john at ...2811...:~$ pactl list | grep -A2 '^Source #' | grep 'Name: > .*\.monitor$' | awk '{print $NF}' | tail -n1 > alsa_output.pci-0000_00_1b.0.analog-stereo.monitor > > I have Gambas code for opening FMain form as: > Dim sSoundMonitorExtractor As String > Me.Center() > sSoundMonitorExtractor = Shell$("pactl list | grep -A2 '^Source #' | > grep 'Name: .*\\.monitor$' | awk '{print $NF}' | tail -n1") > Shell sSoundMonitorExtractor To sSoundMonitor > Print "Sound Monitor = " & sSoundMonitor > > I have 2 backslashes in the Shell$'s string as otherwise the compiler > objects. When I run the Gambas executable, the Console displays: > Sound Monitor = > I.e. sSoundMonitor is not set. What am I doing wrong? > Shell$() is there to quote arguments, not entire commands. Just look at $ gbx3 -e 'Shell$("pactl list")' pactl\ list so you will execute "pactl\ list" which will be interpreted by the shell as a program named "pactl list" which is *not* the program "pactl", called with argument "list". Shell$() is there to sanitise user input. Leave it away and it should work (so far). Regards, Tobi From taboege at ...626... Tue Dec 10 21:42:35 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 10 Dec 2013 21:42:35 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <52A71BF2.406@...626...> References: <52A71BF2.406@...626...> Message-ID: <20131210204235.GC474@...2774...> On Tue, 10 Dec 2013, John Rose wrote: > Tobias, > I just realised that a post that I made on the 'Line continuation' > thread is better in this thread. The details are: > I liked your ideas of: > Dim aExec As String[] > Dim sRes As String > aExec = ["cat", "/proc/meminfo"] > ' Use aExec.Add() to add more arguments > Exec aExec To sRes > > and (thread 'Stopping a CLI program): > Print #hFfmpeg, "q" > if you opened it For Output... > > Currently I have: > Private hffmpeg as Process > Private sOutput As String > ... > Dim aExec As String > ... > aExec = ["ffmpeg"] > aExec.Add("-f x11grab") > aExec.Add("-s " & iScreenWidth & "x" & iScreenHeight) > aExec.Add("-i :0.0+" & iScreenLeft & "," & iScreenTop & "+nomouse") > aExec.Add("-f pulse") > aExec.Add("-i " & "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor") > aExec.Add("-f " & sFileFormat) > aExec.Add("-vcodec" & svcodec) > aExec.Add("-r 25") > aExec.Add("-vb 1024k") > aExec.Add("-acodec" & sacodec) > aExec.Add("-ac 2") > aExec.Add("-ab 128k") > aExec.Add("-async 1") > aExec.Add("-threads " & bThreads) > aExec.Add("-y") > aExec.Add(sVideoPath) > hffmpeg = Exec aExec Wait For Read As "Messages" > ... > Public Sub Messages_Read() > Dim sLine As String > Read #Last, sLine, -256 > sOutput &= sLine > End > Public Sub Messages_Kill() > Print sOutput > End > ... > > Ideally, I'd like to add "Write" to the Exec line (as it seems to me that it won't go wrong if ffmpeg 'corrupts' the output file in comparison to using"hffmpeg.Kill()") , so that I can use (in a Stop button's click event): > Print #hffmpeg, "q" > I don't understand anything. > However, I can't get the syntax right. I've tried 'Write' after 'For', 'Write' after 'Messages', 'For Write' between 'aExec' & 'For'. Is it possible to do this? > > I don't understand the explanation of using Input instead of Read & > Output instead of Write (i.e. "If you use the *INPUT* and *OUTPUT* > keywords instead of *READ* and *WRITE*, then the process is executed > inside a virtual terminal. The process will think running inside a true > terminal.virtual terminal."). What are the implications of this, e.g. > for my app? I attached a program that stops ffmpeg printing "q" to it. Hope it helps... Regards, Tobi From taboege at ...626... Tue Dec 10 21:44:17 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 10 Dec 2013 21:44:17 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <20131210204235.GC474@...2774...> References: <52A71BF2.406@...626...> <20131210204235.GC474@...2774...> Message-ID: <20131210204417.GD474@...2774...> On Tue, 10 Dec 2013, Tobias Boege wrote: > I attached a program that stops ffmpeg printing "q" to it. Hope it helps... ... and here comes the attachment. -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-print-q-0.0.1.tar.gz Type: application/octet-stream Size: 5051 bytes Desc: not available URL: From vuott at ...325... Tue Dec 10 23:15:54 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 10 Dec 2013 22:15:54 +0000 (GMT) Subject: [Gambas-user] Error when I want to activate a component.... Message-ID: <1386713754.670.YahooMailBasic@...3070...> Hello, surprisingly, when I open the window components (Project-->Property-->Components), the following error warning appears: [13] Null object. GridView.ColumnAt.1705 And then by clicking button OK of warning window the program crashes. ........why this error ? Regards. vuott From gambas at ...1... Wed Dec 11 00:13:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 11 Dec 2013 00:13:00 +0100 Subject: [Gambas-user] Error when I want to activate a component.... In-Reply-To: <1386713754.670.YahooMailBasic@...3070...> References: <1386713754.670.YahooMailBasic@...3070...> Message-ID: <52A79FFC.8090201@...1...> Le 10/12/2013 23:15, Ru Vuott a ?crit : > Hello, > > surprisingly, when I open the window components (Project-->Property-->Components), the following error warning appears: > > [13] Null object. > GridView.ColumnAt.1705 > > > And then by clicking button OK of warning window the program crashes. > > ........why this error ? > > > Regards. > vuott > This is fixed in revision #5995. Please always tell which version of Gambas you use exactly! Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 11 00:13:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 11 Dec 2013 00:13:29 +0100 Subject: [Gambas-user] Gambas3 crash In-Reply-To: <52A76834.4040909@...626...> References: <52A76834.4040909@...626...> Message-ID: <52A7A019.6000304@...1...> Le 10/12/2013 20:15, Pino Zollo a ?crit : > While adding a component...in the process of converting a Gambas2 program > > Gambas3 crashes ...see the attached image > > > Thanks > > Pino > > Please tell which version of Gambas you use exactly. Regards, -- Beno?t Minisini From vuott at ...325... Wed Dec 11 09:39:56 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 11 Dec 2013 08:39:56 +0000 (GMT) Subject: [Gambas-user] Error when I want to activate a component.... In-Reply-To: <52A79FFC.8090201@...1...> Message-ID: <1386751196.58262.YahooMailBasic@...3064...> > Please always tell which version of Gambas you use exactly! Oh yes, excuse me, Beno?t, I forgot. bye vuott -------------------------------------------- Mer 11/12/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Error when I want to activate a component.... A: "mailing list for gambas users" Data: Mercoled? 11 dicembre 2013, 00:13 Le 10/12/2013 23:15, Ru Vuott a ?crit : > Hello, > > surprisingly, when I open the window components (Project-->Property-->Components), the following error warning appears: > >? ???[13] Null object. >? ???GridView.ColumnAt.1705 > > > And then by clicking? button OK of warning window the program crashes. > > ........why this error ? > > > Regards. > vuott > This is fixed in revision #5995. Please always tell which version of Gambas you use exactly! Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sudeeppgm at ...626... Wed Dec 11 09:57:28 2013 From: sudeeppgm at ...626... (sudeep damodaran) Date: Wed, 11 Dec 2013 14:27:28 +0530 Subject: [Gambas-user] Error when I want to activate a component.... In-Reply-To: <1386751196.58262.YahooMailBasic@...3064...> References: <52A79FFC.8090201@...1...> <1386751196.58262.YahooMailBasic@...3064...> Message-ID: Hi guys This is sudeep. Im going to learn gambas .i hope i will get help from all Thankz n regards Sudeep On Dec 11, 2013 2:10 PM, "Ru Vuott" wrote: > > Please always tell which version of Gambas you use exactly! > > Oh yes, excuse me, Beno?t, I forgot. > > bye > vuott > > > > > -------------------------------------------- > Mer 11/12/13, Beno?t Minisini ha scritto: > > Oggetto: Re: [Gambas-user] Error when I want to activate a component.... > A: "mailing list for gambas users" > Data: Mercoled? 11 dicembre 2013, 00:13 > > Le 10/12/2013 23:15, Ru Vuott a > ?crit : > > Hello, > > > > surprisingly, when I open the window components > (Project-->Property-->Components), the following error > warning appears: > > > > [13] Null object. > > GridView.ColumnAt.1705 > > > > > > And then by clicking button OK of warning window > the program crashes. > > > > ........why this error ? > > > > > > Regards. > > vuott > > > > This is fixed in revision #5995. > > Please always tell which version of Gambas you use exactly! > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Wed Dec 11 10:18:35 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 11 Dec 2013 09:18:35 +0000 (GMT) Subject: [Gambas-user] Error when I want to activate a component.... In-Reply-To: <52A79FFC.8090201@...1...> Message-ID: <1386753515.61589.YahooMailBasic@...3063...> > This is fixed in revision #5995. Yes, now it works. Regards vuott From john.aaron.rose at ...626... Wed Dec 11 10:38:51 2013 From: john.aaron.rose at ...626... (John Rose) Date: Wed, 11 Dec 2013 09:38:51 +0000 Subject: [Gambas-user] Stopping a CLI program Message-ID: <52A832AB.300@...626...> Tobias, Thanks for your example. I've now got the Exec's termination working OK. Below is an extract from my code: Private aExec As String[] Private sOutput As String Private hffmpeg As Process hffmpeg = Exec aExec Wait For Input Output As "ffmpegMessages" Public Sub ffmpegMessages_Read() Dim sLine As String Read #Last, sLine, -256 sOutput &= sLine End Public Sub ffmpegMessages_Kill() Print "ffmpeg Output = " Print sOutput End Public Sub ButtonStop_Click() If hffmpeg.State = Process.Running Then Print #hffmpeg, "q" At run time: 1. aExec was equal to ["ffmpeg", "-f x11grab",.....]. Thus, the first parameter was "-f x11grab") which was displayed by ffmpeg as unrecognised (even though running "ffmpeg -f x11grab ......." is OK. The setting of the value in aExec was done by: aExec = ["ffmpeg"] aExec.Add("-f x11grab") etc I think that I've seen something like this before with Exec but I don't remember the reason or solution. Any ideas? 2. The Kill routine above was executed. At run time, there was an error caused by the last line being: If hffmpeg and hffmpeg.State = Process.Running Then Print #hffmpeg, "q" So I removed the first hffmpeg & it was OK at runtime. 3. I wanted to incorporate: Public Sub ffmpegMessages_Error(sError) Print "ffmpeg Error = " Print sError End but the compiler objected. Any ideas? -- Regards, John From taboege at ...626... Wed Dec 11 12:38:59 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 11 Dec 2013 12:38:59 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <52A832AB.300@...626...> References: <52A832AB.300@...626...> Message-ID: <20131211113859.GE474@...2774...> On Wed, 11 Dec 2013, John Rose wrote: > Tobias, > > Thanks for your example. I've now got the Exec's termination working OK. > Below is an extract from my code: > Private aExec As String[] > Private sOutput As String > Private hffmpeg As Process > hffmpeg = Exec aExec Wait For Input Output As "ffmpegMessages" > Public Sub ffmpegMessages_Read() > Dim sLine As String > Read #Last, sLine, -256 > sOutput &= sLine > End > Public Sub ffmpegMessages_Kill() > Print "ffmpeg Output = " > Print sOutput > End > Public Sub ButtonStop_Click() > If hffmpeg.State = Process.Running Then Print #hffmpeg, "q" > > At run time: > 1. aExec was equal to ["ffmpeg", "-f x11grab",.....]. Thus, the first > parameter was "-f x11grab") which was displayed by ffmpeg as > unrecognised (even though running "ffmpeg -f x11grab ......." is OK. > The setting of the value in aExec was done by: > aExec = ["ffmpeg"] > aExec.Add("-f x11grab") > etc > I think that I've seen something like this before with Exec but I don't > remember the reason or solution. Any ideas? > I'm tired of explaining this... Is the documentation really _that_ unclear? You have to put one argument into one field of the array, thus: ["ffmpeg", "-f", "x11grab"] is the correct array. > 2. The Kill routine above was executed. At run time, there was an error > caused by the last line being: > If hffmpeg and hffmpeg.State = Process.Running Then Print #hffmpeg, "q" > So I removed the first hffmpeg & it was OK at runtime. > Oh, there was an error? Your chances to not annoy people are better if you also write down _what_ error it was. The idea is to save us the time to write your code into one of our projects to see it... The reason is that you wrote "hffmpeg and hffmpeg.State = Process.Running". In Gambas, the And operator "pulls stronger" than the equals operator because And is a binary operator in Gambas. So your code is equivalent to (hffmpeg And hffmpeg.State) = Process.Running and hffmpeg is an object which you cannot AND bitwise. Thus the error. However, Gambas also knows some kind logical AND (which pulls weaker than equals) with expressions which is called And If, so it would be correct to write: If hffmpeg And If hffmpeg.State = Process.Running Then ... Attached is also a patch to the project I sent you because I am also prone to this kind of error ;-) > 3. I wanted to incorporate: > Public Sub ffmpegMessages_Error(sError) > Print "ffmpeg Error = " > Print sError > End > but the compiler objected. Any ideas? Same thing here... I am not a Gambas compiler so I may not see the error immediately. At least write down the error you get so we get a hint! However, I suspect the error is because sError didn't get any type. Have you ever written a function in Gambas? Every argument needs a type, so write: Public Sub ffmpegMessages_Error(sError As String) ' ... End Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Wed Dec 11 12:54:13 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 11 Dec 2013 12:54:13 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <20131211113859.GE474@...2774...> References: <52A832AB.300@...626...> <20131211113859.GE474@...2774...> Message-ID: <20131211115413.GF474@...2774...> On Wed, 11 Dec 2013, Tobias Boege wrote: > On Wed, 11 Dec 2013, John Rose wrote: > > Tobias, > > > > Thanks for your example. I've now got the Exec's termination working OK. > > Below is an extract from my code: > > Private aExec As String[] > > Private sOutput As String > > Private hffmpeg As Process > > hffmpeg = Exec aExec Wait For Input Output As "ffmpegMessages" > > Public Sub ffmpegMessages_Read() > > Dim sLine As String > > Read #Last, sLine, -256 > > sOutput &= sLine > > End > > Public Sub ffmpegMessages_Kill() > > Print "ffmpeg Output = " > > Print sOutput > > End > > Public Sub ButtonStop_Click() > > If hffmpeg.State = Process.Running Then Print #hffmpeg, "q" > > > > At run time: > > 1. aExec was equal to ["ffmpeg", "-f x11grab",.....]. Thus, the first > > parameter was "-f x11grab") which was displayed by ffmpeg as > > unrecognised (even though running "ffmpeg -f x11grab ......." is OK. > > The setting of the value in aExec was done by: > > aExec = ["ffmpeg"] > > aExec.Add("-f x11grab") > > etc > > I think that I've seen something like this before with Exec but I don't > > remember the reason or solution. Any ideas? > > > > I'm tired of explaining this... Is the documentation really _that_ unclear? > You have to put one argument into one field of the array, thus: > > ["ffmpeg", "-f", "x11grab"] > > is the correct array. > > > 2. The Kill routine above was executed. At run time, there was an error > > caused by the last line being: > > If hffmpeg and hffmpeg.State = Process.Running Then Print #hffmpeg, "q" > > So I removed the first hffmpeg & it was OK at runtime. > > > > Oh, there was an error? Your chances to not annoy people are better if you > also write down _what_ error it was. The idea is to save us the time to > write your code into one of our projects to see it... > > The reason is that you wrote "hffmpeg and hffmpeg.State = Process.Running". > In Gambas, the And operator "pulls stronger" than the equals operator > because And is a binary operator in Gambas. So your code is equivalent to I meant to say: And is a *bitwise* operator in Gambas. > > Attached is also a patch to the project I sent you because I am also prone > to this kind of error ;-) > ... and the attachment. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-print-q-0.0.1~ffmpeg-print-q-0.0.1.patch Type: text/x-diff Size: 467 bytes Desc: not available URL: From john.aaron.rose at ...626... Wed Dec 11 14:16:25 2013 From: john.aaron.rose at ...626... (John Rose) Date: Wed, 11 Dec 2013 13:16:25 +0000 Subject: [Gambas-user] Stopping a CLI program Message-ID: <52A865A9.8040109@...626...> Tobias, Thank you for your reply. The reason for my using "-f x11grab" as one parameter (rather than 2 parameters of "-f" & "x11grab") to the Exec command is that I was thinking of that string as being one parameter to ffmpeg. It would help if the documentation had an Exec example with these type of parameters as Unix command line programs often use parameters consisting of a hyphen followed by a letter followed by a value. Re If hffmpeg and hffmpeg.State = Process.Running Then Print #hffmpeg, "q", the error was "Type mismatch" & I forget the rest. I should have put this in my posting. I didn't understand what I should change this code to from your reply: The reason is that you wrote "hffmpeg and hffmpeg.State = Process.Running". In Gambas, the And operator "pulls stronger" than the equals operator because And is a binary operator in Gambas. So your code is equivalent to I meant to say: And is a*bitwise* operator in Gambas. Public Sub ffmpegMessages_Error(sError As String) solved the compilation problem with Public Sub ffmpegMessages_Error(sError). I looked up the documentation on Error and it said that "EVENT *Error* ( _Error_ AS String )" which I incorrectly interpreted as meaning that the type of Error is automatically String and thus that there is no need to specify its type. This is due to my not being sufficiently acquainted with event driven / OO languages. Re your comments of "I'm tired of explaining this... Is the documentation really _that_ unclear?", "Oh, there was an error? Your chances to not annoy people are better if you also write down _what_ error it was. ", and "Have you ever written a function in Gambas?": these sort of comments can come across as sarcasm & insults which may lead to heated conversations. Please remember that many of the people using Gambas at home are not professional developers e.g. I have not done any development at work for approx 30 years - I was a Business & Systems Analyst as well as a University Lecturer in Information Systems. At work, I often saw developers make this type of comment to end users & I had to calm things down as otherwise all co-operation from those users would have gone. Perhaps there should be 2 mailing lists: one for professional developers & one for non-professional developers. -- Regards, John From taboege at ...626... Wed Dec 11 15:19:21 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 11 Dec 2013 15:19:21 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <52A865A9.8040109@...626...> References: <52A865A9.8040109@...626...> Message-ID: <20131211141921.GG474@...2774...> On Wed, 11 Dec 2013, John Rose wrote: > Tobias, > > Thank you for your reply. > > The reason for my using "-f x11grab" as one parameter (rather than 2 > parameters of "-f" & "x11grab") to the Exec command is that I was > thinking of that string as being one parameter to ffmpeg. It would help > if the documentation had an Exec example with these type of parameters > as Unix command line programs often use parameters consisting of a > hyphen followed by a letter followed by a value. > There is. To the bottom of the page, we have Exec ["ls", "-la", "/tmp"] Wait which is exactly this pattern. Regards, Tobi From taboege at ...626... Wed Dec 11 15:28:36 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 11 Dec 2013 15:28:36 +0100 Subject: [Gambas-user] Stopping a CLI program In-Reply-To: <20131211141921.GG474@...2774...> References: <52A865A9.8040109@...626...> <20131211141921.GG474@...2774...> Message-ID: <20131211142836.GI474@...2774...> On Wed, 11 Dec 2013, Tobias Boege wrote: > On Wed, 11 Dec 2013, John Rose wrote: > > Tobias, > > > > Thank you for your reply. > > > > The reason for my using "-f x11grab" as one parameter (rather than 2 > > parameters of "-f" & "x11grab") to the Exec command is that I was > > thinking of that string as being one parameter to ffmpeg. It would help > > if the documentation had an Exec example with these type of parameters > > as Unix command line programs often use parameters consisting of a > > hyphen followed by a letter followed by a value. > > > > There is. To the bottom of the page, we have > > Exec ["ls", "-la", "/tmp"] Wait > > which is exactly this pattern. > Oh! No, it isn't _exactly_ this pattern, as "/tmp" is a parameter to the program itself, not a value to an option to the program... I will add an explanation... Regards, Tobi From bill-lancaster at ...2231... Wed Dec 11 18:08:13 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 11 Dec 2013 09:08:13 -0800 (PST) Subject: [Gambas-user] Blob type and segmentation error Message-ID: <1386781693348-44631.post@...3046...> I have a mysql table with a blob type field, this seems to cause Segmentation Fault (11) or Aborted(6) crashes. Is this a known problem? (other postings seem to suggest this) Or is there a work-around? -- View this message in context: http://gambas.8142.n7.nabble.com/Blob-type-and-segmentation-error-tp44631.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Wed Dec 11 18:25:23 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 11 Dec 2013 18:25:23 +0100 Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <1386781693348-44631.post@...3046...> References: <1386781693348-44631.post@...3046...> Message-ID: <20131211172523.GJ474@...2774...> On Wed, 11 Dec 2013, bill-lancaster wrote: > I have a mysql table with a blob type field, this seems to cause Segmentation > Fault (11) or Aborted(6) crashes. > Is this a known problem? (other postings seem to suggest this) > Or is there a work-around? > I have written a program which stores Blobs via MySQL and never had such a problem. It's quite some time since I saw that program in action (because it runs at my former school) but I maintained the project until summer this year, so I can empirically confirm that there is no problem for relatively recent Gambas versions. Regards, Tobi From gambas at ...1... Wed Dec 11 18:10:05 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 11 Dec 2013 18:10:05 +0100 Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <1386781693348-44631.post@...3046...> References: <1386781693348-44631.post@...3046...> Message-ID: <52A89C6D.1080600@...1...> Le 11/12/2013 18:08, bill-lancaster a ?crit : > I have a mysql table with a blob type field, this seems to cause Segmentation > Fault (11) or Aborted(6) crashes. > Is this a known problem? (other postings seem to suggest this) > Or is there a work-around? > I can't read mind. I need all details about your system, a project that reproduces the bug, or at least a valgrind log, or at least a stack backtrace, as explained on the website. Regards, -- Beno?t Minisini From ea7dfh at ...2382... Wed Dec 11 23:52:54 2013 From: ea7dfh at ...2382... (Jesus) Date: Wed, 11 Dec 2013 23:52:54 +0100 Subject: [Gambas-user] Popup menu in project tree In-Reply-To: <52A63862.1080204@...2382...> References: <52A63862.1080204@...2382...> Message-ID: <52A8ECC6.3090302@...2382...> El 09/12/13 22:38, Jesus escribi?: > Hi all > > When I right click over an item in the project tree, say "Data" folder, > there's not a full menu, so I cannot add a new file or whatever. If such > a folder contains a sub-item, then I am able to add another file by > right clicking on the sub-item. > > I don't remember if it was previously this way, so please, can someone > check this? I've attached a capture explaining the situation. > > gambas 3.5.90 r5986 > Could anyone check this? I'm afraid if I was the only one affected by this issue... Regards -- Jesus Guardon From taboege at ...626... Thu Dec 12 00:17:49 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 12 Dec 2013 00:17:49 +0100 Subject: [Gambas-user] Popup menu in project tree In-Reply-To: <52A8ECC6.3090302@...2382...> References: <52A63862.1080204@...2382...> <52A8ECC6.3090302@...2382...> Message-ID: <20131211231749.GM474@...2774...> On Wed, 11 Dec 2013, Jesus wrote: > El 09/12/13 22:38, Jesus escribi?: > > Hi all > > > > When I right click over an item in the project tree, say "Data" folder, > > there's not a full menu, so I cannot add a new file or whatever. If such > > a folder contains a sub-item, then I am able to add another file by > > right clicking on the sub-item. > > > > I don't remember if it was previously this way, so please, can someone > > check this? I've attached a capture explaining the situation. > > > > gambas 3.5.90 r5986 > > > > Could anyone check this? I'm afraid if I was the only one affected by > this issue... > Yes, I also noticed this but didn't take it seriously. (But it definitely is!) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Thu Dec 12 00:50:54 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 12 Dec 2013 00:50:54 +0100 Subject: [Gambas-user] Popup menu in project tree In-Reply-To: <20131211231749.GM474@...2774...> References: <52A63862.1080204@...2382...> <52A8ECC6.3090302@...2382...> <20131211231749.GM474@...2774...> Message-ID: <52A8FA5E.1030005@...1...> Le 12/12/2013 00:17, Tobias Boege a ?crit : > On Wed, 11 Dec 2013, Jesus wrote: >> El 09/12/13 22:38, Jesus escribi?: >>> Hi all >>> >>> When I right click over an item in the project tree, say "Data" folder, >>> there's not a full menu, so I cannot add a new file or whatever. If such >>> a folder contains a sub-item, then I am able to add another file by >>> right clicking on the sub-item. >>> >>> I don't remember if it was previously this way, so please, can someone >>> check this? I've attached a capture explaining the situation. >>> >>> gambas 3.5.90 r5986 >>> >> >> Could anyone check this? I'm afraid if I was the only one affected by >> this issue... >> > > Yes, I also noticed this but didn't take it seriously. (But it definitely > is!) > > Regards, > Tobi > Fixed in revision #5996. -- Beno?t Minisini From bill-lancaster at ...2231... Thu Dec 12 10:56:02 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Thu, 12 Dec 2013 01:56:02 -0800 (PST) Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <20131211172523.GJ474@...2774...> References: <1386781693348-44631.post@...3046...> <20131211172523.GJ474@...2774...> Message-ID: <1386842162007-44641.post@...3046...> Thank you Tobias and sorry Benoit. Here is a small programme:- Public hConn As New Connection Public hResult As Result Public Sub _new() With hConn .Type = "MySQL" .Host = "localhost" .Login = "root" .Port = "3306" .Name = "xxx" .Password = "yyy" .Open() End With hResult = hConn.Find("maildata", "DeletedFlag IS NOT TRUE AND Type = 'Received' ORDER BY Date DESC") hResult.MoveFirst End Public Sub btnNext_Click() Dim bTemp As Blob TextBox1.Text = hResult!Date TextBox2.Text = hResult!Address TextBox3.Text = hResult!Subject bTemp = hResult!MsgBlob Print bTemp.Length CheckAttachments(bTemp) hResult.MoveNext End Private Function CheckAttachments(sBody As Blob) File.Save("~/aaa", hResult!MsgBlob) End This gives a segmenation error, in this case when bTemp.Length = 1246339 Other records with small values of bTemp don't cause a problem. Gambas 3.5 [System] OperatingSystem=Linux Kernel=3.8.0-32-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=KDE4 Theme=Oxygen Language=en_US.UTF-8 Memory=3821M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- View this message in context: http://gambas.8142.n7.nabble.com/Blob-type-and-segmentation-error-tp44631p44641.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Thu Dec 12 11:04:16 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Thu, 12 Dec 2013 02:04:16 -0800 (PST) Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <1386842162007-44641.post@...3046...> References: <1386781693348-44631.post@...3046...> <20131211172523.GJ474@...2774...> <1386842162007-44641.post@...3046...> Message-ID: <1386842656850-44642.post@...3046...> This may be significant, the mysql db was created using MySQL Workbench and field (column) MsgBlob is set as data type LONGBLOB -- View this message in context: http://gambas.8142.n7.nabble.com/Blob-type-and-segmentation-error-tp44631p44642.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Dec 12 11:05:36 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 12 Dec 2013 11:05:36 +0100 Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <1386842162007-44641.post@...3046...> References: <1386781693348-44631.post@...3046...> <20131211172523.GJ474@...2774...> <1386842162007-44641.post@...3046...> Message-ID: <52A98A70.2040801@...1...> Le 12/12/2013 10:56, bill-lancaster a ?crit : > Thank you Tobias and sorry Benoit. > > Here is a small programme:- > > > Public hConn As New Connection > Public hResult As Result > > Public Sub _new() > With hConn > .Type = "MySQL" > .Host = "localhost" > .Login = "root" > .Port = "3306" > .Name = "xxx" > .Password = "yyy" > .Open() > End With > hResult = hConn.Find("maildata", "DeletedFlag IS NOT TRUE AND Type = > 'Received' ORDER BY Date DESC") > hResult.MoveFirst > End > > Public Sub btnNext_Click() > Dim bTemp As Blob > TextBox1.Text = hResult!Date > TextBox2.Text = hResult!Address > TextBox3.Text = hResult!Subject > bTemp = hResult!MsgBlob > Print bTemp.Length > CheckAttachments(bTemp) > hResult.MoveNext > End > > Private Function CheckAttachments(sBody As Blob) > File.Save("~/aaa", hResult!MsgBlob) > End > > > This gives a segmenation error, in this case when bTemp.Length = 1246339 > Other records with small values of bTemp don't cause a problem. > > Gambas 3.5 > > [System] > OperatingSystem=Linux > Kernel=3.8.0-32-generic > Architecture=x86_64 > Distribution=Ubuntu 13.04 > Desktop=KDE4 > Theme=Oxygen > Language=en_US.UTF-8 > Memory=3821M > [Libraries] > Cairo=libcairo.so.2.11200.14 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.2 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.6.0 > GTK+=libgtk-x11-2.0.so.0.2400.17 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > Sorry, but please send a true project and a MySQL database dump so that I can reproduce the bug in the same conditions. Thanks! -- Beno?t Minisini From bill-lancaster at ...2231... Thu Dec 12 14:18:52 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Thu, 12 Dec 2013 05:18:52 -0800 (PST) Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <52A98A70.2040801@...1...> References: <1386781693348-44631.post@...3046...> <20131211172523.GJ474@...2774...> <1386842162007-44641.post@...3046...> <52A98A70.2040801@...1...> Message-ID: <1386854332284-44644.post@...3046...> Beno?t, BlobTest-0.0.1.tmp.tar.gz and some mysql BackUpOfBlobTest.sql Hope this is OK. -- View this message in context: http://gambas.8142.n7.nabble.com/Blob-type-and-segmentation-error-tp44631p44644.html Sent from the gambas-user mailing list archive at Nabble.com. From ea7dfh at ...2382... Thu Dec 12 15:46:29 2013 From: ea7dfh at ...2382... (Jesus) Date: Thu, 12 Dec 2013 15:46:29 +0100 Subject: [Gambas-user] Popup menu in project tree In-Reply-To: <52A8FA5E.1030005@...1...> References: <52A63862.1080204@...2382...> <52A8ECC6.3090302@...2382...> <20131211231749.GM474@...2774...> <52A8FA5E.1030005@...1...> Message-ID: <52A9CC45.2090406@...2382...> El 12/12/13 00:50, Beno?t Minisini escribi?: > Le 12/12/2013 00:17, Tobias Boege a ?crit : >> On Wed, 11 Dec 2013, Jesus wrote: >>> El 09/12/13 22:38, Jesus escribi?: >>>> Hi all >>>> >>>> When I right click over an item in the project tree, say "Data" folder, >>>> there's not a full menu, so I cannot add a new file or whatever. If such >>>> a folder contains a sub-item, then I am able to add another file by >>>> right clicking on the sub-item. >>>> >>>> I don't remember if it was previously this way, so please, can someone >>>> check this? I've attached a capture explaining the situation. >>>> >>>> gambas 3.5.90 r5986 >>>> >>> >>> Could anyone check this? I'm afraid if I was the only one affected by >>> this issue... >>> >> >> Yes, I also noticed this but didn't take it seriously. (But it definitely >> is!) >> >> Regards, >> Tobi >> > > Fixed in revision #5996. > Confirmed fixed. Thanks, as always! Regards -- Jesus Guardon From charlie at ...2793... Thu Dec 12 23:30:54 2013 From: charlie at ...2793... (Charlie) Date: Thu, 12 Dec 2013 14:30:54 -0800 (PST) Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) Message-ID: <1386887454693-44646.post@...3046...> Hi,I want to clear multiple *Textboxes* and using the following code seems inefficient: -*Textbox1.text = ""Textbox2.text = ""Textbox3......*Is there a better way?I have looked at "Collections" and "For Each" commands but I can't work out if this is the correct method.Thanks for any help.Charlie. -- View this message in context: http://gambas.8142.n7.nabble.com/How-do-you-deal-with-multiple-objects-Textboxes-tp44646.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1823... Fri Dec 13 01:31:30 2013 From: rterry at ...1823... (richard terry) Date: Fri, 13 Dec 2013 11:31:30 +1100 Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) In-Reply-To: <1386887454693-44646.post@...3046...> References: <1386887454693-44646.post@...3046...> Message-ID: <52AA5562.8010608@...1823...> On 13/12/13 09:30, Charlie wrote: > Hi,I want to clear multiple *Textboxes* and using the following code seems > inefficient: -*Textbox1.text = ""Textbox2.text = ""Textbox3......*Is there a > better way?I have looked at "Collections" and "For Each" commands but I > can't work out if this is the correct method.Thanks for any help.Charlie. How many textboxes are we talking about. You would loop through the container.children, testing if the control is a textbox and clear them as you go perhaps Regards richard > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/How-do-you-deal-with-multiple-objects-Textboxes-tp44646.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sudeep.d at ...3254... Fri Dec 13 08:33:11 2013 From: sudeep.d at ...3254... (//SCLPL/ Sudeep Damodar) Date: Fri, 13 Dec 2013 13:03:11 +0530 Subject: [Gambas-user] how to convert VB Project file to Gambas Message-ID: Hi, This is sudeep.im going to learn Gambas. I familiar with vb programming.i dnt have any idea about Gambas.so i have vb6 project .so i have to know about how to directly convert vb6 project to Gambas.can you have any option like this in Gambas .please touch with me Thanks N Regards Sudeep From sourceforge-raindog2 at ...94... Fri Dec 13 14:13:04 2013 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 13 Dec 2013 08:13:04 -0500 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: <52AB07E0.6090207@...94...> On 12/13/2013 02:33 AM, //SCLPL/ Sudeep Damodar wrote: > dnt have any idea about Gambas.so i have vb6 project .so i have to know > about how to directly convert vb6 project to Gambas.can you have any option > like this in Gambas I started writing such a thing 10 years ago, for .vbp and .frm files, but it was for gambas2 so you might not have much luck making it work with gambas3. I haven't used Gambas myself in years, so I'm afraid you're on your own if you run into trouble, unless someone else here still uses it. It definitely will not work if you use a lot of third party VB controls. http://gambas.8142.n7.nabble.com/ANN-ImportVBProject-0-0-8-td7076.html Rob From jussi.lahtinen at ...626... Fri Dec 13 14:30:42 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Dec 2013 15:30:42 +0200 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: <52AB07E0.6090207@...94...> References: <52AB07E0.6090207@...94...> Message-ID: Rob, you haven't use Gambas for years? Anyway, I had pretty huge project and I did the conversion largely by hand. Here are the differences (the article contains partly old information, example Mid$() works now as in vb): http://gambasdoc.org/help/doc/diffvb?v3 It's much about converting "End Function" etc to "End". And code like "MyArray(1,2)" to "MyArray[1,2]". Beware of Byref argument if you use it. It is little bit different in Gambas. http://gambasdoc.org/help/doc/byref?v3 Forms I rebuild manually in Gambas. So I don't know about converters. It shouldn't be too hard. Just ask more questions if you run into problems. Also here is Gambas help, if you want to see what commands exactly do: http://gambasdoc.org/help/lang?v3 Jussi On Fri, Dec 13, 2013 at 3:13 PM, Rob Kudla wrote: > On 12/13/2013 02:33 AM, //SCLPL/ Sudeep Damodar wrote: > > dnt have any idea about Gambas.so i have vb6 project .so i have to know > > about how to directly convert vb6 project to Gambas.can you have any > option > > like this in Gambas > > I started writing such a thing 10 years ago, for .vbp and .frm files, but > it was for gambas2 so you might not have much luck making it work with > gambas3. > > I haven't used Gambas myself in years, so I'm afraid you're on your own if > you run into trouble, unless someone else here still uses it. It definitely > will not work if you use a lot of third party VB controls. > > http://gambas.8142.n7.nabble.com/ANN-ImportVBProject-0-0-8-td7076.html > > Rob > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Fri Dec 13 14:47:34 2013 From: charlie at ...2793... (Charlie) Date: Fri, 13 Dec 2013 05:47:34 -0800 (PST) Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) In-Reply-To: <52AA5562.8010608@...1823...> References: <1386887454693-44646.post@...3046...> <52AA5562.8010608@...1823...> Message-ID: <1386942454658-44655.post@...3046...> Hi Richard, Thanks for the reply. Here is the code I am using. I thought there must be a better way. Charlie. Public Sub ClearTable() QTY1.text = "" QTY2.text = "" QTY3.text = "" QTY4.text = "" QTY5.text = "" QTY6.text = "" QTY7.text = "" QTY8.text = "" QTY9.text = "" QTY10.text = "" WH1.text = "" WH2.text = "" WH3.text = "" WH4.text = "" WH5.text = "" WH6.text = "" WH7.text = "" WH8.text = "" WH9.text = "" WH10.text = "" PTNO1.text = "" PTNO2.text = "" PTNO3.text = "" PTNO4.text = "" PTNO5.text = "" PTNO6.text = "" PTNO7.text = "" PTNO8.text = "" PTNO9.text = "" PTNO10.text = "" BookInOut1.Hide BookInOut2.Hide BookInOut3.Hide BookInOut4.Hide BookInOut5.Hide BookInOut7.Hide BookInOut8.Hide BookInOut9.Hide BookInOut10.Hide Desc1.text = "" Desc2.text = "" Desc3.text = "" Desc4.text = "" Desc5.text = "" Desc6.text = "" Desc7.text = "" Desc9.text = "" Desc9.text = "" Desc10.text = "" -- View this message in context: http://gambas.8142.n7.nabble.com/How-do-you-deal-with-multiple-objects-Textboxes-tp44646p44655.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Fri Dec 13 15:04:29 2013 From: nando_f at ...951... (nando) Date: Fri, 13 Dec 2013 09:04:29 -0500 Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) In-Reply-To: <1386942454658-44655.post@...3046...> References: <1386887454693-44646.post@...3046...> <52AA5562.8010608@...1823...> <1386942454658-44655.post@...3046...> Message-ID: <20131213135348.M73713@...951...> When I want to group a bunch of text boxes together to perform the same function - like clear the text, I add them an OBJECT[] and loop through it. So, I usually add them into the array inside _new() or _init() then I can loop through the object array to perform something. OBJECT[] elements are just pointers to the Textbox (or whatever control you want) so it is fairly tight. I also like this because I can use different OBJECT[] to help control the same Textboxes, but for different reasons. I do this for speed at the expense of another array without having IFs tested inside the loop. (you may think the speed difference might be trivial, but it is important to me) Also, remove or delete all the items in OBJECT[] if you destroy the controls. You may have pointers pointing to invalid/unused memory. -Nando ---------- Original Message ----------- From: Charlie To: gambas-user at lists.sourceforge.net Sent: Fri, 13 Dec 2013 05:47:34 -0800 (PST) Subject: Re: [Gambas-user] How do you deal with multiple objects (Textboxes) > Hi Richard, > > Thanks for the reply. Here is the code I am using. I thought there must be a > better way. > > Charlie. > > Public Sub ClearTable() > QTY1.text = "" > QTY2.text = "" > QTY3.text = "" > QTY4.text = "" > QTY5.text = "" > QTY6.text = "" > QTY7.text = "" > QTY8.text = "" > QTY9.text = "" > QTY10.text = "" > WH1.text = "" > WH2.text = "" > WH3.text = "" > WH4.text = "" > WH5.text = "" > WH6.text = "" > WH7.text = "" > WH8.text = "" > WH9.text = "" > WH10.text = "" > PTNO1.text = "" > PTNO2.text = "" > PTNO3.text = "" > PTNO4.text = "" > PTNO5.text = "" > PTNO6.text = "" > PTNO7.text = "" > PTNO8.text = "" > PTNO9.text = "" > PTNO10.text = "" > BookInOut1.Hide > BookInOut2.Hide > BookInOut3.Hide > BookInOut4.Hide > BookInOut5.Hide > BookInOut7.Hide > BookInOut8.Hide > BookInOut9.Hide > BookInOut10.Hide > Desc1.text = "" > Desc2.text = "" > Desc3.text = "" > Desc4.text = "" > Desc5.text = "" > Desc6.text = "" > Desc7.text = "" > Desc9.text = "" > Desc9.text = "" > Desc10.text = "" > > -- > View this message in context: http://gambas.8142.n7.nabble.com/How-do-you-deal- > with-multiple-objects-Textboxes-tp44646p44655.html Sent from the gambas-user > mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Fri Dec 13 15:04:57 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Dec 2013 16:04:57 +0200 Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) In-Reply-To: <1386942454658-44655.post@...3046...> References: <1386887454693-44646.post@...3046...> <52AA5562.8010608@...1823...> <1386942454658-44655.post@...3046...> Message-ID: Dim oo As Object For Each oo In YourForm.Children If oo Is TextBox Then oo.Visible = False oo.Text = "" Endif Next You can use tag property to identify boxes you want to make invisible. Jussi On Fri, Dec 13, 2013 at 3:47 PM, Charlie wrote: > Hi Richard, > > Thanks for the reply. Here is the code I am using. I thought there must be > a > better way. > > Charlie. > > Public Sub ClearTable() > QTY1.text = "" > QTY2.text = "" > QTY3.text = "" > QTY4.text = "" > QTY5.text = "" > QTY6.text = "" > QTY7.text = "" > QTY8.text = "" > QTY9.text = "" > QTY10.text = "" > WH1.text = "" > WH2.text = "" > WH3.text = "" > WH4.text = "" > WH5.text = "" > WH6.text = "" > WH7.text = "" > WH8.text = "" > WH9.text = "" > WH10.text = "" > PTNO1.text = "" > PTNO2.text = "" > PTNO3.text = "" > PTNO4.text = "" > PTNO5.text = "" > PTNO6.text = "" > PTNO7.text = "" > PTNO8.text = "" > PTNO9.text = "" > PTNO10.text = "" > BookInOut1.Hide > BookInOut2.Hide > BookInOut3.Hide > BookInOut4.Hide > BookInOut5.Hide > BookInOut7.Hide > BookInOut8.Hide > BookInOut9.Hide > BookInOut10.Hide > Desc1.text = "" > Desc2.text = "" > Desc3.text = "" > Desc4.text = "" > Desc5.text = "" > Desc6.text = "" > Desc7.text = "" > Desc9.text = "" > Desc9.text = "" > Desc10.text = "" > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-do-you-deal-with-multiple-objects-Textboxes-tp44646p44655.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Fri Dec 13 16:32:23 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 13 Dec 2013 16:32:23 +0100 Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) In-Reply-To: <1386942454658-44655.post@...3046...> References: <1386887454693-44646.post@...3046...> <52AA5562.8010608@...1823...> <1386942454658-44655.post@...3046...> Message-ID: <1386948743.2487.4.camel@...40...> Am Freitag, den 13.12.2013, 05:47 -0800 schrieb Charlie: > Hi Richard, > > Thanks for the reply. Here is the code I am using. I thought there must be a > better way. > > Charlie. > > Public Sub ClearTable() > QTY1.text = "" > QTY2.text = "" > QTY3.text = "" > QTY4.text = "" > QTY5.text = "" > QTY6.text = "" > QTY7.text = "" > QTY8.text = "" > QTY9.text = "" > QTY10.text = "" > WH1.text = "" > WH2.text = "" > WH3.text = "" > WH4.text = "" > WH5.text = "" > WH6.text = "" > WH7.text = "" > WH8.text = "" > WH9.text = "" > WH10.text = "" > PTNO1.text = "" > PTNO2.text = "" > PTNO3.text = "" > PTNO4.text = "" > PTNO5.text = "" > PTNO6.text = "" > PTNO7.text = "" > PTNO8.text = "" > PTNO9.text = "" > PTNO10.text = "" > BookInOut1.Hide > BookInOut2.Hide > BookInOut3.Hide > BookInOut4.Hide > BookInOut5.Hide > BookInOut7.Hide > BookInOut8.Hide > BookInOut9.Hide > BookInOut10.Hide > Desc1.text = "" > Desc2.text = "" > Desc3.text = "" > Desc4.text = "" > Desc5.text = "" > Desc6.text = "" > Desc7.text = "" > Desc9.text = "" > Desc9.text = "" > Desc10.text = "" > > Salut Charlie, if you have containers on your form, that should do the whole job. changeEditControl(Me, TextBox1) Public Sub changeEditControl(oObj As Object, ctrlCont As Control) Dim myControl As String Dim hClass As Control Dim hCont As Container Dim objMyOne As Object myControl = Object.type(ctrlCont) For Each hClass In oObj.Children ' is it like my ctrlCont ? If Object.type(hClass) = myControl Then objMyOne = hClass objMyOne.Text = "" objMyOne.Visible = False Else ' TRY if it is a Container Try hCont = hClass If Not Error Then ' I call my self to find out if there are Children like my ctrlCont changeEditControl(hClass, ctrlCont) Endif Endif Next End -- Amicalement Charlie From sourceforge-raindog2 at ...94... Fri Dec 13 17:21:45 2013 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 13 Dec 2013 11:21:45 -0500 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <52AB07E0.6090207@...94...> Message-ID: <52AB3419.2000500@...94...> On 12/13/2013 08:30 AM, Jussi Lahtinen wrote: > Rob, you haven't use Gambas for years? Nope, don't even have Gambas installed anywhere except on the host that runs gambasdoc.org. I still think Gambas is a great language (I'm still reading the list every day, after all) and if I were writing desktop software anymore, that's what I'd use. For web stuff I use regexes enough that perl is nicer to deal with (I don't know if Gambas has a regex operator now instead of using my terrible component, but at the time it didn't.) Mobile's a different story, but since Gambas doesn't work on Android yet, I've gotten very used to Java and obviously there's a huge critical mass of support in place for that. Anyway, the converter I wrote only operated on project files and form layout files, not code. Converting VB code automatically isn't realistic because they're really two very different languages. It's a porting job. I just wanted to automate the grunt work. I also wrote a perl script to convert my Gambas forms to HTML forms, but it used a Javascript library that was very buggy and is no longer maintained. And before all of that I wrote scripts to convert MS Access forms to VB. I do these things out of laziness and the fact that I'd almost always rather use a keyboard than a mouse, so writing code is preferable to dragging and dropping. Rob From charlie at ...2793... Fri Dec 13 17:39:22 2013 From: charlie at ...2793... (Charlie) Date: Fri, 13 Dec 2013 08:39:22 -0800 (PST) Subject: [Gambas-user] How do you deal with multiple objects (Textboxes) In-Reply-To: References: <1386887454693-44646.post@...3046...> <52AA5562.8010608@...1823...> <1386942454658-44655.post@...3046...> Message-ID: <1386952762241-44660.post@...3046...> Thank you everyone. I tried the simple example from Jussi Lahtinen and found that worked very well. I need to get my head around this before I try the more complex examples. Thanks again. Mark as SOLVED. Charlie -- View this message in context: http://gambas.8142.n7.nabble.com/How-do-you-deal-with-multiple-objects-Textboxes-tp44646p44660.html Sent from the gambas-user mailing list archive at Nabble.com. From tercoide at ...67... Fri Dec 13 17:49:01 2013 From: tercoide at ...67... (terco IDE) Date: Fri, 13 Dec 2013 16:49:01 +0000 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: You can't convert it, you need to port it. A good thing is to have someone that's already into Gambas (I'm lucky to have the help of the guys at gambas-es.org), but if you are not doing open-source, you're in your own. We're porting a big program like this: 1st create the main form, with menus and controls, it's done very much the same way (or better ;). 2nd create the modules (.bas) with the structure of the info and all the funcions 3rd copy/paste the code of the control's events from the VB's .frm to the GB's .form, doint the necesary changes. I've found the most common complications come from silly things like: -funtions or subs that make changes in the parameters need to be called with Byref -array declaration is totally diferent, it's allways [0 to n] - "this" = "that" usually means "this" will have the same value of "that" and when you change "that", "this" will surprisingly change too From ub2 at ...36... Fri Dec 13 18:24:43 2013 From: ub2 at ...36... (ub2 at ...36...) Date: Fri, 13 Dec 2013 18:24:43 +0100 Subject: [Gambas-user] Database-manager in 3.5.1 missing, Sql-Visualisation-Tool ? Message-ID: <52AB42DB.4020906@...36...> Dear cracks In Gambas2 I found the gambas-database-manager under tools, but nowhere in Gambas 3.5.1 anymore. Did I miss something at installation? Redoing an MSAccess-project, I'm using Gambas3, MariaDB and PhpMyAdmin. Missing is a visualization-tool for the relational links. Any recommendations ? Sorry for asking. Found plenty of ideas but nothing related to Gambas. Thanks for any help or links. Regards, ub2 [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.2.0-57-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=XFCE Theme=QGtk Language=de_DE.UTF-8 Memory=3012M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.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 From jussi.lahtinen at ...626... Fri Dec 13 19:13:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Dec 2013 20:13:29 +0200 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: > -funtions or subs that make changes in the parameters need to be called > with Byref > Only if the parameters are not objects (objects are always passed as byref). Usually need for byref means broken object model. - "this" = "that" usually means "this" will have the same value of "that" > and when you change "that", "this" will surprisingly change too > Only when "this" and "that" are object references. It shouldn't be surprise..? Jussi From gambas at ...1... Fri Dec 13 19:15:21 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 13 Dec 2013 19:15:21 +0100 Subject: [Gambas-user] Database-manager in 3.5.1 missing, Sql-Visualisation-Tool ? In-Reply-To: <52AB42DB.4020906@...36...> References: <52AB42DB.4020906@...36...> Message-ID: <52AB4EB9.4010506@...1...> Le 13/12/2013 18:24, ub2 at ...36... a ?crit : > Dear cracks > > In Gambas2 I found the gambas-database-manager under tools, > but nowhere in Gambas 3.5.1 anymore. > Did I miss something at installation? > > Redoing an MSAccess-project, I'm using Gambas3, MariaDB and > PhpMyAdmin. Missing is a visualization-tool for the relational > links. Any recommendations ? > > Sorry for asking. Found plenty of ideas but nothing related to Gambas. > Thanks for any help or links. > > Regards, > ub2 > The database manager is now part of the IDE. Create a project that uses the 'gb.db' component, and you will get a new "Connection" folder in the project tree view. Inside this folder, you can create... "connections" to any database supported by Gambas. Once you have configure the new connection, you can double-click on it to open the new database manager. Regards, -- Beno?t Minisini From pinozollo at ...626... Fri Dec 13 20:46:49 2013 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 13 Dec 2013 16:46:49 -0300 Subject: [Gambas-user] FORM.Name overridden.... FORM.Delete overridden errors Message-ID: <52AB6429.6050203@...626...> Gambas 3.5.1 A TextBox with name "Name" gives FORM.Name Overridden error ------------------------------------------------------------------- The string "DELETE" gives error FORM.Delete overridden at line: If FBand.ComboBand.Text <> "WFAX" Then ------------------------------------------------------------- Public Sub Call_LostFocus() Dim GMT As Date Dim F As Float Dim FRMHZ As String Dim sql As String FRMHZ = FRtoMHz() ' This depends on comma GMT = Vb.DateAdd("h", - toffset, Now) If Run Then If Not CheckCQ() Then rData = Mglobal.$hConn.Exec("DELETE FROM spots WHERE DXCall = 'CQ <---' AND dxband = '" & ComboBand.Text & "' ;") ' it was on different frequency ' DEBUG "Deleted by Call_LostFocus " ' IF comma THEN If FBand.ComboBand.Text <> "WFAX" Then ' <------------*********************************************************** sql = "INSERT INTO spots " & "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & "CQ <---" & "','" & FRMHz & "','" & FRMHz & "','" & ComboBand.Text & "','" & "" & "','" & "CQCQ" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " Else sql = "INSERT INTO spots " & "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & UCase$(Call.Text) & "','" & FRMHz & "','" & FRMHz & "','" & FBand.ComboBand.Text & "','" & "WFAX" & "','" & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " Endif rData = Mglobal.$hConn.Exec(sql) ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & "CQ <---" & "','" & ' FRMHz & "','" & FRMHz & ' "','" & ComboBand.Text & "','" & "" & "','" & "CQCQ" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); ") ' ELSE ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & "CQ <---" & "','" & ' Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".") & "','" & Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".")& ' "','" & ComboBand.Text & "','" & "" & "','" & "CQCQ" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); ") ' ENDIF rData = Mglobal.$hConn.Exec("delete FROM spots where dxcall <> 'CQ <---' and freqrx = (select freqrx from spots where dxcall = 'CQ <---' AND dxband = '" & ComboBand.Text & "' ); ") ' <--- errore nella subquery.. c'? un altro CQ in altra banda e d? 2 risultati If FBandActive Then FBand.FillForm() End If Else If Not CheckCall(Call.text) Then If Call.Text <> "" Then ' IF comma THEN If FBand.ComboBand.Text <> "WFAX" Then sql = "INSERT INTO spots " & "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & UCase$(Call.Text) & "','" & FRMHz & "','" & FRMHz & "','" & ComboBand.Text & "','" & LabCountry.Text & "','" & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " Else sql = "INSERT INTO spots " & "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & UCase$(Call.Text) & "','" & FRMHz & "','" & FRMHz & "','" & FBand.ComboBand.Text & "','" & "WFAX" & "','" & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " Endif rData = Mglobal.$hConn.Exec(sql) ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & UCase$(Call.Text) & "','" & ' FRMHz & "','" & FRMHz & ' "','" & ComboBand.Text & "','" & LabCountry.Text & "','" & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); ") ' ELSE ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, dxmode, radiomode ) " & ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & " " & ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & UCase$(Call.Text) & "','" & ' Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".") & "','" & Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".")& ' "','" & ComboBand.Text & "','" & LabCountry.Text & "','" & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); ") ' ENDIF If FBandActive Then FBand.FillForm() End If End If End If If comma Then Try Freqb4 = Val(Replace$(Replace$(FreqRadio.text, ",", ""), ".", ",")) ' <----- Tranverters ??? Else Try Freqb4 = Val(Replace$(FreqRadio.text, ",", "")) / 1000 Endif ' DEBUG "Freqb4 ", Freqb4 Catch Message.Error("Call Lost Focus: " & Error.Text & " " & Error.Where) End ----------------------------------------------------------------------------------- These misbehaviours were not present in Gambas2 ! ------------------------- Salud Pino From jussi.lahtinen at ...626... Fri Dec 13 21:20:02 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Dec 2013 22:20:02 +0200 Subject: [Gambas-user] FORM.Name overridden.... FORM.Delete overridden errors In-Reply-To: <52AB6429.6050203@...626...> References: <52AB6429.6050203@...626...> Message-ID: Please send runnable project. That way your code is not very readable. I don't understand how you can get error from "form.delete" when it's not in your code..? Jussi On Fri, Dec 13, 2013 at 9:46 PM, Pino Zollo wrote: > Gambas 3.5.1 > > > > A TextBox with name "Name" gives FORM.Name Overridden error > > ------------------------------------------------------------------- > > > The string "DELETE" gives error FORM.Delete overridden at line: > > If FBand.ComboBand.Text <> "WFAX" Then > > ------------------------------------------------------------- > > Public Sub Call_LostFocus() > Dim GMT As Date > Dim F As Float > Dim FRMHZ As String > Dim sql As String > > FRMHZ = FRtoMHz() ' This depends on comma > > GMT = Vb.DateAdd("h", - toffset, Now) > If Run Then > If Not CheckCQ() Then > rData = Mglobal.$hConn.Exec("DELETE FROM spots WHERE DXCall = > 'CQ <---' AND dxband = '" & > ComboBand.Text & "' ;") ' it was on > different frequency > ' DEBUG "Deleted by Call_LostFocus " > ' IF comma THEN > If FBand.ComboBand.Text <> "WFAX" Then ' > <------------*********************************************************** > sql = "INSERT INTO spots " & > "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, dxstat, > dxmode, radiomode ) " & > "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) & > " " & > Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & "CQ > <---" & "','" & > FRMHz & "','" & FRMHz & > "','" & ComboBand.Text & "','" & "" & "','" & "CQCQ" & > "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " > Else > sql = "INSERT INTO spots " & > "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) > & " " & > Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & > UCase$(Call.Text) & "','" & > FRMHz & "','" & FRMHz & > "','" & FBand.ComboBand.Text & "','" & "WFAX" & "','" & > "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " > Endif > rData = Mglobal.$hConn.Exec(sql) > > ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & > ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) > & " " & > ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & "CQ > <---" & "','" & > ' FRMHz & "','" & FRMHz & > ' "','" & ComboBand.Text & "','" & "" & "','" & "CQCQ" & > "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); ") > ' ELSE > ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & > ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) > & " " & > ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & "CQ > <---" & "','" & > ' Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".") & > "','" & Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".")& > ' "','" & ComboBand.Text & "','" & "" & "','" & "CQCQ" & > "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); ") > ' ENDIF > rData = Mglobal.$hConn.Exec("delete FROM spots where dxcall <> > 'CQ <---' and freqrx = (select freqrx from spots where dxcall = 'CQ > <---' AND dxband = '" & > ComboBand.Text & "' ); ") ' <--- errore > nella subquery.. c'? un altro CQ in altra banda e d? 2 risultati > If FBandActive Then FBand.FillForm() > End If > Else > If Not CheckCall(Call.text) Then > If Call.Text <> "" Then > ' IF comma THEN > If FBand.ComboBand.Text <> "WFAX" Then > sql = "INSERT INTO spots " & > "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) > & " " & > Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & > UCase$(Call.Text) & "','" & > FRMHz & "','" & FRMHz & > "','" & ComboBand.Text & "','" & LabCountry.Text & "','" & > "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " > Else > sql = "INSERT INTO spots " & > "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) > & " " & > Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & > UCase$(Call.Text) & "','" & > FRMHz & "','" & FRMHz & > "','" & FBand.ComboBand.Text & "','" & "WFAX" & "','" & > "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & "'); " > Endif > rData = Mglobal.$hConn.Exec(sql) > ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & > ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & > Year(GMT) & " " & > ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & > UCase$(Call.Text) & "','" & > ' FRMHz & "','" & FRMHz & > ' "','" & ComboBand.Text & "','" & LabCountry.Text & "','" > & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & > "'); ") > ' ELSE > ' rData = Mglobal.$hConn.Exec("INSERT INTO spots " & > ' "(SpotTS, DXcall, FreqRX, FreqQSX, dxband, dxcountry, > dxstat, dxmode, radiomode ) " & > ' "VALUES( '" & Day(GMT) & "/" & Month(GMT) & "/" & Year(GMT) > & " " & > ' Time(Hour(GMT), Minute(GMT), Second(GMT)) & "','" & > UCase$(Call.Text) & "','" & > ' Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".") & > "','" & Replace$(Replace$(FreqRadio.text, ".", ""), ",", ".")& > ' "','" & ComboBand.Text & "','" & LabCountry.Text & "','" > & "DIAL" & "','" & ComboMode.Text & "','" & RigMode & " " & RigBand & > "'); ") > ' ENDIF > If FBandActive Then FBand.FillForm() > End If > End If > End If > If comma Then > Try Freqb4 = Val(Replace$(Replace$(FreqRadio.text, ",", ""), ".", > ",")) ' <----- Tranverters ??? > Else > Try Freqb4 = Val(Replace$(FreqRadio.text, ",", "")) / 1000 > Endif > ' DEBUG "Freqb4 ", Freqb4 > Catch > Message.Error("Call Lost Focus: " & Error.Text & " " & Error.Where) > End > > ----------------------------------------------------------------------------------- > > > These misbehaviours were not present in Gambas2 ! > > > ------------------------- > > Salud > > Pino > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Fri Dec 13 21:34:31 2013 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 13 Dec 2013 17:34:31 -0300 Subject: [Gambas-user] FORM.Name overridden.... FORM.Delete overridden errors Message-ID: <52AB6F57.9070903@...626...> > Please send runnable project. That way your code is not very readable. > I don't understand how you can get error from "form.delete" when it's not > in your code..? yes...it is not in my code.... that's why it is a weird bug into Gambas3....not present in Gambas2 ... I need to send you the source and a database dump to reproduce the bugs... where can I send them ?... by the way for the TextBox named 'name' ...I had to change the name field to something else to escape ... than I did fall into the DELETE problem... I have posted already a crash problem of Gambas3 importing a Gambas2 program at the moment of adding components. ....Gambas3 seems to me quite unstable :-( Thanks Pino From jussi.lahtinen at ...626... Fri Dec 13 21:41:27 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Dec 2013 22:41:27 +0200 Subject: [Gambas-user] FORM.Name overridden.... FORM.Delete overridden errors In-Reply-To: <52AB6F57.9070903@...626...> References: <52AB6F57.9070903@...626...> Message-ID: > I need to send you the source and a database dump to reproduce the bugs... > > where can I send them ?... > Send minimal possible database and project to reproduce the problem. If it's not big there shouldn't be problems to send it to the list. You can send copy directly to me also. by the way for the TextBox named 'name' ...I had to change the name field > to something else to escape ... > than I did fall into the DELETE problem... > You write it as {name} ? ....Gambas3 seems to me quite unstable :-( > I think you are just having bad luck! Jussi From gambas at ...1... Fri Dec 13 23:14:15 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 13 Dec 2013 23:14:15 +0100 Subject: [Gambas-user] Blob type and segmentation error In-Reply-To: <1386854332284-44644.post@...3046...> References: <1386781693348-44631.post@...3046...> <20131211172523.GJ474@...2774...> <1386842162007-44641.post@...3046...> <52A98A70.2040801@...1...> <1386854332284-44644.post@...3046...> Message-ID: <52AB86B7.1060508@...1...> Le 12/12/2013 14:18, bill-lancaster a ?crit : > Beno?t, > BlobTest-0.0.1.tmp.tar.gz > > and some mysql > BackUpOfBlobTest.sql > > Hope this is OK. > Thanks, the bug has been fixed in revision #5999, and will be backported to 3.5.2. Regards, -- Beno?t Minisini From dquinter at ...626... Sat Dec 14 01:11:03 2013 From: dquinter at ...626... (Daniel Quintero) Date: Fri, 13 Dec 2013 18:11:03 -0600 Subject: [Gambas-user] Drag & drop question Message-ID: I have a program to manage my projects, and I want to add the capabilities to add some files drag from the file manager and added to the database. 2 questios: * Dou you have an example like this? * Is possible to obtain the icon associated with the file tha are dropping? For example, if the file is PDF, show the PDF icon in the "Documents atached" section of my program, or an OppenOffice file, or an TXT file, etc. Thanks a lot! *_________________________* *Lic. Daniel Quintero Rojas* *?Saludos desde M?xico!________* From jussi.lahtinen at ...626... Sat Dec 14 01:33:28 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 14 Dec 2013 02:33:28 +0200 Subject: [Gambas-user] FORM.Name overridden.... FORM.Delete overridden errors In-Reply-To: <52AB7B69.3040309@...626...> References: <52AB6F57.9070903@...626...> <52AB7B69.3040309@...626...> Message-ID: When do you get this error? I don't see it (I'm using latest Gambas revision). Or maybe it's because I don't get so far... your app fails on not finding "cty.dat". Jussi On Fri, Dec 13, 2013 at 11:26 PM, Pino Zollo wrote: > Here are: > > the database for PostgreSQL named 'log' > > DBLog2 the original Gambas2 program ready to be converted ... if you add a > component whichever Gambas3 will crash. > > DBLog3 ...an hand made porting to Gambas3 ...it gives the FORM.DELETE > overridden error > ...some Draw class are commented for incompatibility whith G2 > > Form.Delete.png is the error message. > > To get the error you need to write something into the Call TextBox in the > green window, than press TAB > to go to the next > > Thanks a lot > > > > El 13/12/13 17:41, Jussi Lahtinen escribi?: > > > I need to send you the source and a database dump to reproduce the >> bugs... >> >> where can I send them ?... >> > > Send minimal possible database and project to reproduce the problem. If > it's not big there shouldn't be problems to send it to the list. You can > send copy directly to me also. > > > > by the way for the TextBox named 'name' ...I had to change the name >> field to something else to escape ... >> than I did fall into the DELETE problem... >> > > You write it as {name} ? > > > I do not understand these {} ..is it a change to the syntax ? > > > Thanks > > > Pino > From sudeep.d at ...3254... Sat Dec 14 06:25:59 2013 From: sudeep.d at ...3254... (//SCLPL/ Sudeep Damodar) Date: Sat, 14 Dec 2013 10:55:59 +0530 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: Hi All Thanks for comments.i have one doubt im going to build laser marking application in gambas .for example just like weld mark software .in this case i want line ,circle , rectangle this like control how i get this like controls in gambas Thank n Regards Sudeep On Fri, Dec 13, 2013 at 11:43 PM, Jussi Lahtinen wrote: > > -funtions or subs that make changes in the parameters need to be called > > with Byref > > > > Only if the parameters are not objects (objects are always passed as > byref). > Usually need for byref means broken object model. > > > - "this" = "that" usually means "this" will have the same value of "that" > > and when you change "that", "this" will surprisingly change too > > > > Only when "this" and "that" are object references. > It shouldn't be surprise..? > > > Jussi > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ub2 at ...36... Sat Dec 14 11:36:57 2013 From: ub2 at ...36... (ub2 at ...36...) Date: Sat, 14 Dec 2013 11:36:57 +0100 Subject: [Gambas-user] Database-manager in 3.5.1 missing, Sql-Visualisation-Tool ? In-Reply-To: <52AB4EB9.4010506@...1...> References: <52AB42DB.4020906@...36...> <52AB4EB9.4010506@...1...> Message-ID: <52AC34C9.9010600@...36...> Dear Beno?t Life is so easy, .. if you have the right answers. Thanks a lot and have a nice weekend. Regards, Hubert PS: Thanks also to all 'Gambinos'. Great Job! (I bow humbly before the Creation.) Am 13.12.2013 19:15,schrieb Beno=EEt_Minisini: > Le 13/12/2013 18:24, ub2 at ...36... a ?crit : >> Dear cracks >> >> In Gambas2 I found the gambas-database-manager under tools, >> but nowhere in Gambas 3.5.1 anymore. >> Did I miss something at installation? >> >> Redoing an MSAccess-project, I'm using Gambas3, MariaDB and >> PhpMyAdmin. Missing is a visualization-tool for the relational >> links. Any recommendations ? >> >> Sorry for asking. Found plenty of ideas but nothing related to Gambas. >> Thanks for any help or links. >> >> Regards, >> ub2 >> > > The database manager is now part of the IDE. > > Create a project that uses the 'gb.db' component, and you will get a new > "Connection" folder in the project tree view. > > Inside this folder, you can create... "connections" to any database > supported by Gambas. Once you have configure the new connection, you can > double-click on it to open the new database manager. > > Regards, > From john.aaron.rose at ...626... Sat Dec 14 12:53:32 2013 From: john.aaron.rose at ...626... (John Rose) Date: Sat, 14 Dec 2013 11:53:32 +0000 Subject: [Gambas-user] Writing a text file from the contents of a text area Message-ID: <52AC46BC.3070906@...626...> I have a TextArea containing a number of lines. I'm confused by the multiplicity of variants of the Open command. Can someone direct me to an example of this? I've already failed to find such an example in the Gambas online documentation. -- Regards, John From bill-lancaster at ...2231... Sat Dec 14 13:05:49 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 14 Dec 2013 04:05:49 -0800 (PST) Subject: [Gambas-user] Writing a text file from the contents of a text area In-Reply-To: <52AC46BC.3070906@...626...> References: <52AC46BC.3070906@...626...> Message-ID: <1387022749894-44676.post@...3046...> You could try File.Save("~/test.txt", TextArea1.Text) Although this doesn't answer your question about the OPEN statement -- View this message in context: http://gambas.8142.n7.nabble.com/Writing-a-text-file-from-the-contents-of-a-text-area-tp44675p44676.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Sat Dec 14 13:17:37 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 14 Dec 2013 22:47:37 +1030 Subject: [Gambas-user] Writing a text file from the contents of a text area In-Reply-To: <52AC46BC.3070906@...626...> References: <52AC46BC.3070906@...626...> Message-ID: <1387023457.3136.62.camel@...2688...> On Sat, 2013-12-14 at 11:53 +0000, John Rose wrote: > I have a TextArea containing a number of lines. I'm confused by the > multiplicity of variants of the Open command. Can someone direct me to > an example of this? I've already failed to find such an example in the > Gambas online documentation. > John, we are guessing a bit here. OK, you have a textarea which has a string in it. Does the textarea control (i.e. as you see it on the form) have a number of lines or does the textarea string have a "number of lines" (i.e. it contains \n escape characters)? Until we solve this bit I am afraid that guessing what the jimmineycrickets this has to do with an Open command is just a touch too hard. hth B From jussi.lahtinen at ...626... Sat Dec 14 14:02:01 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 14 Dec 2013 15:02:01 +0200 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: There are paint and draw method, both can do that easily. http://gambasdoc.org/help/comp/gb.qt4/draw?v3 http://gambasdoc.org/help/comp/gb.qt4/paint?v3 I personally find draw method as more intuitive. Jussi On Sat, Dec 14, 2013 at 7:25 AM, //SCLPL/ Sudeep Damodar < sudeep.d at ...3254...> wrote: > Hi All > Thanks for comments.i have one doubt im going to build laser marking > application in gambas .for example just like weld mark software .in this > case i want line ,circle , rectangle this like control how i get this like > controls in gambas > > Thank n Regards > Sudeep > > > On Fri, Dec 13, 2013 at 11:43 PM, Jussi Lahtinen > wrote: > > > > -funtions or subs that make changes in the parameters need to be called > > > with Byref > > > > > > > Only if the parameters are not objects (objects are always passed as > > byref). > > Usually need for byref means broken object model. > > > > > > - "this" = "that" usually means "this" will have the same value of > "that" > > > and when you change "that", "this" will surprisingly change too > > > > > > > Only when "this" and "that" are object references. > > It shouldn't be surprise..? > > > > > > Jussi > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nigelverity at ...67... Sat Dec 14 17:11:26 2013 From: nigelverity at ...67... (Nigel Verity) Date: Sat, 14 Dec 2013 16:11:26 +0000 Subject: [Gambas-user] TabStrip Control Message-ID: Hi I've just started using the TabStrip control in a project for the first time. I can't find a method for making a particular tab current. Any ideas, please? Thanks Nige From jscops at ...11... Sat Dec 14 17:25:43 2013 From: jscops at ...11... (Jack) Date: Sat, 14 Dec 2013 17:25:43 +0100 Subject: [Gambas-user] TabStrip Control In-Reply-To: References: Message-ID: <52AC8687.80701@...11...> Le 14/12/2013 17:11, Nigel Verity a ?crit : > Hi > > I've just started using the TabStrip control in a project for the first time. I can't find a method for making a particular tab current. Any ideas, please? > TabStrip1.index = 0 or 1 or 2 etc... -- Cordialement Jacky Tripoteau From kevinfishburne at ...1887... Sat Dec 14 22:50:40 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 14 Dec 2013 16:50:40 -0500 Subject: [Gambas-user] SteamOS and GAMBAS Message-ID: <52ACD2B0.8070408@...1887...> Valve just released the first beta of SteamOS, a Debian Wheezy-based distro which runs the Steam client in Big Picture mode (designed for televisions). SteamOS is Valve's attempt to circumvent the walled gardens that are Microsoft Windows and Apple iOS/OSX and allow the digital distribution of their games though Steam independent of a locked-down OS. Their plan is to allow third party OEMs and VARs to install SteamOS onto "steamboxes", which essentially are HTPCs (PCs designed for the living room). Valve is developing their own custom input devices (gamepads, etc.) for the OS and are pushing game development studios hard to port past and future games to Linux so they may be distributed through SteamOS. http://linux.slashdot.org/story/13/12/14/0045211/valve-releases-debian-based-steamos-beta I'm downloading the ISO now to test it in a VM: magnet:?xt=urn:btih:1e4dae83371ba704d5d89e1828068ef0c4151e32&dn=SteamOSInstaller.zip&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce http://store.steampowered.com/steamos/download/?ver=default Currently GAMBAS can't run on iOS, OSX, Windows, Android or any game console OSs (PS3/4, Xbox 360/One, etc.). There is a strong possibility, especially if we contact Valve head Gabe Newell directly, that GAMBAS will be able to run on SteamOS with GAMBAS applications being distributed through Steam. I think it would be a serious mistake to let this opportunity slip by while SteamOS is still in beta. It's a very rare opportunity to increase the potential install base of GAMBAS applications that we may not see again. One glaring issue however may be GAMBAS's required packages and dependencies. SteamOS is basically a console OS, meaning it is expected to work the same way throughout its lifespan with the exception of Valve-tested updates. I doubt Valve would allow an application to arbitrarily install packages. Is there a way to package a GAMBAS application such that all the dependencies and libraries are stored with the application and not installed system-wide? It would be like a Windows application having all it's DLLs stored in its installation directory, ignoring the Windows system DLLs. Anyway, I'd like to hear everyone's opinion on this. I'm pretty damn excited! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sat Dec 14 22:59:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 14 Dec 2013 22:59:29 +0100 Subject: [Gambas-user] SteamOS and GAMBAS In-Reply-To: <52ACD2B0.8070408@...1887...> References: <52ACD2B0.8070408@...1887...> Message-ID: <52ACD4C1.5010109@...1...> Le 14/12/2013 22:50, Kevin Fishburne a ?crit : > Valve just released the first beta of SteamOS, a Debian Wheezy-based > distro which runs the Steam client in Big Picture mode (designed for > televisions). SteamOS is Valve's attempt to circumvent the walled > gardens that are Microsoft Windows and Apple iOS/OSX and allow the > digital distribution of their games though Steam independent of a > locked-down OS. Their plan is to allow third party OEMs and VARs to > install SteamOS onto "steamboxes", which essentially are HTPCs (PCs > designed for the living room). Valve is developing their own custom > input devices (gamepads, etc.) for the OS and are pushing game > development studios hard to port past and future games to Linux so they > may be distributed through SteamOS. > > http://linux.slashdot.org/story/13/12/14/0045211/valve-releases-debian-based-steamos-beta > > I'm downloading the ISO now to test it in a VM: > > magnet:?xt=urn:btih:1e4dae83371ba704d5d89e1828068ef0c4151e32&dn=SteamOSInstaller.zip&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce > > http://store.steampowered.com/steamos/download/?ver=default > > Currently GAMBAS can't run on iOS, OSX, Windows, Android or any game > console OSs (PS3/4, Xbox 360/One, etc.). There is a strong possibility, > especially if we contact Valve head Gabe Newell directly, that GAMBAS > will be able to run on SteamOS with GAMBAS applications being > distributed through Steam. I think it would be a serious mistake to let > this opportunity slip by while SteamOS is still in beta. It's a very > rare opportunity to increase the potential install base of GAMBAS > applications that we may not see again. > > One glaring issue however may be GAMBAS's required packages and > dependencies. SteamOS is basically a console OS, meaning it is expected > to work the same way throughout its lifespan with the exception of > Valve-tested updates. I doubt Valve would allow an application to > arbitrarily install packages. Is there a way to package a GAMBAS > application such that all the dependencies and libraries are stored with > the application and not installed system-wide? It would be like a > Windows application having all it's DLLs stored in its installation > directory, ignoring the Windows system DLLs. > > Anyway, I'd like to hear everyone's opinion on this. I'm pretty damn > excited! > If SteamOS is a Debian and use the Debian package manager, you should be able to install any Gambas program the same way as on Debian. Why do you want to install Gambas programs the Windows way? -- Beno?t Minisini From kevinfishburne at ...1887... Sat Dec 14 23:04:41 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 14 Dec 2013 17:04:41 -0500 Subject: [Gambas-user] SteamOS and GAMBAS In-Reply-To: <52ACD4C1.5010109@...1...> References: <52ACD2B0.8070408@...1887...> <52ACD4C1.5010109@...1...> Message-ID: <52ACD5F9.9050902@...1887...> On 12/14/2013 04:59 PM, Beno?t Minisini wrote: > Le 14/12/2013 22:50, Kevin Fishburne a ?crit : >> Valve just released the first beta of SteamOS, a Debian Wheezy-based >> distro which runs the Steam client in Big Picture mode (designed for >> televisions). SteamOS is Valve's attempt to circumvent the walled >> gardens that are Microsoft Windows and Apple iOS/OSX and allow the >> digital distribution of their games though Steam independent of a >> locked-down OS. Their plan is to allow third party OEMs and VARs to >> install SteamOS onto "steamboxes", which essentially are HTPCs (PCs >> designed for the living room). Valve is developing their own custom >> input devices (gamepads, etc.) for the OS and are pushing game >> development studios hard to port past and future games to Linux so they >> may be distributed through SteamOS. >> >> http://linux.slashdot.org/story/13/12/14/0045211/valve-releases-debian-based-steamos-beta >> >> I'm downloading the ISO now to test it in a VM: >> >> magnet:?xt=urn:btih:1e4dae83371ba704d5d89e1828068ef0c4151e32&dn=SteamOSInstaller.zip&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce >> >> http://store.steampowered.com/steamos/download/?ver=default >> >> Currently GAMBAS can't run on iOS, OSX, Windows, Android or any game >> console OSs (PS3/4, Xbox 360/One, etc.). There is a strong possibility, >> especially if we contact Valve head Gabe Newell directly, that GAMBAS >> will be able to run on SteamOS with GAMBAS applications being >> distributed through Steam. I think it would be a serious mistake to let >> this opportunity slip by while SteamOS is still in beta. It's a very >> rare opportunity to increase the potential install base of GAMBAS >> applications that we may not see again. >> >> One glaring issue however may be GAMBAS's required packages and >> dependencies. SteamOS is basically a console OS, meaning it is expected >> to work the same way throughout its lifespan with the exception of >> Valve-tested updates. I doubt Valve would allow an application to >> arbitrarily install packages. Is there a way to package a GAMBAS >> application such that all the dependencies and libraries are stored with >> the application and not installed system-wide? It would be like a >> Windows application having all it's DLLs stored in its installation >> directory, ignoring the Windows system DLLs. >> >> Anyway, I'd like to hear everyone's opinion on this. I'm pretty damn >> excited! >> > If SteamOS is a Debian and use the Debian package manager, you should be > able to install any Gambas program the same way as on Debian. Why do you > want to install Gambas programs the Windows way? > I don't... I think it's a bad idea in general. What it comes down to is whether or not Linux applications distributed through Steam must be self-contained or are allowed to install system packages as required dependencies. I'll have to ask Valve, but I just don't think they'd allow it as it could produce unexpected results and potentially cause problems with the OS. So I'm thinking either GAMBAS and its dependencies would need to be preinstalled on SteamOS or the GAMBAS application would need to be self-contained. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From sourceforge-raindog2 at ...94... Sun Dec 15 00:21:14 2013 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 14 Dec 2013 18:21:14 -0500 Subject: [Gambas-user] SteamOS and GAMBAS In-Reply-To: <52ACD2B0.8070408@...1887...> References: <52ACD2B0.8070408@...1887...> Message-ID: <52ACE7EA.1090202@...94...> On 12/14/2013 04:50 PM, Kevin Fishburne wrote: > SteamOS is Valve's attempt to circumvent the walled > gardens that are Microsoft Windows and Apple iOS/OSX and allow the > digital distribution of their games though ...their own walled garden. I think SteamOS is a great development, but let's not kid ourselves: Valve is using Linux to push their own DRM-based app store. It's about pushing Steam, not pushing Linux. I appreciate that they're growing the market for Linux games, because now there's more than just Icculus porting Humble Bundle games to Linux. But I think it's telling that they call SteamOS a "fork" of Debian, and I certainly have no interest in assisting people who want to create DRM-encumbered Gambas apps. I think it's more likely that someone who wants to use a high-level language is going to use C# or VB with Monogame, since it works on not just Linux but everything from the iPhone to the Ouya, and the form design advantage that Gambas provides is erased if you're using the SDL/OpenGL components for your game. That said, here at home, our next desktop PC will most likely be a Steambox hooked up to our television. As for the Gambas packaging question, since it is essentially a console OS, if Gambas development is supported at all, in all likelihood you'll just have whatever version of Gambas available that the version of Debian they're based on does, and you'll need to make your code work on that. Breaking APIs between minor releases is not going to work, so they'll probably just pick one and freeze it. Their beta page says "Most of all, it is an open Linux platform that leaves you in full control. You can take charge of your system and install new software or content as you want," and says they use apt for their own package management. I take that to mean that you'll be able to add your own software sources and install whatever you like, being cautious not to stomp on Valve's own ABIs. Whether it'll be easy for your app's non-technical audience to add your repo and install your stuff -- as easy as it is on Win8 or OSX or Android, at least -- is another question, but one that should become clear within the next few months. Rob From shanep1967 at ...169... Sun Dec 15 01:59:12 2013 From: shanep1967 at ...169... (Shane) Date: Sun, 15 Dec 2013 11:59:12 +1100 Subject: [Gambas-user] sdl Message-ID: <52ACFEE0.8020507@...169...> what's going on here i'm trying to display and image with a rectangle around it on an SDL Window using Screen.Clear Draw.Image Draw.Rect when i do this i get just the Rect if i comment out the Draw.Rect the Image shows and if i comment out the Screen.Clear the image and rect show From mckaygerhard at ...626... Sun Dec 15 03:07:46 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 14 Dec 2013 21:37:46 -0430 Subject: [Gambas-user] SteamOS and GAMBAS Message-ID: i said before: we always behind of "mocosoft guiindows" shadows.. with this king of people... ...so if debian has a SDL system lib, its NONSENSE include another SDL inside program.. From: Kevin Fishburne > application such that all the dependencies and libraries are stored with > the application and not installed system-wide? It would be like a > Windows application having all it's DLLs stored in its installation right no? always behing the shadows of window? right? like windo that, like windo this.. when the thing will be done in the linux way? From: Beno?t Minisini > If SteamOS is a Debian and use the Debian package manager, you should be > able to install any Gambas program the same way as on Debian. Why do you Obviously.. Valve uses debian and reinventing the wheel.. Debian are not windo, -- Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From shanep1967 at ...169... Sun Dec 15 07:06:43 2013 From: shanep1967 at ...169... (Shane) Date: Sun, 15 Dec 2013 17:06:43 +1100 Subject: [Gambas-user] sdl In-Reply-To: <52ACFEE0.8020507@...169...> References: <52ACFEE0.8020507@...169...> Message-ID: <52AD46F3.2050701@...169...> i did a small program On 15/12/13 11:59, Shane wrote: > what's going on here i'm trying to display and image with a rectangle > around it on an SDL Window > using > > Screen.Clear > Draw.Image > Draw.Rect > > when i do this i get just the Rect > if i comment out the Draw.Rect the Image shows > and if i comment out the Screen.Clear the image and rect show > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -------------- next part -------------- A non-text attachment was scrubbed... Name: pictest-0.0.1.tar.gz Type: application/gzip Size: 4852 bytes Desc: not available URL: From sudeep.d at ...3254... Sun Dec 15 07:07:51 2013 From: sudeep.d at ...3254... (//SCLPL/ Sudeep Damodar) Date: Sun, 15 Dec 2013 11:37:51 +0530 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: Hi All, How to make .deb file in gmabas Best Regards Sudeep On 12/14/13, Jussi Lahtinen wrote: > There are paint and draw method, both can do that easily. > http://gambasdoc.org/help/comp/gb.qt4/draw?v3 > http://gambasdoc.org/help/comp/gb.qt4/paint?v3 > > I personally find draw method as more intuitive. > > Jussi > > > > On Sat, Dec 14, 2013 at 7:25 AM, //SCLPL/ Sudeep Damodar < > sudeep.d at ...3254...> wrote: > >> Hi All >> Thanks for comments.i have one doubt im going to build laser marking >> application in gambas .for example just like weld mark software .in this >> case i want line ,circle , rectangle this like control how i get this >> like >> controls in gambas >> >> Thank n Regards >> Sudeep >> >> >> On Fri, Dec 13, 2013 at 11:43 PM, Jussi Lahtinen >> wrote: >> >> > > -funtions or subs that make changes in the parameters need to be >> > > called >> > > with Byref >> > > >> > >> > Only if the parameters are not objects (objects are always passed as >> > byref). >> > Usually need for byref means broken object model. >> > >> > >> > - "this" = "that" usually means "this" will have the same value of >> "that" >> > > and when you change "that", "this" will surprisingly change too >> > > >> > >> > Only when "this" and "that" are object references. >> > It shouldn't be surprise..? >> > >> > >> > Jussi >> > >> > >> ------------------------------------------------------------------------------ >> > Rapidly troubleshoot problems before they affect your business. Most IT >> > organizations don't have a clear picture of how application performance >> > affects their revenue. With AppDynamics, you get 100% visibility into >> your >> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> > AppDynamics >> > Pro! >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into >> your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sun Dec 15 07:37:48 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 15 Dec 2013 17:07:48 +1030 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: Message-ID: <1387089468.3136.73.camel@...2688...> On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: > Hi All, > > How to make .deb file in gmabas > > Best Regards > > Sudeep @IDE ^Project|Make|Installation Package @Wizard #Follow the instructions until step 3 Select Debian #Follow the instructions or if that is too hard, press F1 Then read every page. Like we all have done. or if that is too hard, read this http://www.catb.org/~esr/faqs/smart-questions.html Fair go, Sudeep, make at least a bit of effort. From john.aaron.rose at ...626... Sun Dec 15 10:10:35 2013 From: john.aaron.rose at ...626... (John Rose) Date: Sun, 15 Dec 2013 09:10:35 +0000 Subject: [Gambas-user] Writing a text file from the contents of a text area Message-ID: <52AD720B.6090807@...626...> Bill, The textarea control (i.e. as you see it on the form) has a number of lines. But I'm also interested in an example for a textarea string having a "number of lines" (i.e. it contains \n escape characters). Also, I'm interested in an example where a string is repeatedly presented (with different values, each without a \n at the end) for writing to a file. As I previously said the file should be readable (and with each line displayed on a separate line) by gedit. My assumption is that I would have to use an Open command, followed by a Write command, followed by a Close command. -- Regards, John From gambas at ...1... Sun Dec 15 12:53:28 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Dec 2013 12:53:28 +0100 Subject: [Gambas-user] sdl In-Reply-To: <52AD46F3.2050701@...169...> References: <52ACFEE0.8020507@...169...> <52AD46F3.2050701@...169...> Message-ID: <52AD9838.8090601@...1...> Le 15/12/2013 07:06, Shane a ?crit : > i did a small program That program does not use SDL at all. Please provide a project that shows your problem! -- Beno?t Minisini From gambas at ...1... Sun Dec 15 13:12:32 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Dec 2013 13:12:32 +0100 Subject: [Gambas-user] Gambas3 crash In-Reply-To: <52A76834.4040909@...626...> References: <52A76834.4040909@...626...> Message-ID: <52AD9CB0.60003@...1...> Le 10/12/2013 20:15, Pino Zollo a ?crit : > While adding a component...in the process of converting a Gambas2 program > > Gambas3 crashes ...see the attached image > > > Thanks > > Pino > Can you send me the full Gambas 2 project? -- Beno?t Minisini From john.aaron.rose at ...626... Sun Dec 15 18:18:36 2013 From: john.aaron.rose at ...626... (John Rose) Date: Sun, 15 Dec 2013 17:18:36 +0000 Subject: [Gambas-user] App launch icons on Ubuntu Message-ID: <52ADE46C.60702@...626...> Using Gambas 3.5.1, I'm not sure how to create an launcher icon for a Gambas app. I thought that I had to add the icon's file to the Data entry using the New>Image menu entry. After that I used to do something else, which I've now forgotten. I also had the feeling that the icon's filename must not have spaces or upper case letters in it, but I could well be wrong in that. PS I can put an icon on a form (e.g. the FMain) using the form's icon property but I think that only puts the icon in the form's title bar. -- Regards, John From oceanosoftlapalma at ...626... Sun Dec 15 18:43:42 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Sun, 15 Dec 2013 18:43:42 +0100 Subject: [Gambas-user] Writing a text file from the contents of a text area In-Reply-To: <52AD720B.6090807@...626...> References: <52AD720B.6090807@...626...> Message-ID: Bill, take a look to gambas documentation for the easy way to save a string to a text file. http://gambasdoc.org/help/comp/gb/file/save?v3 Regards, Ricardo Diaz 2013/12/15 John Rose > Bill, > > The textarea control (i.e. as you see it on the form) has a number > of lines. But I'm also interested in an example for a textarea string > having a "number of lines" (i.e. it > contains \n escape characters). Also, I'm interested in an example where > a string is repeatedly presented (with different values, each without a > \n at the end) for writing to a file. > > As I previously said the file should be readable (and with each line > displayed on a separate line) by gedit. > > My assumption is that I would have to use an Open command, followed by a > Write command, followed by a Close command. > > -- > Regards, John > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sun Dec 15 19:04:20 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 15 Dec 2013 19:04:20 +0100 Subject: [Gambas-user] Writing a text file from the contents of a text area In-Reply-To: <52AD720B.6090807@...626...> References: <52AD720B.6090807@...626...> Message-ID: <20131215180420.GD515@...2774...> On Sun, 15 Dec 2013, John Rose wrote: > Bill, > > The textarea control (i.e. as you see it on the form) has a number > of lines. But I'm also interested in an example for a textarea string > having a "number of lines" (i.e. it > contains \n escape characters). Also, I'm interested in an example where > a string is repeatedly presented (with different values, each without a > \n at the end) for writing to a file. > > As I previously said the file should be readable (and with each line > displayed on a separate line) by gedit. > > My assumption is that I would have to use an Open command, followed by a > Write command, followed by a Close command. OK, to structure the answers a bit: 1) Yes, you can use Open, Write, Close as you expected. It goes like this: Dim hFile As File Dim sLine As String ' Write to sDestionationPath. If the file already exists, we truncate it ' to zero length and write an entirely new one. (The other way would be to ' specify Append instead of Create, in which case we would... append data) hFile = Open sDestinationPath For Write Create ' Write your lines. We first split the txtArea.Text (your TextArea's ' contents) into lines, then write them to the file. ' ' Note that Split() removes the delimiter, i.e. "\n", but Print agains ' adds it to the output. So the result is unchanged. For Each sLine In Split(txtArea.Text, "\n") Print #hFile, sLine Next ' Close the file. Close #hFile Note that this isn't the most elegant or even most efficient solution - by far. It only serves as an example of how it looks like. You don't need, for example, to split the TextArea contents first and then merge them again as you write the file. You can also directly write the contents: hFile = Open ... Write #hFile, txtArea.Text, Len(txtArea.Text) Close #hFile Now let us consider CSV files or the like where you always have integral lines to write. In this case, you can substitute Write by Output in the Open statement: hFile = Open sDestinationPath For Output Create The only difference is that For Output designs the stream to be buffered. It is more efficient then. You can also use File.Begin() and File.Send() to explicitly buffer if you feel needed. As you noticed, there are still other ways to write your file but these really depend on what you want to do. 2) As the others pointed out, you normally don't need to call upon Open to write data to a file which you already have assembled in a String. You use the File.Save() method instead: File.Save(sDestinationPath, txtArea.Text) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From johny.provoost at ...27... Sun Dec 15 19:27:15 2013 From: johny.provoost at ...27... (Johny Provoost) Date: Sun, 15 Dec 2013 19:27:15 +0100 Subject: [Gambas-user] App launch icons on Ubuntu In-Reply-To: <52ADE46C.60702@...626...> References: <52ADE46C.60702@...626...> Message-ID: <52ADF483.9070500@...27...> op 15-12-13 18:18, John Rose schreef: > Using Gambas 3.5.1, I'm not sure how to create an launcher icon for a > Gambas app. I thought that I had to add the icon's file to the Data > entry using the New>Image menu entry. After that I used to do something > else, which I've now forgotten. I also had the feeling that the icon's > filename must not have spaces or upper case letters in it, but I could > well be wrong in that. > PS I can put an icon on a form (e.g. the FMain) using the form's icon > property but I think that only puts the icon in the form's title bar. > Do you mean a launcher in Ubuntu unity? For that you can use 'Create Launcher' witch you can find in the software center. I have written a small thing for this myself, but it's completely in dutch. I can send it if you want. -- *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* From kevinfishburne at ...1887... Sun Dec 15 21:50:18 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 15 Dec 2013 15:50:18 -0500 Subject: [Gambas-user] SteamOS and GAMBAS In-Reply-To: <52ACE7EA.1090202@...94...> References: <52ACD2B0.8070408@...1887...> <52ACE7EA.1090202@...94...> Message-ID: <52AE160A.1070704@...1887...> On 12/14/2013 06:21 PM, Rob Kudla wrote: > On 12/14/2013 04:50 PM, Kevin Fishburne wrote: >> SteamOS is Valve's attempt to circumvent the walled >> gardens that are Microsoft Windows and Apple iOS/OSX and allow the >> digital distribution of their games though > ...their own walled garden. > > I think SteamOS is a great development, but let's not kid ourselves: Valve > is using Linux to push their own DRM-based app store. It's about pushing > Steam, not pushing Linux. I appreciate that they're growing the market for > Linux games, because now there's more than just Icculus porting Humble > Bundle games to Linux. But I think it's telling that they call SteamOS a > "fork" of Debian, and I certainly have no interest in assisting people who > want to create DRM-encumbered Gambas apps. I completely agree with you as to Valve's motives. I also believe the proverb "the enemy of my enemy is my friend" and think that applies here. From my initial research it also appears as though Valve allows apps to be published without DRM: http://www.gog.com/forum/general/list_of_drmfree_games_on_steam/page1 Many independent studios release their games DRM free, which is nearly a requirement for their market. I'm against DRM of any kind, and while most apps on Steam have DRM I think the more apps that -don't- have it the better the chance of turning the tide against it. Steam also now allows applications that are not games, making the possibility of GAMBAS apps on Steam endless. > I think it's more likely that someone who wants to use a high-level > language is going to use C# or VB with Monogame, since it works on not just > Linux but everything from the iPhone to the Ouya, and the form design > advantage that Gambas provides is erased if you're using the SDL/OpenGL > components for your game. That could be so, but we're all about choice and I think GAMBAS is an excellent one. I also think a program's viability is strengthened by the number of its users, and in turn the number of its users is increased by the program's platform availability. > That said, here at home, our next desktop PC will most likely be a Steambox > hooked up to our television. > > As for the Gambas packaging question, since it is essentially a console OS, > if Gambas development is supported at all, in all likelihood you'll just > have whatever version of Gambas available that the version of Debian > they're based on does, and you'll need to make your code work on that. > Breaking APIs between minor releases is not going to work, so they'll > probably just pick one and freeze it. > > Their beta page says "Most of all, it is an open Linux platform that leaves > you in full control. You can take charge of your system and install new > software or content as you want," and says they use apt for their own > package management. I take that to mean that you'll be able to add your own > software sources and install whatever you like, being cautious not to stomp > on Valve's own ABIs. Whether it'll be easy for your app's non-technical > audience to add your repo and install your stuff -- as easy as it is on > Win8 or OSX or Android, at least -- is another question, but one that > should become clear within the next few months. > > Rob That's awesome...I didn't read that. I'm hoping (will be testing today) that an app published through Steam can issue a sudo or gksudo to add a PPA or install packages. If so, the only question is will OEMs disable this capability or otherwise make it difficult for the end user. I'll see what I can see and keep everyone posted. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun Dec 15 22:02:11 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 15 Dec 2013 16:02:11 -0500 Subject: [Gambas-user] SteamOS and GAMBAS In-Reply-To: References: Message-ID: <52AE18D3.30204@...1887...> On 12/14/2013 09:07 PM, PICCORO McKAY Lenz wrote: > i said before: we always behind of "mocosoft guiindows" shadows.. with > this king of people... > > ...so if debian has a SDL system lib, its NONSENSE include another SDL > inside program.. Perhaps I should update my sig to say, "I don't use Windows. I hate Windows. Windows can die in a fire while I laugh maniacally" and you'd feel better? Another way to look at it, rather than nonsense, would be as a hack. A hack is basically to get a thing done using any means necessary, regardless of how unconventional. My proposal was due to an uninformed guess that the end user would not be easily allowed to install packages or otherwise perform root operations. At this point it appears there may be a more Linux-like, traditional method. > From: Kevin Fishburne >> application such that all the dependencies and libraries are stored with >> the application and not installed system-wide? It would be like a >> Windows application having all it's DLLs stored in its installation > right no? always behing the shadows of window? right? > like windo that, like windo this.. > > when the thing will be done in the linux way? It would be more like Linux regressing from the Linux way to the Windows way; taking a step backward. Linux package management has always been light years ahead of how other OSs install software. Other than available software, there is nothing about Windows remotely superior to GNU/Linux. So relax, you got the wrong guy here. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 mood: I don't use Windows. I hate Windows. Windows can die in a fire while I laugh maniacally From shanep1967 at ...169... Sun Dec 15 22:57:06 2013 From: shanep1967 at ...169... (Shane) Date: Mon, 16 Dec 2013 08:57:06 +1100 Subject: [Gambas-user] sdl In-Reply-To: <52AD9838.8090601@...1...> References: <52ACFEE0.8020507@...169...> <52AD46F3.2050701@...169...> <52AD9838.8090601@...1...> Message-ID: <52AE25B2.7070401@...169...> sorry wrong one try this On 15/12/13 22:53, Beno?t Minisini wrote: > Le 15/12/2013 07:06, Shane a ?crit : >> i did a small program > That program does not use SDL at all. Please provide a project that > shows your problem! > -------------- next part -------------- A non-text attachment was scrubbed... Name: SDLtest-0.0.1.tar.gz Type: application/gzip Size: 7731 bytes Desc: not available URL: From bbruen at ...2308... Mon Dec 16 00:36:54 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 16 Dec 2013 10:06:54 +1030 Subject: [Gambas-user] Overriding native classess Message-ID: <1387150614.3136.89.camel@...2688...> I've got myself in a real mess with this one. :-( I have a class in a local ("third-party") component that inherits the native Application class. It provides some generic setup stuff, database connectivity across networks and some basic security. It works fine and has done so for a few years. Now I have a need to override the Application class itself in a project that uses this component (to provide an additional property which is a collection of gb.logging Logger objects.) The new Application class uses an _init() method to set up these logs. When I run the project through the IDE, it starts and the stack backtrace panel shows "(native code)" and execution just stops. It doesn't hang or anything, it just stops as if it hit a debugging breakpoint. There is no further information. If I then continue execution (via F5 ) the program just ends. No errors, nothing. I realise that the problem is caused by this mixing of overriding and inheriting the native Application class. My problem is that I can't see where to start looking for a solution. So, Is this mixing of inheritance and overrides on native classes "illegal"? (If not) Does anyone know what is going on inside this "native code" at the point of program startup? tia Bruce From gambas at ...1... Mon Dec 16 00:49:03 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Dec 2013 00:49:03 +0100 Subject: [Gambas-user] Overriding native classess In-Reply-To: <1387150614.3136.89.camel@...2688...> References: <1387150614.3136.89.camel@...2688...> Message-ID: <52AE3FEF.8010902@...1...> Le 16/12/2013 00:36, Bruce a ?crit : > I've got myself in a real mess with this one. :-( > > I have a class in a local ("third-party") component that inherits the > native Application class. It provides some generic setup stuff, database > connectivity across networks and some basic security. It works fine and > has done so for a few years. > > Now I have a need to override the Application class itself in a project > that uses this component (to provide an additional property which is a > collection of gb.logging Logger objects.) The new Application class uses > an _init() method to set up these logs. > > When I run the project through the IDE, it starts and the stack > backtrace panel shows "(native code)" and execution just stops. It > doesn't hang or anything, it just stops as if it hit a debugging > breakpoint. There is no further information. If I then continue > execution (via F5 ) the program just ends. No errors, nothing. > > I realise that the problem is caused by this mixing of overriding and > inheriting the native Application class. My problem is that I can't see > where to start looking for a solution. > > So, > Is this mixing of inheritance and overrides on native classes "illegal"? > (If not) Does anyone know what is going on inside this "native code" at > the point of program startup? > > tia > Bruce > > Without the source code, hard to say. Usually the depicted behaviour is an error returned by the debugger not displayed by the IDE, because it is raised "too early" (when initializing classes). -- Beno?t Minisini From gambas at ...1... Mon Dec 16 01:35:03 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Dec 2013 01:35:03 +0100 Subject: [Gambas-user] sdl In-Reply-To: <52AE25B2.7070401@...169...> References: <52ACFEE0.8020507@...169...> <52AD46F3.2050701@...169...> <52AD9838.8090601@...1...> <52AE25B2.7070401@...169...> Message-ID: <52AE4AB7.6020709@...1...> Le 15/12/2013 22:57, Shane a ?crit : > sorry wrong one try this > > On 15/12/13 22:53, Beno?t Minisini wrote: >> Le 15/12/2013 07:06, Shane a ?crit : >>> i did a small program >> That program does not use SDL at all. Please provide a project that >> shows your problem! >> > OK, the bug should be fixed in revision #6005. Regards, -- Beno?t Minisini From bbruen at ...2308... Mon Dec 16 02:01:40 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 16 Dec 2013 11:31:40 +1030 Subject: [Gambas-user] Overriding native classess In-Reply-To: <52AE3FEF.8010902@...1...> References: <1387150614.3136.89.camel@...2688...> <52AE3FEF.8010902@...1...> Message-ID: <1387155700.3136.96.camel@...2688...> On Mon, 2013-12-16 at 00:49 +0100, Beno?t Minisini wrote: > Le 16/12/2013 00:36, Bruce a ?crit : > > I've got myself in a real mess with this one. :-( > > > > I have a class in a local ("third-party") component that inherits the > > native Application class. It provides some generic setup stuff, database > > connectivity across networks and some basic security. It works fine and > > has done so for a few years. > > > > Now I have a need to override the Application class itself in a project > > that uses this component (to provide an additional property which is a > > collection of gb.logging Logger objects.) The new Application class uses > > an _init() method to set up these logs. > > > > When I run the project through the IDE, it starts and the stack > > backtrace panel shows "(native code)" and execution just stops. It > > doesn't hang or anything, it just stops as if it hit a debugging > > breakpoint. There is no further information. If I then continue > > execution (via F5 ) the program just ends. No errors, nothing. > > > > I realise that the problem is caused by this mixing of overriding and > > inheriting the native Application class. My problem is that I can't see > > where to start looking for a solution. > > > > So, > > Is this mixing of inheritance and overrides on native classes "illegal"? > > (If not) Does anyone know what is going on inside this "native code" at > > the point of program startup? > > > > tia > > Bruce > > > > > > Without the source code, hard to say. Yes, I expected that :-) I had started to simplify up an example and in the course of doing that finally got the error balloon that I was, unfortunately, expecting: "Overriding an already inherited class is forbidden". Oh well, that component was overdue for a "major grease and oil change" anyway to take advantage of stuff that wasn't around when it was originally written. > Usually the depicted behaviour is an error returned by the debugger not > displayed by the IDE, because it is raised "too early" (when > initializing classes). > What was interesting was that the error still occurs when there is no code that references the component, it's only reference was in the project properties (i.e. it is still in the .project and .startup files). Is that expected? B From ihaywood3 at ...626... Mon Dec 16 02:56:14 2013 From: ihaywood3 at ...626... (Ian Haywood) Date: Mon, 16 Dec 2013 12:56:14 +1100 Subject: [Gambas-user] stock icons Message-ID: <52AE5DBE.1070108@...626...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A user of our program is getting this error. 16/12/2013 10:29:11 [ERROR] Invalid object 16/12/2013 10:29:11 [ERROR] _DefaultStock.LoadImage.14 16/12/2013 10:29:11 [ERROR] Stock._get.507 the offending line of code is this: If Message.warning(smsg, "Yes", "No") = 1 Then Looks like Gambas can't find the right icon for the "Warning" dialog box, presumably it's not installed correctly. I can't reproduce it myself: works fine on my box. Is there any way to know what icon file gambas is looking for? as a feature request: could gambas fail more gracefully: i.e. not show the icon and produce a warning message, instead of crashing completely? Ian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iD8DBQFSrl2+KPy8UudQZS4RAlTlAKCLAr4XlNUT05u/xSx1Ri1PIIP2VACgnVl0 t7RPoL7YNa7fNR12D5kdego= =SjcW -----END PGP SIGNATURE----- From gambas at ...1... Mon Dec 16 03:01:05 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Dec 2013 03:01:05 +0100 Subject: [Gambas-user] stock icons In-Reply-To: <52AE5DBE.1070108@...626...> References: <52AE5DBE.1070108@...626...> Message-ID: <52AE5EE1.2080301@...1...> Le 16/12/2013 02:56, Ian Haywood a ?crit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > A user of our program is getting this error. > > 16/12/2013 10:29:11 [ERROR] Invalid object > 16/12/2013 10:29:11 [ERROR] _DefaultStock.LoadImage.14 > 16/12/2013 10:29:11 [ERROR] Stock._get.507 > > the offending line of code is this: > > If Message.warning(smsg, "Yes", "No") = 1 Then > > Looks like Gambas can't find the right icon for the "Warning" dialog > box, presumably it's not installed correctly. > > I can't reproduce it myself: works fine on my box. > Is there any way to know what icon file gambas is looking for? > > as a feature request: could gambas fail more gracefully: i.e. not show > the icon and produce a warning message, instead of crashing completely? > > Ian You can try to set the GB_STOCK_DEBUG environment variable to "1", and see if you are more details about the error. Normally, you should not have any error on Stock._get.507. Which version of Gambas do you use? What returns the IDE system information dialog? Please give some details! -- Beno?t Minisini From sebikul at ...626... Mon Dec 16 04:14:48 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 16 Dec 2013 01:14:48 -0200 Subject: [Gambas-user] gb.logging API change Message-ID: I just commited an update to the gb.logging component. Please note that a call to Logger.Begin() is no longer necessary and will fail. The log is automatically opened for writing when creating the logger. A recent change, too, is the ability to use the component without creating a Logger instance. If you call Logger.Log(...) a new, hidden instance will be created for you. This is useful if you only need one Logger and use it in multiple Modules/Classes of you application. It will save you a public variable and a few LOC. Also, it is now possible to redirect the Logger output to stderr ;) Hope you like it! Please let me know any thoughts! From bbruen at ...2308... Mon Dec 16 06:53:18 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 16 Dec 2013 16:23:18 +1030 Subject: [Gambas-user] gb.db Connections questions Message-ID: <1387173198.3136.104.camel@...2688...> Fiddling around under the hood .... Is there any hidden reason why Connections is readonly? Is there any reason for it not having a Count property? The reason being, I am trying to get rid of my Application override/inheritance problem from this morning. I have run into an issue where a) we configure the connection host at runtime (the age-old "dev/test/prod" server configuration) and b) one library creates a hardcoded connection (it's actually a "softcoded" connection) to an SQLite file in the tmp/gambas.999/proc directory. I need to share both of these connections up and down our component/library tree. I have changed our local copy of gb.db but am wondering if there is any hidden issues that could arise that mean that Connections must be readonly. tia Bruce From bbruen at ...2308... Mon Dec 16 07:15:24 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 16 Dec 2013 16:45:24 +1030 Subject: [Gambas-user] gb.logging API change In-Reply-To: References: Message-ID: <1387174524.3136.120.camel@...2688...> On Mon, 2013-12-16 at 01:14 -0200, Sebastian Kulesz wrote: > I just commited an update to the gb.logging component. Please note that a > call to Logger.Begin() is no longer necessary and will fail. The log is > automatically opened for writing when creating the logger. > > A recent change, too, is the ability to use the component without creating > a Logger instance. If you call Logger.Log(...) a new, hidden instance will > be created for you. This is useful if you only need one Logger and use it > in multiple Modules/Classes of you application. It will save you a public > variable and a few LOC. Grraaaaaagh! I just spent several hours working up a solution for logging to a single log across multiple components/libraries. One question, is there any change to the parameters? AKA where does the log info get sent to when using the hidden instance? > > Also, it is now possible to redirect the Logger output to stderr ;) > > Hope you like it! Please let me know any thoughts! I have been thinking (hard to believe!) about some kind of scheme for logging to multiple files. Some ideas were to a) use the cron approach i.e. 3 logs "error", "info" and "warning" but probably "error", "info" and "debug" would be better suited to a development system like Gambas. b) similar to a) but allow configuration as to what level message goes to which log. Here on our production stuff we really need to keep errors & warnings very separate from the info log(s) as they need high visibility (i.e. if error.log is not empty then everyone panic!), the "info" logs are of two types, general "this got done and that got done and this is what came out" data and audit data (bluh!) and we really need the "debug.log" on the dev/fix side of things. The other thing I would like to see is a way to increase the number of levels of detail once we get down to the "debug" level. This would be on an application basis. cheers Bruce From sudeep.d at ...3254... Mon Dec 16 07:57:10 2013 From: sudeep.d at ...3254... (//SCLPL/ Sudeep Damodar) Date: Mon, 16 Dec 2013 12:27:10 +0530 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: <1387089468.3136.73.camel@...2688...> References: <1387089468.3136.73.camel@...2688...> Message-ID: Hi all How to use Type in gambas.my VB Code is given below Private Type coordinates XVal As Double YVal As Double laseron As String mode As String End Type When im compile i got error AS is missing ,if i put AS its gets some other error,so i have to know what is Type syntax in Gambas Thanks n Regards Sudeep On Sun, Dec 15, 2013 at 12:07 PM, Bruce wrote: > On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: > > Hi All, > > > > How to make .deb file in gmabas > > > > Best Regards > > > > Sudeep > @IDE > ^Project|Make|Installation Package > @Wizard > #Follow the instructions until step 3 > Select Debian > #Follow the instructions > > or if that is too hard, press F1 > Then read every page. > Like we all have done. > > or if that is too hard, read this > http://www.catb.org/~esr/faqs/smart-questions.html > > Fair go, Sudeep, make at least a bit of effort. > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Mon Dec 16 09:44:46 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 08:44:46 +0000 Subject: [Gambas-user] Writing a text file from the contents of a text area Message-ID: <52AEBD7E.6050309@...626...> Tobias, Thanks for your useful coding snippets. It would be good to put these into the Gambas online documentation. This might save the same questions being repeatedly asked in this mailing list! -- Regards, John From john.aaron.rose at ...626... Mon Dec 16 09:55:27 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 08:55:27 +0000 Subject: [Gambas-user] App launch icons on Ubuntu Message-ID: <52AEBFFF.8050802@...626...> Johny, Thanks for your suggestion. I installed 'Create Launcher' from the Ubuntu Software Center. Why does it need 'Buy' when it has a zero price? I also noticed that 'Manage Launcher' is a newer version of 'Create launcher' with extra facilities (I found it when searching for 'Create Launcher' in the Ubuntu Software Center. Do you recommend using that instead? However, the use of 'Create Launcher' or 'Manage Launcher' does not answer my question. When the Gambas IDE is used to create an 'Installation Package' and the resultant .deb file is installed on the same or another computer using gdebi, I do not have the icon (for the app) on the Unity launcher which I want but instead the standard Gambas icon. As I previously said, I used to be able to do this but I've forgotten the method. Either that or the method doesn't work for my version of Gambas (3.5.1) or for Ubuntu Precise. -- Regards, John From Gambas at ...1950... Mon Dec 16 09:55:04 2013 From: Gambas at ...1950... (Caveat) Date: Mon, 16 Dec 2013 09:55:04 +0100 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <1387089468.3136.73.camel@...2688...> Message-ID: <52AEBFE8.6090408@...1950...> http://msdn.microsoft.com/en-us/library/030kb3e9%28v=vs.90%29.aspx That should get you pointed in the right direction... Kind regards, Caveat On 16/12/13 07:57, //SCLPL/ Sudeep Damodar wrote: > Hi all > > How to use Type in gambas.my VB Code is given below > > Private Type coordinates > XVal As Double > YVal As Double > laseron As String > mode As String > End Type > > When im compile i got error AS is missing ,if i put AS its gets some other > error,so i have to know what is Type syntax in Gambas > > Thanks n Regards > Sudeep > > > On Sun, Dec 15, 2013 at 12:07 PM, Bruce wrote: > >> On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: >>> Hi All, >>> >>> How to make .deb file in gmabas >>> >>> Best Regards >>> >>> Sudeep >> @IDE >> ^Project|Make|Installation Package >> @Wizard >> #Follow the instructions until step 3 >> Select Debian >> #Follow the instructions >> >> or if that is too hard, press F1 >> Then read every page. >> Like we all have done. >> >> or if that is too hard, read this >> http://www.catb.org/~esr/faqs/smart-questions.html >> >> Fair go, Sudeep, make at least a bit of effort. >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Mon Dec 16 10:30:34 2013 From: willy at ...2734... (Willy Raets) Date: Mon, 16 Dec 2013 10:30:34 +0100 Subject: [Gambas-user] App launch icons on Ubuntu In-Reply-To: <52AEBFFF.8050802@...626...> References: <52AEBFFF.8050802@...626...> Message-ID: <1387186234.3261.4.camel@...3024...> On Mon, 2013-12-16 at 08:55 +0000, John Rose wrote: > Johny, > > Thanks for your suggestion. I installed 'Create Launcher' from the > Ubuntu Software Center. Why does it need 'Buy' when it has a zero price? > I also noticed that 'Manage Launcher' is a newer version of 'Create > launcher' with extra facilities (I found it when searching for 'Create > Launcher' in the Ubuntu Software Center. Do you recommend using that > instead? > > However, the use of 'Create Launcher' or 'Manage Launcher' does not > answer my question. When the Gambas IDE is used to create an > 'Installation Package' and the resultant .deb file is installed on the > same or another computer using gdebi, I do not have the icon (for the > app) on the Unity launcher which I want but instead the standard Gambas > icon. As I previously said, I used to be able to do this but I've > forgotten the method. Either that or the method doesn't work for my > version of Gambas (3.5.1) or for Ubuntu Precise. > Hi John, This Gambas application icon problem on Unity has been discussed recently here on the list. Go to the online mailing list forum to this topic (http://gambas.8142.n7.nabble.com/New-to-this-list-td44526.html) Check if that answers your question. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From johny.provoost at ...27... Mon Dec 16 10:54:36 2013 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 16 Dec 2013 10:54:36 +0100 Subject: [Gambas-user] App launch icons on Ubuntu In-Reply-To: <52AEBFFF.8050802@...626...> References: <52AEBFFF.8050802@...626...> Message-ID: <52AECDDC.1020608@...27...> op 16-12-13 09:55, John Rose schreef: > Johny, > > Thanks for your suggestion. I installed 'Create Launcher' from the > Ubuntu Software Center. Why does it need 'Buy' when it has a zero price? > I also noticed that 'Manage Launcher' is a newer version of 'Create > launcher' with extra facilities (I found it when searching for 'Create > Launcher' in the Ubuntu Software Center. Do you recommend using that > instead? > > However, the use of 'Create Launcher' or 'Manage Launcher' does not > answer my question. When the Gambas IDE is used to create an > 'Installation Package' and the resultant .deb file is installed on the > same or another computer using gdebi, I do not have the icon (for the > app) on the Unity launcher which I want but instead the standard Gambas > icon. As I previously said, I used to be able to do this but I've > forgotten the method. Either that or the method doesn't work for my > version of Gambas (3.5.1) or for Ubuntu Precise. > Thanks, didn't know about 'Manage Launcher'. The 'Buy' thing is probably because it's not open source. I see that Willy send you to the correct answer for your problem. -- *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* From gambas at ...1... Mon Dec 16 11:13:20 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Dec 2013 11:13:20 +0100 Subject: [Gambas-user] gb.db Connections questions In-Reply-To: <1387173198.3136.104.camel@...2688...> References: <1387173198.3136.104.camel@...2688...> Message-ID: <52AED240.8020909@...1...> Le 16/12/2013 06:53, Bruce a ?crit : > Fiddling around under the hood .... > > Is there any hidden reason why Connections is readonly? > Because it is a collection of connections defined in the project, so it is read-only. > Is there any reason for it not having a Count property? Not at all. I will add it. > > > The reason being, I am trying to get rid of my Application > override/inheritance problem from this morning. I have run into an issue > where a) we configure the connection host at runtime (the age-old > "dev/test/prod" server configuration) and b) one library creates a > hardcoded connection (it's actually a "softcoded" connection) to an > SQLite file in the tmp/gambas.999/proc directory. I need to share both > of these connections up and down our component/library tree. > > I have changed our local copy of gb.db but am wondering if there is any > hidden issues that could arise that mean that Connections must be > readonly. > > tia > Bruce > Did you try to override the Connections class instead? So that it returns both the static connections defined in the project or the new ones you want to add? -- Beno?t Minisini From john.aaron.rose at ...626... Mon Dec 16 11:35:49 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 10:35:49 +0000 Subject: [Gambas-user] App launch icons on Ubuntu Message-ID: <52AED785.6040708@...626...> Johny & Willy, Thanks for the answer. The solution is so obvious after someone tells you it (i.e. click menu entry Project -> Properties, click on the Gambas icon on tab). Johny, Re 'Manage Launcher': the implication from your message was that 'Manage Launcher' is not authored by you whereas 'Create Launcher' is. Is that correct? Also, I suggest that you put your app on http://whiteislandsoftware.com/index.php?page=start&keep_cedi_root=66. You'll need to register and then click on the Software link. I've previously put an app 'Maintain Desktop Configuration Files' on that site. However, it only allows editing these files using gedit. So your app is much better. -- Regards, John From bbruen at ...2308... Mon Dec 16 11:44:11 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 16 Dec 2013 21:14:11 +1030 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: <52AEBFE8.6090408@...1950...> References: <1387089468.3136.73.camel@...2688...> <52AEBFE8.6090408@...1950...> Message-ID: <1387190651.3136.148.camel@...2688...> On Mon, 2013-12-16 at 09:55 +0100, Caveat wrote: > http://msdn.microsoft.com/en-us/library/030kb3e9%28v=vs.90%29.aspx > > That should get you pointed in the right direction... > > Kind regards, > Caveat > > On 16/12/13 07:57, //SCLPL/ Sudeep Damodar wrote: > > Hi all > > > > How to use Type in gambas.my VB Code is given below > > > > Private Type coordinates > > XVal As Double > > YVal As Double > > laseron As String > > mode As String > > End Type With best regards to Caveat, who knows what he is talking about. Sudeep, There is a "struct" concept in Gambas, but it is not really a good idea to use it unless you know what you are doing. But for the sake of sanity: 1) structs must be public, which essentially means you have absolutely no protection, so Public Struct {Type} XVal As Float ' no not a Double, we have never heard of it YVal As Float ' ditto but perhaps you might like to read the help on datatypes laseron as String ' Boolean, what is happening here, maybe "perhaps" is a valid value mode As String ' great, so mode "Elephant" works here too End Struct 2) Good luck. 3) Either read the help or get out of my mailbox. From john.aaron.rose at ...626... Mon Dec 16 11:52:01 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 10:52:01 +0000 Subject: [Gambas-user] How to set the icon property of a form from a file in the project Message-ID: <52AEDB51.7090403@...626...> I want to set the FMain form's icon property (in the FMain Form_Open sub) to the picture contained in a .png file which I've added to to the Data section (of the Gambas IDE). Here is my non-working code, which gives 'Null Object' at runtime: Dim picIcon As Picture picIcon.Load("StreamRecorder.png") FMain.Icon = picIcon What do I change? PS the app is also called StreamRecorder. -- Regards, John From johny.provoost at ...27... Mon Dec 16 12:04:02 2013 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 16 Dec 2013 12:04:02 +0100 Subject: [Gambas-user] App launch icons on Ubuntu In-Reply-To: <52AED785.6040708@...626...> References: <52AED785.6040708@...626...> Message-ID: <52AEDE22.50308@...27...> op 16-12-13 11:35, John Rose schreef: Johny & Willy, Thanks for the answer. The solution is so obvious after someone tells you it (i.e. click menu entry Project -> Properties, click on the Gambas icon on tab). Johny, Re 'Manage Launcher': the implication from your message was that 'Manage Launcher' is not authored by you whereas 'Create Launcher' is. Is that correct? Also, I suggest that you put your app on [1]http://whiteislandsoftware.com/index.php?page=start&keep_cedi_root=66. You'll need to register and then click on the Software link. I've previously put an app 'Maintain Desktop Configuration Files' on that site. However, it only allows editing these files using gedit. So your app is much better. No John, 'Create Launcher' is not written by me. Mine was written in Gambas before I knew about Create Launcher, but I don't mind put it on whiteislandsoftware. Just gonna translate it first to English. -- Vriendelijke Groeten Johny Provoost mailto: [2]johny.provoost at ...27... mailto: [3]johny.provoost at ...626... Website: [4]http://www.johnyprovoost.net References 1. http://whiteislandsoftware.com/index.php?page=start&keep_cedi_root=66 2. mailto:johny.provoost at ...27... 3. mailto:johny.provoost at ...626... 4. http://www.johnyprovoost.net/ From nemh at ...2007... Mon Dec 16 12:49:44 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 16 Dec 2013 12:49:44 +0100 Subject: [Gambas-user] How to set the icon property of a form from a file in the project In-Reply-To: <52AEDB51.7090403@...626...> References: <52AEDB51.7090403@...626...> Message-ID: <52AEE8D8.7080201@...2007...> 2013-12-16 11:52 keltez?ssel, John Rose ?rta: > I want to set the FMain form's icon property (in the FMain Form_Open > sub) to the picture contained in a .png file which I've added to to the > Data section (of the Gambas IDE). Here is my non-working code, which > gives 'Null Object' at runtime: > Dim picIcon As Picture > picIcon.Load("StreamRecorder.png") > FMain.Icon = picIcon > > What do I change? > > PS the app is also called StreamRecorder. > FMain.Icon = Picture["StreamRecorder.png"] Or Dim picIcon As Picture = Picture["StreamRecorder.png"] FMain.Icon = picIcon Or Dim picIcon As Picture picIcon = Picture["StreamRecorder.png"] FMain.Icon = picIcon Kendek From john.aaron.rose at ...626... Mon Dec 16 13:05:17 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 12:05:17 +0000 Subject: [Gambas-user] How to set the icon property of a form from a file in the project Message-ID: <52AEEC7D.1020809@...626...> Vuott, I've added the "New" word: Dim picIcon As New Picture Though I no longer got 'Null Object', the icon didn't appear on the form's title bar. -- Regards, John From jussi.lahtinen at ...626... Mon Dec 16 13:16:50 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Dec 2013 14:16:50 +0200 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <1387089468.3136.73.camel@...2688...> Message-ID: Prefer objects. In class file called Coordinates: XVal As Float YVal As Float laseron As String mode As String And elsewhere: Private MyCoordinates As New Coordinates Or, if you need array of coordinates: Private MyCoordinates As New Coordinates[] Jussi On Mon, Dec 16, 2013 at 8:57 AM, //SCLPL/ Sudeep Damodar < sudeep.d at ...3254...> wrote: > Hi all > > How to use Type in gambas.my VB Code is given below > > Private Type coordinates > XVal As Double > YVal As Double > laseron As String > mode As String > End Type > > When im compile i got error AS is missing ,if i put AS its gets some other > error,so i have to know what is Type syntax in Gambas > > Thanks n Regards > Sudeep > > > On Sun, Dec 15, 2013 at 12:07 PM, Bruce wrote: > > > On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: > > > Hi All, > > > > > > How to make .deb file in gmabas > > > > > > Best Regards > > > > > > Sudeep > > @IDE > > ^Project|Make|Installation Package > > @Wizard > > #Follow the instructions until step 3 > > Select Debian > > #Follow the instructions > > > > or if that is too hard, press F1 > > Then read every page. > > Like we all have done. > > > > or if that is too hard, read this > > http://www.catb.org/~esr/faqs/smart-questions.html > > > > Fair go, Sudeep, make at least a bit of effort. > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Mon Dec 16 13:27:23 2013 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 16 Dec 2013 09:27:23 -0300 Subject: [Gambas-user] Cairo Message-ID: <52AEF1AB.6070808@...626...> My project does not use cairo component...but I get in the console the message: gbx3: /build/buildd/cairo-1.10.2/src/cairo-surface.c:385: _cairo_surface_begin_modification: La declaraci?n `! surface->finished' no se cumple. no se cumple...means it is not realized it appears the included error window...seing to inform gambas developers ;-) See the attached png. It is produced by the instruction FScale.Show The source attached... Beno?t...the database is always the same. Salud Pino -------------- next part -------------- A non-text attachment was scrubbed... Name: 26:59.png Type: image/png Size: 26397 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DBLog3-0.0.2.tar.gz Type: application/x-gzip Size: 337323 bytes Desc: not available URL: From john.aaron.rose at ...626... Mon Dec 16 13:42:09 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 12:42:09 +0000 Subject: [Gambas-user] How to set the icon property of a form from a file in the project Message-ID: <52AEF521.9020601@...626...> Tried: FMain.Icon = Picture["StreamRecorder.png"] Still no icon on window's title bar. PS using Ubuntu Precise with Gambas 3.5.1 -- Regards, John From vuott at ...325... Mon Dec 16 13:51:26 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 16 Dec 2013 12:51:26 +0000 (GMT) Subject: [Gambas-user] R: How to set the icon property of a form from a file in the project In-Reply-To: <52AEEC7D.1020809@...626...> Message-ID: <1387198286.75787.YahooMailBasic@...3065...> ehmmm....Fmain.Icon method does not cause the appearance of the icon on the caption bar of the window, but in the menu bar. bye vuott -------------------------------------------- Lun 16/12/13, John Rose ha scritto: Oggetto: [Gambas-user] How to set the icon property of a form from a file in the project A: "MailingList GambasUsers" Data: Luned? 16 dicembre 2013, 13:05 Vuott, I've added the "New" word: Dim picIcon As New Picture Though I no longer got 'Null Object', the icon didn't appear on the form's title bar. -- Regards, John ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Dec 16 13:52:02 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Dec 2013 14:52:02 +0200 Subject: [Gambas-user] How to set the icon property of a form from a file in the project In-Reply-To: <52AEF521.9020601@...626...> References: <52AEF521.9020601@...626...> Message-ID: The code is correct. Does it get executed? Do you have error messages? Jussi On Mon, Dec 16, 2013 at 2:42 PM, John Rose wrote: > Tried: > FMain.Icon = Picture["StreamRecorder.png"] > > Still no icon on window's title bar. > > PS using Ubuntu Precise with Gambas 3.5.1 > > -- > Regards, John > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Mon Dec 16 13:53:39 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 16 Dec 2013 12:53:39 +0000 (GMT) Subject: [Gambas-user] R: R: How to set the icon property of a form from a file in the project In-Reply-To: <1387198286.75787.YahooMailBasic@...3065...> Message-ID: <1387198419.26465.YahooMailBasic@...3066...> Excuse, rectius: Fmain.Icon "property" bye vuott -------------------------------------------- Lun 16/12/13, Ru Vuott ha scritto: Oggetto: [Gambas-user] R: How to set the icon property of a form from a file in the project A: "mailing list for gambas users" Data: Luned? 16 dicembre 2013, 13:51 ehmmm....Fmain.Icon method? does not cause the appearance of the icon on the caption bar of the window, but in the menu bar. bye vuott -------------------------------------------- Lun 16/12/13, John Rose ha scritto: Oggetto: [Gambas-user] How to set the icon property of a form from a file in the project A: "MailingList GambasUsers" Data: Luned? 16 dicembre 2013, 13:05 Vuott, I've added the "New" word: Dim picIcon As New Picture Though I no longer got 'Null Object', the icon didn't appear on the form's title bar. -- Regards, John ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Dec 16 13:55:25 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Dec 2013 14:55:25 +0200 Subject: [Gambas-user] R: How to set the icon property of a form from a file in the project In-Reply-To: <1387198286.75787.YahooMailBasic@...3065...> References: <52AEEC7D.1020809@...626...> <1387198286.75787.YahooMailBasic@...3065...> Message-ID: Um.. no. Title bar = caption bar? Menu icons are different thing. Jussi On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > ehmmm....Fmain.Icon method does not cause the appearance of the icon on > the caption bar of the window, but in the menu bar. > > bye > vuott > > > -------------------------------------------- > Lun 16/12/13, John Rose ha scritto: > > Oggetto: [Gambas-user] How to set the icon property of a form from a file > in the project > A: "MailingList GambasUsers" > Data: Luned? 16 dicembre 2013, 13:05 > > Vuott, > > I've added the "New" word: > Dim picIcon As New Picture > > Though I no longer got 'Null Object', the icon didn't appear > on the > form's title bar. > > -- > Regards, John > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Dec 16 13:58:04 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Dec 2013 14:58:04 +0200 Subject: [Gambas-user] R: How to set the icon property of a form from a file in the project In-Reply-To: References: <52AEEC7D.1020809@...626...> <1387198286.75787.YahooMailBasic@...3065...> Message-ID: In this wiki article, the calculator icon is in title/caption bar. http://en.wikipedia.org/wiki/Title_bar The code John is using should position his icon in same way. Jussi On Mon, Dec 16, 2013 at 2:55 PM, Jussi Lahtinen wrote: > Um.. no. Title bar = caption bar? Menu icons are different thing. > > Jussi > > > On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > >> ehmmm....Fmain.Icon method does not cause the appearance of the icon on >> the caption bar of the window, but in the menu bar. >> >> bye >> vuott >> >> >> -------------------------------------------- >> Lun 16/12/13, John Rose ha scritto: >> >> Oggetto: [Gambas-user] How to set the icon property of a form from a >> file in the project >> A: "MailingList GambasUsers" >> Data: Luned? 16 dicembre 2013, 13:05 >> >> Vuott, >> >> I've added the "New" word: >> Dim picIcon As New Picture >> >> Though I no longer got 'Null Object', the icon didn't appear >> on the >> form's title bar. >> >> -- >> Regards, John >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your >> business. Most IT >> organizations don't have a clear picture of how application >> performance >> affects their revenue. With AppDynamics, you get 100% >> visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE >> TRIAL of AppDynamics Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From sotema at ...626... Mon Dec 16 14:07:33 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 16 Dec 2013 13:07:33 +0000 Subject: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project In-Reply-To: References: <52AEEC7D.1020809@...626...> <1387198286.75787.YahooMailBasic@...3065...> Message-ID: <1739289551-1387199249-cardhu_decombobulator_blackberry.rim.net-763750396-@...3256...> I think you did not get the icon shown because ubuntu use to display the Close, Minimize and Maximize button in the position where you should see the form.icon Inviato dal mio smartphone BlackBerry? www.blackberry.com -----Original Message----- From: Jussi Lahtinen Date: Mon, 16 Dec 2013 14:58:04 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] R: How to set the icon property of a form from a file in the project In this wiki article, the calculator icon is in title/caption bar. http://en.wikipedia.org/wiki/Title_bar The code John is using should position his icon in same way. Jussi On Mon, Dec 16, 2013 at 2:55 PM, Jussi Lahtinen wrote: > Um.. no. Title bar = caption bar? Menu icons are different thing. > > Jussi > > > On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > >> ehmmm....Fmain.Icon method does not cause the appearance of the icon on >> the caption bar of the window, but in the menu bar. >> >> bye >> vuott >> >> >> -------------------------------------------- >> Lun 16/12/13, John Rose ha scritto: >> >> Oggetto: [Gambas-user] How to set the icon property of a form from a >> file in the project >> A: "MailingList GambasUsers" >> Data: Luned? 16 dicembre 2013, 13:05 >> >> Vuott, >> >> I've added the "New" word: >> Dim picIcon As New Picture >> >> Though I no longer got 'Null Object', the icon didn't appear >> on the >> form's title bar. >> >> -- >> Regards, John >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your >> business. Most IT >> organizations don't have a clear picture of how application >> performance >> affects their revenue. With AppDynamics, you get 100% >> visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE >> TRIAL of AppDynamics Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sebikul at ...626... Mon Dec 16 14:16:48 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 16 Dec 2013 11:16:48 -0200 Subject: [Gambas-user] gb.logging API change In-Reply-To: <1387174524.3136.120.camel@...2688...> References: <1387174524.3136.120.camel@...2688...> Message-ID: On Mon, Dec 16, 2013 at 3:15 AM, Bruce wrote: > On Mon, 2013-12-16 at 01:14 -0200, Sebastian Kulesz wrote: > > I just commited an update to the gb.logging component. Please note that a > > call to Logger.Begin() is no longer necessary and will fail. The log is > > automatically opened for writing when creating the logger. > > > > A recent change, too, is the ability to use the component without > creating > > a Logger instance. If you call Logger.Log(...) a new, hidden instance > will > > be created for you. This is useful if you only need one Logger and use it > > in multiple Modules/Classes of you application. It will save you a public > > variable and a few LOC. > > Grraaaaaagh! I just spent several hours working up a solution for > logging to a single log across multiple components/libraries. > > One question, is there any change to the parameters? AKA where does the > log info get sent to when using the hidden instance? > The first time you use it, it will create the hidden instance with the default values. As it was standing, it was impossible to change the output of the logger, as it could only be set when creating an instance and by default it was Stdout. So, in the new revision you can change the format, level and output using the logger properties. I was forced to add the Begin() call again (Sorry about that). Once this function is called, Logger.Output can't be changed. > > > > > Also, it is now possible to redirect the Logger output to stderr ;) > > > > Hope you like it! Please let me know any thoughts! > > I have been thinking (hard to believe!) about some kind of scheme for > logging to multiple files. Some ideas were to > a) use the cron approach i.e. 3 logs "error", "info" and "warning" but > probably "error", "info" and "debug" would be better suited to a > development system like Gambas. > b) similar to a) but allow configuration as to what level message goes > to which log. > > Here on our production stuff we really need to keep errors & warnings > very separate from the info log(s) as they need high visibility (i.e. if > error.log is not empty then everyone panic!), the "info" logs are of two > types, general "this got done and that got done and this is what came > out" data and audit data (bluh!) and we really need the "debug.log" on > the dev/fix side of things. > Remember you can output wherever you want and set a custom format. What i recommend you, depending on your setup, is to either output to a file and monitor it for changes. When one is found you look for the debug name using regexp (remember, custom format) and copy that line to another file of your choice. Or to pipe the output of your application to a bash script which will scan the log for it's level name and append it to a file of your choice. > > The other thing I would like to see is a way to increase the number of > levels of detail once we get down to the "debug" level. This would be on > an application basis. > Done! Level can now be greater than Logger.Debug. The $(levelname) tag will now be replaced by CUSTOM DEBUG in this case. You can use it in conjunction with $(levelno) to describe the debug level. > > cheers > Bruce > > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Dec 16 14:22:15 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Dec 2013 15:22:15 +0200 Subject: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project In-Reply-To: <1739289551-1387199249-cardhu_decombobulator_blackberry.rim.net-763750396-@...3256...> References: <52AEEC7D.1020809@...626...> <1387198286.75787.YahooMailBasic@...3065...> <1739289551-1387199249-cardhu_decombobulator_blackberry.rim.net-763750396-@...3256...> Message-ID: Apparently Ubuntu doesn't use title bar icons at all. So of course then that code does nothing. Jussi On Mon, Dec 16, 2013 at 3:07 PM, Emanuele Sottocorno wrote: > I think you did not get the icon shown because ubuntu use to display the > Close, Minimize and Maximize button in the position where you should see > the form.icon > > Inviato dal mio smartphone BlackBerry? > www.blackberry.com > > -----Original Message----- > From: Jussi Lahtinen > Date: Mon, 16 Dec 2013 14:58:04 > To: mailing list for gambas users > Reply-To: mailing list for gambas users > > Subject: Re: [Gambas-user] R: How to set the icon property of a form from a > file in the project > > In this wiki article, the calculator icon is in title/caption bar. > http://en.wikipedia.org/wiki/Title_bar > > The code John is using should position his icon in same way. > > Jussi > > > On Mon, Dec 16, 2013 at 2:55 PM, Jussi Lahtinen >wrote: > > > Um.. no. Title bar = caption bar? Menu icons are different thing. > > > > Jussi > > > > > > On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > > > >> ehmmm....Fmain.Icon method does not cause the appearance of the icon on > >> the caption bar of the window, but in the menu bar. > >> > >> bye > >> vuott > >> > >> > >> -------------------------------------------- > >> Lun 16/12/13, John Rose ha scritto: > >> > >> Oggetto: [Gambas-user] How to set the icon property of a form from a > >> file in the project > >> A: "MailingList GambasUsers" > >> Data: Luned? 16 dicembre 2013, 13:05 > >> > >> Vuott, > >> > >> I've added the "New" word: > >> Dim picIcon As New Picture > >> > >> Though I no longer got 'Null Object', the icon didn't appear > >> on the > >> form's title bar. > >> > >> -- > >> Regards, John > >> > >> > ------------------------------------------------------------------------------ > >> Rapidly troubleshoot problems before they affect your > >> business. Most IT > >> organizations don't have a clear picture of how application > >> performance > >> affects their revenue. With AppDynamics, you get 100% > >> visibility into your > >> Java,.NET, & PHP application. Start your 15-day FREE > >> TRIAL of AppDynamics Pro! > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Rapidly troubleshoot problems before they affect your business. Most IT > >> organizations don't have a clear picture of how application performance > >> affects their revenue. With AppDynamics, you get 100% visibility into > your > >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > >> Pro! > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Mon Dec 16 14:50:19 2013 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 16 Dec 2013 13:50:19 +0000 Subject: [Gambas-user] How to set the icon property of a form from a file in the project Message-ID: <52AF051B.900@...626...> Re Fmain.Icon method does not cause the appearance of the icon on the caption bar of the window, but in the menu bar: Even if the form's Icon property is set in the form's definition (i.e. by browsing to the .png file in the project directory) rather than in code then it doesn't appear in the app's menu bar (or the app's window). I wonder if this is a fault with Precise which uses a Global menu bar. Anybody know? -- Regards, John From ea7dfh at ...2382... Mon Dec 16 15:07:48 2013 From: ea7dfh at ...2382... (Jesus Guardon) Date: Mon, 16 Dec 2013 15:07:48 +0100 Subject: [Gambas-user] How to set the icon property of a form from a file in the project Message-ID: > I wonder if this is a fault with Precise which uses a Global menu bar. Anybody know? As it has been said before, this is the way Unity desktop works. If you want to see your icon in the form caption, you need to switch to another desktop manager or tweak Unity (which I don't know if it is possible at all). Regards Jesus Guardon From nando_f at ...951... Mon Dec 16 15:10:35 2013 From: nando_f at ...951... (nando) Date: Mon, 16 Dec 2013 09:10:35 -0500 Subject: [Gambas-user] SteamOS and GAMBAS In-Reply-To: <52AE18D3.30204@...1887...> References: <52AE18D3.30204@...1887...> Message-ID: <20131216140737.M87230@...951...> Made my day. "Other than available software, there is nothing about Windows remotely superior to GNU/Linux." - Kevin Fishburne ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Sun, 15 Dec 2013 16:02:11 -0500 Subject: Re: [Gambas-user] SteamOS and GAMBAS > On 12/14/2013 09:07 PM, PICCORO McKAY Lenz wrote: > > i said before: we always behind of "mocosoft guiindows" shadows.. with > > this king of people... > > > > ...so if debian has a SDL system lib, its NONSENSE include another SDL > > inside program.. > > Perhaps I should update my sig to say, "I don't use Windows. I hate > Windows. Windows can die in a fire while I laugh maniacally" and you'd > feel better? Another way to look at it, rather than nonsense, would be > as a hack. A hack is basically to get a thing done using any means > necessary, regardless of how unconventional. My proposal was due to an > uninformed guess that the end user would not be easily allowed to > install packages or otherwise perform root operations. At this point it > appears there may be a more Linux-like, traditional method. > > > From: Kevin Fishburne > >> application such that all the dependencies and libraries are stored with > >> the application and not installed system-wide? It would be like a > >> Windows application having all it's DLLs stored in its installation > > right no? always behing the shadows of window? right? > > like windo that, like windo this.. > > > > when the thing will be done in the linux way? > > It would be more like Linux regressing from the Linux way to the Windows > way; taking a step backward. Linux package management has always been > light years ahead of how other OSs install software. Other than > available software, there is nothing about Windows remotely superior to > GNU/Linux. So relax, you got the wrong guy here. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > mood: I don't use Windows. I hate Windows. Windows can die in a fire while I > laugh maniacally > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From pinozollo at ...626... Mon Dec 16 15:45:44 2013 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 16 Dec 2013 11:45:44 -0300 Subject: [Gambas-user] Cairo Message-ID: <52AF1218.4070206@...626...> More infos... Draw.Rect(0, 0, Rap, Draw.h) <----- FScale.class line 111 generates the error Draw.Foreground = Color.Black Draw.Line(Rap, 0, Rap, Draw.H) <------ also this From gambas at ...1... Mon Dec 16 16:04:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Dec 2013 16:04:29 +0100 Subject: [Gambas-user] Cairo In-Reply-To: <52AF1218.4070206@...626...> References: <52AF1218.4070206@...626...> Message-ID: <52AF167D.7030901@...1...> Le 16/12/2013 15:45, Pino Zollo a ?crit : > More infos... > > Draw.Rect(0, 0, Rap, Draw.h) <----- FScale.class line 111 > generates the error > Draw.Foreground = Color.Black > Draw.Line(Rap, 0, Rap, Draw.H) <------ also this > I think this is related to the setting of the DrawingArea.Background property just before. If a drawing area is cached, you should not reset its background after having called Draw.Begin(), but before. Regards, -- Beno?t Minisini From pinozollo at ...626... Mon Dec 16 16:10:07 2013 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 16 Dec 2013 12:10:07 -0300 Subject: [Gambas-user] Escape key while writing in a TextArea Message-ID: <52AF17CF.2030308@...626...> I need to process the Esc key while writing into a TexArea to abort a transmission.. For some weird reason the Esc key is ignored by the TextArea... Some help please... Good programming Pino From vuott at ...325... Mon Dec 16 16:28:23 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 16 Dec 2013 15:28:23 +0000 (GMT) Subject: [Gambas-user] R: R: Re: R: How to set the icon property of a form from a file in the project In-Reply-To: <1739289551-1387199249-cardhu_decombobulator_blackberry.rim.net-763750396-@...3256...> Message-ID: <1387207703.44806.YahooMailBasic@...3066...> Cariiiiiissimo sotema, io ho Ubuntu - Linux Mint 16 - a me l'icona appare nella barra in basso del desktop, all'interno del rettangolo relativo alla finestra del programma. ciao Vuoooooooooooooooott -------------------------------------------- Lun 16/12/13, Emanuele Sottocorno ha scritto: Oggetto: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project A: "mailing list for gambas users" Data: Luned? 16 dicembre 2013, 14:07 I think you did not get the icon shown because ubuntu use to display the Close, Minimize and Maximize button in the position where you should see the form.icon Inviato dal mio smartphone BlackBerry? www.blackberry.com -----Original Message----- From: Jussi Lahtinen Date: Mon, 16 Dec 2013 14:58:04 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] R: How to set the icon property of a form from a file in the project In this wiki article, the calculator icon is in title/caption bar. http://en.wikipedia.org/wiki/Title_bar The code John is using should position his icon in same way. Jussi On Mon, Dec 16, 2013 at 2:55 PM, Jussi Lahtinen wrote: > Um.. no. Title bar = caption bar? Menu icons are different thing. > > Jussi > > > On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > >> ehmmm....Fmain.Icon method? does not cause the appearance of the icon on >> the caption bar of the window, but in the menu bar. >> >> bye >> vuott >> >> >> -------------------------------------------- >> Lun 16/12/13, John Rose ha scritto: >> >>? Oggetto: [Gambas-user] How to set the icon property of a form from a >> file in the project >>? A: "MailingList GambasUsers" >>? Data: Luned? 16 dicembre 2013, 13:05 >> >>? Vuott, >> >>? I've added the "New" word: >>? Dim picIcon As New Picture >> >>? Though I no longer got 'Null Object', the icon didn't appear >>? on the >>? form's title bar. >> >>? -- >>? Regards, John >> >>? ------------------------------------------------------------------------------ >>? Rapidly troubleshoot problems before they affect your >>? business. Most IT >>? organizations don't have a clear picture of how application >>? performance >>? affects their revenue. With AppDynamics, you get 100% >>? visibility into your >>? Java,.NET, & PHP application. Start your 15-day FREE >>? TRIAL of AppDynamics Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>? _______________________________________________ >>? Gambas-user mailing list >>? Gambas-user at lists.sourceforge.net >>? https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Mon Dec 16 16:30:06 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 16 Dec 2013 15:30:06 +0000 (GMT) Subject: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project In-Reply-To: Message-ID: <1387207806.20875.YahooMailBasic@...3064...> I use Ubuntu Linux Mint 16, the icon is shown in the bar of desktop bye vuott -------------------------------------------- Lun 16/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project A: sotema at ...626..., "mailing list for gambas users" Data: Luned? 16 dicembre 2013, 14:22 Apparently Ubuntu doesn't use title bar icons at all. So of course then that code does nothing. Jussi On Mon, Dec 16, 2013 at 3:07 PM, Emanuele Sottocorno wrote: > I think you did not get the icon shown because ubuntu use to display the > Close, Minimize and Maximize button in the position where you should see > the form.icon > > Inviato dal mio smartphone BlackBerry? > www.blackberry.com > > -----Original Message----- > From: Jussi Lahtinen > Date: Mon, 16 Dec 2013 14:58:04 > To: mailing list for gambas users > Reply-To: mailing list for gambas users > > Subject: Re: [Gambas-user] R: How to set the icon property of a form from a >? file in the project > > In this wiki article, the calculator icon is in title/caption bar. > http://en.wikipedia.org/wiki/Title_bar > > The code John is using should position his icon in same way. > > Jussi > > > On Mon, Dec 16, 2013 at 2:55 PM, Jussi Lahtinen >wrote: > > > Um.. no. Title bar = caption bar? Menu icons are different thing. > > > > Jussi > > > > > > On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > > > >> ehmmm....Fmain.Icon method? does not cause the appearance of the icon on > >> the caption bar of the window, but in the menu bar. > >> > >> bye > >> vuott > >> > >> > >> -------------------------------------------- > >> Lun 16/12/13, John Rose ha scritto: > >> > >>? Oggetto: [Gambas-user] How to set the icon property of a form from a > >> file in the project > >>? A: "MailingList GambasUsers" > >>? Data: Luned? 16 dicembre 2013, 13:05 > >> > >>? Vuott, > >> > >>? I've added the "New" word: > >>? Dim picIcon As New Picture > >> > >>? Though I no longer got 'Null Object', the icon didn't appear > >>? on the > >>? form's title bar. > >> > >>? -- > >>? Regards, John > >> > >> >? ------------------------------------------------------------------------------ > >>? Rapidly troubleshoot problems before they affect your > >>? business. Most IT > >>? organizations don't have a clear picture of how application > >>? performance > >>? affects their revenue. With AppDynamics, you get 100% > >>? visibility into your > >>? Java,.NET, & PHP application. Start your 15-day FREE > >>? TRIAL of AppDynamics Pro! > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >>? _______________________________________________ > >>? Gambas-user mailing list > >>? Gambas-user at lists.sourceforge.net > >>? https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Rapidly troubleshoot problems before they affect your business. Most IT > >> organizations don't have a clear picture of how application performance > >> affects their revenue. With AppDynamics, you get 100% visibility into > your > >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > >> Pro! > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jscops at ...11... Mon Dec 16 16:36:46 2013 From: jscops at ...11... (Jack) Date: Mon, 16 Dec 2013 16:36:46 +0100 Subject: [Gambas-user] Escape key while writing in a TextArea In-Reply-To: <52AF17CF.2030308@...626...> References: <52AF17CF.2030308@...626...> Message-ID: <52AF1E0E.2070808@...11...> Le 16/12/2013 16:10, Pino Zollo a ?crit : > I need to process the Esc key while writing into a TexArea to abort a > transmission.. > > > For some weird reason the Esc key is ignored by the TextArea... > Bonjour, Have you try the "esc" or "escape" code ? If Key.code = Key.Esc or If Key.code = Key.Escape then print "ok" endif -- Cordialement Jacky Tripoteau From jscops at ...11... Mon Dec 16 16:40:39 2013 From: jscops at ...11... (Jack) Date: Mon, 16 Dec 2013 16:40:39 +0100 Subject: [Gambas-user] Escape key while writing in a TextArea In-Reply-To: <52AF17CF.2030308@...626...> References: <52AF17CF.2030308@...626...> Message-ID: <52AF1EF7.5020508@...11...> Le 16/12/2013 16:10, Pino Zollo a ?crit : > I need to process the Esc key while writing into a TexArea to abort a > transmission.. > > > For some weird reason the Esc key is ignored by the TextArea... > > Perhaps give you a group to your TextArea -- Cordialement Jacky Tripoteau From bbruen at ...2308... Tue Dec 17 01:55:09 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 17 Dec 2013 11:25:09 +1030 Subject: [Gambas-user] gb.logging API change In-Reply-To: References: <1387174524.3136.120.camel@...2688...> Message-ID: <1387241709.3136.159.camel@...2688...> Sebastian, With the new version the $(callLocation) is always returning the same location ("Logger._call.95"). I stuck some debug in the Formatter to print the stack backtrace, here's what I get when using the Logger from "outside": Formatter.GetCallLocation.10: Formatter.GetCallLocation.10 Formatter._call.45 Logger.Log.87 Logger._call.95 Application._init.57 i.e. I think you should be using System.Backtrace[4] instead of [3] hth Bruce From sebikul at ...626... Tue Dec 17 04:48:56 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Tue, 17 Dec 2013 01:48:56 -0200 Subject: [Gambas-user] gb.logging API change In-Reply-To: <1387241709.3136.159.camel@...2688...> References: <1387174524.3136.120.camel@...2688...> <1387241709.3136.159.camel@...2688...> Message-ID: My bad. It should be fixed in rev #6010. Please let me know! On Mon, Dec 16, 2013 at 9:55 PM, Bruce wrote: > Sebastian, > > With the new version the $(callLocation) is always returning the same > location ("Logger._call.95"). > > I stuck some debug in the Formatter to print the stack backtrace, here's > what I get when using the Logger from "outside": > > Formatter.GetCallLocation.10: Formatter.GetCallLocation.10 > Formatter._call.45 > Logger.Log.87 > Logger._call.95 > Application._init.57 > > i.e. I think you should be using System.Backtrace[4] instead of [3] > > hth > Bruce > > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sudeep.d at ...3254... Tue Dec 17 07:03:59 2013 From: sudeep.d at ...3254... (//SCLPL/ Sudeep Damodar) Date: Tue, 17 Dec 2013 11:33:59 +0530 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <1387089468.3136.73.camel@...2688...> Message-ID: HI All, Thank for your valuable comments .i have one doubt i have to declare one library function.im used in my vb program like this Public Declare Function StretchBlt Lib "gdi32"(ByVal hDC As Long, _ ByVal X As Long, _ ByVal Y As Long, _ ByVal nWidth As Long, _ ByVal nHeight As Long, _ ByVal hSrcDC As Long, _ ByVal xSrc As Long, _ ByVal ySrc As Long, _ ByVal nSrcWidth As Long, _ ByVal nSrcHeight As Long, _ ByVal dwRop As Long) As Long So i have ti declare this function in to Gambas so please help me Thank n Regards Sudeep On Mon, Dec 16, 2013 at 5:46 PM, Jussi Lahtinen wrote: > Prefer objects. > > In class file called Coordinates: > > XVal As Float > YVal As Float > laseron As String > mode As String > > > And elsewhere: > > Private MyCoordinates As New Coordinates > > Or, if you need array of coordinates: > > Private MyCoordinates As New Coordinates[] > > > Jussi > > > > > On Mon, Dec 16, 2013 at 8:57 AM, //SCLPL/ Sudeep Damodar < > sudeep.d at ...3254...> wrote: > > > Hi all > > > > How to use Type in gambas.my VB Code is given below > > > > Private Type coordinates > > XVal As Double > > YVal As Double > > laseron As String > > mode As String > > End Type > > > > When im compile i got error AS is missing ,if i put AS its gets some > other > > error,so i have to know what is Type syntax in Gambas > > > > Thanks n Regards > > Sudeep > > > > > > On Sun, Dec 15, 2013 at 12:07 PM, Bruce wrote: > > > > > On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: > > > > Hi All, > > > > > > > > How to make .deb file in gmabas > > > > > > > > Best Regards > > > > > > > > Sudeep > > > @IDE > > > ^Project|Make|Installation Package > > > @Wizard > > > #Follow the instructions until step 3 > > > Select Debian > > > #Follow the instructions > > > > > > or if that is too hard, press F1 > > > Then read every page. > > > Like we all have done. > > > > > > or if that is too hard, read this > > > http://www.catb.org/~esr/faqs/smart-questions.html > > > > > > Fair go, Sudeep, make at least a bit of effort. > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > organizations don't have a clear picture of how application performance > > > affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Tue Dec 17 09:19:30 2013 From: Gambas at ...1950... (Caveat) Date: Tue, 17 Dec 2013 09:19:30 +0100 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <1387089468.3136.73.camel@...2688...> Message-ID: <52B00912.6040409@...1950...> Sounds like you have some more reading to do. Start here: http://www.lmgtfy.com/?q=gdi32+linux Come back to us when you have already done a little research and have SPECIFIC questions... Your approach to this conversion project puts me in mind of someone translating Russian to Italian word for word without any knowledge of either language! ;-) I'm curious, did you write the original VB code yourself? What is your ultimate goal? Have you considered using Wine or a VirtualBox? Kind regards, Caveat On 17/12/13 07:03, //SCLPL/ Sudeep Damodar wrote: > HI All, > Thank for your valuable comments .i have one doubt i have to declare one > library function.im used in my vb program like this > Public Declare Function StretchBlt Lib "gdi32"(ByVal hDC As Long, _ > ByVal X As Long, _ > ByVal Y As Long, _ > ByVal nWidth As Long, _ > ByVal nHeight As Long, _ > ByVal hSrcDC As Long, _ > ByVal xSrc As Long, _ > ByVal ySrc As Long, _ > ByVal nSrcWidth As Long, _ > ByVal nSrcHeight As Long, _ > ByVal dwRop As Long) As Long > So i have ti declare this function in to Gambas so please help me > > Thank n Regards > > Sudeep > > > On Mon, Dec 16, 2013 at 5:46 PM, Jussi Lahtinen wrote: > >> Prefer objects. >> >> In class file called Coordinates: >> >> XVal As Float >> YVal As Float >> laseron As String >> mode As String >> >> >> And elsewhere: >> >> Private MyCoordinates As New Coordinates >> >> Or, if you need array of coordinates: >> >> Private MyCoordinates As New Coordinates[] >> >> >> Jussi >> >> >> >> >> On Mon, Dec 16, 2013 at 8:57 AM, //SCLPL/ Sudeep Damodar < >> sudeep.d at ...3254...> wrote: >> >>> Hi all >>> >>> How to use Type in gambas.my VB Code is given below >>> >>> Private Type coordinates >>> XVal As Double >>> YVal As Double >>> laseron As String >>> mode As String >>> End Type >>> >>> When im compile i got error AS is missing ,if i put AS its gets some >> other >>> error,so i have to know what is Type syntax in Gambas >>> >>> Thanks n Regards >>> Sudeep >>> >>> >>> On Sun, Dec 15, 2013 at 12:07 PM, Bruce wrote: >>> >>>> On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: >>>>> Hi All, >>>>> >>>>> How to make .deb file in gmabas >>>>> >>>>> Best Regards >>>>> >>>>> Sudeep >>>> @IDE >>>> ^Project|Make|Installation Package >>>> @Wizard >>>> #Follow the instructions until step 3 >>>> Select Debian >>>> #Follow the instructions >>>> >>>> or if that is too hard, press F1 >>>> Then read every page. >>>> Like we all have done. >>>> >>>> or if that is too hard, read this >>>> http://www.catb.org/~esr/faqs/smart-questions.html >>>> >>>> Fair go, Sudeep, make at least a bit of effort. >>>> >>>> >>>> >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into >>> your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> AppDynamics >>>> Pro! >>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into >> your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >>> Pro! >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From nero78 at ...43... Tue Dec 17 12:41:40 2013 From: nero78 at ...43... (nero) Date: Tue, 17 Dec 2013 03:41:40 -0800 (PST) Subject: [Gambas-user] automatic column width in DataBrowser Message-ID: <1387280500.48213.YahooMailNeo@...3258...> Hi all ,? I'm using a to get some data from a postgresql database , everything's work fine but I've some problema setting column width. When I double click between two columns they get the right width , is there a way to do so by code ? Also can I set test allignment of the cells ? I see some data on right , some on left , I want everything centered. I've try to play with DataBrowser.columns and DataBrowser.columns[x] but haven't found any solution. Thank's in advance, marco. From gambas at ...2524... Tue Dec 17 13:25:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 17 Dec 2013 12:25:33 +0000 Subject: [Gambas-user] Issue 481 in gambas: Different picture for closed and opened TreeView item Message-ID: <0-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.1.0 Type-Enhancement Priority-Low OpSys-Linux Dist-Ubuntu Arch-X86 Desktop-Gnome GUI-QT4 New issue 481 by arif_rah... at ...2488...: Different picture for closed and opened TreeView item http://code.google.com/p/gambas/issues/detail?id=481 TreeView item may have different picture for closed and opened state like this application (programmed by using Phyton). Attachments: Thwab.png 202 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 jussi.lahtinen at ...626... Tue Dec 17 14:15:51 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Dec 2013 15:15:51 +0200 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <1387089468.3136.73.camel@...2688...> Message-ID: I think you can have same functionality with Draw.Picture(). http://gambasdoc.org/help/comp/gb.qt4/draw/picture?v3 Jussi On Tue, Dec 17, 2013 at 8:03 AM, //SCLPL/ Sudeep Damodar < sudeep.d at ...3254...> wrote: > HI All, > Thank for your valuable comments .i have one doubt i have to declare one > library function.im used in my vb program like this > Public Declare Function StretchBlt Lib "gdi32"(ByVal hDC As Long, _ > ByVal X As Long, _ > ByVal Y As Long, _ > ByVal nWidth As Long, _ > ByVal nHeight As Long, _ > ByVal hSrcDC As Long, _ > ByVal xSrc As Long, _ > ByVal ySrc As Long, _ > ByVal nSrcWidth As Long, _ > ByVal nSrcHeight As Long, _ > ByVal dwRop As Long) As Long > So i have ti declare this function in to Gambas so please help me > > Thank n Regards > > Sudeep > > > On Mon, Dec 16, 2013 at 5:46 PM, Jussi Lahtinen >wrote: > > > Prefer objects. > > > > In class file called Coordinates: > > > > XVal As Float > > YVal As Float > > laseron As String > > mode As String > > > > > > And elsewhere: > > > > Private MyCoordinates As New Coordinates > > > > Or, if you need array of coordinates: > > > > Private MyCoordinates As New Coordinates[] > > > > > > Jussi > > > > > > > > > > On Mon, Dec 16, 2013 at 8:57 AM, //SCLPL/ Sudeep Damodar < > > sudeep.d at ...3254...> wrote: > > > > > Hi all > > > > > > How to use Type in gambas.my VB Code is given below > > > > > > Private Type coordinates > > > XVal As Double > > > YVal As Double > > > laseron As String > > > mode As String > > > End Type > > > > > > When im compile i got error AS is missing ,if i put AS its gets some > > other > > > error,so i have to know what is Type syntax in Gambas > > > > > > Thanks n Regards > > > Sudeep > > > > > > > > > On Sun, Dec 15, 2013 at 12:07 PM, Bruce > wrote: > > > > > > > On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: > > > > > Hi All, > > > > > > > > > > How to make .deb file in gmabas > > > > > > > > > > Best Regards > > > > > > > > > > Sudeep > > > > @IDE > > > > ^Project|Make|Installation Package > > > > @Wizard > > > > #Follow the instructions until step 3 > > > > Select Debian > > > > #Follow the instructions > > > > > > > > or if that is too hard, press F1 > > > > Then read every page. > > > > Like we all have done. > > > > > > > > or if that is too hard, read this > > > > http://www.catb.org/~esr/faqs/smart-questions.html > > > > > > > > Fair go, Sudeep, make at least a bit of effort. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your business. Most > IT > > > > organizations don't have a clear picture of how application > performance > > > > affects their revenue. With AppDynamics, you get 100% visibility into > > > your > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > organizations don't have a clear picture of how application performance > > > affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Tue Dec 17 17:27:58 2013 From: Gambas at ...1950... (Caveat) Date: Tue, 17 Dec 2013 17:27:58 +0100 Subject: [Gambas-user] how to convert VB Project file to Gambas In-Reply-To: References: <1387089468.3136.73.camel@...2688...> Message-ID: <52B07B8E.7070806@...1950...> That's good news (for Sudeep) Jussi! I never bothered to google StretchBlt (the Blt part made it sound more complicated than it really is). tsk tsk ;-) Kind regards, Caveat On 17/12/13 14:15, Jussi Lahtinen wrote: > I think you can have same functionality with Draw.Picture(). > http://gambasdoc.org/help/comp/gb.qt4/draw/picture?v3 > > > Jussi > > > On Tue, Dec 17, 2013 at 8:03 AM, //SCLPL/ Sudeep Damodar < > sudeep.d at ...3254...> wrote: > >> HI All, >> Thank for your valuable comments .i have one doubt i have to declare one >> library function.im used in my vb program like this >> Public Declare Function StretchBlt Lib "gdi32"(ByVal hDC As Long, _ >> ByVal X As Long, _ >> ByVal Y As Long, _ >> ByVal nWidth As Long, _ >> ByVal nHeight As Long, _ >> ByVal hSrcDC As Long, _ >> ByVal xSrc As Long, _ >> ByVal ySrc As Long, _ >> ByVal nSrcWidth As Long, _ >> ByVal nSrcHeight As Long, _ >> ByVal dwRop As Long) As Long >> So i have ti declare this function in to Gambas so please help me >> >> Thank n Regards >> >> Sudeep >> >> >> On Mon, Dec 16, 2013 at 5:46 PM, Jussi Lahtinen >> wrote: >>> Prefer objects. >>> >>> In class file called Coordinates: >>> >>> XVal As Float >>> YVal As Float >>> laseron As String >>> mode As String >>> >>> >>> And elsewhere: >>> >>> Private MyCoordinates As New Coordinates >>> >>> Or, if you need array of coordinates: >>> >>> Private MyCoordinates As New Coordinates[] >>> >>> >>> Jussi >>> >>> >>> >>> >>> On Mon, Dec 16, 2013 at 8:57 AM, //SCLPL/ Sudeep Damodar < >>> sudeep.d at ...3254...> wrote: >>> >>>> Hi all >>>> >>>> How to use Type in gambas.my VB Code is given below >>>> >>>> Private Type coordinates >>>> XVal As Double >>>> YVal As Double >>>> laseron As String >>>> mode As String >>>> End Type >>>> >>>> When im compile i got error AS is missing ,if i put AS its gets some >>> other >>>> error,so i have to know what is Type syntax in Gambas >>>> >>>> Thanks n Regards >>>> Sudeep >>>> >>>> >>>> On Sun, Dec 15, 2013 at 12:07 PM, Bruce >> wrote: >>>>> On Sun, 2013-12-15 at 11:37 +0530, //SCLPL/ Sudeep Damodar wrote: >>>>>> Hi All, >>>>>> >>>>>> How to make .deb file in gmabas >>>>>> >>>>>> Best Regards >>>>>> >>>>>> Sudeep >>>>> @IDE >>>>> ^Project|Make|Installation Package >>>>> @Wizard >>>>> #Follow the instructions until step 3 >>>>> Select Debian >>>>> #Follow the instructions >>>>> >>>>> or if that is too hard, press F1 >>>>> Then read every page. >>>>> Like we all have done. >>>>> >>>>> or if that is too hard, read this >>>>> http://www.catb.org/~esr/faqs/smart-questions.html >>>>> >>>>> Fair go, Sudeep, make at least a bit of effort. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------------ >>>>> Rapidly troubleshoot problems before they affect your business. Most >> IT >>>>> organizations don't have a clear picture of how application >> performance >>>>> affects their revenue. With AppDynamics, you get 100% visibility into >>>> your >>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >>> AppDynamics >>>>> Pro! >>>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into >>> your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> AppDynamics >>>> Pro! >>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into >> your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >>> Pro! >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From vuott at ...325... Tue Dec 17 17:38:15 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 17 Dec 2013 16:38:15 +0000 (GMT) Subject: [Gambas-user] Generating a sine wave with ALSA Message-ID: <1387298295.65151.YahooMailBasic@...3066...> Hello, in my eternal struggle with ALSA :-) I was trying to convert in gambas a C code, written to generate a sine wave with ALSA functions. When I run the application, I can hear the sound of the wave, but it is mixed with a background hiss. I would like to have your opinion and check if I have made ??good the conversion. Attached: - The Gambas source (in the Data folder is the original C code); - The compiled C program that works perfectly ... As I would like with Gambas! :-( regards and thanks vuott -------------- next part -------------- A non-text attachment was scrubbed... Name: ALSA-onda_sinusoidale-0.0.1.tar.gz Type: application/gzip Size: 6043 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: w Type: application/octet-stream Size: 9041 bytes Desc: not available URL: From jussi.lahtinen at ...626... Tue Dec 17 22:26:44 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Dec 2013 23:26:44 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: <1387298295.65151.YahooMailBasic@...3066...> References: <1387298295.65151.YahooMailBasic@...3066...> Message-ID: Where is the C source? Without it I can't say whether you have translated it correctly or not. Jussi On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott wrote: > Hello, > > in my eternal struggle with ALSA :-) I was trying to convert in gambas > a C code, written to generate a sine wave with ALSA functions. > > When I run the application, I can hear the sound of the wave, but it is > mixed with a background hiss. > > I would like to have your opinion and check if I have made good the > conversion. > > Attached: > - The Gambas source (in the Data folder is the original C code); > - The compiled C program that works perfectly ... As I would like with > Gambas! :-( > > regards and thanks > vuott > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Tue Dec 17 22:27:49 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Dec 2013 23:27:49 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: References: <1387298295.65151.YahooMailBasic@...3066...> Message-ID: Oh, apparently I didn't read it through... Jussi On Tue, Dec 17, 2013 at 11:26 PM, Jussi Lahtinen wrote: > Where is the C source? Without it I can't say whether you have translated > it correctly or not. > > Jussi > > > On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott wrote: > >> Hello, >> >> in my eternal struggle with ALSA :-) I was trying to convert in gambas >> a C code, written to generate a sine wave with ALSA functions. >> >> When I run the application, I can hear the sound of the wave, but it is >> mixed with a background hiss. >> >> I would like to have your opinion and check if I have made good the >> conversion. >> >> Attached: >> - The Gambas source (in the Data folder is the original C code); >> - The compiled C program that works perfectly ... As I would like with >> Gambas! :-( >> >> regards and thanks >> vuott >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From vuott at ...325... Tue Dec 17 22:31:51 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 17 Dec 2013 21:31:51 +0000 (GMT) Subject: [Gambas-user] Generating a sine wave with ALSA Message-ID: <1387315911.72257.YahooMailBasic@...3070...> The C code is in Data folder of Gambas project. Anyway, I've attached it to this email. Bye vuotttttttt -------------------------------------------- Mar 17/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: "mailing list for gambas users" Data: Marted? 17 dicembre 2013, 22:26 Where is the C source? Without it I can't say whether you have translated it correctly or not. Jussi On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott wrote: > Hello, > > in my eternal struggle with ALSA? :-)???I was trying to convert in gambas > a C code, written to generate a sine wave with ALSA functions. > > When I run the application, I can hear the sound of the wave, but it is > mixed with a background hiss. > > I would like to have your opinion and check if I have made good the > conversion. > > Attached: > - The Gambas source (in the Data folder is the original C code); > - The compiled C program that works perfectly ... As I would like with > Gambas!? :-( > > regards and thanks > vuott > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: ALSA onda sinusoidale Type: application/octet-stream Size: 1486 bytes Desc: not available URL: From jussi.lahtinen at ...626... Tue Dec 17 22:34:53 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Dec 2013 23:34:53 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: <1387315911.72257.YahooMailBasic@...3070...> References: <1387315911.72257.YahooMailBasic@...3070...> Message-ID: At least this isn't right: Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 I'll look more closely later. Jussi On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott wrote: > The C code is in Data folder of Gambas project. > > Anyway, I've attached it to this email. > > Bye > vuotttttttt > > > > -------------------------------------------- > Mar 17/12/13, Jussi Lahtinen ha scritto: > > Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA > A: "mailing list for gambas users" > Data: Marted? 17 dicembre 2013, 22:26 > > Where is the C source? Without it I > can't say whether you have translated > it correctly or not. > > Jussi > > > On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott > wrote: > > > Hello, > > > > in my eternal struggle with ALSA > :-) I was trying to convert in gambas > > a C code, written to generate a sine wave with ALSA > functions. > > > > When I run the application, I can hear the sound of the > wave, but it is > > mixed with a background hiss. > > > > I would like to have your opinion and check if I have > made good the > > conversion. > > > > Attached: > > - The Gambas source (in the Data folder is the original > C code); > > - The compiled C program that works perfectly ... As I > would like with > > Gambas! :-( > > > > regards and thanks > > vuott > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > business. Most IT > > organizations don't have a clear picture of how > application performance > > affects their revenue. With AppDynamics, you get 100% > visibility into your > > Java,.NET, & PHP application. Start your 15-day > FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From vuott at ...325... Tue Dec 17 23:03:04 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 17 Dec 2013 22:03:04 +0000 (GMT) Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: Message-ID: <1387317784.89465.YahooMailBasic@...3070...> Uhmmmm... it would seem to be correct. In fact, if I insert this line in the code C: printf("SND_PCM_FORMAT_FLOAT value = %d", SND_PCM_FORMAT_FLOAT); and then I run that compilated C code, I obtain in terminal this results: SND_PCM_FORMAT_FLOAT value = 14 In addition, you can easily calculate the enumeration of that ALSA Constant in this page (see at Enumerations): http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html You can see: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE Thank you for your help. bye vuott -------------------------------------------- Mar 17/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: "mailing list for gambas users" Data: Marted? 17 dicembre 2013, 22:34 At least this isn't right: Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 I'll look more closely later. Jussi On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott wrote: > The C code is in Data folder of Gambas project. > > Anyway, I've attached it to this email. > > Bye > vuotttttttt > > > > -------------------------------------------- > Mar 17/12/13, Jussi Lahtinen ha scritto: > >? Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA >? A: "mailing list for gambas users" >? Data: Marted? 17 dicembre 2013, 22:26 > >? Where is the C source? Without it I >? can't say whether you have translated >? it correctly or not. > >? Jussi > > >? On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott >? wrote: > >? > Hello, >? > >? > in my eternal struggle with ALSA >? :-)???I was trying to convert in gambas >? > a C code, written to generate a sine wave with ALSA >? functions. >? > >? > When I run the application, I can hear the sound of the >? wave, but it is >? > mixed with a background hiss. >? > >? > I would like to have your opinion and check if I have >? made good the >? > conversion. >? > >? > Attached: >? > - The Gambas source (in the Data folder is the original >? C code); >? > - The compiled C program that works perfectly ... As I >? would like with >? > Gambas!? :-( >? > >? > regards and thanks >? > vuott >? > >? > > >? ------------------------------------------------------------------------------ >? > Rapidly troubleshoot problems before they affect your >? business. Most IT >? > organizations don't have a clear picture of how >? application performance >? > affects their revenue. With AppDynamics, you get 100% >? visibility into your >? > Java,.NET, & PHP application. Start your 15-day >? FREE TRIAL of AppDynamics >? > Pro! >? > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >? > _______________________________________________ >? > Gambas-user mailing list >? > Gambas-user at lists.sourceforge.net >? > https://lists.sourceforge.net/lists/listinfo/gambas-user >? > >? > > >? ------------------------------------------------------------------------------ >? Rapidly troubleshoot problems before they affect your >? business. Most IT >? organizations don't have a clear picture of how application >? performance >? affects their revenue. With AppDynamics, you get 100% >? visibility into your >? Java,.NET, & PHP application. Start your 15-day FREE >? TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >? _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed Dec 18 00:05:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 01:05:29 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: <1387317784.89465.YahooMailBasic@...3070...> References: <1387317784.89465.YahooMailBasic@...3070...> Message-ID: No, as the name suggest it's float, not integer. Jussi On Wed, Dec 18, 2013 at 12:03 AM, Ru Vuott wrote: > Uhmmmm... it would seem to be correct. > In fact, if I insert this line in the code C: > > printf("SND_PCM_FORMAT_FLOAT value = %d", SND_PCM_FORMAT_FLOAT); > > and then I run that compilated C code, I obtain in terminal this results: > > SND_PCM_FORMAT_FLOAT value = 14 > > > In addition, you can easily calculate the enumeration of that ALSA > Constant in this page (see at Enumerations): > > http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html > > You can see: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE > > > Thank you for your help. > > bye > vuott > > > > -------------------------------------------- > Mar 17/12/13, Jussi Lahtinen ha scritto: > > Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA > A: "mailing list for gambas users" > Data: Marted? 17 dicembre 2013, 22:34 > > At least this isn't right: > Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 > > I'll look more closely later. > > Jussi > > > On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott > wrote: > > > The C code is in Data folder of Gambas project. > > > > Anyway, I've attached it to this email. > > > > Bye > > vuotttttttt > > > > > > > > -------------------------------------------- > > Mar 17/12/13, Jussi Lahtinen > ha scritto: > > > > Oggetto: Re: [Gambas-user] Generating a sine wave > with ALSA > > A: "mailing list for gambas users" > > Data: Marted? 17 dicembre 2013, 22:26 > > > > Where is the C source? Without it I > > can't say whether you have translated > > it correctly or not. > > > > Jussi > > > > > > On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott > > wrote: > > > > > Hello, > > > > > > in my eternal struggle with ALSA > > :-) I was trying to convert in > gambas > > > a C code, written to generate a sine wave > with ALSA > > functions. > > > > > > When I run the application, I can hear the > sound of the > > wave, but it is > > > mixed with a background hiss. > > > > > > I would like to have your opinion and check > if I have > > made good the > > > conversion. > > > > > > Attached: > > > - The Gambas source (in the Data folder is > the original > > C code); > > > - The compiled C program that works > perfectly ... As I > > would like with > > > Gambas! :-( > > > > > > regards and thanks > > > vuott > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before they > affect your > > business. Most IT > > > organizations don't have a clear picture of > how > > application performance > > > affects their revenue. With AppDynamics, you > get 100% > > visibility into your > > > Java,.NET, & PHP application. Start your > 15-day > > FREE TRIAL of AppDynamics > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect > your > > business. Most IT > > organizations don't have a clear picture of how > application > > performance > > affects their revenue. With AppDynamics, you get > 100% > > visibility into your > > Java,.NET, & PHP application. Start your > 15-day FREE > > TRIAL of AppDynamics Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > business. Most IT > > organizations don't have a clear picture of how > application performance > > affects their revenue. With AppDynamics, you get 100% > visibility into your > > Java,.NET, & PHP application. Start your 15-day > FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Wed Dec 18 00:20:50 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 17 Dec 2013 23:20:50 +0000 (GMT) Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: Message-ID: <1387322450.22193.YahooMailBasic@...3064...> I suppose it's a kind of signal, meaning.... ..you can see snd_pcm_writei() gives to ALSA handle a buffer variable full of Float values. vuott -------------------------------------------- Mer 18/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: "mailing list for gambas users" Data: Mercoled? 18 dicembre 2013, 00:05 No, as the name suggest it's float, not integer. Jussi On Wed, Dec 18, 2013 at 12:03 AM, Ru Vuott wrote: > Uhmmmm... it would seem to be correct. > In fact, if I insert this line in the code C: > >? ? printf("SND_PCM_FORMAT_FLOAT value =? %d", SND_PCM_FORMAT_FLOAT); > > and then I run that compilated C code, I obtain in terminal this results: > >? ? ? SND_PCM_FORMAT_FLOAT value =? 14 > > > In addition, you can easily calculate the enumeration of that ALSA > Constant in this page (see at Enumerations): > >???http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html > > You can see:? SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE > > > Thank you for your? help. > > bye > vuott > > > > -------------------------------------------- > Mar 17/12/13, Jussi Lahtinen ha scritto: > >? Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA >? A: "mailing list for gambas users" >? Data: Marted? 17 dicembre 2013, 22:34 > >? At least this isn't right: >? Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 > >? I'll look more closely later. > >? Jussi > > >? On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott >? wrote: > >? > The C code is in Data folder of Gambas project. >? > >? > Anyway, I've attached it to this email. >? > >? > Bye >? > vuotttttttt >? > >? > >? > >? > -------------------------------------------- >? > Mar 17/12/13, Jussi Lahtinen >? ha scritto: >? > >? >? Oggetto: Re: [Gambas-user] Generating a sine wave >? with ALSA >? >? A: "mailing list for gambas users" >? >? Data: Marted? 17 dicembre 2013, 22:26 >? > >? >? Where is the C source? Without it I >? >? can't say whether you have translated >? >? it correctly or not. >? > >? >? Jussi >? > >? > >? >? On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott >? >? wrote: >? > >? >? > Hello, >? >? > >? >? > in my eternal struggle with ALSA >? >? :-)???I was trying to convert in >? gambas >? >? > a C code, written to generate a sine wave >? with ALSA >? >? functions. >? >? > >? >? > When I run the application, I can hear the >? sound of the >? >? wave, but it is >? >? > mixed with a background hiss. >? >? > >? >? > I would like to have your opinion and check >? if I have >? >? made good the >? >? > conversion. >? >? > >? >? > Attached: >? >? > - The Gambas source (in the Data folder is >? the original >? >? C code); >? >? > - The compiled C program that works >? perfectly ... As I >? >? would like with >? >? > Gambas!? :-( >? >? > >? >? > regards and thanks >? >? > vuott >? >? > >? >? > >? > >? > > >? ------------------------------------------------------------------------------ >? >? > Rapidly troubleshoot problems before they >? affect your >? >? business. Most IT >? >? > organizations don't have a clear picture of >? how >? >? application performance >? >? > affects their revenue. With AppDynamics, you >? get 100% >? >? visibility into your >? >? > Java,.NET, & PHP application. Start your >? 15-day >? >? FREE TRIAL of AppDynamics >? >? > Pro! >? >? > >? > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >? >? > >? _______________________________________________ >? >? > Gambas-user mailing list >? >? > Gambas-user at lists.sourceforge.net >? >? > https://lists.sourceforge.net/lists/listinfo/gambas-user >? >? > >? >? > >? > >? > > >? ------------------------------------------------------------------------------ >? >? Rapidly troubleshoot problems before they affect >? your >? >? business. Most IT >? >? organizations don't have a clear picture of how >? application >? >? performance >? >? affects their revenue. With AppDynamics, you get >? 100% >? >? visibility into your >? >? Java,.NET, & PHP application. Start your >? 15-day FREE >? >? TRIAL of AppDynamics Pro! >? > >? > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >? >? _______________________________________________ >? >? Gambas-user mailing list >? >? Gambas-user at lists.sourceforge.net >? >? https://lists.sourceforge.net/lists/listinfo/gambas-user >? > >? > >? > > >? ------------------------------------------------------------------------------ >? > Rapidly troubleshoot problems before they affect your >? business. Most IT >? > organizations don't have a clear picture of how >? application performance >? > affects their revenue. With AppDynamics, you get 100% >? visibility into your >? > Java,.NET, & PHP application. Start your 15-day >? FREE TRIAL of AppDynamics >? > Pro! >? > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >? > _______________________________________________ >? > Gambas-user mailing list >? > Gambas-user at lists.sourceforge.net >? > https://lists.sourceforge.net/lists/listinfo/gambas-user >? > >? > > >? ------------------------------------------------------------------------------ >? Rapidly troubleshoot problems before they affect your >? business. Most IT >? organizations don't have a clear picture of how application >? performance >? affects their revenue. With AppDynamics, you get 100% >? visibility into your >? Java,.NET, & PHP application. Start your 15-day FREE >? TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >? _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed Dec 18 00:21:07 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 01:21:07 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: References: <1387317784.89465.YahooMailBasic@...3070...> Message-ID: Also this was wrongly declared (correct below): ' snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) Private Extern snd_pcm_writei(pcm As Pointer, buffF As Pointer, sizeI As Integer) As Integer Perhaps the biggest problem is that you give null pointer, not pointer to snd_pcm_t. Jussi On Wed, Dec 18, 2013 at 1:05 AM, Jussi Lahtinen wrote: > No, as the name suggest it's float, not integer. > > Jussi > > > On Wed, Dec 18, 2013 at 12:03 AM, Ru Vuott wrote: > >> Uhmmmm... it would seem to be correct. >> In fact, if I insert this line in the code C: >> >> printf("SND_PCM_FORMAT_FLOAT value = %d", SND_PCM_FORMAT_FLOAT); >> >> and then I run that compilated C code, I obtain in terminal this results: >> >> SND_PCM_FORMAT_FLOAT value = 14 >> >> >> In addition, you can easily calculate the enumeration of that ALSA >> Constant in this page (see at Enumerations): >> >> http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html >> >> You can see: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE >> >> >> Thank you for your help. >> >> bye >> vuott >> >> >> >> -------------------------------------------- >> Mar 17/12/13, Jussi Lahtinen ha scritto: >> >> Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA >> A: "mailing list for gambas users" >> Data: Marted? 17 dicembre 2013, 22:34 >> >> At least this isn't right: >> Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 >> >> I'll look more closely later. >> >> Jussi >> >> >> On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott >> wrote: >> >> > The C code is in Data folder of Gambas project. >> > >> > Anyway, I've attached it to this email. >> > >> > Bye >> > vuotttttttt >> > >> > >> > >> > -------------------------------------------- >> > Mar 17/12/13, Jussi Lahtinen >> ha scritto: >> > >> > Oggetto: Re: [Gambas-user] Generating a sine wave >> with ALSA >> > A: "mailing list for gambas users" > > >> > Data: Marted? 17 dicembre 2013, 22:26 >> > >> > Where is the C source? Without it I >> > can't say whether you have translated >> > it correctly or not. >> > >> > Jussi >> > >> > >> > On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott >> > wrote: >> > >> > > Hello, >> > > >> > > in my eternal struggle with ALSA >> > :-) I was trying to convert in >> gambas >> > > a C code, written to generate a sine wave >> with ALSA >> > functions. >> > > >> > > When I run the application, I can hear the >> sound of the >> > wave, but it is >> > > mixed with a background hiss. >> > > >> > > I would like to have your opinion and check >> if I have >> > made good the >> > > conversion. >> > > >> > > Attached: >> > > - The Gambas source (in the Data folder is >> the original >> > C code); >> > > - The compiled C program that works >> perfectly ... As I >> > would like with >> > > Gambas! :-( >> > > >> > > regards and thanks >> > > vuott >> > > >> > > >> > >> > >> >> ------------------------------------------------------------------------------ >> > > Rapidly troubleshoot problems before they >> affect your >> > business. Most IT >> > > organizations don't have a clear picture of >> how >> > application performance >> > > affects their revenue. With AppDynamics, you >> get 100% >> > visibility into your >> > > Java,.NET, & PHP application. Start your >> 15-day >> > FREE TRIAL of AppDynamics >> > > Pro! >> > > >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > > >> _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> > >> > >> >> ------------------------------------------------------------------------------ >> > Rapidly troubleshoot problems before they affect >> your >> > business. Most IT >> > organizations don't have a clear picture of how >> application >> > performance >> > affects their revenue. With AppDynamics, you get >> 100% >> > visibility into your >> > Java,.NET, & PHP application. Start your >> 15-day FREE >> > TRIAL of AppDynamics Pro! >> > >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> >> ------------------------------------------------------------------------------ >> > Rapidly troubleshoot problems before they affect your >> business. Most IT >> > organizations don't have a clear picture of how >> application performance >> > affects their revenue. With AppDynamics, you get 100% >> visibility into your >> > Java,.NET, & PHP application. Start your 15-day >> FREE TRIAL of AppDynamics >> > Pro! >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your >> business. Most IT >> organizations don't have a clear picture of how application >> performance >> affects their revenue. With AppDynamics, you get 100% >> visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE >> TRIAL of AppDynamics Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From jussi.lahtinen at ...626... Wed Dec 18 00:23:00 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 01:23:00 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: <1387322450.22193.YahooMailBasic@...3064...> References: <1387322450.22193.YahooMailBasic@...3064...> Message-ID: Also 14 is wrong, according to documentation, correct values are between -1 to 1. Jussi On Wed, Dec 18, 2013 at 1:20 AM, Ru Vuott wrote: > I suppose it's a kind of signal, meaning.... > > ..you can see snd_pcm_writei() gives to ALSA handle a buffer variable full > of Float values. > > vuott > > > > -------------------------------------------- > Mer 18/12/13, Jussi Lahtinen ha scritto: > > Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA > A: "mailing list for gambas users" > Data: Mercoled? 18 dicembre 2013, 00:05 > > No, as the name suggest it's float, > not integer. > > Jussi > > > On Wed, Dec 18, 2013 at 12:03 AM, Ru Vuott > wrote: > > > Uhmmmm... it would seem to be correct. > > In fact, if I insert this line in the code C: > > > > printf("SND_PCM_FORMAT_FLOAT value = > %d", SND_PCM_FORMAT_FLOAT); > > > > and then I run that compilated C code, I obtain in > terminal this results: > > > > SND_PCM_FORMAT_FLOAT value = > 14 > > > > > > In addition, you can easily calculate the enumeration > of that ALSA > > Constant in this page (see at Enumerations): > > > > http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html > > > > You can see: SND_PCM_FORMAT_FLOAT = > SND_PCM_FORMAT_FLOAT_LE > > > > > > Thank you for your help. > > > > bye > > vuott > > > > > > > > -------------------------------------------- > > Mar 17/12/13, Jussi Lahtinen > ha scritto: > > > > Oggetto: Re: [Gambas-user] Generating a sine wave > with ALSA > > A: "mailing list for gambas users" > > Data: Marted? 17 dicembre 2013, 22:34 > > > > At least this isn't right: > > Private Const SND_PCM_FORMAT_FLOAT As Integer = > 14 > > > > I'll look more closely later. > > > > Jussi > > > > > > On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott > > wrote: > > > > > The C code is in Data folder of Gambas > project. > > > > > > Anyway, I've attached it to this email. > > > > > > Bye > > > vuotttttttt > > > > > > > > > > > > > -------------------------------------------- > > > Mar 17/12/13, Jussi Lahtinen > > ha scritto: > > > > > > Oggetto: Re: [Gambas-user] Generating > a sine wave > > with ALSA > > > A: "mailing list for gambas users" > > > > Data: Marted? 17 dicembre 2013, > 22:26 > > > > > > Where is the C source? Without it I > > > can't say whether you have translated > > > it correctly or not. > > > > > > Jussi > > > > > > > > > On Tue, Dec 17, 2013 at 6:38 PM, Ru > Vuott > > > wrote: > > > > > > > Hello, > > > > > > > > in my eternal struggle with ALSA > > > :-) I was trying to > convert in > > gambas > > > > a C code, written to generate a > sine wave > > with ALSA > > > functions. > > > > > > > > When I run the application, I can > hear the > > sound of the > > > wave, but it is > > > > mixed with a background hiss. > > > > > > > > I would like to have your opinion > and check > > if I have > > > made good the > > > > conversion. > > > > > > > > Attached: > > > > - The Gambas source (in the Data > folder is > > the original > > > C code); > > > > - The compiled C program that > works > > perfectly ... As I > > > would like with > > > > Gambas! :-( > > > > > > > > regards and thanks > > > > vuott > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems > before they > > affect your > > > business. Most IT > > > > organizations don't have a clear > picture of > > how > > > application performance > > > > affects their revenue. With > AppDynamics, you > > get 100% > > > visibility into your > > > > Java,.NET, & PHP application. > Start your > > 15-day > > > FREE TRIAL of AppDynamics > > > > Pro! > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before > they affect > > your > > > business. Most IT > > > organizations don't have a clear > picture of how > > application > > > performance > > > affects their revenue. With > AppDynamics, you get > > 100% > > > visibility into your > > > Java,.NET, & PHP application. > Start your > > 15-day FREE > > > TRIAL of AppDynamics Pro! > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before they > affect your > > business. Most IT > > > organizations don't have a clear picture of > how > > application performance > > > affects their revenue. With AppDynamics, you > get 100% > > visibility into your > > > Java,.NET, & PHP application. Start your > 15-day > > FREE TRIAL of AppDynamics > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect > your > > business. Most IT > > organizations don't have a clear picture of how > application > > performance > > affects their revenue. With AppDynamics, you get > 100% > > visibility into your > > Java,.NET, & PHP application. Start your > 15-day FREE > > TRIAL of AppDynamics Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > business. Most IT > > organizations don't have a clear picture of how > application performance > > affects their revenue. With AppDynamics, you get 100% > visibility into your > > Java,.NET, & PHP application. Start your 15-day > FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Dec 18 02:08:22 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 03:08:22 +0200 Subject: [Gambas-user] Generating a sine wave with ALSA In-Reply-To: References: <1387317784.89465.YahooMailBasic@...3070...> Message-ID: "snd_pcm_t" is synonymous for "struct _snd_pcm" (typedef struct _snd_pcm snd_pcm_t;). And struct _snd_pcm is declared as... see from line 183. http://fossies.org/dox/alsa-lib-1.0.27.2/pcm__local_8h_source.html Quite a task to implement in Gambas (not sure it's possible). Jussi On Wed, Dec 18, 2013 at 1:21 AM, Jussi Lahtinen wrote: > Also this was wrongly declared (correct below): > > ' snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, > snd_pcm_uframes_t size) > Private Extern snd_pcm_writei(pcm As Pointer, buffF As Pointer, sizeI As > Integer) As Integer > > Perhaps the biggest problem is that you give null pointer, not pointer to > snd_pcm_t. > > > Jussi > > > > On Wed, Dec 18, 2013 at 1:05 AM, Jussi Lahtinen wrote: > >> No, as the name suggest it's float, not integer. >> >> Jussi >> >> >> On Wed, Dec 18, 2013 at 12:03 AM, Ru Vuott wrote: >> >>> Uhmmmm... it would seem to be correct. >>> In fact, if I insert this line in the code C: >>> >>> printf("SND_PCM_FORMAT_FLOAT value = %d", SND_PCM_FORMAT_FLOAT); >>> >>> and then I run that compilated C code, I obtain in terminal this results: >>> >>> SND_PCM_FORMAT_FLOAT value = 14 >>> >>> >>> In addition, you can easily calculate the enumeration of that ALSA >>> Constant in this page (see at Enumerations): >>> >>> http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html >>> >>> You can see: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE >>> >>> >>> Thank you for your help. >>> >>> bye >>> vuott >>> >>> >>> >>> -------------------------------------------- >>> Mar 17/12/13, Jussi Lahtinen ha scritto: >>> >>> Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA >>> A: "mailing list for gambas users" >>> Data: Marted? 17 dicembre 2013, 22:34 >>> >>> At least this isn't right: >>> Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 >>> >>> I'll look more closely later. >>> >>> Jussi >>> >>> >>> On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott >>> wrote: >>> >>> > The C code is in Data folder of Gambas project. >>> > >>> > Anyway, I've attached it to this email. >>> > >>> > Bye >>> > vuotttttttt >>> > >>> > >>> > >>> > -------------------------------------------- >>> > Mar 17/12/13, Jussi Lahtinen >>> ha scritto: >>> > >>> > Oggetto: Re: [Gambas-user] Generating a sine wave >>> with ALSA >>> > A: "mailing list for gambas users" < >>> gambas-user at lists.sourceforge.net> >>> > Data: Marted? 17 dicembre 2013, 22:26 >>> > >>> > Where is the C source? Without it I >>> > can't say whether you have translated >>> > it correctly or not. >>> > >>> > Jussi >>> > >>> > >>> > On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott >>> > wrote: >>> > >>> > > Hello, >>> > > >>> > > in my eternal struggle with ALSA >>> > :-) I was trying to convert in >>> gambas >>> > > a C code, written to generate a sine wave >>> with ALSA >>> > functions. >>> > > >>> > > When I run the application, I can hear the >>> sound of the >>> > wave, but it is >>> > > mixed with a background hiss. >>> > > >>> > > I would like to have your opinion and check >>> if I have >>> > made good the >>> > > conversion. >>> > > >>> > > Attached: >>> > > - The Gambas source (in the Data folder is >>> the original >>> > C code); >>> > > - The compiled C program that works >>> perfectly ... As I >>> > would like with >>> > > Gambas! :-( >>> > > >>> > > regards and thanks >>> > > vuott >>> > > >>> > > >>> > >>> > >>> >>> ------------------------------------------------------------------------------ >>> > > Rapidly troubleshoot problems before they >>> affect your >>> > business. Most IT >>> > > organizations don't have a clear picture of >>> how >>> > application performance >>> > > affects their revenue. With AppDynamics, you >>> get 100% >>> > visibility into your >>> > > Java,.NET, & PHP application. Start your >>> 15-day >>> > FREE TRIAL of AppDynamics >>> > > Pro! >>> > > >>> > >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> > > >>> _______________________________________________ >>> > > Gambas-user mailing list >>> > > Gambas-user at lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >>> > > >>> > >>> > >>> >>> ------------------------------------------------------------------------------ >>> > Rapidly troubleshoot problems before they affect >>> your >>> > business. Most IT >>> > organizations don't have a clear picture of how >>> application >>> > performance >>> > affects their revenue. With AppDynamics, you get >>> 100% >>> > visibility into your >>> > Java,.NET, & PHP application. Start your >>> 15-day FREE >>> > TRIAL of AppDynamics Pro! >>> > >>> > >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> > >>> > >>> >>> ------------------------------------------------------------------------------ >>> > Rapidly troubleshoot problems before they affect your >>> business. Most IT >>> > organizations don't have a clear picture of how >>> application performance >>> > affects their revenue. With AppDynamics, you get 100% >>> visibility into your >>> > Java,.NET, & PHP application. Start your 15-day >>> FREE TRIAL of AppDynamics >>> > Pro! >>> > >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> > >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your >>> business. Most IT >>> organizations don't have a clear picture of how application >>> performance >>> affects their revenue. With AppDynamics, you get 100% >>> visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE >>> TRIAL of AppDynamics Pro! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into >>> your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >>> AppDynamics Pro! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From bbruen at ...2308... Wed Dec 18 03:33:37 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 18 Dec 2013 13:03:37 +1030 Subject: [Gambas-user] Creating a gb3 executable Message-ID: <1387334017.3136.171.camel@...2688...> I have done this so many times before but today I just cant get it to work. We have a code generator that updates the source code for a library project. As well as that it updates an SQLite database file in the project. This database gets stored inside the library executable. Fundamentally every time the database is changed we need to recompile the library. Fundamentally many times I forget to do it and sit here wondering why nothing has changed. So I am trying to automate the executable generation in the code generator. If Message.Question("Recompile BO library?", "Yes", "No") = 1 Then Print "Compiling " & $cProjectPath Shell "gbc3 -egawx " & $cProjectPath To sCompileLog Print sCompileLog Print "Creating executable archive " & $cProjectPath &/ File.BaseName($cProjectPath) & ".gambas" Shell "gba3 -v -o " & $cProjectPath &/ File.BaseName($cProjectPath) & ".gambas" To sCompileLog Print sCompileLog Endif The gbc3 bit works fine and all the files in .gambas are updated, but the gba3 bit doesn't do what I want. The library executable file timestamp doesn't change. Here's the output: Compiling /home/bb/gambas3_proj/atestmgr/tmbo2 OK Creating executable archive /home/bb/gambas3_proj/atestmgr/tmbo2/tmbo2.gambas but the tmbo2.gambas file is still timestamped some hours ago. I have waded through the IDE code to see if I can find a clue, but alas, no joy. I'd appreciate if someone could take a look at that code above and tell me if there is something glaringly obvious that I just cannot see. tia Bruce From bbruen at ...2308... Wed Dec 18 03:35:11 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 18 Dec 2013 13:05:11 +1030 Subject: [Gambas-user] Project line counts Message-ID: <1387334111.3136.173.camel@...2688...> Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how many source code lines were in the project? ? Bruce From bbruen at ...2308... Wed Dec 18 03:47:05 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 18 Dec 2013 13:17:05 +1030 Subject: [Gambas-user] Creating a gb3 executable In-Reply-To: <1387334017.3136.171.camel@...2688...> References: <1387334017.3136.171.camel@...2688...> Message-ID: <1387334825.3136.175.camel@...2688...> On Wed, 2013-12-18 at 13:03 +1030, Bruce wrote: > Some idiotic code. Forget it. I can see why it doesn't work. Sorry about the noise. Bruce From gambas at ...1... Wed Dec 18 03:54:26 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Dec 2013 03:54:26 +0100 Subject: [Gambas-user] Project line counts In-Reply-To: <1387334111.3136.173.camel@...2688...> References: <1387334111.3136.173.camel@...2688...> Message-ID: <52B10E62.8010103@...1...> Le 18/12/2013 03:35, Bruce a ?crit : > Wasn't there a context menu item somewhere in the IDE that told you > (amongst other things) how many source code lines were in the project? > > ? > Bruce > There was, but I removed it. Do you need that? What do you mean by "amongst other things"? -- Beno?t Minisini From gambas at ...1... Wed Dec 18 04:03:06 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Dec 2013 04:03:06 +0100 Subject: [Gambas-user] automatic column width in DataBrowser In-Reply-To: <1387280500.48213.YahooMailNeo@...3258...> References: <1387280500.48213.YahooMailNeo@...3258...> Message-ID: <52B1106A.7040608@...1...> Le 17/12/2013 12:41, nero a ?crit : > Hi all , I'm using a to get some data from a postgresql > database , everything's work fine but I've some problema setting > column width. > > When I double click between two columns they get the right width , is > there a way to do so by code ? DataBrowser use an inner TableView that is returned by the View property. You can set the width on one of its column to "-1" to get the right width (it does not take into accound all the rows, but the first thousand one AFAIR). > > Also can I set test allignment of the cells ? I see some data on > right , some on left , I want everything centered. > > I've try to play with DataBrowser.columns and DataBrowser.columns[x] > but haven't found any solution. > > Thank's in advance, marco. > The DataBrowser raises a "Data" event each time it's going to display a cell. This is like the Data event of the TableView, i.e. you can fill the DataBrowser Data property (yes, same name) to define how to display the specified cell during the Data event handler. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 18 04:05:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Dec 2013 04:05:50 +0100 Subject: [Gambas-user] Cairo In-Reply-To: <52AEF1AB.6070808@...626...> References: <52AEF1AB.6070808@...626...> Message-ID: <52B1110E.1040801@...1...> Le 16/12/2013 13:27, Pino Zollo a ?crit : > My project does not use cairo component...but I get in the console the > message: > > gbx3: /build/buildd/cairo-1.10.2/src/cairo-surface.c:385: > _cairo_surface_begin_modification: La declaraci?n `! surface->finished' > no se cumple. > > no se cumple...means it is not realized gb.gtk drawing is now entirely done with cairo, so you are using cairo. > > it appears the included error window...seing to inform gambas developers > ;-) > See the attached png. > > It is produced by the instruction > > FScale.Show > > The source attached... > Beno?t...the database is always the same. > > Salud > > Pino > I couldn't succeed in reproducing that, your code needs postgresql, and I didn't have the time to put all that up for testing... Can you check at least that you didn't set the background of a cached drawing area between a Draw.Begin() / Draw.End() on it? -- Beno?t Minisini From bbruen at ...2308... Wed Dec 18 05:18:59 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 18 Dec 2013 14:48:59 +1030 Subject: [Gambas-user] Project line counts In-Reply-To: <52B10E62.8010103@...1...> References: <1387334111.3136.173.camel@...2688...> <52B10E62.8010103@...1...> Message-ID: <1387340339.3136.177.camel@...2688...> On Wed, 2013-12-18 at 03:54 +0100, Beno?t Minisini wrote: > Le 18/12/2013 03:35, Bruce a ?crit : > > Wasn't there a context menu item somewhere in the IDE that told you > > (amongst other things) how many source code lines were in the project? > > > > ? > > Bruce > > > > There was, but I removed it. Do you need that? Not really, I was just interested in how big this code generated project was getting. But it is good to know that I am not going mad. > What do you mean by > "amongst other things"? > Nothing important, I cant even remember what else it showed. cheers Bruce From eilert-sprachen at ...221... Wed Dec 18 08:21:58 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Dec 2013 08:21:58 +0100 Subject: [Gambas-user] Project line counts In-Reply-To: <52B10E62.8010103@...1...> References: <1387334111.3136.173.camel@...2688...> <52B10E62.8010103@...1...> Message-ID: <52B14D16.3060105@...221...> Am 18.12.2013 03:54, schrieb Beno?t Minisini: > Le 18/12/2013 03:35, Bruce a ?crit : >> Wasn't there a context menu item somewhere in the IDE that told you >> (amongst other things) how many source code lines were in the project? >> >> ? >> Bruce >> > > There was, but I removed it. Do you need that? What do you mean by > "amongst other things"? > By the way, the other day I was coding a non-GUI app and wondering if there once was a button to compile and write a new binary in one go. I had to use the menu each time, which was somewhat cumbersome. Was there such a button? Or am I wrong? Regards Rolf From Karl.Reinl at ...2345... Wed Dec 18 08:35:21 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 18 Dec 2013 08:35:21 +0100 Subject: [Gambas-user] Project line counts In-Reply-To: <52B14D16.3060105@...221...> References: <1387334111.3136.173.camel@...2688...> <52B10E62.8010103@...1...> <52B14D16.3060105@...221...> Message-ID: <1387352121.2507.2.camel@...40...> Am Mittwoch, den 18.12.2013, 08:21 +0100 schrieb Rolf-Werner Eilert: > > Am 18.12.2013 03:54, schrieb Beno?t Minisini: > > Le 18/12/2013 03:35, Bruce a ?crit : > >> Wasn't there a context menu item somewhere in the IDE that told you > >> (amongst other things) how many source code lines were in the project? > >> > >> ? > >> Bruce > >> > > > > There was, but I removed it. Do you need that? What do you mean by > > "amongst other things"? > > > > By the way, the other day I was coding a non-GUI app and wondering if > there once was a button to compile and write a new binary in one go. I > had to use the menu each time, which was somewhat cumbersome. > > Was there such a button? Or am I wrong? > > Regards > > Rolf Salut Rolf, still exits! If don't see, you have to turn it on, with a right mouse click on the toolbar (upper toolbar) -- Amicalement Charlie From eilert-sprachen at ...221... Wed Dec 18 08:55:00 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Dec 2013 08:55:00 +0100 Subject: [Gambas-user] Project line counts In-Reply-To: <1387352121.2507.2.camel@...40...> References: <1387334111.3136.173.camel@...2688...> <52B10E62.8010103@...1...> <52B14D16.3060105@...221...> <1387352121.2507.2.camel@...40...> Message-ID: <52B154D4.3060801@...221...> Am 18.12.2013 08:35, schrieb Charlie Reinl: > Am Mittwoch, den 18.12.2013, 08:21 +0100 schrieb Rolf-Werner Eilert: >> >> Am 18.12.2013 03:54, schrieb Beno?t Minisini: >>> Le 18/12/2013 03:35, Bruce a ?crit : >>>> Wasn't there a context menu item somewhere in the IDE that told you >>>> (amongst other things) how many source code lines were in the project? >>>> >>>> ? >>>> Bruce >>>> >>> >>> There was, but I removed it. Do you need that? What do you mean by >>> "amongst other things"? >>> >> >> By the way, the other day I was coding a non-GUI app and wondering if >> there once was a button to compile and write a new binary in one go. I >> had to use the menu each time, which was somewhat cumbersome. >> >> Was there such a button? Or am I wrong? >> >> Regards >> >> Rolf > > Salut Rolf, > > still exits! If don't see, you have to turn it on, with a right mouse > click on the toolbar (upper toolbar) > Aaah ok :) I found it. But I have to right-click on one of the icons, not on the toolbar itself. Somewhat confusing, because with a right-click on an icon I would expect a context menu for this icon, not the one for the whole toolbar. Regards Rolf From jussi.lahtinen at ...626... Wed Dec 18 15:02:20 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 16:02:20 +0200 Subject: [Gambas-user] Cairo In-Reply-To: <52B1110E.1040801@...1...> References: <52AEF1AB.6070808@...626...> <52B1110E.1040801@...1...> Message-ID: The code from draw.begin: Draw.Begin(DrawingArea1) Rap = Draw.w / 3 DH = Draw.H ' [GB2:BCOL] DrawingArea1.BackColor = Color.White ' OK works DrawingArea1.Background = Color.White ... So, yes, it is between draw.begin and draw.end. But this is not clear if you read the documentation. http://gambasdoc.org/help/comp/gb.qt4/draw?v3 Is there way to get error message from compiler? Jussi On Wed, Dec 18, 2013 at 5:05 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 16/12/2013 13:27, Pino Zollo a ?crit : > > My project does not use cairo component...but I get in the console the > > message: > > > > gbx3: /build/buildd/cairo-1.10.2/src/cairo-surface.c:385: > > _cairo_surface_begin_modification: La declaraci?n `! surface->finished' > > no se cumple. > > > > no se cumple...means it is not realized > > gb.gtk drawing is now entirely done with cairo, so you are using cairo. > > > > > it appears the included error window...seing to inform gambas developers > > ;-) > > See the attached png. > > > > It is produced by the instruction > > > > FScale.Show > > > > The source attached... > > Beno?t...the database is always the same. > > > > Salud > > > > Pino > > > > I couldn't succeed in reproducing that, your code needs postgresql, and > I didn't have the time to put all that up for testing... > > Can you check at least that you didn't set the background of a cached > drawing area between a Draw.Begin() / Draw.End() on it? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Dec 18 15:04:46 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 16:04:46 +0200 Subject: [Gambas-user] Project line counts In-Reply-To: <1387340339.3136.177.camel@...2688...> References: <1387334111.3136.173.camel@...2688...> <52B10E62.8010103@...1...> <1387340339.3136.177.camel@...2688...> Message-ID: There is way to do this in terminal. Run this in your project folder: find . -name '*.class' -o -name '*.module' | xargs wc -l Jussi On Wed, Dec 18, 2013 at 6:18 AM, Bruce wrote: > On Wed, 2013-12-18 at 03:54 +0100, Beno?t Minisini wrote: > > Le 18/12/2013 03:35, Bruce a ?crit : > > > Wasn't there a context menu item somewhere in the IDE that told you > > > (amongst other things) how many source code lines were in the project? > > > > > > ? > > > Bruce > > > > > > > There was, but I removed it. Do you need that? > Not really, I was just interested in how big this code generated project > was getting. But it is good to know that I am not going mad. > > > What do you mean by > > "amongst other things"? > > > Nothing important, I cant even remember what else it showed. > > cheers > Bruce > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Dec 18 15:27:38 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Dec 2013 15:27:38 +0100 Subject: [Gambas-user] What is Glyphenstauchung? Message-ID: <52B1B0DA.2010705@...221...> In the style managing dialog, I find Glyphenstauchung (sorry, don't know what it is in English locale) and some values the meaning of which isn't clear to me. On the font tab, I find Horizontal Scaling - this seems to be a different thing though. Can somebody here explain me what that is - or point me to a wiki page or link that can enlighten me? Thanks so much! Rolf From pinozollo at ...626... Wed Dec 18 17:16:28 2013 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 18 Dec 2013 13:16:28 -0300 Subject: [Gambas-user] Cairo In-Reply-To: References: Message-ID: <52B1CA5C.4060306@...626...> El 18/12/13 11:05, gambas-user-request at lists.sourceforge.net escribi?: > The code from draw.begin: > > Draw.Begin(DrawingArea1) > Rap = Draw.w / 3 > DH = Draw.H > > ' [GB2:BCOL] DrawingArea1.BackColor = Color.White ' OK works > DrawingArea1.Background = Color.White > > ... > > So, yes, it is between draw.begin and draw.end. > But this is not clear if you read the documentation. > http://gambasdoc.org/help/comp/gb.qt4/draw?v3 > > Is there way to get error message from compiler? > > Jussi How can a poor programmer imagine that Draw is into qt4 ? there is not an entry from the main list of instructions. Do you think that this buggy documentation is sufficient ? for instance... the documentation of Paint does not mention that it has to be inside an event handler... I have discovered it experimenting... The worst for me is that I do not understand why Draw or Paint must be inside an event handler... ...it was not so in Gambas2 ... Who triggers the event ?...why ? when ? How can other classes modify the drawing ? Please help a simple-minded programmer... Thanks Pino From eilert-sprachen at ...221... Wed Dec 18 17:22:08 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Dec 2013 17:22:08 +0100 Subject: [Gambas-user] What is Glyphenstauchung? In-Reply-To: <52B1B0DA.2010705@...221...> References: <52B1B0DA.2010705@...221...> Message-ID: <52B1CBB0.5000400@...221...> Sorry, wrong mailing list :-( Am 18.12.2013 15:27, schrieb Rolf-Werner Eilert: > In the style managing dialog, I find Glyphenstauchung (sorry, don't know > what it is in English locale) and some values the meaning of which isn't > clear to me. On the font tab, I find Horizontal Scaling - this seems to > be a different thing though. > > Can somebody here explain me what that is - or point me to a wiki page > or link that can enlighten me? > > Thanks so much! > > Rolf > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Dec 18 18:42:00 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 Dec 2013 19:42:00 +0200 Subject: [Gambas-user] Cairo In-Reply-To: <52B1CA5C.4060306@...626...> References: <52B1CA5C.4060306@...626...> Message-ID: Example drawingarea1.refresh() will trigger the event. And thus, all things that trigger refresh. But if the drawingarea is cached, then draw instructions doesn't have to be inside of event handler. Jussi On Wed, Dec 18, 2013 at 6:16 PM, Pino Zollo wrote: > > El 18/12/13 11:05, gambas-user-request at lists.sourceforge.net escribi?: > > The code from draw.begin: > > > > Draw.Begin(DrawingArea1) > > Rap = Draw.w / 3 > > DH = Draw.H > > > > ' [GB2:BCOL] DrawingArea1.BackColor = Color.White ' OK works > > DrawingArea1.Background = Color.White > > > > ... > > > > So, yes, it is between draw.begin and draw.end. > > But this is not clear if you read the documentation. > > http://gambasdoc.org/help/comp/gb.qt4/draw?v3 > > > > Is there way to get error message from compiler? > > > > Jussi > How can a poor programmer imagine that Draw is into qt4 ? there is not > an entry from the main list of instructions. > > Do you think that this buggy documentation is sufficient ? > > for instance... the documentation of Paint does not mention that it has > to be inside an event handler... > I have discovered it experimenting... > > The worst for me is that I do not understand why Draw or Paint must be > inside an event handler... > > ...it was not so in Gambas2 ... > > Who triggers the event ?...why ? when ? > > How can other classes modify the drawing ? > > Please help a simple-minded programmer... > > Thanks > > Pino > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Thu Dec 19 09:54:23 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 09:54:23 +0100 Subject: [Gambas-user] Importing modules from other projects Message-ID: <52B2B43F.8030108@...221...> A few minutes ago I started a new project. I plan to use a module which I made for another project in my new one. The standard way to do so would be to make a new module in the project tree (right-click...), open the older project, Ctrl-A and Ctrl-C the whole text, then open the new project, go into the new module and Ctrl-V. Right? What about an import function (maybe File/Import from...) which would enable me to browse through modules (and maybe even single functions) in other projects and import them to the currently selected point in the editor? Just an idea about workflow... Regards Rolf From Karl.Reinl at ...2345... Thu Dec 19 10:57:15 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 19 Dec 2013 10:57:15 +0100 Subject: [Gambas-user] Importing modules from other projects In-Reply-To: <52B2B43F.8030108@...221...> References: <52B2B43F.8030108@...221...> Message-ID: <1387447035.2690.8.camel@...40...> Am Donnerstag, den 19.12.2013, 09:54 +0100 schrieb Rolf-Werner Eilert: > A few minutes ago I started a new project. I plan to use a module which > I made for another project in my new one. > > The standard way to do so would be to make a new module in the project > tree (right-click...), open the older project, Ctrl-A and Ctrl-C the > whole text, then open the new project, go into the new module and > Ctrl-V. Right? > > What about an import function (maybe File/Import from...) which would > enable me to browse through modules (and maybe even single functions) in > other projects and import them to the currently selected point in the > editor? > > Just an idea about workflow... > > Regards > Rolf Salut Rolf, that still exist, after New/Module switch to the second tab ('Existent' in german), go to the module you want /.src/your-module.gambas With OK you import it as real copy or sim-Link.. -- Amicalement Charlie From eilert-sprachen at ...221... Thu Dec 19 11:34:41 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 11:34:41 +0100 Subject: [Gambas-user] Importing modules from other projects In-Reply-To: <1387447035.2690.8.camel@...40...> References: <52B2B43F.8030108@...221...> <1387447035.2690.8.camel@...40...> Message-ID: <52B2CBC1.9060800@...221...> Am 19.12.2013 10:57, schrieb Charlie Reinl: > Am Donnerstag, den 19.12.2013, 09:54 +0100 schrieb Rolf-Werner Eilert: >> A few minutes ago I started a new project. I plan to use a module which >> I made for another project in my new one. >> >> The standard way to do so would be to make a new module in the project >> tree (right-click...), open the older project, Ctrl-A and Ctrl-C the >> whole text, then open the new project, go into the new module and >> Ctrl-V. Right? >> >> What about an import function (maybe File/Import from...) which would >> enable me to browse through modules (and maybe even single functions) in >> other projects and import them to the currently selected point in the >> editor? >> >> Just an idea about workflow... >> >> Regards >> Rolf > > Salut Rolf, > > that still exist, after New/Module switch to the second tab ('Existent' > in german), go to the module you want path>/.src/your-module.gambas > > With OK you import it as real copy or sim-Link.. > Aaaah - ok! Thank you! Completely blind... :) Rolf From eilert-sprachen at ...221... Thu Dec 19 11:36:18 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 11:36:18 +0100 Subject: [Gambas-user] File Chooser OK event? Message-ID: <52B2CC22.8090707@...221...> Just saw that File Chooser can have its own OK and Cancel buttons, but how would I handle these events? Never used it before, and there is no hint in the help... Regards Rolf From Gambas at ...1950... Thu Dec 19 11:49:49 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Dec 2013 11:49:49 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2CC22.8090707@...221...> References: <52B2CC22.8090707@...221...> Message-ID: <52B2CF4D.8040102@...1950...> Hi Rolf I put the File Chooser on its own form and handled the events from my main form... You can ignore the FORM_LEFT, FORM_RIGHT stuff... that was just for the fact this code comes from a program that opens and compares 2 files... so I just needed to keep track of which one was being chosen... but it does show how you can pass around extra information should you need to... Public Sub pbChoose1_Click() showChooser(FORM_LEFT) End Public Sub pbChoose2_Click() showChooser(FORM_RIGHT) End Private Sub showChooser(leftright As Integer) Dim chooser As FileChooserFrm chooser = New FileChooserFrm As "Chooser" chooser.setFileNumber(leftRight) chooser.setRoot(ROOT) chooser.Show End Public Sub Chooser_Close() Print "Chooser got Close EVENT!" End Public Sub Chooser_Done(fileName As String, fileNumber As Integer) Print "Chooser got Done EVENT!" If fileNumber = FORM_LEFT Then txtFile1.Text = fileName Else If fileNumber = FORM_RIGHT Then txtFile2.Text = fileName End If End Kind regards, Caveat On 19/12/13 11:36, Rolf-Werner Eilert wrote: > Just saw that File Chooser can have its own OK and Cancel buttons, but > how would I handle these events? Never used it before, and there is no > hint in the help... > > Regards > Rolf > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Thu Dec 19 12:15:16 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Dec 2013 12:15:16 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2CF4D.8040102@...1950...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> Message-ID: <52B2D544.7060605@...1950...> And here's the code from the form containing the File Chooser... Having sent you all this, I realise it perhaps doesn't really answer your question (sorry!) but perhaps there's enough in here about raising and handling events that it becomes clear how to use the OK and Cancel events from the File Chooser itself, should you still wish to do so... :-D ' Done Event is raised only if Done button pressed and a file has been chosen and ' returns the chosen file name and the (earlier) provided fileNumber ' See below for details of fileNumber Event Done(fileName As String, fileNumber As Integer) ' Allows us to keep track of which file we're dealing with if there are multiple places ' where you can choose a file on the main Form ' It's returned to the main Form on the Done event Private fileNumber As Integer Public Sub pbCancel_Click() Me.Close End Public Sub pbDone_Click() If FileChooser2.SelectedPath = "" Then Message.Error("No file chosen! Cancel to return without selecting a file") Return Endif Raise Done(FileChooser2.SelectedPath, fileNumber) Me.Close End Public Sub setFileNumber(newFileNumber As Integer) fileNumber = newfileNumber End Public Sub setRoot(newRoot As String) FileChooser2.Root = newRoot End Public Sub setFilter(newFilter As String) FileChooser2.Filter = newFilter End Kind regards, Caveat From eilert-sprachen at ...221... Thu Dec 19 12:27:42 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 12:27:42 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2D544.7060605@...1950...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> Message-ID: <52B2D82E.7000302@...221...> Am 19.12.2013 12:15, schrieb Caveat: > Raise Done(FileChooser2.SelectedPath, fileNumber) Aaah - that was the one I was looking for! :) Thank you! Rolf From eilert-sprachen at ...221... Thu Dec 19 12:32:55 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 12:32:55 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2D544.7060605@...1950...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> Message-ID: <52B2D967.20106@...221...> pbDone_Click() Where does that come from? Am 19.12.2013 12:15, schrieb Caveat: > And here's the code from the form containing the File Chooser... > > Having sent you all this, I realise it perhaps doesn't really answer > your question (sorry!) but perhaps there's enough in here about raising > and handling events that it becomes clear how to use the OK and Cancel > events from the File Chooser itself, should you still wish to do so... :-D > > ' Done Event is raised only if Done button pressed and a file has been > chosen and > ' returns the chosen file name and the (earlier) provided fileNumber > ' See below for details of fileNumber > Event Done(fileName As String, fileNumber As Integer) > ' Allows us to keep track of which file we're dealing with if there are > multiple places > ' where you can choose a file on the main Form > ' It's returned to the main Form on the Done event > Private fileNumber As Integer > > Public Sub pbCancel_Click() > > Me.Close > > End > > Public Sub pbDone_Click() > > If FileChooser2.SelectedPath = "" Then > Message.Error("No file chosen! Cancel to return without selecting > a file") > Return > Endif > Raise Done(FileChooser2.SelectedPath, fileNumber) > Me.Close > > End > > Public Sub setFileNumber(newFileNumber As Integer) > > fileNumber = newfileNumber > > End > > Public Sub setRoot(newRoot As String) > > FileChooser2.Root = newRoot > > End > > Public Sub setFilter(newFilter As String) > > FileChooser2.Filter = newFilter > > End > > Kind regards, > Caveat > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Thu Dec 19 12:48:52 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Dec 2013 12:48:52 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2D967.20106@...221...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> <52B2D967.20106@...221...> Message-ID: <52B2DD24.1010704@...1950...> I have a pbDone and a pbCancel button on my form. I'm guessing that if you are using the File Chooser's built-in OK/Cancel buttons (where have you found that and how are you enabling that ??) that you will have to handle them in a similar way... so making a new File Chooser As ... if from code, or just sticking it on the form if using the designer... Kind regards, Caveat On 19/12/13 12:32, Rolf-Werner Eilert wrote: > pbDone_Click() > > Where does that come from? > > > > Am 19.12.2013 12:15, schrieb Caveat: >> And here's the code from the form containing the File Chooser... >> >> Having sent you all this, I realise it perhaps doesn't really answer >> your question (sorry!) but perhaps there's enough in here about raising >> and handling events that it becomes clear how to use the OK and Cancel >> events from the File Chooser itself, should you still wish to do so... :-D >> >> ' Done Event is raised only if Done button pressed and a file has been >> chosen and >> ' returns the chosen file name and the (earlier) provided fileNumber >> ' See below for details of fileNumber >> Event Done(fileName As String, fileNumber As Integer) >> ' Allows us to keep track of which file we're dealing with if there are >> multiple places >> ' where you can choose a file on the main Form >> ' It's returned to the main Form on the Done event >> Private fileNumber As Integer >> >> Public Sub pbCancel_Click() >> >> Me.Close >> >> End >> >> Public Sub pbDone_Click() >> >> If FileChooser2.SelectedPath = "" Then >> Message.Error("No file chosen! Cancel to return without selecting >> a file") >> Return >> Endif >> Raise Done(FileChooser2.SelectedPath, fileNumber) >> Me.Close >> >> End >> >> Public Sub setFileNumber(newFileNumber As Integer) >> >> fileNumber = newfileNumber >> >> End >> >> Public Sub setRoot(newRoot As String) >> >> FileChooser2.Root = newRoot >> >> End >> >> Public Sub setFilter(newFilter As String) >> >> FileChooser2.Filter = newFilter >> >> End >> >> Kind regards, >> Caveat >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Thu Dec 19 13:11:49 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 13:11:49 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2DD24.1010704@...1950...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> <52B2D967.20106@...221...> <52B2DD24.1010704@...1950...> Message-ID: <52B2E285.60003@...221...> Ok, I see. You activate this by Show Button = True in the form dialog. The help says "Return or set if the standard ../../dialog buttons ('OK' and 'Cancel') are visible or not." And this doesn't help me a lot... ;) Rolf Am 19.12.2013 12:48, schrieb Caveat: > I have a pbDone and a pbCancel button on my form. I'm guessing that if > you are using the File Chooser's built-in OK/Cancel buttons (where have > you found that and how are you enabling that ??) that you will have to > handle them in a similar way... so making a new File Chooser As ... if > from code, or just sticking it on the form if using the designer... > > Kind regards, > Caveat > > On 19/12/13 12:32, Rolf-Werner Eilert wrote: >> pbDone_Click() >> >> Where does that come from? >> >> >> >> Am 19.12.2013 12:15, schrieb Caveat: >>> And here's the code from the form containing the File Chooser... >>> >>> Having sent you all this, I realise it perhaps doesn't really answer >>> your question (sorry!) but perhaps there's enough in here about raising >>> and handling events that it becomes clear how to use the OK and Cancel >>> events from the File Chooser itself, should you still wish to do so... :-D >>> >>> ' Done Event is raised only if Done button pressed and a file has been >>> chosen and >>> ' returns the chosen file name and the (earlier) provided fileNumber >>> ' See below for details of fileNumber >>> Event Done(fileName As String, fileNumber As Integer) >>> ' Allows us to keep track of which file we're dealing with if there are >>> multiple places >>> ' where you can choose a file on the main Form >>> ' It's returned to the main Form on the Done event >>> Private fileNumber As Integer >>> >>> Public Sub pbCancel_Click() >>> >>> Me.Close >>> >>> End >>> >>> Public Sub pbDone_Click() >>> >>> If FileChooser2.SelectedPath = "" Then >>> Message.Error("No file chosen! Cancel to return without selecting >>> a file") >>> Return >>> Endif >>> Raise Done(FileChooser2.SelectedPath, fileNumber) >>> Me.Close >>> >>> End >>> >>> Public Sub setFileNumber(newFileNumber As Integer) >>> >>> fileNumber = newfileNumber >>> >>> End >>> >>> Public Sub setRoot(newRoot As String) >>> >>> FileChooser2.Root = newRoot >>> >>> End >>> >>> Public Sub setFilter(newFilter As String) >>> >>> FileChooser2.Filter = newFilter >>> >>> End >>> >>> Kind regards, >>> Caveat >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Thu Dec 19 13:49:31 2013 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 19 Dec 2013 09:49:31 -0300 Subject: [Gambas-user] Cairo..learning Gambas Message-ID: <52B2EB5B.2060709@...626...> Maybe...some good soul that knows the various Gambas components might teach un-expert programmers or new-comers with something like this: http://www.eiffel.com/developers/learning_maps/IntroducingEiffelLearningMaps/player.html http://www.eiffel.com/developers/learning_maps/IntroducingEiffelLearningMaps/data/swf/fm_HowDoYouView.html http://www.eiffel.com/developers/presentations/eiffel_overview/player.html?slide= Regards Pino From Gambas at ...1950... Thu Dec 19 14:04:39 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Dec 2013 14:04:39 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2E285.60003@...221...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> <52B2D967.20106@...221...> <52B2DD24.1010704@...1950...> <52B2E285.60003@...221...> Message-ID: <52B2EEE7.4030101@...1950...> Looks like you have to use (at least) Activate (OK) and Cancel (Errrm Cancel!)... pffft seems simpler the way I had it! ;-) Public Sub FileChooser2_Cancel() Print "Cancel fired" End Public Sub FileChooser2_Activate() Print "Activate fired!" End Kind regards, Caveat On 19/12/13 13:11, Rolf-Werner Eilert wrote: > Ok, I see. > > You activate this by Show Button = True in the form dialog. The help > says "Return or set if the standard ../../dialog buttons ('OK' and > 'Cancel') are visible or not." > > And this doesn't help me a lot... ;) > > Rolf > > > Am 19.12.2013 12:48, schrieb Caveat: >> I have a pbDone and a pbCancel button on my form. I'm guessing that if >> you are using the File Chooser's built-in OK/Cancel buttons (where have >> you found that and how are you enabling that ??) that you will have to >> handle them in a similar way... so making a new File Chooser As ... if >> from code, or just sticking it on the form if using the designer... >> >> Kind regards, >> Caveat >> >> On 19/12/13 12:32, Rolf-Werner Eilert wrote: >>> pbDone_Click() >>> >>> Where does that come from? >>> >>> >>> >>> Am 19.12.2013 12:15, schrieb Caveat: >>>> And here's the code from the form containing the File Chooser... >>>> >>>> Having sent you all this, I realise it perhaps doesn't really answer >>>> your question (sorry!) but perhaps there's enough in here about raising >>>> and handling events that it becomes clear how to use the OK and Cancel >>>> events from the File Chooser itself, should you still wish to do so... :-D >>>> >>>> ' Done Event is raised only if Done button pressed and a file has been >>>> chosen and >>>> ' returns the chosen file name and the (earlier) provided fileNumber >>>> ' See below for details of fileNumber >>>> Event Done(fileName As String, fileNumber As Integer) >>>> ' Allows us to keep track of which file we're dealing with if there are >>>> multiple places >>>> ' where you can choose a file on the main Form >>>> ' It's returned to the main Form on the Done event >>>> Private fileNumber As Integer >>>> >>>> Public Sub pbCancel_Click() >>>> >>>> Me.Close >>>> >>>> End >>>> >>>> Public Sub pbDone_Click() >>>> >>>> If FileChooser2.SelectedPath = "" Then >>>> Message.Error("No file chosen! Cancel to return without selecting >>>> a file") >>>> Return >>>> Endif >>>> Raise Done(FileChooser2.SelectedPath, fileNumber) >>>> Me.Close >>>> >>>> End >>>> >>>> Public Sub setFileNumber(newFileNumber As Integer) >>>> >>>> fileNumber = newfileNumber >>>> >>>> End >>>> >>>> Public Sub setRoot(newRoot As String) >>>> >>>> FileChooser2.Root = newRoot >>>> >>>> End >>>> >>>> Public Sub setFilter(newFilter As String) >>>> >>>> FileChooser2.Filter = newFilter >>>> >>>> End >>>> >>>> Kind regards, >>>> Caveat >>>> >>>> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From bbruen at ...2308... Thu Dec 19 15:24:36 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 20 Dec 2013 00:54:36 +1030 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2CC22.8090707@...221...> References: <52B2CC22.8090707@...221...> Message-ID: <1387463076.3241.1.camel@...2688...> On Thu, 2013-12-19 at 11:36 +0100, Rolf-Werner Eilert wrote: > Just saw that File Chooser can have its own OK and Cancel buttons, but > how would I handle these events? Never used it before, and there is no > hint in the help... > > Regards > Rolf > I really didn't it could be that hard? B -------------- next part -------------- A non-text attachment was scrubbed... Name: filechooser-0.0.1.tar.gz Type: application/x-compressed-tar Size: 4670 bytes Desc: not available URL: From eilert-sprachen at ...221... Thu Dec 19 16:32:47 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Dec 2013 16:32:47 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B2EEE7.4030101@...1950...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> <52B2D967.20106@...221...> <52B2DD24.1010704@...1950...> <52B2E285.60003@...221...> <52B2EEE7.4030101@...1950...> Message-ID: <52B3119F.5060305@...221...> You are right, I now did it the old way with separate buttons. But I'm still interested in seeing how this would work, so if someone could explain... Regards Rolf Am 19.12.2013 14:04, schrieb Caveat: > Looks like you have to use (at least) Activate (OK) and Cancel (Errrm > Cancel!)... pffft seems simpler the way I had it! ;-) > > Public Sub FileChooser2_Cancel() > > Print "Cancel fired" > > End > > Public Sub FileChooser2_Activate() > > Print "Activate fired!" > > End > > Kind regards, > Caveat > > On 19/12/13 13:11, Rolf-Werner Eilert wrote: >> Ok, I see. >> >> You activate this by Show Button = True in the form dialog. The help >> says "Return or set if the standard ../../dialog buttons ('OK' and >> 'Cancel') are visible or not." >> >> And this doesn't help me a lot... ;) >> >> Rolf >> >> >> Am 19.12.2013 12:48, schrieb Caveat: >>> I have a pbDone and a pbCancel button on my form. I'm guessing that if >>> you are using the File Chooser's built-in OK/Cancel buttons (where have >>> you found that and how are you enabling that ??) that you will have to >>> handle them in a similar way... so making a new File Chooser As ... if >>> from code, or just sticking it on the form if using the designer... >>> >>> Kind regards, >>> Caveat >>> >>> On 19/12/13 12:32, Rolf-Werner Eilert wrote: >>>> pbDone_Click() >>>> >>>> Where does that come from? >>>> >>>> >>>> >>>> Am 19.12.2013 12:15, schrieb Caveat: >>>>> And here's the code from the form containing the File Chooser... >>>>> >>>>> Having sent you all this, I realise it perhaps doesn't really answer >>>>> your question (sorry!) but perhaps there's enough in here about raising >>>>> and handling events that it becomes clear how to use the OK and Cancel >>>>> events from the File Chooser itself, should you still wish to do so... :-D >>>>> >>>>> ' Done Event is raised only if Done button pressed and a file has been >>>>> chosen and >>>>> ' returns the chosen file name and the (earlier) provided fileNumber >>>>> ' See below for details of fileNumber >>>>> Event Done(fileName As String, fileNumber As Integer) >>>>> ' Allows us to keep track of which file we're dealing with if there are >>>>> multiple places >>>>> ' where you can choose a file on the main Form >>>>> ' It's returned to the main Form on the Done event >>>>> Private fileNumber As Integer >>>>> >>>>> Public Sub pbCancel_Click() >>>>> >>>>> Me.Close >>>>> >>>>> End >>>>> >>>>> Public Sub pbDone_Click() >>>>> >>>>> If FileChooser2.SelectedPath = "" Then >>>>> Message.Error("No file chosen! Cancel to return without selecting >>>>> a file") >>>>> Return >>>>> Endif >>>>> Raise Done(FileChooser2.SelectedPath, fileNumber) >>>>> Me.Close >>>>> >>>>> End >>>>> >>>>> Public Sub setFileNumber(newFileNumber As Integer) >>>>> >>>>> fileNumber = newfileNumber >>>>> >>>>> End >>>>> >>>>> Public Sub setRoot(newRoot As String) >>>>> >>>>> FileChooser2.Root = newRoot >>>>> >>>>> End >>>>> >>>>> Public Sub setFilter(newFilter As String) >>>>> >>>>> FileChooser2.Filter = newFilter >>>>> >>>>> End >>>>> >>>>> Kind regards, >>>>> Caveat >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>>> organizations don't have a clear picture of how application performance >>>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> . >> > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Thu Dec 19 16:56:36 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Dec 2013 16:56:36 +0100 Subject: [Gambas-user] File Chooser OK event? In-Reply-To: <52B3119F.5060305@...221...> References: <52B2CC22.8090707@...221...> <52B2CF4D.8040102@...1950...> <52B2D544.7060605@...1950...> <52B2D967.20106@...221...> <52B2DD24.1010704@...1950...> <52B2E285.60003@...221...> <52B2EEE7.4030101@...1950...> <52B3119F.5060305@...221...> Message-ID: <52B31734.2050708@...1950...> I did explain it, see my previous message. Is it really not clear still? Kind regards, Caveat On 19/12/13 16:32, Rolf-Werner Eilert wrote: > You are right, I now did it the old way with separate buttons. > > But I'm still interested in seeing how this would work, so if someone > could explain... > > Regards > > Rolf > > > Am 19.12.2013 14:04, schrieb Caveat: >> Looks like you have to use (at least) Activate (OK) and Cancel (Errrm >> Cancel!)... pffft seems simpler the way I had it! ;-) >> >> Public Sub FileChooser2_Cancel() >> >> Print "Cancel fired" >> >> End >> >> Public Sub FileChooser2_Activate() >> >> Print "Activate fired!" >> >> End >> >> Kind regards, >> Caveat >> >> On 19/12/13 13:11, Rolf-Werner Eilert wrote: >>> Ok, I see. >>> >>> You activate this by Show Button = True in the form dialog. The help >>> says "Return or set if the standard ../../dialog buttons ('OK' and >>> 'Cancel') are visible or not." >>> >>> And this doesn't help me a lot... ;) >>> >>> Rolf >>> >>> >>> Am 19.12.2013 12:48, schrieb Caveat: >>>> I have a pbDone and a pbCancel button on my form. I'm guessing that if >>>> you are using the File Chooser's built-in OK/Cancel buttons (where have >>>> you found that and how are you enabling that ??) that you will have to >>>> handle them in a similar way... so making a new File Chooser As ... if >>>> from code, or just sticking it on the form if using the designer... >>>> >>>> Kind regards, >>>> Caveat >>>> >>>> On 19/12/13 12:32, Rolf-Werner Eilert wrote: >>>>> pbDone_Click() >>>>> >>>>> Where does that come from? >>>>> >>>>> >>>>> >>>>> Am 19.12.2013 12:15, schrieb Caveat: >>>>>> And here's the code from the form containing the File Chooser... >>>>>> >>>>>> Having sent you all this, I realise it perhaps doesn't really answer >>>>>> your question (sorry!) but perhaps there's enough in here about raising >>>>>> and handling events that it becomes clear how to use the OK and Cancel >>>>>> events from the File Chooser itself, should you still wish to do so... :-D >>>>>> >>>>>> ' Done Event is raised only if Done button pressed and a file has been >>>>>> chosen and >>>>>> ' returns the chosen file name and the (earlier) provided fileNumber >>>>>> ' See below for details of fileNumber >>>>>> Event Done(fileName As String, fileNumber As Integer) >>>>>> ' Allows us to keep track of which file we're dealing with if there are >>>>>> multiple places >>>>>> ' where you can choose a file on the main Form >>>>>> ' It's returned to the main Form on the Done event >>>>>> Private fileNumber As Integer >>>>>> >>>>>> Public Sub pbCancel_Click() >>>>>> >>>>>> Me.Close >>>>>> >>>>>> End >>>>>> >>>>>> Public Sub pbDone_Click() >>>>>> >>>>>> If FileChooser2.SelectedPath = "" Then >>>>>> Message.Error("No file chosen! Cancel to return without selecting >>>>>> a file") >>>>>> Return >>>>>> Endif >>>>>> Raise Done(FileChooser2.SelectedPath, fileNumber) >>>>>> Me.Close >>>>>> >>>>>> End >>>>>> >>>>>> Public Sub setFileNumber(newFileNumber As Integer) >>>>>> >>>>>> fileNumber = newfileNumber >>>>>> >>>>>> End >>>>>> >>>>>> Public Sub setRoot(newRoot As String) >>>>>> >>>>>> FileChooser2.Root = newRoot >>>>>> >>>>>> End >>>>>> >>>>>> Public Sub setFilter(newFilter As String) >>>>>> >>>>>> FileChooser2.Filter = newFilter >>>>>> >>>>>> End >>>>>> >>>>>> Kind regards, >>>>>> Caveat >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>>>> organizations don't have a clear picture of how application performance >>>>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>>> organizations don't have a clear picture of how application performance >>>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> . >>> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From ub2 at ...36... Fri Dec 20 18:39:40 2013 From: ub2 at ...36... (ub2 at ...36...) Date: Fri, 20 Dec 2013 18:39:40 +0100 Subject: [Gambas-user] How to copy a frame containing various controls Message-ID: <52B480DC.7080608@...36...> Dear Cracks, I want to show various CsvLines in a ScrollView. Each line will be splitted and filled in a bunch of controls which are all neatly placed and formatted in a "SourceFrame". My question: Is there an easy way to copy/paste that "SourceFrame" depending on the (flexible) amount of CsvLines ? Or in other 'words': FrameDat0: TextBoxTxt0, CheckBoxLock0, .., BtnSaveFrameDat0 and N=AmountCsvLines shall become FrameDat0: TextBoxTxt0, CheckBoxLock0, .., BtnSaveFrameDat0 FrameDat1: TextBoxTxt1, CheckBoxLock1, .., BtnSaveFrameDat1 FrameDat2: TextBoxTxt2, CheckBoxLock2, .., BtnSaveFrameDat2 .. FrameDatN: TextBoxTxtN, CheckBoxLockN, .., BtnSaveFrameDatN I can do that in the IDE by copy/paste, but how to do it by code? Using a gridview does not allow all the formatting I need. Any good ideas or 'magic strategies' ? (I got stuck. Code explodes and becomes unflexible) Thanks in advance Regards, ub2 From bbruen at ...2308... Sat Dec 21 02:22:16 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 21 Dec 2013 11:52:16 +1030 Subject: [Gambas-user] A "statusbar" control Message-ID: <1387588936.29214.1.camel@...2688...> Did someone recently speak about having developed a "statusbar" form control? tia Bruce From kevinfishburne at ...1887... Sat Dec 21 06:36:12 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 21 Dec 2013 00:36:12 -0500 Subject: [Gambas-user] basics of dynamic arrays of structures Message-ID: <52B528CC.8040203@...1887...> I've gotten some flak about how I declare arrays and want to change my ways. Previously I would do something like: Public SomeArray[300,300] as Integer I have a case now where I need an array whose number of elements will be incremented and that will be cleared occasionally. Of course I can't figure out how to do it. My code looks like this (I stripped it down): --- Public Struct PlanWallStructure Created As Boolean End Struct Public Struct PlanStructure Wall As Struct PlanWallStructure End Struct Public Plan[10] As Struct PlanStructure --- So I need, for example, Plan[0].Wall to be an array where I can do something like: --- Plan[0].Wall.Clear Index = Plan[0].Wall.Count Plan[0].Wall[Index] = True Index = Plan[0].Wall.Count Plan[0].Wall[Plan[0].Wall.Count] = False --- Is this possible? I've tried every syntax I can think of and looked at the documentation but get errors every time. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sat Dec 21 06:39:23 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 21 Dec 2013 00:39:23 -0500 Subject: [Gambas-user] basics of dynamic arrays of structures In-Reply-To: <52B528CC.8040203@...1887...> References: <52B528CC.8040203@...1887...> Message-ID: <52B5298B.6050009@...1887...> On 12/21/2013 12:36 AM, Kevin Fishburne wrote: > I've gotten some flak about how I declare arrays and want to change my > ways. Previously I would do something like: > > Public SomeArray[300,300] as Integer > > I have a case now where I need an array whose number of elements will be > incremented and that will be cleared occasionally. Of course I can't > figure out how to do it. My code looks like this (I stripped it down): > > --- > > Public Struct PlanWallStructure > Created As Boolean > End Struct > > Public Struct PlanStructure > Wall As Struct PlanWallStructure > End Struct > > Public Plan[10] As Struct PlanStructure > > --- > > So I need, for example, Plan[0].Wall to be an array where I can do > something like: > > --- > > Plan[0].Wall.Clear > Index = Plan[0].Wall.Count > Plan[0].Wall[Index] = True > Index = Plan[0].Wall.Count > Plan[0].Wall[Plan[0].Wall.Count] = False > > --- > > Is this possible? I've tried every syntax I can think of and looked at > the documentation but get errors every time. > Whoops. Meant for that last bit of code to be: Plan[0].Wall.Clear Index = Plan[0].Wall.Count Plan[0].Wall[Index] = True Index = Plan[0].Wall.Count Plan[0].Wall[Index] = False Same thing basically for the purpose of the example. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Sat Dec 21 08:40:45 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 21 Dec 2013 18:10:45 +1030 Subject: [Gambas-user] disabling unused components Message-ID: <1387611645.9293.3.camel@...2688...> We do not have the required library for gb.mime, not do we use gb.mime What I can't remember is where and how in the reconf;configure;make circus I need to stick a --disable-? option. Any help would be apprec. Bruce From gambas at ...2524... Sat Dec 21 09:12:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 08:12:06 +0000 Subject: [Gambas-user] Issue 482 in gambas: Dialog.Open(True) doesn't work Message-ID: <0-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Critical OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 482 by adamn... at ...626...: Dialog.Open(True) doesn't work http://code.google.com/p/gambas/issues/detail?id=482 1) Describe the problem. The Dialog.Openfile(True) method doesn't seem to work anymore. The OK button doesn't do anything? 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6011 Operating system: Linux Distribution: pclinuxos Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE (aka OpenBox) 3) Provide a little project that reproduces the bug or the crash. Use the comp/src/gb.form.dialog project 4) If your project needs a database, try to provide it, or part of it. n/a 5) Explain clearly how to reproduce the bug or the crash. Change Main.Main to use Dialog.OpenFile(True) Run When the OK button is clicked, all of a sudden, nothing happens? 6) Other stuff [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.4.59-pclos1 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1518M [Libraries] Cairo=libcairo.so.2.11200.2 Curl=libcurl.so.3.0.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.22 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.37 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.7.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.3 Other, other stuff from a local project [System] Operating System = GNU/Linux Architecture = i686 Kernel = Linux 3.4.59-pclos1 Version = #1 SMP Fri Aug 23 13:59:03 CDT 2013 Memory = 1.517GB (0.086 freeGB) Desktop = LXDE [Gambas] Version = 3.5.90 Path = /usr Language = en_AU.UTF-8 Charset = UTF-8 User Home = /home/bb [Application] Name = tmmanager Title = TM10 Test Manager Version = 0.0.2 Path = /home/bb/gambas3_proj/atestmgr/tmmanager Dir = /home/bb GUI = QT4 [Libraries/Components] Gambas Libraries = v3.5.0 (from: /usr/lib/gambas3/gb.form.component) aboutme3 = v0.0.35 (/usr/lib/gambas3/aboutme3.gambas) appoptions = v0.0.23 (/usr/lib/gambas3/appoptions.gambas) helpview.gambas = v? (/usr/lib/gambas3/sysinfos.gambas) internalsrt = v0.0.10 (/usr/lib/gambas3/internalsrt.gambas) logctl = v0.0.1 (/usr/lib/gambas3/logctl.gambas) phControls3 = v0.0.202 (/usr/lib/gambas3/phControls3.gambas) phDB11 = v0.0.75 (/usr/lib/gambas3/phDB11.gambas) recentfiles = v0.1.1 (/usr/lib/gambas3/recentfiles.gambas) sysinfos = v0.0.14 (/usr/lib/gambas3/sysinfos.gambas) tmbo2.gambas = v? (/usr/lib/gambas3/sysinfos.gambas) -- 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 Dec 21 09:14:36 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 08:14:36 +0000 Subject: [Gambas-user] Issue 482 in gambas: Dialog.Open(True) doesn't work In-Reply-To: <0-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Comment #1 on issue 482 by adamn... at ...626...: Dialog.Open(True) doesn't work http://code.google.com/p/gambas/issues/detail?id=482 I wish I could add more info, but I just cant find anything. The Cancel button works fine. ??? -- 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 Dec 21 10:26:24 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 21 Dec 2013 10:26:24 +0100 Subject: [Gambas-user] disabling unused components In-Reply-To: <1387611645.9293.3.camel@...2688...> References: <1387611645.9293.3.camel@...2688...> Message-ID: <52B55EC0.7080008@...1...> Le 21/12/2013 08:40, Bruce a ?crit : > We do not have the required library for gb.mime, not do we use gb.mime > What I can't remember is where and how in the reconf;configure;make > circus I need to stick a --disable-? option. > > Any help would be apprec. > Bruce > > './configure --help' will give you the list of possible "disable" options. -- Beno?t Minisini From gambas at ...2524... Sat Dec 21 10:39:16 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 09:39:16 +0000 Subject: [Gambas-user] Issue 482 in gambas: Dialog.Open(True) doesn't work In-Reply-To: <1-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> <0-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Priority-Critical Version-3.5.0 Priority-Medium Comment #2 on issue 482 by benoit.m... at ...626...: Dialog.Open(True) doesn't work http://code.google.com/p/gambas/issues/detail?id=482 (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... Sat Dec 21 10:40:16 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 09:40:16 +0000 Subject: [Gambas-user] Issue 482 in gambas: Dialog.Open(True) doesn't work In-Reply-To: <2-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> <0-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2354540584844117927-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 482 by benoit.m... at ...626...: Dialog.Open(True) doesn't work http://code.google.com/p/gambas/issues/detail?id=482 It should be fixed in revision #6012, and the fix will be backported to Gambas 3.5.2. -- 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 Dec 21 10:41:36 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 09:41:36 +0000 Subject: [Gambas-user] Issue 481 in gambas: Different picture for closed and opened TreeView item In-Reply-To: <0-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Comment #1 on issue 481 by benoit.m... at ...626...: Different picture for closed and opened TreeView item http://code.google.com/p/gambas/issues/detail?id=481 Can't you handle that by a few lines of code in the 'Expand' and 'Collapsed' event handlers? -- 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 Dec 21 10:46:07 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 09:46:07 +0000 Subject: [Gambas-user] Issue 476 in gambas: Sqlite3 returns date in different format from similar syntax In-Reply-To: <4-6813199134517018827-8052949691169313803-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-8052949691169313803-gambas=googlecode.com@...2524...> <0-6813199134517018827-8052949691169313803-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-8052949691169313803-gambas=googlecode.com@...2524...> Comment #5 on issue 476 by benoit.m... at ...626...: Sqlite3 returns date in different format from similar syntax http://code.google.com/p/gambas/issues/detail?id=476 Could you try the fix? -- 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... Sat Dec 21 10:46:13 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 21 Dec 2013 10:46:13 +0100 Subject: [Gambas-user] A "statusbar" control In-Reply-To: <1387588936.29214.1.camel@...2688...> References: <1387588936.29214.1.camel@...2688...> Message-ID: <20131221094613.GA511@...2774...> On Sat, 21 Dec 2013, Bruce wrote: > Did someone recently speak about having developed a "statusbar" form > control? > If you mean[0], then yes, roughly. There was a StatusBar class from Raymond de Bruijne (Gambas2) which I changed to be more Gambas3. (However, I haven't worked on it since I posed that question because the answer kind of disappointed me. But looking at it again, it seems pretty plausible.) Anyway, do you want to see it? There are at least three versions of this class in use in Hans' projects and I couldn't find the "good" one just now... I'll finish the "StatusbarForm" idea and then publish the thing in a separate article... Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=31629361 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Sat Dec 21 10:48:17 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 09:48:17 +0000 Subject: [Gambas-user] Issue 470 in gambas: Editing error TableView.Editor KeyPress.309 In-Reply-To: <0-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 470 by benoit.m... at ...626...: Editing error TableView.Editor KeyPress.309 http://code.google.com/p/gambas/issues/detail?id=470 Can you tell which version of Gambas you use? Can you post your project, and a way to reproduce the error? -- 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 Dec 21 10:52:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 09:52:47 +0000 Subject: [Gambas-user] Issue 454 in gambas: Gambas doesn't compile packages for Debian on Ubuntu 12.04 x64 In-Reply-To: <1-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> <0-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 454 by benoit.m... at ...626...: Gambas doesn't compile packages for Debian on Ubuntu 12.04 x64 http://code.google.com/p/gambas/issues/detail?id=454 This has been fixed in Gambas 3.5.1. -- 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... Sat Dec 21 10:57:28 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 21 Dec 2013 10:57:28 +0100 Subject: [Gambas-user] basics of dynamic arrays of structures In-Reply-To: <52B5298B.6050009@...1887...> References: <52B528CC.8040203@...1887...> <52B5298B.6050009@...1887...> Message-ID: <20131221095728.GB511@...2774...> On Sat, 21 Dec 2013, Kevin Fishburne wrote: > On 12/21/2013 12:36 AM, Kevin Fishburne wrote: > > I've gotten some flak about how I declare arrays and want to change my > > ways. Previously I would do something like: > > > > Public SomeArray[300,300] as Integer > > > > I have a case now where I need an array whose number of elements will be > > incremented and that will be cleared occasionally. Of course I can't > > figure out how to do it. My code looks like this (I stripped it down): > > > > --- > > > > Public Struct PlanWallStructure > > Created As Boolean > > End Struct > > > > Public Struct PlanStructure > > Wall As Struct PlanWallStructure > > End Struct > > > > Public Plan[10] As Struct PlanStructure > > > > --- > > > > So I need, for example, Plan[0].Wall to be an array where I can do > > something like: > > > > --- > > > > Plan[0].Wall.Clear > > Index = Plan[0].Wall.Count > > Plan[0].Wall[Index] = True > > Index = Plan[0].Wall.Count > > Plan[0].Wall[Plan[0].Wall.Count] = False > > > > --- > > > > Is this possible? I've tried every syntax I can think of and looked at > > the documentation but get errors every time. > > > > Whoops. Meant for that last bit of code to be: > > Plan[0].Wall.Clear > Index = Plan[0].Wall.Count > Plan[0].Wall[Index] = True > Index = Plan[0].Wall.Count > Plan[0].Wall[Index] = False > > > Same thing basically for the purpose of the example. > I don't think there is an array in Gambas which lets you use its Count as index without raising an "out of bounds" error :-) (and you certainly mean Plan[0].Wall[Index]*.Created* = False or else, don't use a Struct.) Using dynamic arrays, you would do: --- Public Plan As PlanStructure[] Public Sub _new() Dim iIndex As Integer Plan = New PlanStructure[](10) ' Initial size For iIndex = 0 To Plan.Max Plan[iIndex] = New PlanWallStructure Next End --- I wrote this out of my head. If it doesn't get you started, just tell me. Regards, Tobi From gambas at ...2524... Sat Dec 21 11:10:00 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 10:10:00 +0000 Subject: [Gambas-user] Issue 481 in gambas: Different picture for closed and opened TreeView item In-Reply-To: <1-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> <0-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Comment #2 on issue 481 by arif_rah... at ...2488...: Different picture for closed and opened TreeView item http://code.google.com/p/gambas/issues/detail?id=481 You're right. Sorry, my bad. Code: Public Sub TreeView1_Expand() TreeView1.Item.Picture = Picture["icon:/16/next"] End Public Sub TreeView1_Collapse() TreeView1.Item.Picture = Picture["icon:/16/last"] End -- 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... Sat Dec 21 11:12:40 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 21 Dec 2013 11:12:40 +0100 Subject: [Gambas-user] How to copy a frame containing various controls In-Reply-To: <52B480DC.7080608@...36...> References: <52B480DC.7080608@...36...> Message-ID: <20131221101240.GC511@...2774...> On Fri, 20 Dec 2013, ub2 at ...36... wrote: > Dear Cracks, > > > I want to show various CsvLines in a ScrollView. > Each line will be splitted and filled in a bunch of controls which are > all neatly placed and formatted in a "SourceFrame". > > My question: > Is there an easy way to copy/paste that "SourceFrame" depending on the > (flexible) amount of CsvLines ? > > > Or in other 'words': > FrameDat0: TextBoxTxt0, CheckBoxLock0, .., BtnSaveFrameDat0 > and > N=AmountCsvLines > > shall become > FrameDat0: TextBoxTxt0, CheckBoxLock0, .., BtnSaveFrameDat0 > FrameDat1: TextBoxTxt1, CheckBoxLock1, .., BtnSaveFrameDat1 > FrameDat2: TextBoxTxt2, CheckBoxLock2, .., BtnSaveFrameDat2 > .. > FrameDatN: TextBoxTxtN, CheckBoxLockN, .., BtnSaveFrameDatN > > > I can do that in the IDE by copy/paste, but how to do it by code? > Using a gridview does not allow all the formatting I need. > > > Any good ideas or 'magic strategies' ? > (I got stuck. Code explodes and becomes unflexible) > Well, you can copy your SourceFrame and stuff but I won't elaborate on this way until you explicitly rejected the sane OOP way :-) Which goes like this: - create a form "CsvLine", - arrange your TextBoxes, CheckBoxes, ..., Buttons on it, - write a _new() method which takes a CSV line and parses it into the controls, - create an array of these Forms into a container on your main form (one for each CSV line). This is a quite advanced topic; hope you can deal with the strategy above... IIRC, you're german. You can have a look at an article where we created custom controls using Forms[0], or my project[1] where this is done more excessively. Regards, Tobi [0] http://www.gambas-buch.de/dw/doku.php?id=k18:k18.12:start [1] http://www.gambas-buch.de/dw/doku.php?id=k27:k27.4:start From gambas at ...2524... Sat Dec 21 11:18:45 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 10:18:45 +0000 Subject: [Gambas-user] Issue 481 in gambas: Different picture for closed and opened TreeView item In-Reply-To: <2-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> <0-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-11840989619843028099-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #3 on issue 481 by benoit.m... at ...626...: Different picture for closed and opened TreeView item http://code.google.com/p/gambas/issues/detail?id=481 No problem! Closing the issue. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Sat Dec 21 13:37:37 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 21 Dec 2013 13:37:37 +0100 Subject: [Gambas-user] IsDate(), IsFloat(), IsInteger(), ... documentation inconsistencies Message-ID: <20131221123737.GM511@...2774...> Hi, I believe there is an error in the documentation. We see (at least) three different signatures for the Is*() functions: 1. Boolean = IsDate ( String ) 2. Result = IsFloat ( String ) AS Boolean 3. Result = IsInteger ( String ) AS Integer Are these correct or should every Is*() function return a Boolean, which is what I believe. Just tell me what to do and I'll fix it. Regards, Tobi From gambas at ...1... Sat Dec 21 13:48:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 21 Dec 2013 13:48:42 +0100 Subject: [Gambas-user] IsDate(), IsFloat(), IsInteger(), ... documentation inconsistencies In-Reply-To: <20131221123737.GM511@...2774...> References: <20131221123737.GM511@...2774...> Message-ID: <52B58E2A.1070900@...1...> Le 21/12/2013 13:37, Tobias Boege a ?crit : > Hi, > > I believe there is an error in the documentation. We see (at least) three > different signatures for the Is*() functions: > > 1. Boolean = IsDate ( String ) > 2. Result = IsFloat ( String ) AS Boolean > 3. Result = IsInteger ( String ) AS Integer > > Are these correct or should every Is*() function return a Boolean, which is > what I believe. Just tell me what to do and I'll fix it. > > Regards, > Tobi > The good one is (2) -- Beno?t Minisini From ub2 at ...36... Sat Dec 21 14:11:44 2013 From: ub2 at ...36... (ub2 at ...36...) Date: Sat, 21 Dec 2013 14:11:44 +0100 Subject: [Gambas-user] How to copy a frame containing various controls - Thanks In-Reply-To: <20131221101240.GC511@...2774...> References: <52B480DC.7080608@...36...> <20131221101240.GC511@...2774...> Message-ID: <52B59390.5080403@...36...> Dear Tobi Thanks for showing me the "sane OOP way" in such a detailed manner. ;-) Well, you wrote, it's "quite advanced topic". And you're right, I do not have a clue right now. .. but there are still long winter nights and I know where to dig now! (If not succeeding, I might escape by copy/paste manually and making invisible all not needed Frames.) Thanks for your help and a nice holidays to all. Regards, Hubert Am 21.12.2013 11:12,schrieb Tobias Boege: > On Fri, 20 Dec 2013, ub2 at ...36... wrote: >> Dear Cracks, >> >> >> I want to show various CsvLines in a ScrollView. >> Each line will be splitted and filled in a bunch of controls which are >> all neatly placed and formatted in a "SourceFrame". >> >> My question: >> Is there an easy way to copy/paste that "SourceFrame" depending on the >> (flexible) amount of CsvLines ? >> >> >> Or in other 'words': >> FrameDat0: TextBoxTxt0, CheckBoxLock0, .., BtnSaveFrameDat0 >> and >> N=AmountCsvLines >> >> shall become >> FrameDat0: TextBoxTxt0, CheckBoxLock0, .., BtnSaveFrameDat0 >> FrameDat1: TextBoxTxt1, CheckBoxLock1, .., BtnSaveFrameDat1 >> FrameDat2: TextBoxTxt2, CheckBoxLock2, .., BtnSaveFrameDat2 >> .. >> FrameDatN: TextBoxTxtN, CheckBoxLockN, .., BtnSaveFrameDatN >> >> >> I can do that in the IDE by copy/paste, but how to do it by code? >> Using a gridview does not allow all the formatting I need. >> >> >> Any good ideas or 'magic strategies' ? >> (I got stuck. Code explodes and becomes unflexible) >> > > Well, you can copy your SourceFrame and stuff but I won't elaborate on this > way until you explicitly rejected the sane OOP way :-) > > Which goes like this: > > - create a form "CsvLine", > - arrange your TextBoxes, CheckBoxes, ..., Buttons on it, > - write a _new() method which takes a CSV line and parses it into the > controls, > - create an array of these Forms into a container on your main form (one > for each CSV line). > > This is a quite advanced topic; hope you can deal with the strategy above... > > IIRC, you're german. You can have a look at an article where we created > custom controls using Forms[0], or my project[1] where this is done more > excessively. > > Regards, > Tobi > > [0] http://www.gambas-buch.de/dw/doku.php?id=k18:k18.12:start > [1] http://www.gambas-buch.de/dw/doku.php?id=k27:k27.4:start > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sat Dec 21 16:53:32 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 21 Dec 2013 16:53:32 +0100 Subject: [Gambas-user] Native Complex type? Message-ID: <20131221155332.GZ511@...2774...> Hi Benoit, is it planned to support complex numbers in Val() or to have an IsComplex() function? I see the difficulties that come with this, like having to incorporate complex numbers into the interpreter directly and since Complex needs to be an object, intermixing objcts and native datatypes in the aforementioned functions, etc.. but I wanted to ask anyway. (Then we could also make Sqr() support complex numbers, etc.) It would unify the way we work with complex numbers even more which would be appreciated on our side. Regards, Tobi From abbat.81 at ...787... Sat Dec 21 21:58:30 2013 From: abbat.81 at ...787... (abbat81) Date: Sat, 21 Dec 2013 12:58:30 -0800 (PST) Subject: [Gambas-user] Time(0, 0, 555) => invalid date Message-ID: <1387659509582-44824.post@...3046...> Hi! I'm dissapointed. After my last Gambas update my programm do not work. I had a variable named "match". My old program worked OK, but for now the var named "match" - is not allowed. It is not problem to rename the variables. The problem is in Time() function. My old programms get error and I don't know how to fix it. In different places Time() function works and doesn't works. I get "invalid date" but the same code in another place works OK. How to fix it? -- View this message in context: http://gambas.8142.n7.nabble.com/Time-0-0-555-invalid-date-tp44824.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sat Dec 21 23:24:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Dec 2013 22:24:39 +0000 Subject: [Gambas-user] Issue 483 in gambas: "Invalid date" in Time(0, 0, 600) Message-ID: <0-6813199134517018827-2723987443557815305-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 483 by abbat... at ...626...: "Invalid date" in Time(0, 0, 600) http://code.google.com/p/gambas/issues/detail?id=483 Public Sub Form_Open() Print Time(0, 0, 600) End "Invalid date" -- 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... Sun Dec 22 05:31:10 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 22 Dec 2013 15:01:10 +1030 Subject: [Gambas-user] A "statusbar" control In-Reply-To: <20131221094613.GA511@...2774...> References: <1387588936.29214.1.camel@...2688...> <20131221094613.GA511@...2774...> Message-ID: <1387686670.9293.31.camel@...2688...> On Sat, 2013-12-21 at 10:46 +0100, Tobias Boege wrote: > On Sat, 21 Dec 2013, Bruce wrote: > > Did someone recently speak about having developed a "statusbar" form > > control? > > > > If you mean[0], then yes, roughly. There was a StatusBar class from > Raymond de Bruijne (Gambas2) which I changed to be more Gambas3. > > (However, I haven't worked on it since I posed that question because > the answer kind of disappointed me. But looking at it again, it seems > pretty plausible.) Anyway, do you want to see it? There are at least > three versions of this class in use in Hans' projects and I couldn't > find the "good" one just now... I'll finish the "StatusbarForm" idea > and then publish the thing in a separate article... > > Regards, > Tobi > > [0] http://sourceforge.net/mailarchive/message.php?msg_id=31629361 > Tobi, Yes, that was the mention. Having re-read that thread (and I have no idea why the search I did failed for it?) and you comments above, it seems to be at the same state my old gb2 one was, wherever it is. Or probably a bit better, because if I recall correctly, I could not ever really work out what I was trying to achieve. Since I never got far, I sort of forgot it and got on with life. I remember thinking at the time that it was such a basic idea how come there wasn't a native one. Since then I have discovered that life on the planet has actually continued without it. But, in fact "Some people seem to like this sort of thing." is exactly what happened this week. "They" want a status bar. It's no big deal really. I was just hoping that someone had one that might get "them" off my back. So, whenever. I had another go yesterday at creating a custom status bar control, but yet again, came up against the same problem of deciding what it is I actually want. I know some of the things I want: - an IDE configurable number of sub-panels, - automatic layout, including "springiness" for at least one of the subpanels, - user interaction with the statusbar to stretch a sub-panel relative to the others, - (biggy) event response, so when something happens in the application the app can raise an event handled by the statusbar to do/show something. Every time I get to that last one, is where I start trying to work out what that really means. ( I am going to get a bit historical now. ) Some time in the last century I did write a (cough) VB (cough) component (cough, lets call it an "addin" at best) that did do whatever it is I am talking about. While I write this I am starting to remember that it was actually a nightmare that involved all sorts of callbacks... and things... Enough! As I said, I was hoping for an easy way out. But 2013 seems to have staggered on towards the "final act" which means that probably very little "work stuff" will be achieved here at paddys-hill over the next couple of weeks. So to you and yours and all who may be listening, have a great and safe festive season, a memorable new year and a fantastic 2014. best regards Bruce p.s. It was 43 degrees here yesterday. That's Celsius, not Fahrenheit. Today is a bit better, it's 32 at 3pm. As such, I may have to go out now and find some small quantity of cold liquid refreshment, lest I dehydrate! :-) From gambas at ...2524... Sun Dec 22 07:46:37 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 22 Dec 2013 06:46:37 +0000 Subject: [Gambas-user] Issue 470 in gambas: Editing error TableView.Editor KeyPress.309 In-Reply-To: <1-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> <0-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2353971143319909509-gambas=googlecode.com@...2524...> Comment #2 on issue 470 by jah... at ...626...: Editing error TableView.Editor KeyPress.309 http://code.google.com/p/gambas/issues/detail?id=470 version of Gambas 3.5.1 This image Attachments: Screenshot from 2013-12-22 09:31:25.png 308 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 nemh at ...2007... Sun Dec 22 10:39:16 2013 From: nemh at ...2007... (=?ISO-8859-2?Q?Kende_Kriszti=E1n?=) Date: Sun, 22 Dec 2013 10:39:16 +0100 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository Message-ID: <52B6B344.7020003@...2007...> Good news, Gambas3 packages are up-to-date in Debian official repository, but these packages break my and IDE created apps. I follow the specifications, but if I install my app on Debian Testing, this program not starting. Exit with error message: gbr3: unable to load component: gb.gui My app Gambas dependencies: GUI common: gambas3-gb-crypt (>= 3.5.1), gambas3-gb-image (>= 3.5.1), gambas3-runtime (>= 3.5.1) GUI GTK+: gambas3-gb-gtk (>= 3.5.1) GUI Qt4: gambas3-gb-qt4 (>= 3.5.1) Non-existent gambas3-gb-gui package is exist, and if I install, I get the following error message: ** Oops! Internal error! ** ** Cannot find interface of library 'gb.geom' ERROR: #27: Cannot load component 'gb.geom': cannot find component ** Program aborting. Sorry! :-( ** Please send a bug report at gambas at ...1... gb.geom component doesn't exist in any of the packages. Are you serious? Gambas3 is completely useless. Kendek From taboege at ...626... Sun Dec 22 14:56:36 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 22 Dec 2013 14:56:36 +0100 Subject: [Gambas-user] A "statusbar" control In-Reply-To: <1387686670.9293.31.camel@...2688...> References: <1387588936.29214.1.camel@...2688...> <20131221094613.GA511@...2774...> <1387686670.9293.31.camel@...2688...> Message-ID: <20131222135636.GA513@...2774...> On Sun, 22 Dec 2013, Bruce wrote: > On Sat, 2013-12-21 at 10:46 +0100, Tobias Boege wrote: > > On Sat, 21 Dec 2013, Bruce wrote: > > > Did someone recently speak about having developed a "statusbar" form > > > control? > > > > > > > If you mean[0], then yes, roughly. There was a StatusBar class from > > Raymond de Bruijne (Gambas2) which I changed to be more Gambas3. > > > > (However, I haven't worked on it since I posed that question because > > the answer kind of disappointed me. But looking at it again, it seems > > pretty plausible.) Anyway, do you want to see it? There are at least > > three versions of this class in use in Hans' projects and I couldn't > > find the "good" one just now... I'll finish the "StatusbarForm" idea > > and then publish the thing in a separate article... > > > > Regards, > > Tobi > > > > [0] http://sourceforge.net/mailarchive/message.php?msg_id=31629361 > > > > Tobi, > > Yes, that was the mention. > > Having re-read that thread (and I have no idea why the search I did > failed for it?) and you comments above, it seems to be at the same state > my old gb2 one was, wherever it is. Or probably a bit better, because if > I recall correctly, I could not ever really work out what I was trying > to achieve. > > Since I never got far, I sort of forgot it and got on with life. I > remember thinking at the time that it was such a basic idea how come > there wasn't a native one. Since then I have discovered that life on > the planet has actually continued without it. > > But, in fact "Some people seem to like this sort of thing." is exactly > what happened this week. "They" want a status bar. > > It's no big deal really. I was just hoping that someone had one that > might get "them" off my back. So, whenever. > > I had another go yesterday at creating a custom status bar control, but > yet again, came up against the same problem of deciding what it is I > actually want. I know some of the things I want: > - an IDE configurable number of sub-panels, > - automatic layout, including "springiness" for at least one of the > subpanels, > - user interaction with the statusbar to stretch a sub-panel relative to > the others, > - (biggy) event response, so when something happens in the application > the app can raise an event handled by the statusbar to do/show > something. > Wow, that's much. All we started from was a container for some Labels. I have added the feature to automatically resize the labels (every label gets a float width relative to the container's width, zero meaning "fit to the rest") when the container resizes and to put the container at the Form's bottom automatically. That's pretty much what we needed... The main program programmatically adds Labels and updates them through an interface of the Statusbar. I guess your last point can be done like I handle the two points above: create an observer (typically with After = True) for the Form your Statusbar lives in and then catch Resize events (in your case, you may add new events to the Form just to serve your Statusbar). I'm now struggling at incorporating the Statusbar into the IDE as the Statusbar class does not inherit any other class but internally manages a Panel. Labels are added to the statusbar via its Add() method and I don't think the IDE understands that if I declare the class _IsContainer = True. OTOH, if I inherit Panel, there would be things like StatusBar.Children being pulled into the interface which I need to keep away to make the class behave consistent. Do you have any ideas? > > p.s. It was 43 degrees here yesterday. That's Celsius, not Fahrenheit. > Today is a bit better, it's 32 at 3pm. As such, I may have to go out > now and find some small quantity of cold liquid refreshment, lest I > dehydrate! :-) > Funny, we have around 40 degrees Fahrenheit here :-) Regards, Tobi From mmcg29440 at ...3163... Sun Dec 22 18:35:51 2013 From: mmcg29440 at ...3163... (Marty) Date: Sun, 22 Dec 2013 12:35:51 -0500 Subject: [Gambas-user] How do I limit directory access using the file open dialog? Message-ID: <52B722F7.207@...3163...> Hello, I'm using the open file dialog to allow the user to select one file. I want to limit his access to only one directory to limit the damage he can do. I've set the dialog.path = "/home/xxx/xx". The specified directory is highlighted but the entire directory tree from root down is also accessible. Files in each directory above and below the intended directory can be opened. The filechooser allows for such a limit. Do I have to recode using the filechooser or have I missed something? Thanks From gambas at ...1... Sun Dec 22 19:09:14 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Dec 2013 19:09:14 +0100 Subject: [Gambas-user] Native Complex type? In-Reply-To: <20131221155332.GZ511@...2774...> References: <20131221155332.GZ511@...2774...> Message-ID: <52B72ACA.5050401@...1...> Le 21/12/2013 16:53, Tobias Boege a ?crit : > Hi Benoit, > > is it planned to support complex numbers in Val() or to have an IsComplex() > function? No at the moment. It's a problem for Val(), because some people may assume that Val() only returns a Date, a Boolean, a Float or an Integer. > > I see the difficulties that come with this, like having to incorporate > complex numbers into the interpreter directly and since Complex needs to be > an object, intermixing objcts and native datatypes in the aforementioned > functions, etc.. but I wanted to ask anyway. (Then we could also make Sqr() > support complex numbers, etc.) > > It would unify the way we work with complex numbers even more which would be > appreciated on our side. > > Regards, > Tobi > -- Beno?t Minisini From gambas at ...1... Sun Dec 22 19:09:53 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Dec 2013 19:09:53 +0100 Subject: [Gambas-user] Time(0, 0, 555) => invalid date In-Reply-To: <1387659509582-44824.post@...3046...> References: <1387659509582-44824.post@...3046...> Message-ID: <52B72AF1.8050000@...1...> Le 21/12/2013 21:58, abbat81 a ?crit : > Hi! > I'm dissapointed. > After my last Gambas update my programm do not work. > > I had a variable named "match". My old program worked OK, but for now the > var named "match" - is not allowed. > > It is not problem to rename the variables. > The problem is in Time() function. > > My old programms get error and I don't know how to fix it. > > In different places Time() function works and doesn't works. > > > > I get "invalid date" but the same code in another place works OK. > > How to fix it? > Don't use a number of seconds greater than 59. -- Beno?t Minisini From gambas at ...1... Sun Dec 22 19:12:40 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Dec 2013 19:12:40 +0100 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository In-Reply-To: <52B6B344.7020003@...2007...> References: <52B6B344.7020003@...2007...> Message-ID: <52B72B98.6040802@...1...> Le 22/12/2013 10:39, Kende Kriszti?n a ?crit : > Good news, Gambas3 packages are up-to-date in Debian official > repository, but these packages break my and IDE created apps. I follow > the specifications, but if I install my app on Debian Testing, this > program not starting. Exit with error message: > > gbr3: unable to load component: gb.gui > > My app Gambas dependencies: > > GUI common: > gambas3-gb-crypt (>= 3.5.1), gambas3-gb-image (>= 3.5.1), > gambas3-runtime (>= 3.5.1) > > GUI GTK+: > gambas3-gb-gtk (>= 3.5.1) > > GUI Qt4: > gambas3-gb-qt4 (>= 3.5.1) > > Non-existent gambas3-gb-gui package is exist, and if I install, I get > the following error message: > > ** Oops! Internal error! ** > ** Cannot find interface of library 'gb.geom' > ERROR: #27: Cannot load component 'gb.geom': cannot find component > ** Program aborting. Sorry! :-( > ** Please send a bug report at gambas at ...1... > > gb.geom component doesn't exist in any of the packages. > > Are you serious? Gambas3 is completely useless. > > Kendek > The specification says that the 'gb.geom' and 'gb.gui' components must be included in the 'gambas3-runtime' package. Is it the case? -- Beno?t Minisini From nemh at ...2007... Sun Dec 22 19:21:25 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sun, 22 Dec 2013 19:21:25 +0100 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository In-Reply-To: <52B72B98.6040802@...1...> References: <52B6B344.7020003@...2007...> <52B72B98.6040802@...1...> Message-ID: <52B72DA5.301@...2007...> 2013-12-22 19:12 keltez?ssel, Beno?t Minisini ?rta: > Le 22/12/2013 10:39, Kende Kriszti?n a ?crit : >> Good news, Gambas3 packages are up-to-date in Debian official >> repository, but these packages break my and IDE created apps. I follow >> the specifications, but if I install my app on Debian Testing, this >> program not starting. Exit with error message: >> >> gbr3: unable to load component: gb.gui >> >> My app Gambas dependencies: >> >> GUI common: >> gambas3-gb-crypt (>= 3.5.1), gambas3-gb-image (>= 3.5.1), >> gambas3-runtime (>= 3.5.1) >> >> GUI GTK+: >> gambas3-gb-gtk (>= 3.5.1) >> >> GUI Qt4: >> gambas3-gb-qt4 (>= 3.5.1) >> >> Non-existent gambas3-gb-gui package is exist, and if I install, I get >> the following error message: >> >> ** Oops! Internal error! ** >> ** Cannot find interface of library 'gb.geom' >> ERROR: #27: Cannot load component 'gb.geom': cannot find component >> ** Program aborting. Sorry! :-( >> ** Please send a bug report at gambas at ...1... >> >> gb.geom component doesn't exist in any of the packages. >> >> Are you serious? Gambas3 is completely useless. >> >> Kendek >> > The specification says that the 'gb.geom' and 'gb.gui' components must > be included in the 'gambas3-runtime' package. Is it the case? > In short, yes. The 'gb.gui' component found in the 'gambas3-gb-gui' package. And 'gb.geom' component is completely missing. This seems to be a fatal error. From nemh at ...2007... Sun Dec 22 19:44:08 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Sun, 22 Dec 2013 19:44:08 +0100 Subject: [Gambas-user] How do I limit directory access using the file open dialog? In-Reply-To: <52B722F7.207@...3163...> References: <52B722F7.207@...3163...> Message-ID: <52B732F8.2020306@...2007...> 2013-12-22 18:35 keltez?ssel, Marty ?rta: > Hello, > > I'm using the open file dialog to allow the user to select one file. I > want to limit his access to only one directory to limit the damage he > can do. I've set the dialog.path = "/home/xxx/xx". The specified > directory is highlighted but the entire directory tree from root down is > also accessible. Files in each directory above and below the intended > directory can be opened. The filechooser allows for such a limit. Do I > have to recode using the filechooser or have I missed something? > > Thanks > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Set 'ReadOnly = True' (damage eliminated), or write an own file chooser. Need to add a 'TreeView' and some 'Button'. From gp at ...3050... Sun Dec 22 19:28:27 2013 From: gp at ...3050... (Gianni Piccini) Date: Sun, 22 Dec 2013 19:28:27 +0100 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository In-Reply-To: <52B6B344.7020003@...2007...> References: <52B6B344.7020003@...2007...> Message-ID: <52B72F4B.8030307@...3050...> On 22/12/2013 10:39, Kende Kriszti?n wrote: I don't see message previously sent, if double please don't kill me :-) > gb.geom component doesn't exist in any of the packages. In order to have Gambas 3.5.1 running on my Debian amd64 (the bug is filed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731487), I walk this way: obviously I think that the problem is gb.geom.so absence after install. 1) Got from Kendek's ppa :-) the package gambas3-runtime_3.5.1-0trusty1_amd64.deb 2) Unpacked the package 3) Moved the file gb.geom.so.0.0.0 as root in /usr/bin/lib/gambas3 4) Done two symlinks in this directory: root at ...3246...:/usr/lib/gambas3# ln -s gb.geom.so.0.0.0 gb.geom.so root at ...3246...:/usr/lib/gambas3# ln -s gb.geom.so.0.0.0 gb.geom.so.0 From nemh at ...2007... Sun Dec 22 20:07:07 2013 From: nemh at ...2007... (=?UTF-8?B?S2VuZGUgS3Jpc3p0acOhbg==?=) Date: Sun, 22 Dec 2013 20:07:07 +0100 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository In-Reply-To: <52B72F4B.8030307@...3050...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> Message-ID: <52B7385B.9010807@...2007...> 2013-12-22 19:28 keltez?ssel, Gianni Piccini ?rta: > On 22/12/2013 10:39, Kende Kriszti?n wrote: > > I don't see message previously sent, if double please don't kill me :-) > >> gb.geom component doesn't exist in any of the packages. > In order to have Gambas 3.5.1 running on my Debian amd64 (the bug is > filed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731487), I > walk this way: obviously I think that the problem is gb.geom.so absence > after install. > > 1) Got from Kendek's ppa :-) the package > gambas3-runtime_3.5.1-0trusty1_amd64.deb > > 2) Unpacked the package > > 3) Moved the file gb.geom.so.0.0.0 as root in /usr/bin/lib/gambas3 > > 4) Done two symlinks in this directory: > > root at ...3246...:/usr/lib/gambas3# ln -s gb.geom.so.0.0.0 gb.geom.so > root at ...3246...:/usr/lib/gambas3# ln -s gb.geom.so.0.0.0 gb.geom.so.0 > > Yes, this is a good workaround, and not problem for me. And manually install the gambas3-gb-gui package is also good. :-) But my application doesn't run other users computer. This is a problem. I can not ask everyone to follow them out. :-( At least one problem solved, wait for update. From gp at ...3050... Sun Dec 22 13:00:29 2013 From: gp at ...3050... (Gianni Piccini) Date: Sun, 22 Dec 2013 13:00:29 +0100 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository In-Reply-To: <52B6B344.7020003@...2007...> References: <52B6B344.7020003@...2007...> Message-ID: <52B6D45D.7000001@...3050...> On 22/12/2013 10:39, Kende Kriszti?n wrote: > gb.geom component doesn't exist in any of the packages. In order to have Gambas 3.5.1 running on my Debian amd64 (the bug is filed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731487), I walk this way: obviously I think that the problem is gb.geom.so absence after install. 1) Got from Kendek's ppa :-) the package gambas3-runtime_3.5.1-0trusty1_amd64.deb 2) Unpacked the package 3) Moved the file gb.geom.so.0.0.0 as root in /usr/bin/lib/gambas3 4) Done two symlinks in this directory: root at ...3246...:/usr/lib/gambas3# ln -s gb.geom.so.0.0.0 gb.geom.so root at ...3246...:/usr/lib/gambas3# ln -s gb.geom.so.0.0.0 gb.geom.so.0 From iss_boss at ...770... Sun Dec 22 21:58:35 2013 From: iss_boss at ...770... (ISS Boss) Date: Sun, 22 Dec 2013 15:58:35 -0500 Subject: [Gambas-user] Gambas 3.5.1 in Debian Testing (Jessie) official repository In-Reply-To: <52B7385B.9010807@...2007...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> <52B7385B.9010807@...2007...> Message-ID: <52B7527B.1030101@...770...> Hello: I had a completely working project that suddenly quit running. It was as if the contents of the entire form went Enabled = False. Nothing clicks, nothing works. It runs in the IDE, and I can click the 'Close' "X", but the rest of the form is dead. I can also hit a breakpoint in the form load routine, but nowhere else (since I can't click anything) Info: [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.5.0-44-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Any help here? From rterry at ...1823... Sun Dec 22 22:04:17 2013 From: rterry at ...1823... (richard terry) Date: Mon, 23 Dec 2013 08:04:17 +1100 Subject: [Gambas-user] Problem with dialog box already displayed Message-ID: <52B753D1.9000704@...1823...> Hi Benoit. I've noticed (infrequently) that if a dialog box is being called by clicking a button and my computer is busy doing other stuff chewing up the cpu and the user (me) doesn't get a response to the button that I just pressed and I press it again, gambas crashes into the IDE saying the dialog box is already displayed (when in fact it hasn't come up yet on the gui). This has been a long-standing intermittent bug for me in 3.4 and now 3.5.1. Any solution to this bar putting a catch in all subroutines showing dialog boxes or disabling the button being pressed as soon as one clicks it? Regards richard From iss_boss at ...770... Sun Dec 22 22:07:36 2013 From: iss_boss at ...770... (ISS Boss) Date: Sun, 22 Dec 2013 16:07:36 -0500 Subject: [Gambas-user] Application quit running In-Reply-To: <52B7527B.1030101@...770...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> <52B7385B.9010807@...2007...> <52B7527B.1030101@...770...> Message-ID: <52B75498.4060200@...770...> Sorry. Used an old email and forgot to change the Subject... ISS Boss wrote, On 12/22/2013 15:58: Hello: I had a completely working project that suddenly quit running. It was as if the contents of the entire form went Enabled = False. Nothing clicks, nothing works. It runs in the IDE, and I can click the 'Close' "X", but the rest of the form is dead. I can also hit a breakpoint in the form load routine, but nowhere else (since I can't click anything) Info: [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.5.0-44-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Any help here? ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [1]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [2]Gambas-user at lists.sourceforge.net [3]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 2. mailto:Gambas-user at lists.sourceforge.net 3. https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Dec 22 22:08:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Dec 2013 22:08:07 +0100 Subject: [Gambas-user] Problem with dialog box already displayed In-Reply-To: <52B753D1.9000704@...1823...> References: <52B753D1.9000704@...1823...> Message-ID: <52B754B7.7080007@...1...> Le 22/12/2013 22:04, richard terry a ?crit : > Hi Benoit. > > I've noticed (infrequently) that if a dialog box is being called by > clicking a button and my computer is busy doing other stuff chewing up > the cpu and the user (me) doesn't get a response to the button that I > just pressed and I press it again, gambas crashes into the IDE saying > the dialog box is already displayed (when in fact it hasn't come up yet > on the gui). This has been a long-standing intermittent bug for me in > 3.4 and now 3.5.1. > > Any solution to this bar putting a catch in all subroutines showing > dialog boxes or disabling the button being pressed as soon as one clicks it? > > Regards > > richard > Is it with gb.gtk or gb.qt4? -- Beno?t Minisini From gambas at ...1... Sun Dec 22 22:19:36 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Dec 2013 22:19:36 +0100 Subject: [Gambas-user] Problem with dialog box already displayed In-Reply-To: <52B754B7.7080007@...1...> References: <52B753D1.9000704@...1823...> <52B754B7.7080007@...1...> Message-ID: <52B75768.5080805@...1...> Le 22/12/2013 22:08, Beno?t Minisini a ?crit : > Le 22/12/2013 22:04, richard terry a ?crit : >> Hi Benoit. >> >> I've noticed (infrequently) that if a dialog box is being called by >> clicking a button and my computer is busy doing other stuff chewing up >> the cpu and the user (me) doesn't get a response to the button that I >> just pressed and I press it again, gambas crashes into the IDE saying >> the dialog box is already displayed (when in fact it hasn't come up yet >> on the gui). This has been a long-standing intermittent bug for me in >> 3.4 and now 3.5.1. >> >> Any solution to this bar putting a catch in all subroutines showing >> dialog boxes or disabling the button being pressed as soon as one >> clicks it? >> >> Regards >> >> richard >> > > Is it with gb.gtk or gb.qt4? > Can you provide a piece of the source code so that I can see how you display your dialog box: what you describe is possible only if the event loop is called during the button click event handler. -- Beno?t Minisini From rterry at ...1823... Sun Dec 22 22:34:53 2013 From: rterry at ...1823... (richard terry) Date: Mon, 23 Dec 2013 08:34:53 +1100 Subject: [Gambas-user] Problem with dialog box already displayed In-Reply-To: <52B754B7.7080007@...1...> References: <52B753D1.9000704@...1823...> <52B754B7.7080007@...1...> Message-ID: <52B75AFD.1080907@...1823...> On 23/12/13 08:08, Beno?t Minisini wrote: > Le 22/12/2013 22:04, richard terry a ?crit : >> Hi Benoit. >> >> I've noticed (infrequently) that if a dialog box is being called by >> clicking a button and my computer is busy doing other stuff chewing up >> the cpu and the user (me) doesn't get a response to the button that I >> just pressed and I press it again, gambas crashes into the IDE saying >> the dialog box is already displayed (when in fact it hasn't come up yet >> on the gui). This has been a long-standing intermittent bug for me in >> 3.4 and now 3.5.1. >> >> Any solution to this bar putting a catch in all subroutines showing >> dialog boxes or disabling the button being pressed as soon as one clicks it? >> >> Regards >> >> richard >> > Is it with gb.gtk or gb.qt4? qt4 > This sub lives in a form embedded on the workspace in the main clinical form: Public Sub Print_Notes() '--------------------------------------------------------------------- 'creates pdf with page header of the progress notes '--------------------------------------------------------------------- If Message.Question("Are you sure you want to print out today's notes?", "Yes", "No") = 2 Then Return modPrinting.Print_PDF(modProgressNotes.ProgressNotes_Add_Page_Header_Create_PDF_File(Notes_Editor.teNotes.RichText, currentConsult, "CONSULTATION")) End From nilsson at ...1979... Mon Dec 23 00:01:38 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Mon, 23 Dec 2013 10:01:38 +1100 Subject: [Gambas-user] Serial port control Message-ID: <006b4c$c0o8qq@...3239...> G'day all: Now with Gambas 3 installed, I want to get on with porting my running software from VB6/Windows. It requires processing multiple streams of binary serial data from attached devices. The serial control in gambas 3 does not seem up to the job, in so far as the available properties lack the elements I use under VB MScomm. In addition to the basic ones, these are inbuffer.size, outbuffer.size, inbuffer.count, inputMode, input Len(gth), PortOpen and, in particular, R Threshold and S Threshold. The latter R/S Thresholds are very useful in allowing the software to get on with other processing while the buffers are filling - at least that is my understanding. I ask if whoever wrote the gambas serial control has any plans to expand it's functionality to the MScomm level in the foreseeable future or can someone point me to another more comprehensive control I could use with gambas? Carl Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From iss_boss at ...770... Mon Dec 23 02:24:01 2013 From: iss_boss at ...770... (ISS Boss) Date: Sun, 22 Dec 2013 20:24:01 -0500 Subject: [Gambas-user] Application quit running In-Reply-To: <52B75498.4060200@...770...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> <52B7385B.9010807@...2007...> <52B7527B.1030101@...770...> <52B75498.4060200@...770...> Message-ID: <52B790B1.7000308@...770...> More information: This unresponsive behavior all takes place in the IDE under Debug->Run. Thinking back to just prior to this happening, I lassoed four ValueBoxes which were off-center and used the context menu to try and center then Horizontally on the form. It was a disaster! All four boxes were slapped willy-nilly across the form in no order whatsoever. From that point onwards whenever I tried to run the app in the debugger it was totally unresponsive. Am I going to have to rebuild this entire project? Bill ISS Boss wrote, On 12/22/2013 16:07: Sorry. Used an old email and forgot to change the Subject... ISS Boss wrote, On 12/22/2013 15:58: Hello: I had a completely working project that suddenly quit running. It was as if the contents of the entire form went Enabled = False. Nothing clicks, nothing works. It runs in the IDE, and I can click the 'Close' "X", but the rest of the form is dead. I can also hit a breakpoint in the form load routine, but nowhere else (since I can't click anything) Info: [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.5.0-44-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Any help here? ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [1][1]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt rk _______________________________________________ Gambas-user mailing list [[2]2]Gambas-user at lists.sourceforge.net [3][3]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. [4]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.c lktrk 2. [5]mailto:Gambas-user at lists.sourceforge.net 3. [6]https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [7]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [8]Gambas-user at lists.sourceforge.net [9]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 2. mailto:2]Gambas-user at lists.sourceforge.net 3. https://lists.sourceforge.net/lists/listinfo/gambas-user 4. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 5. mailto:Gambas-user at lists.sourceforge.net 6. https://lists.sourceforge.net/lists/listinfo/gambas-user 7. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 8. mailto:Gambas-user at lists.sourceforge.net 9. https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Dec 23 02:44:52 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Dec 2013 02:44:52 +0100 Subject: [Gambas-user] Application quit running In-Reply-To: <52B790B1.7000308@...770...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> <52B7385B.9010807@...2007...> <52B7527B.1030101@...770...> <52B75498.4060200@...770...> <52B790B1.7000308@...770...> Message-ID: <52B79594.4010304@...1...> Le 23/12/2013 02:24, ISS Boss a ?crit : > > More information: > This unresponsive behavior all takes place in the IDE under Debug->Run. > Thinking back to just prior to this happening, I lassoed four ValueBoxes > which were off-center and used the context menu to try and center then > Horizontally on the form. It was a disaster! All four boxes were slapped > willy-nilly across the form in no order whatsoever. From that point onwards > whenever I tried to run the app in the debugger it was totally unresponsive. > Am I going to have to rebuild this entire project? > Bill > ISS Boss wrote, On 12/22/2013 16:07: > Can you send me your full project, and tell me on which form you moved the ValueBoxes? -- Beno?t Minisini From rmorgan62 at ...626... Mon Dec 23 03:09:23 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 22 Dec 2013 18:09:23 -0800 Subject: [Gambas-user] Serial port control In-Reply-To: <006b4c$c0o8qq@...3239...> References: <006b4c$c0o8qq@...3239...> Message-ID: As I recall gb serial is steam based and so you would handle buffers via the stream not the serial object. On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson wrote: > G'day all: > Now with Gambas 3 installed, I want to get on with porting my running > software from VB6/Windows. It requires processing multiple streams > of binary serial data from attached devices. The serial control in > gambas 3 does not seem up to the job, in so far as the available > properties lack the elements I use under VB MScomm. In addition to > the basic ones, these are inbuffer.size, outbuffer.size, > inbuffer.count, inputMode, input Len(gth), PortOpen and, in > particular, R Threshold and S Threshold. The latter R/S Thresholds > are very useful in allowing the software to get on with other > processing while the buffers are filling - at least that is my > understanding. > I ask if whoever wrote the gambas serial control has any plans to > expand it's functionality to the MScomm level in the foreseeable > future or can someone point me to another more comprehensive control > I could use with gambas? > Carl > > Carl S Nilsson > 137 Gordons Hill Road > Lindisfarne, Tas. > Australia 7015 > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From nilsson at ...1979... Mon Dec 23 04:15:10 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Mon, 23 Dec 2013 14:15:10 +1100 Subject: [Gambas-user] Serial port control In-Reply-To: References: <006b4c$c0o8qq@...3239...> Message-ID: <006b4c$c0ogq4@...3239...> Randall: Thanks for responding. OK, I have looked at the stream functions: My question was, basically, how do I specify how many bytes I want to take in from a given serial port at each instance? For example, on one input I expect a continuous stream of 31 byte packets and I want to take them in for processing 25 (say) packets at a time, i.e. 775 bytes at a time. Now I don't much mind if I get a few bytes more or less because I can check for a remainder part-packet and put it on the front of the next nominal 775 byte intake - that's part of the processing software - but I don't want the CPU tied up with that port or stream between intakes of (about) 775 bytes. There are other input streams and data processing to attend to. I don't see how to do that with the stream functions - but maybe I'm not understanding how the stream works? I can see that I could (I think!) read a given number of bytes from a stream, but does that relieve the CPU from being tied up with that stream until I read another 775 bytes? Is a stream of indefinite length or does it have some buffer limit? Carl At 01:09 PM 23/12/2013, you wrote: >As I recall gb serial is steam based and so you would handle buffers via >the stream not the serial object. > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson wrote: > > > G'day all: > > Now with Gambas 3 installed, I want to get on with porting my running > > software from VB6/Windows. It requires processing multiple streams > > of binary serial data from attached devices. The serial control in > > gambas 3 does not seem up to the job, in so far as the available > > properties lack the elements I use under VB MScomm. ...(snip) > > Carl > > > > Carl S Nilsson > > 137 Gordons Hill Road > > Lindisfarne, Tas. > > Australia 7015 > > > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >-- >If you ask me if it can be done. The answer is YES, it can always be done. >The correct questions however are... What will it cost, and how long will >it take? >------------------------------------------------------------------------------ >Rapidly troubleshoot problems before they affect your business. Most IT >organizations don't have a clear picture of how application performance >affects their revenue. With AppDynamics, you get 100% visibility into your >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From rmorgan62 at ...626... Mon Dec 23 04:47:28 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 22 Dec 2013 19:47:28 -0800 Subject: [Gambas-user] Serial port control In-Reply-To: <006b4c$c0ogq4@...3239...> References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> Message-ID: It has been a long while since I have used the serial component of GB but I have a project starting in which I will need to re-acquaint myself with it. The stream can be setup as blocking or non-blocking. The PC uses either polling or interrupt when the port is opened. So trying to manage the serial port at the same level you would in on uC is pointless in most cases. Just set up the stream and read the bytes you need from there. If you're concerned about buffer overflow then you may want to close the port once you have read the bytes you need. Perhaps someone with more recent experience can help you more. On Sun, Dec 22, 2013 at 7:15 PM, Carl Nilsson wrote: > Randall: Thanks for responding. OK, I have looked at the stream > functions: My question was, basically, how do I specify how many > bytes I want to take in from a given serial port at each > instance? For example, on one input I expect a continuous stream of > 31 byte packets and I want to take them in for processing 25 (say) > packets at a time, i.e. 775 bytes at a time. Now I don't much mind > if I get a few bytes more or less because I can check for a remainder > part-packet and put it on the front of the next nominal 775 byte > intake - that's part of the processing software - but I don't want > the CPU tied up with that port or stream between intakes of (about) > 775 bytes. There are other input streams and data processing to > attend to. I don't see how to do that with the stream functions - > but maybe I'm not understanding how the stream works? I can see that > I could (I think!) read a given number of bytes from a stream, but > does that relieve the CPU from being tied up with that stream until I > read another 775 bytes? Is a stream of indefinite length or does it > have some buffer limit? > Carl > > At 01:09 PM 23/12/2013, you wrote: > >As I recall gb serial is steam based and so you would handle buffers via > >the stream not the serial object. > > > > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson > wrote: > > > > > G'day all: > > > Now with Gambas 3 installed, I want to get on with porting my running > > > software from VB6/Windows. It requires processing multiple streams > > > of binary serial data from attached devices. The serial control in > > > gambas 3 does not seem up to the job, in so far as the available > > > properties lack the elements I use under VB MScomm. ...(snip) > > > > > Carl > > > > > > Carl S Nilsson > > > 137 Gordons Hill Road > > > Lindisfarne, Tas. > > > Australia 7015 > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > organizations don't have a clear picture of how application performance > > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > > > Pro! > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > >-- > >If you ask me if it can be done. The answer is YES, it can always be done. > >The correct questions however are... What will it cost, and how long will > >it take? > > >------------------------------------------------------------------------------ > >Rapidly troubleshoot problems before they affect your business. Most IT > >organizations don't have a clear picture of how application performance > >affects their revenue. With AppDynamics, you get 100% visibility into your > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > Carl S Nilsson > 137 Gordons Hill Road > Lindisfarne, Tas. > Australia 7015 > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From nilsson at ...1979... Mon Dec 23 05:10:40 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Mon, 23 Dec 2013 15:10:40 +1100 Subject: [Gambas-user] Serial port control In-Reply-To: References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> Message-ID: <64e542$c08ot1@...3015...> Thanks Randall. I guess it's time to try it and play around a little, which I can't do for a few days. At the moment I'm trying to look ahead and see where problems might lie. When push comes to shove, I don't know how these things really work! I follow recipes! Don't really want to close the port as the data come in continuously as fast as the device can send them and I don't want to miss any. (It's attitude sensor data from an inertial management unit in a light aircraft). Same in principle with another "continuous" stream of binary GPS data with packets of 124 bytes coming in at a slower rate of, say, 4 Hz. How "continuous" it is would depend on the baud rate at which the port is operating. The RThreashold property of MScomm handles this issue very well. Doesn't trigger an event until the specified number of bytes is in the serial buffer. Carl At 02:47 PM 23/12/2013, you wrote: >It has been a long while since I have used the serial component of GB but I >have a project starting in which I will need to re-acquaint myself with it. >The stream can be setup as blocking or non-blocking. The PC uses either >polling or interrupt when the port is opened. So trying to manage the >serial port at the same level you would in on uC is pointless in most >cases. Just set up the stream and read the bytes you need from there. If >you're concerned about buffer overflow then you may want to close the port >once you have read the bytes you need. > >Perhaps someone with more recent experience can help you more. > > > > >On Sun, Dec 22, 2013 at 7:15 PM, Carl Nilsson wrote: > > > Randall: Thanks for responding. OK, I have looked at the stream > > functions: My question was, basically, how do I specify how many > > bytes I want to take in from a given serial port at each > > instance? For example, on one input I expect a continuous stream of > > 31 byte packets and I want to take them in for processing 25 (say) > > packets at a time, i.e. 775 bytes at a time. Now I don't much mind > > if I get a few bytes more or less because I can check for a remainder > > part-packet and put it on the front of the next nominal 775 byte > > intake - that's part of the processing software - but I don't want > > the CPU tied up with that port or stream between intakes of (about) > > 775 bytes. There are other input streams and data processing to > > attend to. I don't see how to do that with the stream functions - > > but maybe I'm not understanding how the stream works? I can see that > > I could (I think!) read a given number of bytes from a stream, but > > does that relieve the CPU from being tied up with that stream until I > > read another 775 bytes? Is a stream of indefinite length or does it > > have some buffer limit? > > Carl > > > > At 01:09 PM 23/12/2013, you wrote: > > >As I recall gb serial is steam based and so you would handle buffers via > > >the stream not the serial object. > > > > > > > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson > > wrote: > > > > > > > G'day all: > > > > Now with Gambas 3 installed, I want to get on with porting my running > > > > software from VB6/Windows. It requires processing multiple streams > > > > of binary serial data from attached devices. The serial control in > > > > gambas 3 does not seem up to the job, in so far as the available > > > > properties lack the elements I use under VB MScomm. ...(snip) > > > > > > > > Carl > > > > > > > > Carl S Nilsson > > > > 137 Gordons Hill Road > > > > Lindisfarne, Tas. > > > > Australia 7015 > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > > organizations don't have a clear picture of how application performance > > > > affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > >-- > > >If you ask me if it can be done. The answer is YES, it can always be done. > > >The correct questions however are... What will it cost, and how long will > > >it take? > > > > >----------------------------------------------------------------- > ------------- > > >Rapidly troubleshoot problems before they affect your business. Most IT > > >organizations don't have a clear picture of how application performance > > >affects their revenue. With AppDynamics, you get 100% visibility into your > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > >_______________________________________________ > > >Gambas-user mailing list > > >Gambas-user at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Carl S Nilsson > > 137 Gordons Hill Road > > Lindisfarne, Tas. > > Australia 7015 > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > >-- >If you ask me if it can be done. The answer is YES, it can always be done. >The correct questions however are... What will it cost, and how long will >it take? >------------------------------------------------------------------------------ >Rapidly troubleshoot problems before they affect your business. Most IT >organizations don't have a clear picture of how application performance >affects their revenue. With AppDynamics, you get 100% visibility into your >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From kevinfishburne at ...1887... Mon Dec 23 07:28:18 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 23 Dec 2013 01:28:18 -0500 Subject: [Gambas-user] basics of dynamic arrays of structures In-Reply-To: <20131221095728.GB511@...2774...> References: <52B528CC.8040203@...1887...> <52B5298B.6050009@...1887...> <20131221095728.GB511@...2774...> Message-ID: <52B7D802.3020408@...1887...> On 12/21/2013 04:57 AM, Tobias Boege wrote: > On Sat, 21 Dec 2013, Kevin Fishburne wrote: >> On 12/21/2013 12:36 AM, Kevin Fishburne wrote: >>> I've gotten some flak about how I declare arrays and want to change my >>> ways. Previously I would do something like: >>> >>> Public SomeArray[300,300] as Integer >>> >>> I have a case now where I need an array whose number of elements will be >>> incremented and that will be cleared occasionally. Of course I can't >>> figure out how to do it. My code looks like this (I stripped it down): >>> >>> --- >>> >>> Public Struct PlanWallStructure >>> Created As Boolean >>> End Struct >>> >>> Public Struct PlanStructure >>> Wall As Struct PlanWallStructure >>> End Struct >>> >>> Public Plan[10] As Struct PlanStructure >>> >>> --- >>> >>> So I need, for example, Plan[0].Wall to be an array where I can do >>> something like: >>> >>> --- >>> >>> Plan[0].Wall.Clear >>> Index = Plan[0].Wall.Count >>> Plan[0].Wall[Index] = True >>> Index = Plan[0].Wall.Count >>> Plan[0].Wall[Plan[0].Wall.Count] = False >>> >>> --- >>> >>> Is this possible? I've tried every syntax I can think of and looked at >>> the documentation but get errors every time. >>> >> Whoops. Meant for that last bit of code to be: >> >> Plan[0].Wall.Clear >> Index = Plan[0].Wall.Count >> Plan[0].Wall[Index] = True >> Index = Plan[0].Wall.Count >> Plan[0].Wall[Index] = False >> >> >> Same thing basically for the purpose of the example. >> > I don't think there is an array in Gambas which lets you use its Count as > index without raising an "out of bounds" error :-) (and you certainly mean > Plan[0].Wall[Index]*.Created* = False or else, don't use a Struct.) > > Using dynamic arrays, you would do: > > --- > Public Plan As PlanStructure[] > > Public Sub _new() > Dim iIndex As Integer > > Plan = New PlanStructure[](10) ' Initial size > For iIndex = 0 To Plan.Max > Plan[iIndex] = New PlanWallStructure > Next > End > --- > > I wrote this out of my head. If it doesn't get you started, just tell me. I may have figured it out, though please let me know if I'm doing this ass-backward (sample project attached). Looks like the Resize array method can be used to add elements as needed. I also needed to revise how the arrays of structures were declared in the Plan structure as your code example suggested. If my project code is correct, it would be nice to have this somewhere in the documentation. I couldn't find a decent explanation of how to create and manipulate arrays anywhere in the docs. Maybe there should be a tutorial or example wiki along with the regular docs? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3_test.tar.gz Type: application/gzip Size: 6132 bytes Desc: not available URL: From rmorgan62 at ...626... Mon Dec 23 08:35:33 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 22 Dec 2013 23:35:33 -0800 Subject: [Gambas-user] Serial port control In-Reply-To: <64e542$c08ot1@...3015...> References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> Message-ID: I think the RTheshold of VB simply sets the byte count that must accumulate in the receive buffer before a comm event is triggered. It doesn't do anything else. In the background VB is still polling the buffer and looking at the byte count. You can do this in GB but you will have to write it yourself. You would need to simply use the read event on the comm object to test the byte count. I believe it triggers at 1 byte. Then use that to trigger your own custom event when your 124 bytes have arrived. You might also be able to talk Benoit into adding an RThreshold property. Seems like it might be handy.... At the very least 4Hz is very very slow for most computers. And setting up a 4Hz polling of the port wouldn't be hard at all. On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson wrote: > Thanks Randall. I guess it's time to try it and play around a > little, which I can't do for a few days. At the moment I'm trying to > look ahead and see where problems might lie. When push comes to > shove, I don't know how these things really work! I follow > recipes! Don't really want to close the port as the data come in > continuously as fast as the device can send them and I don't want to > miss any. (It's attitude sensor data from an inertial management > unit in a light aircraft). Same in principle with another > "continuous" stream of binary GPS data with packets of 124 bytes > coming in at a slower rate of, say, 4 Hz. How "continuous" it is > would depend on the baud rate at which the port is operating. The > RThreashold property of MScomm handles this issue very well. Doesn't > trigger an event until the specified number of bytes is in the serial > buffer. > Carl > > At 02:47 PM 23/12/2013, you wrote: > >It has been a long while since I have used the serial component of GB but > I > >have a project starting in which I will need to re-acquaint myself with > it. > >The stream can be setup as blocking or non-blocking. The PC uses either > >polling or interrupt when the port is opened. So trying to manage the > >serial port at the same level you would in on uC is pointless in most > >cases. Just set up the stream and read the bytes you need from there. If > >you're concerned about buffer overflow then you may want to close the port > >once you have read the bytes you need. > > > >Perhaps someone with more recent experience can help you more. > > > > > > > > > >On Sun, Dec 22, 2013 at 7:15 PM, Carl Nilsson > wrote: > > > > > Randall: Thanks for responding. OK, I have looked at the stream > > > functions: My question was, basically, how do I specify how many > > > bytes I want to take in from a given serial port at each > > > instance? For example, on one input I expect a continuous stream of > > > 31 byte packets and I want to take them in for processing 25 (say) > > > packets at a time, i.e. 775 bytes at a time. Now I don't much mind > > > if I get a few bytes more or less because I can check for a remainder > > > part-packet and put it on the front of the next nominal 775 byte > > > intake - that's part of the processing software - but I don't want > > > the CPU tied up with that port or stream between intakes of (about) > > > 775 bytes. There are other input streams and data processing to > > > attend to. I don't see how to do that with the stream functions - > > > but maybe I'm not understanding how the stream works? I can see that > > > I could (I think!) read a given number of bytes from a stream, but > > > does that relieve the CPU from being tied up with that stream until I > > > read another 775 bytes? Is a stream of indefinite length or does it > > > have some buffer limit? > > > Carl > > > > > > At 01:09 PM 23/12/2013, you wrote: > > > >As I recall gb serial is steam based and so you would handle buffers > via > > > >the stream not the serial object. > > > > > > > > > > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson > > > wrote: > > > > > > > > > G'day all: > > > > > Now with Gambas 3 installed, I want to get on with porting my > running > > > > > software from VB6/Windows. It requires processing multiple streams > > > > > of binary serial data from attached devices. The serial control in > > > > > gambas 3 does not seem up to the job, in so far as the available > > > > > properties lack the elements I use under VB MScomm. ...(snip) > > > > > > > > > > > Carl > > > > > > > > > > Carl S Nilsson > > > > > 137 Gordons Hill Road > > > > > Lindisfarne, Tas. > > > > > Australia 7015 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Rapidly troubleshoot problems before they affect your business. > Most IT > > > > > organizations don't have a clear picture of how application > performance > > > > > affects their revenue. With AppDynamics, you get 100% visibility > into > > > your > > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > > AppDynamics > > > > > Pro! > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > >-- > > > >If you ask me if it can be done. The answer is YES, it can always be > done. > > > >The correct questions however are... What will it cost, and how long > will > > > >it take? > > > > > > >----------------------------------------------------------------- > > ------------- > > > >Rapidly troubleshoot problems before they affect your business. Most > IT > > > >organizations don't have a clear picture of how application > performance > > > >affects their revenue. With AppDynamics, you get 100% visibility into > your > > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > > > Pro! > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > >_______________________________________________ > > > >Gambas-user mailing list > > > >Gambas-user at lists.sourceforge.net > > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Carl S Nilsson > > > 137 Gordons Hill Road > > > Lindisfarne, Tas. > > > Australia 7015 > > > > > > > > > ------------------------------------------------------------------------------ > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > organizations don't have a clear picture of how application performance > > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > > > Pro! > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > >-- > >If you ask me if it can be done. The answer is YES, it can always be done. > >The correct questions however are... What will it cost, and how long will > >it take? > > >------------------------------------------------------------------------------ > >Rapidly troubleshoot problems before they affect your business. Most IT > >organizations don't have a clear picture of how application performance > >affects their revenue. With AppDynamics, you get 100% visibility into your > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > Carl S Nilsson > 137 Gordons Hill Road > Lindisfarne, Tas. > Australia 7015 > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From nando_f at ...951... Mon Dec 23 09:55:15 2013 From: nando_f at ...951... (nando) Date: Mon, 23 Dec 2013 03:55:15 -0500 Subject: [Gambas-user] Serial port control In-Reply-To: References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> Message-ID: <20131223085219.M1814@...951...> I have used the serial port for 5+ years with Accelerometer and GPS without fault nor failure on the serial port control. Some use RTS/CTS, some done. My suggestion is not to think it needs to mimick what MSComm does and how you have used MSComm in the past. Learn what it does and how you can use it for your devices. I assure you it can certainly do it without fail. -Nando ---------- Original Message ----------- From: Randall Morgan To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB simply sets the byte count that must accumulate > in the receive buffer before a comm event is triggered. It doesn't do > anything else. In the background VB is still polling the buffer and looking > at the byte count. You can do this in GB but you will have to write it > yourself. You would need to simply use the read event on the comm object to > test the byte count. I believe it triggers at 1 byte. Then use that to > trigger your own custom event when your 124 bytes have arrived. > > You might also be able to talk Benoit into adding an RThreshold property. > Seems like it might be handy.... At the very least 4Hz is very very slow > for most computers. And setting up a 4Hz polling of the port wouldn't be > hard at all. > > On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson wrote: > > > Thanks Randall. I guess it's time to try it and play around a > > little, which I can't do for a few days. At the moment I'm trying to > > look ahead and see where problems might lie. When push comes to > > shove, I don't know how these things really work! I follow > > recipes! Don't really want to close the port as the data come in > > continuously as fast as the device can send them and I don't want to > > miss any. (It's attitude sensor data from an inertial management > > unit in a light aircraft). Same in principle with another > > "continuous" stream of binary GPS data with packets of 124 bytes > > coming in at a slower rate of, say, 4 Hz. How "continuous" it is > > would depend on the baud rate at which the port is operating. The > > RThreashold property of MScomm handles this issue very well. Doesn't > > trigger an event until the specified number of bytes is in the serial > > buffer. > > Carl > > > > At 02:47 PM 23/12/2013, you wrote: > > >It has been a long while since I have used the serial component of GB but > > I > > >have a project starting in which I will need to re-acquaint myself with > > it. > > >The stream can be setup as blocking or non-blocking. The PC uses either > > >polling or interrupt when the port is opened. So trying to manage the > > >serial port at the same level you would in on uC is pointless in most > > >cases. Just set up the stream and read the bytes you need from there. If > > >you're concerned about buffer overflow then you may want to close the port > > >once you have read the bytes you need. > > > > > >Perhaps someone with more recent experience can help you more. > > > > > > > > > > > > > > >On Sun, Dec 22, 2013 at 7:15 PM, Carl Nilsson > > wrote: > > > > > > > Randall: Thanks for responding. OK, I have looked at the stream > > > > functions: My question was, basically, how do I specify how many > > > > bytes I want to take in from a given serial port at each > > > > instance? For example, on one input I expect a continuous stream of > > > > 31 byte packets and I want to take them in for processing 25 (say) > > > > packets at a time, i.e. 775 bytes at a time. Now I don't much mind > > > > if I get a few bytes more or less because I can check for a remainder > > > > part-packet and put it on the front of the next nominal 775 byte > > > > intake - that's part of the processing software - but I don't want > > > > the CPU tied up with that port or stream between intakes of (about) > > > > 775 bytes. There are other input streams and data processing to > > > > attend to. I don't see how to do that with the stream functions - > > > > but maybe I'm not understanding how the stream works? I can see that > > > > I could (I think!) read a given number of bytes from a stream, but > > > > does that relieve the CPU from being tied up with that stream until I > > > > read another 775 bytes? Is a stream of indefinite length or does it > > > > have some buffer limit? > > > > Carl > > > > > > > > At 01:09 PM 23/12/2013, you wrote: > > > > >As I recall gb serial is steam based and so you would handle buffers > > via > > > > >the stream not the serial object. > > > > > > > > > > > > > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson > > > > wrote: > > > > > > > > > > > G'day all: > > > > > > Now with Gambas 3 installed, I want to get on with porting my > > running > > > > > > software from VB6/Windows. It requires processing multiple streams > > > > > > of binary serial data from attached devices. The serial control in > > > > > > gambas 3 does not seem up to the job, in so far as the available > > > > > > properties lack the elements I use under VB MScomm. ...(snip) > > > > > > > > > > > > > > Carl > > > > > > > > > > > > Carl S Nilsson > > > > > > 137 Gordons Hill Road > > > > > > Lindisfarne, Tas. > > > > > > Australia 7015 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Rapidly troubleshoot problems before they affect your business. > > Most IT > > > > > > organizations don't have a clear picture of how application > > performance > > > > > > affects their revenue. With AppDynamics, you get 100% visibility > > into > > > > your > > > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > > > AppDynamics > > > > > > Pro! > > > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > >If you ask me if it can be done. The answer is YES, it can always be > > done. > > > > >The correct questions however are... What will it cost, and how long > > will > > > > >it take? > > > > > > > > >----------------------------------------------------------------- > > > ------------- > > > > >Rapidly troubleshoot problems before they affect your business. Most > > IT > > > > >organizations don't have a clear picture of how application > > performance > > > > >affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > >_______________________________________________ > > > > >Gambas-user mailing list > > > > >Gambas-user at lists.sourceforge.net > > > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Carl S Nilsson > > > > 137 Gordons Hill Road > > > > Lindisfarne, Tas. > > > > Australia 7015 > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > > organizations don't have a clear picture of how application performance > > > > affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > >-- > > >If you ask me if it can be done. The answer is YES, it can always be done. > > >The correct questions however are... What will it cost, and how long will > > >it take? > > > > >------------------------------------------------------------------------------ > > >Rapidly troubleshoot problems before they affect your business. Most IT > > >organizations don't have a clear picture of how application performance > > >affects their revenue. With AppDynamics, you get 100% visibility into your > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > >_______________________________________________ > > >Gambas-user mailing list > > >Gambas-user at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Carl S Nilsson > > 137 Gordons Hill Road > > Lindisfarne, Tas. > > Australia 7015 > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Mon Dec 23 10:03:39 2013 From: nando_f at ...951... (nando) Date: Mon, 23 Dec 2013 04:03:39 -0500 Subject: [Gambas-user] Serial port control In-Reply-To: References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> Message-ID: <20131223085652.M36283@...951...> My suggestion to reading 124 bytes from a serial stream.... I use this technique mostly because I want to empty the buffer provided by the control as much as possible. I would have one function which is the _read of the serial port. The only thing it does is accumulate bytes in an array. I have another function which will ask for 124 bytes from the accumlating array. If there are not enough, it can block, or return an array of zero long which would mean not enough came in. In this case you could also do a small time delay (ie. WAIT 0.1) just to prevent the CPU from running 100% testing for 124 bytes. Both of these can be a Gambas Class and the second function is the public function. You can use _new to instantiate the serial port control. You don't need to create it at design time. I used techniques like this and it works like a charm. -Nando ---------- Original Message ----------- From: Randall Morgan To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB simply sets the byte count that must accumulate > in the receive buffer before a comm event is triggered. It doesn't do > anything else. In the background VB is still polling the buffer and looking > at the byte count. You can do this in GB but you will have to write it > yourself. You would need to simply use the read event on the comm object to > test the byte count. I believe it triggers at 1 byte. Then use that to > trigger your own custom event when your 124 bytes have arrived. > > You might also be able to talk Benoit into adding an RThreshold property. > Seems like it might be handy.... At the very least 4Hz is very very slow > for most computers. And setting up a 4Hz polling of the port wouldn't be > hard at all. > > On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson wrote: > > > Thanks Randall. I guess it's time to try it and play around a > > little, which I can't do for a few days. At the moment I'm trying to > > look ahead and see where problems might lie. When push comes to > > shove, I don't know how these things really work! I follow > > recipes! Don't really want to close the port as the data come in > > continuously as fast as the device can send them and I don't want to > > miss any. (It's attitude sensor data from an inertial management > > unit in a light aircraft). Same in principle with another > > "continuous" stream of binary GPS data with packets of 124 bytes > > coming in at a slower rate of, say, 4 Hz. How "continuous" it is > > would depend on the baud rate at which the port is operating. The > > RThreashold property of MScomm handles this issue very well. Doesn't > > trigger an event until the specified number of bytes is in the serial > > buffer. > > Carl > > > > At 02:47 PM 23/12/2013, you wrote: > > >It has been a long while since I have used the serial component of GB but > > I > > >have a project starting in which I will need to re-acquaint myself with > > it. > > >The stream can be setup as blocking or non-blocking. The PC uses either > > >polling or interrupt when the port is opened. So trying to manage the > > >serial port at the same level you would in on uC is pointless in most > > >cases. Just set up the stream and read the bytes you need from there. If > > >you're concerned about buffer overflow then you may want to close the port > > >once you have read the bytes you need. > > > > > >Perhaps someone with more recent experience can help you more. > > > > > > > > > > > > > > >On Sun, Dec 22, 2013 at 7:15 PM, Carl Nilsson > > wrote: > > > > > > > Randall: Thanks for responding. OK, I have looked at the stream > > > > functions: My question was, basically, how do I specify how many > > > > bytes I want to take in from a given serial port at each > > > > instance? For example, on one input I expect a continuous stream of > > > > 31 byte packets and I want to take them in for processing 25 (say) > > > > packets at a time, i.e. 775 bytes at a time. Now I don't much mind > > > > if I get a few bytes more or less because I can check for a remainder > > > > part-packet and put it on the front of the next nominal 775 byte > > > > intake - that's part of the processing software - but I don't want > > > > the CPU tied up with that port or stream between intakes of (about) > > > > 775 bytes. There are other input streams and data processing to > > > > attend to. I don't see how to do that with the stream functions - > > > > but maybe I'm not understanding how the stream works? I can see that > > > > I could (I think!) read a given number of bytes from a stream, but > > > > does that relieve the CPU from being tied up with that stream until I > > > > read another 775 bytes? Is a stream of indefinite length or does it > > > > have some buffer limit? > > > > Carl > > > > > > > > At 01:09 PM 23/12/2013, you wrote: > > > > >As I recall gb serial is steam based and so you would handle buffers > > via > > > > >the stream not the serial object. > > > > > > > > > > > > > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson > > > > wrote: > > > > > > > > > > > G'day all: > > > > > > Now with Gambas 3 installed, I want to get on with porting my > > running > > > > > > software from VB6/Windows. It requires processing multiple streams > > > > > > of binary serial data from attached devices. The serial control in > > > > > > gambas 3 does not seem up to the job, in so far as the available > > > > > > properties lack the elements I use under VB MScomm. ...(snip) > > > > > > > > > > > > > > Carl > > > > > > > > > > > > Carl S Nilsson > > > > > > 137 Gordons Hill Road > > > > > > Lindisfarne, Tas. > > > > > > Australia 7015 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Rapidly troubleshoot problems before they affect your business. > > Most IT > > > > > > organizations don't have a clear picture of how application > > performance > > > > > > affects their revenue. With AppDynamics, you get 100% visibility > > into > > > > your > > > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > > > AppDynamics > > > > > > Pro! > > > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > >If you ask me if it can be done. The answer is YES, it can always be > > done. > > > > >The correct questions however are... What will it cost, and how long > > will > > > > >it take? > > > > > > > > >----------------------------------------------------------------- > > > ------------- > > > > >Rapidly troubleshoot problems before they affect your business. Most > > IT > > > > >organizations don't have a clear picture of how application > > performance > > > > >affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > >_______________________________________________ > > > > >Gambas-user mailing list > > > > >Gambas-user at lists.sourceforge.net > > > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Carl S Nilsson > > > > 137 Gordons Hill Road > > > > Lindisfarne, Tas. > > > > Australia 7015 > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > > organizations don't have a clear picture of how application performance > > > > affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > >-- > > >If you ask me if it can be done. The answer is YES, it can always be done. > > >The correct questions however are... What will it cost, and how long will > > >it take? > > > > >------------------------------------------------------------------------------ > > >Rapidly troubleshoot problems before they affect your business. Most IT > > >organizations don't have a clear picture of how application performance > > >affects their revenue. With AppDynamics, you get 100% visibility into your > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > >_______________________________________________ > > >Gambas-user mailing list > > >Gambas-user at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Carl S Nilsson > > 137 Gordons Hill Road > > Lindisfarne, Tas. > > Australia 7015 > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From mike.crean at ...2897... Mon Dec 23 10:30:33 2013 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 23 Dec 2013 01:30:33 -0800 (PST) Subject: [Gambas-user] Serial port control In-Reply-To: <20131223085652.M36283@...951...> References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> <20131223085652.M36283@...951...> Message-ID: <1387791033.69548.YahooMailNeo@...3249...> Carl, will you be using the PC end and gambas code as the master or slave, if master then just use the sport read interupt function. Remember you will have to use chr and asc if using binary data streems. The Gambas3 serial example is very good. If any data is in the input buffer it will trigger the Sport_Read sub and exit leeving the system free to carry on. Just use the PC as master to request data from the slave of slaves. Private Sport As SerialPort Const None As Integer = 0 Private RxLen As Integer Private Rx As String Public Sub Form_Open() ? Sport = New SerialPort As "Sport" ? Sport.PortName = "/dev/ttyACM0"??? 'Setup for Arduino you may have to change to ttyUSB0 ? Sport.Speed = "57600" ? Sport.Parity = 0 ? Sport.DataBits = "8" ? Sport.StopBits = "1" ? Sport.FlowControl = 0 ? Sport.Open() End Public Sub Sport_Read() ? ? Try Read #Sport, Rx, Lof(Sport) ? ??? If Error Then ????? Goto NoRx ??? Endif ??? ??? RxLen = InStr(Rx, Chr(13)) ??? LabelRxlen.Text = RxLen ??? ListBox1.Add(Rx) ? NoRx: ? Rx = "" End Best Regards Mike Very Merry Christmas to all On Monday, 23 December 2013 5:03 PM, nando wrote: My suggestion to reading 124 bytes from a serial stream.... I use this technique mostly because I want to empty the buffer provided by the control as much as possible. I would have one function which is the _read of the serial port. The only thing it does is accumulate bytes in an array. I have another function which will ask for 124 bytes from the accumlating array. If there are not enough, it can block, or return an array of zero long which would mean not enough came in. In this case you could also do a small time delay (ie. WAIT 0.1) just to prevent the CPU from running 100% testing for 124 bytes. Both of these can be a Gambas Class and the second function is the public function. You can use _new to instantiate the serial port control. You don't need to create it at design time. I used techniques like this and it works like a charm. -Nando ---------- Original Message ----------- From: Randall Morgan To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB simply sets the byte count that must accumulate > in the receive buffer before a comm event is triggered. It doesn't do > anything else. In the background VB is still polling the buffer and looking > at the byte count. You can do this in GB but you will have to write it > yourself. You would need to simply use the read event on the comm object to > test the byte count. I believe it triggers at 1 byte. Then use that to > trigger your own custom event when your 124 bytes have arrived. > > You might also be able to talk Benoit into adding an RThreshold property. > Seems like it might be handy.... At the very least 4Hz is very very slow > for most computers. And setting up a 4Hz polling of the port wouldn't be > hard at all. > > On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson wrote: > > > Thanks Randall.? I guess it's time to try it and play around a > > little, which I can't do for a few days.? At the moment I'm trying to > > look ahead and see where problems might lie.? When push comes to > > shove, I don't know how these things really work!? I follow > > recipes!? Don't really want to close the port as the data come in > > continuously as fast as the device can send them and I don't want to > > miss any.? (It's attitude sensor data from an inertial management > > unit in a light aircraft).? Same in principle with another > > "continuous" stream of binary GPS data with packets of 124 bytes > > coming in at a slower rate of, say, 4 Hz.? How "continuous" it is > > would depend on the baud rate at which the port is operating.? The > > RThreashold property of MScomm handles this issue very well. Doesn't > > trigger an event until the specified number of bytes is in the serial > > buffer. > > Carl > > > > At 02:47 PM 23/12/2013, you wrote: > > >It has been a long while since I have used the serial component of GB but > > I > > >have a project starting in which I will need to re-acquaint myself with > > it. > > >The stream can be setup as blocking or non-blocking. The PC uses either > > >polling or interrupt when the port is opened. So trying to manage the > > >serial port at the same level you would in on uC is pointless in most > > >cases. Just set up the stream and read the bytes you need from there. If > > >you're concerned about buffer overflow then you may want to close the port > > >once you have read the bytes you need. > > > > > >Perhaps someone with more recent experience can help you more. > > > > > > > > > > > > > > >On Sun, Dec 22, 2013 at 7:15 PM, Carl Nilsson > > wrote: > > > > > > > Randall: Thanks for responding.? OK, I have looked at the stream > > > > functions:? My question was, basically, how do I specify how many > > > > bytes I want to take in from a given serial port at each > > > > instance?? For example, on one input I expect a continuous stream of > > > > 31 byte packets and I want to take them in for processing 25 (say) > > > > packets at a time, i.e. 775 bytes at a time.? Now I don't much mind > > > > if I get a few bytes more or less because I can check for a remainder > > > > part-packet and put it on the front of the next nominal 775 byte > > > > intake - that's part of the processing software - but I don't want > > > > the CPU tied up with that port or stream between intakes of (about) > > > > 775 bytes.? There are other input streams and data processing to > > > > attend to.? I don't see how to do that with the stream functions - > > > > but maybe I'm not understanding how the stream works?? I can see that > > > > I could (I think!) read a given number of bytes from a stream, but > > > > does that relieve the CPU from being tied up with that stream until I > > > > read another 775 bytes?? Is a stream of indefinite length or does it > > > > have some buffer limit? > > > > Carl > > > > > > > > At 01:09 PM 23/12/2013, you wrote: > > > > >As I recall gb serial is steam based and so you would handle buffers > > via > > > > >the stream not the serial object. > > > > > > > > > > > > > > >On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson > > > > wrote: > > > > > > > > > > > G'day all: > > > > > > Now with Gambas 3 installed, I want to get on with porting my > > running > > > > > > software from VB6/Windows.? It requires processing multiple streams > > > > > > of binary serial data from attached devices.? The serial control in > > > > > > gambas 3 does not seem up to the job, in so far as the available > > > > > > properties lack the elements I use under VB MScomm.? ...(snip) > > > > > > > > > > > > > > Carl > > > > > > > > > > > > Carl S Nilsson > > > > > > 137 Gordons Hill Road > > > > > > Lindisfarne, Tas. > > > > > > Australia 7015 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Rapidly troubleshoot problems before they affect your business. > > Most IT > > > > > > organizations don't have a clear picture of how application > > performance > > > > > > affects their revenue. With AppDynamics, you get 100% visibility > > into > > > > your > > > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > > > AppDynamics > > > > > > Pro! > > > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > >If you ask me if it can be done. The answer is YES, it can always be > > done. > > > > >The correct questions however are... What will it cost, and how long > > will > > > > >it take? > > > > > > > > >----------------------------------------------------------------- > > > ------------- > > > > >Rapidly troubleshoot problems before they affect your business. Most > > IT > > > > >organizations don't have a clear picture of how application > > performance > > > > >affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > >_______________________________________________ > > > > >Gambas-user mailing list > > > > >Gambas-user at lists.sourceforge.net > > > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Carl S Nilsson > > > > 137 Gordons Hill Road > > > > Lindisfarne, Tas. > > > > Australia 7015 > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your business. Most IT > > > > organizations don't have a clear picture of how application performance > > > > affects their revenue. With AppDynamics, you get 100% visibility into > > your > > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > > AppDynamics > > > > Pro! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > >-- > > >If you ask me if it can be done. The answer is YES, it can always be done. > > >The correct questions however are... What will it cost, and how long will > > >it take? > > > > >------------------------------------------------------------------------------ > > >Rapidly troubleshoot problems before they affect your business. Most IT > > >organizations don't have a clear picture of how application performance > > >affects their revenue. With AppDynamics, you get 100% visibility into your > > >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > >_______________________________________________ > > >Gambas-user mailing list > > >Gambas-user at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Carl S Nilsson > > 137 Gordons Hill Road > > Lindisfarne, Tas. > > Australia 7015 > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your business. Most IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From iss_boss at ...770... Mon Dec 23 15:52:39 2013 From: iss_boss at ...770... (ISS Boss) Date: Mon, 23 Dec 2013 09:52:39 -0500 Subject: [Gambas-user] Application quit running In-Reply-To: <52B79594.4010304@...1...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> <52B7385B.9010807@...2007...> <52B7527B.1030101@...770...> <52B75498.4060200@...770...> <52B790B1.7000308@...770...> <52B79594.4010304@...1...> Message-ID: <52B84E37.5020206@...770...> Hi, Beno??t: Here is the project. It's a simple one to help teach me something about Gambas. There is only one form, and the valbueboxes I tried to center were the four (days,hours,minutes,seconds) boxes on the bottom (along with the three ":" labels). Bill Beno??t Minisini wrote, On 12/22/2013 20:44: Le 23/12/2013 02:24, ISS Boss a ??crit : More information: This unresponsive behavior all takes place in the IDE under Debug->Run. Thinking back to just prior to this happening, I lassoed four ValueBoxes which were off-center and used the context menu to try and center then Horizontally on the form. It was a disaster! All four boxes were slapped willy-nilly across the form in no order whatsoever. From that point onward s whenever I tried to run the app in the debugger it was totally unresponsive . Am I going to have to rebuild this entire project? Bill ISS Boss wrote, On 12/22/2013 16:07: Can you send me your full project, and tell me on which form you moved the ValueBoxes? -------------- next part -------------- A non-text attachment was scrubbed... Name: BillsTimer.tar.gz Type: application/gzip Size: 29102 bytes Desc: not available URL: From gambas.fr at ...626... Mon Dec 23 17:39:32 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 Dec 2013 17:39:32 +0100 Subject: [Gambas-user] App launch icons on Ubuntu In-Reply-To: <52ADF483.9070500@...27...> References: <52ADE46C.60702@...626...> <52ADF483.9070500@...27...> Message-ID: This is a little usefull class. 2013/12/15 Johny Provoost : > > op 15-12-13 18:18, John Rose schreef: >> Using Gambas 3.5.1, I'm not sure how to create an launcher icon for a >> Gambas app. I thought that I had to add the icon's file to the Data >> entry using the New>Image menu entry. After that I used to do something >> else, which I've now forgotten. I also had the feeling that the icon's >> filename must not have spaces or upper case letters in it, but I could >> well be wrong in that. >> PS I can put an icon on a form (e.g. the FMain) using the form's icon >> property but I think that only puts the icon in the form's title bar. >> > > Do you mean a launcher in Ubuntu unity? For that you can use 'Create > Launcher' witch you can find in the software center. > I have written a small thing for this myself, but it's completely in > dutch. I can send it if you want. > > -- > > > > *Vriendelijke Groeten* > > *Johny Provoost* > > *mailto: johny.provoost at ...27... * > > *mailto: johny.provoost at ...626... * > > *Website:* *http://www.johnyprovoost.net* > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: DesktopApp-0.0.1.tar.gz Type: application/x-gzip Size: 10857 bytes Desc: not available URL: From johny.provoost at ...27... Mon Dec 23 18:57:43 2013 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 23 Dec 2013 18:57:43 +0100 Subject: [Gambas-user] App launch icons on Ubuntu In-Reply-To: References: <52ADE46C.60702@...626...> <52ADF483.9070500@...27...> Message-ID: <52B87997.9030909@...27...> Thank you, looks nice op 23-12-13 17:39, Fabien Bodard schreef: This is a little usefull class. 2013/12/15 Johny Provoost [1]: op 15-12-13 18:18, John Rose schreef: Using Gambas 3.5.1, I'm not sure how to create an launcher icon for a Gambas app. I thought that I had to add the icon's file to the Data entry using the New>Image menu entry. After that I used to do something else, which I've now forgotten. I also had the feeling that the icon's filename must not have spaces or upper case letters in it, but I could well be wrong in that. PS I can put an icon on a form (e.g. the FMain) using the form's icon property but I think that only puts the icon in the form's title bar. Do you mean a launcher in Ubuntu unity? For that you can use 'Create Launcher' witch you can find in the software center. I have written a small thing for this myself, but it's completely in dutch. I can send it if you want. -- *Vriendelijke Groeten* *Johny Provoost* *mailto: [2]johny.provoost at ...27... [3]* *mailto: [4]johny.provoost at ...626... [5]* *Website:* *[6]http://www.johnyprovoost.net* [7] ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [8]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [9]Gambas-user at lists.sourceforge.net [10]https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [11]http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [12]Gambas-user at lists.sourceforge.net [13]https://lists.sourceforge.net/lists/listinfo/gambas-user -- Vriendelijke Groeten Johny Provoost mailto: [14]johny.provoost at ...27... mailto: [15]johny.provoost at ...626... Website: [16]http://www.johnyprovoost.net References 1. mailto:johny.provoost at ...27... 2. mailto:johny.provoost at ...27... 3. mailto:johny.provoost at ...27... 4. mailto:johny.provoost at ...626... 5. mailto:johny.provoost at ...626... 6. http://www.johnyprovoost.net*/ 7. http://www.johnyprovoost.net/ 8. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 9. mailto:Gambas-user at lists.sourceforge.net 10. https://lists.sourceforge.net/lists/listinfo/gambas-user 11. http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk 12. mailto:Gambas-user at lists.sourceforge.net 13. https://lists.sourceforge.net/lists/listinfo/gambas-user 14. mailto:johny.provoost at ...27... 15. mailto:johny.provoost at ...626... 16. http://www.johnyprovoost.net/ From nilsson at ...1979... Mon Dec 23 19:38:55 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Tue, 24 Dec 2013 05:38:55 +1100 Subject: [Gambas-user] Serial port control In-Reply-To: <20131223085652.M36283@...951...> References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> <20131223085652.M36283@...951...> Message-ID: <006b4c$c0p5ku@...3239...> G'day Guys (Nando, Randall and Mike): Thanks for your helpful replies. It's 5 am here and I woke up an hour ago with this matter running through my head, so your replies are welcome! All good advice. I realized that, first of all, I needed to get a handle on using the stream functions, which are quite new to me. Secondly, as usual, there are many ways to skin a cat. You are right, I need not be dependent on an RThreshold property. I have been using this for years most successfully with MScomm in VB6. It does exert efficient control, but sometimes my incoming packets vary in byte count.. So, early in the piece, I wrote code that would look for any remainder bytes or shortfall on the end of the designated input stream and put them onto the start of the next byte block to get back into synch. The Windows kernel has a very efficient function called "MoveMemory" that can be called from VB6. (I presume Linux has something similar). It's very much faster than shifting bytes in Do loops. Anyway, not being dependent on an totally accurate byte count prior to triggering an event suggested an alternate approach: My principal data device is a decade-old Microstrain Inertial Management Unit (IMU).that sends remorselessly at around 2356 bytes (sometimes plus a packet or two) per sec. At the moment I'm doing all my processing on an old Advantech 9576F single board computer running Win 2K. With about 8 serial ports in action and heaps of other processing to do, I wanted to ease things with some preprocessing of some data streams on one of these little new ARM boards like the Raspberry Pi or Beaglebone Black - the latter with at least 4 UARTS and running at 1 GHz seems very attractive. They can run fully embedded under Linux with gambas for initial data processing. I have an RPi now with gambas3 and wiring Pi installed to experiment with. Sometimes the IMU traffic is duplex when I change parameters in flight and additional data packets come back in addition to the normal data flow. So I adjust the RThreshold value dynamically, but that's not vital. All this adds up to the fact that another approach might be to trigger processing events simply with a timer - read the full stream each time and get the byte count approximately right. With a "MoveMemory" function I can easily handle some unevenness in byte count. As I said, I'm looking for the least drain on CPU load. I don't really need the system tied up waiting and testing for an exact count. Anyway, I thank you for all your comments. I now know that what I need can be done and the next step is for me to experiment. Yesterday I was having some doubts about choosing gambas. Nice to talk with you guys. I'll get back to you when I have something more useful to say or ask. Merry Christmas, Carl At 08:03 PM 23/12/2013, you wrote: >My suggestion to reading 124 bytes from a serial stream.... > >I use this technique mostly because I want to empty the buffer >provided by the control >as much as possible. > >I would have one function which is the _read of the serial port. >The only thing it does is accumulate bytes in an array. > >I have another function which will ask for 124 bytes from the >accumlating array. >If there are not enough, it can block, or return an array of zero long >which would mean not enough came in. >In this case you could also do a small time delay (ie. WAIT 0.1) >just to prevent the CPU from running 100% testing for 124 bytes. > > >Both of these can be a Gambas Class and the second function is the >public function. >You can use _new to instantiate the serial port control. >You don't need to create it at design time. > >I used techniques like this and it works like a charm. >-Nando > > >---------- Original Message ----------- >From: Randall Morgan >To: mailing list for gambas users >Sent: Sun, 22 Dec 2013 23:35:33 -0800 >Subject: Re: [Gambas-user] Serial port control > > > I think the RTheshold of VB simply sets the byte count that must accumulate > > in the receive buffer before a comm event is triggered. It doesn't do > > anything else. In the background VB is still polling the buffer and looking > > at the byte count. You can do this in GB but you will have to write it > > yourself. You would need to simply use the read event on the comm object to > > test the byte count. I believe it triggers at 1 byte. Then use that to > > trigger your own custom event when your 124 bytes have arrived. > > > > You might also be able to talk Benoit into adding an RThreshold property. > > Seems like it might be handy.... At the very least 4Hz is very very slow > > for most computers. And setting up a 4Hz polling of the port wouldn't be > > hard at all. > > > > On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson wrote: > > > > > Thanks Randall. I guess it's time to try it and play around a > > > little, which I can't do for a few days. At the moment I'm trying to > > > look ahead and see where problems might lie. (snip) Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From iss_boss at ...770... Mon Dec 23 21:34:24 2013 From: iss_boss at ...770... (ISS Boss) Date: Mon, 23 Dec 2013 15:34:24 -0500 Subject: [Gambas-user] Application quit running In-Reply-To: <52B79594.4010304@...1...> References: <52B6B344.7020003@...2007...> <52B72F4B.8030307@...3050...> <52B7385B.9010807@...2007...> <52B7527B.1030101@...770...> <52B75498.4060200@...770...> <52B790B1.7000308@...770...> <52B79594.4010304@...1...> Message-ID: <52B89E50.3010402@...770...> Even more information, Benoit: I discovered what happened. When the attempt to arrange all those valueboxes blew up, it also made the form itself go "Enabled = False". I didn't catch that until just about twenty minutes ago. Very embarrassing. I corrected that and the project is back running again. There IS a problem though with the right-click context menu of "Arrange...". If there is more than one item selected (I.E. 'lassoed') then only ONE item is centered and the rest are arranged all over the place. Since this negates any attempt to center a group of items, it should be looked into as a possible bug. I can create a test project that will demonstrate this anomaly fairly easily. Bill From nicholso at ...2533... Tue Dec 24 01:01:45 2013 From: nicholso at ...2533... (MinnesotaJon) Date: Mon, 23 Dec 2013 16:01:45 -0800 (PST) Subject: [Gambas-user] Possible printing bugs? (Printer.Paper; and printing multiple 1st pages) Message-ID: <1387843305240-44864.post@...3046...> Greetings -- (I have attached a small sample Gambas3 project.) I have encountered 2 possible bugs -- OR, I just need somebody to correct me. 1. (less serious) -- When I set the property "Printer.Paper = Printer.Letter", I get an error message: " 'Printer.Paper' is not Static " This on line 51 of FMain.class, in the attached project. Please review my usage -- probably I am using it incorrectly. 2. (more serious) -- When I try to print a document that exceeds one page, I only get multiple copies of the first page. I BELIEVE that I am using the Printer and Paint syntax correctly. My attached project includes a document formatted in agreement with the "rich text " subset of HTML used by Gambas. (The formatting is crude, only to provide a printable sample document.) This document SHOULD print over a span of 9 pages, but instead I only get 9 of the same pages (1st page, 9X). >From my work with this program, it appears that either the "Paint" class or "Printer" class is behaving like Printer.Count is the same as Printer.NumCopies. Please let me know if this is my error, or if it is a bug. I have set the default printer as printing to a .PDF file. Regards, Jon Versions: Xubuntu 13.10/Gambas 3.5 PrintTestMulti-page.tar.gz -- View this message in context: http://gambas.8142.n7.nabble.com/Possible-printing-bugs-Printer-Paper-and-printing-multiple-1st-pages-tp44864.html Sent from the gambas-user mailing list archive at Nabble.com. From mike.crean at ...2897... Tue Dec 24 01:22:00 2013 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 23 Dec 2013 16:22:00 -0800 (PST) Subject: [Gambas-user] Serial port control In-Reply-To: <006b4c$c0p5ku@...3239...> References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> <20131223085652.M36283@...951...> <006b4c$c0p5ku@...3239...> Message-ID: <1387844520.50589.YahooMailNeo@...3099...> Hi Carl, I have a BeagleBone Black up and running with wheezy, LXDE desktop and Gambas 3.5.9 I am able to use all most all of the available GPIO and read the AD's using Gambas, I have not had any uarts up. I see no problem in getting the the uarts to run using standard USB to serial converters (Jaycar) work well with the Rpi. I also have Rpi series B running with the same OS & desktop as the BBB and using Gambas 3. This is connected to an Arduino Uno via a usb uart on the Rpi used to control 6 signals and 7 point motors on a miniature railway all running at 56000 baud. Using an input from the terminal the Gambas software sends an ASCII message via the uart to the Uno and it will execute the request (change points or signals) and send back an ASCII message the request was executed. This is not a very high speed system as changes may be seconds or minutes. I have also used Gambas to communicate with PLC's using Modbus RTU and crc16 at 9600 baud with high volume short interval requests over RS485 networks and up to 20 nodes. The secret was to use a PC, PLC or RTU as the master and use a timer to set the pole rate from the master. I have also as you used VB6 to implement an extensive SCADA system for small power house control. This was a very high volume data through put and I did not find the need to use any special data handling to free up the PC. The PC was off doing a lot of other stuff while the SCADA was running. I have implemented a small test SCADA module in Gambas and see no problems with speed compared to commercial SCADA packages even when using the DNP3 protocol. The through put with VB6 or Gambas seemed to be about double compared to commercial solutions. I would say I have had best results using an interrupt driven serial routine to empty the uart buffers and handle the data. VB6 using OnComm() function and Gambas using Sport_Read() function. Variable buffer sizes can be dealt with by checking the length of the input string using CR as the end of line indicator (chr13) as used in most protocols (modbus ASCII & RTU). Try something like, Try Print #Sport, Tx; Chr$(13) in a timer function or from terminal input to send data through the uart. If needed I have the Gambas modbus test program and a Koyo Click PLC (under $100 au PLC software is free) to test and see if the code is still OK, the modbus protocol uses binary data over the comms link. Hope this is of some help. Best Regards Mike Merry Christmas to all. ? On Tuesday, 24 December 2013 2:38 AM, Carl Nilsson wrote: G'day Guys (Nando, Randall and Mike): Thanks for your helpful replies.? It's 5 am here and I woke up an hour ago with this matter running through my head, so your replies are welcome!? All good advice.? I realized that, first of all, I needed to get a handle on using the stream functions, which are quite new to me.? Secondly, as usual, there are many ways to skin a cat.? You are right, I need not be dependent on an RThreshold property.? I have been using this for years most successfully with MScomm in VB6.? It does exert efficient control, but sometimes my incoming packets vary in byte count..? So, early in the piece, I wrote code that would look for any remainder bytes or shortfall on the end of the designated input stream and put them onto the start of the next byte block to get back into synch.? The Windows kernel has a very efficient function called "MoveMemory" that can be called from VB6.? (I presume Linux has something similar).? It's very much faster than shifting bytes in Do loops. Anyway, not being dependent on an totally accurate byte count prior to triggering an event suggested an alternate approach:? My principal data device is a decade-old? Microstrain Inertial Management Unit (IMU).that sends remorselessly at around 2356 bytes (sometimes plus a packet or two) per sec.? At the moment I'm doing all my processing on an old Advantech 9576F single board computer running Win 2K.? With about 8 serial ports in action and heaps of other processing to do, I wanted to ease things with some preprocessing of some data streams on one of these little new ARM boards like the Raspberry Pi or Beaglebone Black - the latter with at least 4 UARTS and running at 1 GHz seems very attractive. They can run fully embedded under Linux with gambas for initial data processing.? I have an RPi now with gambas3 and wiring Pi installed to experiment with. Sometimes the IMU traffic is duplex when I change parameters in flight and additional data packets come back in addition to the normal data flow.? So I adjust the RThreshold value dynamically, but that's not vital.? All this adds up to the fact that another approach might be to trigger processing events simply with a timer - read the full stream each time and get the byte count approximately right.? With a "MoveMemory" function I can easily handle some unevenness in byte count.? As I said, I'm looking for the least drain on CPU load.? I don't really need the system tied up waiting and testing for an exact count. Anyway, I thank you for all your comments.? I now know that what I need can be done and the next step is for me to experiment.? Yesterday I was having some doubts about choosing gambas.? Nice to talk with you guys.? I'll get back to you when I have something more useful to say or ask. Merry Christmas, Carl At 08:03 PM 23/12/2013, you wrote: >My suggestion to reading 124 bytes from a serial stream.... > >I use this technique mostly because I want to empty the buffer >provided by the control >as much as possible. > >I would have one function which is the _read of the serial port. >The only thing it does is accumulate bytes in an array. > >I have another function which will ask for 124 bytes from the >accumlating array. >If there are not enough, it can block, or return an array of zero long >which would mean not enough came in. >In this case you could also do a small time delay (ie. WAIT 0.1) >just to prevent the CPU from running 100% testing for 124 bytes. > > >Both of these can be a Gambas Class and the second function is the >public function. >You can use _new to instantiate the serial port control. >You don't need to create it at design time. > >I used techniques like this and it works like a charm. >-Nando > > >---------- Original Message ----------- >From: Randall Morgan >To: mailing list for gambas users >Sent: Sun, 22 Dec 2013 23:35:33 -0800 >Subject: Re: [Gambas-user] Serial port control > > > I think the RTheshold of VB simply sets the byte count that must accumulate > > in the receive buffer before a comm event is triggered. It doesn't do > > anything else. In the background VB is still polling the buffer and looking > > at the byte count. You can do this in GB but you will have to write it > > yourself. You would need to simply use the read event on the comm object to > > test the byte count. I believe it triggers at 1 byte. Then use that to > > trigger your own custom event when your 124 bytes have arrived. > > > > You might also be able to talk Benoit into adding an RThreshold property. > > Seems like it might be handy.... At the very least 4Hz is very very slow > > for most computers. And setting up a 4Hz polling of the port wouldn't be > > hard at all. > > > > On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson wrote: > > > > > Thanks Randall.? I guess it's time to try it and play around a > > > little, which I can't do for a few days.? At the moment I'm trying to > > > look ahead and see where problems might lie. (snip) Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nilsson at ...1979... Tue Dec 24 05:25:42 2013 From: nilsson at ...1979... (Carl Nilsson) Date: Tue, 24 Dec 2013 15:25:42 +1100 Subject: [Gambas-user] Serial port control In-Reply-To: <1387844520.50589.YahooMailNeo@...3099... > References: <006b4c$c0o8qq@...3239...> <006b4c$c0ogq4@...3239...> <64e542$c08ot1@...3015...> <20131223085652.M36283@...951...> <006b4c$c0p5ku@...3239...> <1387844520.50589.YahooMailNeo@...3099...> Message-ID: <006b4c$c0pi52@...3239...> G'day Mike: hey, that's great. I have an old fashioned model railway - H0 scale - which baseboard plus track stands lonely in my hall. Last used in the 1980's. My young son liked to see things crash a little too much for my wanting to trust my precious stock, so I bought him a Scalectrix set instead. Once I got myself an ultralight aircraft in 1997, I have never found time to get back to the railway. Bigger toys for older boys! I built this Advantech-based computer running Win 2K for the a/c in about 2006 and have been programming ever since. I started using an iPAQ PDA h2115 which I still run as a backup control and display on the dash. VB6 and Appforge MobileVB came my way at a good price and have done the job well enough. I have an 8 inch touch screen on the dash for the Win 2K display, which can display a whole range of pages associated with flight planning, navigation and attitude (an electronic artificial horizon). I use OziExplorer to run a moving map display in parallel. (My old eyes can't see very small maps and labels on the PDA too well). The touch screen cost me $250 - now I have an 8" Android tablet (cost $160) with which I plan to replace the screen one day. Now, the tablet has a 1.5 Ghz dual processor and that can also handle a lot of the computing I need done. Hence the long term plan of replacing the Advantech with something like a Beaglebone, in which the latter can handle all the serial inputs and pre-processing and should make a better embedded system. (However, as I get more acquainted with Linux, I get increased respect for how easily I could get stuff done in Windows!). I also want to implement a wing-leveller - a one-axis auto pilot. The electronic servo work is largely done - I need to build the mechanical stuff in the aircraft, which has to be done very thoughtfully! On my RaPi series B I used a download of 2012-07-15 wheezy-gambas3-zip from http://dl.dropbox.com/u/97096067/2012-07-17-wheezy-gambas3.zip which gave me a gambas 3.2.1. I had the well -documented difficulties with gambas 3.5 when I installed it on the wheezy which I installed from the RPi site. Recently I discovered the FTDI mini-module which will give me four UARTS off one USB port, which will be all I need extra on the RPi. (I also have the SPI and I2C ports available). I'll start by augmenting some of the serial data processing on the Pi which I presently do on the Advantech. When I try to increase the whole cycle update and display rate beyond about 3 Hz on the present system, I seem to get into trouble. Not sure what it is, but it just doesn't seem to have enough time to do the required processing, display update and attending to all the serial inputs. Palming off much of the late-stage processing and display to a tablet seems a good idea for the future, although I'm stumped at the moment at getting my Pipo S2 tablet to accept a USB to serial converter. I am confident I will eventually be able to do that, though. At least I have got the tablet rooted and able to backup the Android ROM, as of yesterday! That's enough for now - I have to pack. We have quite a lot of interests in common, it seems, so good to have met you and I hope to keep in touch! regards Carl 11:22 AM 24/12/2013, you wrote: > >Hi Carl, > > I >have a BeagleBone Black up and running with wheezy, LXDE desktop and >Gambas 3.5.9 >I am able to use all most all of the available GPIO >and read the AD's using Gambas, I have not had any uarts up. I see no >problem in getting the the uarts to run using standard USB to serial >converters (Jaycar) work well with the Rpi. > >I also have Rpi >series B running with the same OS & desktop as the BBB and using >Gambas 3. This is connected to an >Arduino Uno via a usb uart on >the Rpi used to control 6 signals and 7 point motors on a miniature >railway all running at 56000 >baud. Using an input from the >terminal the Gambas software sends an ASCII message via the uart to >the Uno and it >will execute the request (change points or >signals) and send back an ASCII message the request was executed. >This is not a very >high speed system as changes may be seconds or >minutes. > >I have also used Gambas to communicate with PLC's >using Modbus RTU and crc16 at 9600 baud with high volume short >interval requests over >RS485 networks and up to 20 nodes. The >secret was to use a PC, PLC or RTU as the master and use a timer to >set the pole rate from the master. > >I have also as you used VB6 >to implement an extensive SCADA system for small power house control. >This was a very high volume data through put and I did not find the >need to use any special data handling to free up the PC. The PC was >off doing a lot of other stuff while the >SCADA was running. I have >implemented a small test SCADA module in Gambas and see no problems >with speed compared to commercial >SCADA packages even when using >the DNP3 protocol. The through put with VB6 or Gambas seemed to be >about double compared to commercial solutions. > I would say I have had best results using an interrupt driven serial >routine to empty the uart buffers and handle the data. VB6 using >OnComm() function and Gambas using Sport_Read() function. Variable >buffer sizes can be dealt with by checking the length of the input >string using CR as the end of line indicator (chr13) as used in most >protocols (modbus ASCII & RTU). > > Try something like, Try Print #Sport, Tx; Chr$(13) in a timer >function or from terminal input to send data through the uart. > >If needed I have the Gambas modbus test >program and a Koyo Click PLC (under $100 au PLC software is free) to >test and see if the >code is still OK, the modbus protocol uses binary data over the comms >link. > >Hope this is of some help. > >Best >Regards >Mike >Merry Christmas to all. > > > > > > > >On Tuesday, 24 December 2013 2:38 AM, Carl Nilsson > wrote: > >G'day Guys (Nando, Randall and Mike): >Thanks for your helpful replies. It's 5 am here and I woke up an >hour ago with this matter running through my head, so your replies >are welcome! All good advice. I realized that, first of all, I >needed to get a handle on using the stream functions, which are quite >new to me. Secondly, as usual, there are many ways to skin a >cat. You are right, I need not be dependent on an RThreshold >property. I have been using this for years most successfully with >MScomm in VB6. It does exert efficient control, but sometimes my >incoming packets vary in byte count.. So, early in the piece, I >wrote code that would look for any remainder bytes or shortfall on >the end of the designated input stream and put them onto the start of >the next byte block to get back into synch. The Windows kernel has a >very efficient function called "MoveMemory" that can be called from >VB6. (I presume Linux has something similar). It's very much faster >than shifting bytes in Do loops. > >Anyway, not being dependent on an totally accurate byte count prior >to triggering an event suggested an alternate approach: My principal >data device is a decade-old Microstrain Inertial Management Unit >(IMU).that sends remorselessly at around 2356 bytes (sometimes plus a >packet or two) per sec. At the moment I'm doing all my processing on >an old Advantech 9576F single board computer running Win 2K. With >about 8 serial ports in action and heaps of other processing to do, I >wanted to ease things with some preprocessing of some data streams on >one of these little new ARM boards like the Raspberry Pi or >Beaglebone Black - the latter with at least 4 UARTS and running at 1 >GHz seems very attractive. They can run fully embedded under Linux >with gambas for initial data processing. I have an RPi now with >gambas3 and wiring Pi installed to experiment with. Sometimes the IMU >traffic is duplex when I change parameters in flight and additional >data packets come back in addition to the normal data flow. So I >adjust the RThreshold value dynamically, but that's not vital. All >this adds up to the fact that another approach might be to trigger >processing events simply with a timer - read the full stream each >time and get the byte count approximately right. With a "MoveMemory" >function I can easily handle some unevenness in byte count. As I >said, I'm looking for the least drain on CPU load. I don't really >need the system tied up waiting and testing for an exact count. > >Anyway, I thank you for all your comments. I now know that what I >need can be done and the next step is for me to >experiment. Yesterday I was having some doubts about choosing >gambas. Nice to talk with you guys. I'll get back to you when I >have something more useful to say or ask. >Merry Christmas, Carl > > >At 08:03 PM 23/12/2013, you wrote: > >My suggestion to reading 124 bytes from a serial stream.... > > > >I use this technique mostly because I want to empty the buffer > >provided by the control > >as much as possible. > > > >I would have one function which is the _read of the serial port. > >The only thing it does is accumulate bytes in an array. > > > >I have another function which will ask for 124 bytes from the > >accumlating array. > >If there are not enough, it can block, or return an array of zero long > >which would mean not enough came in. > >In this case you could also do a small time delay (ie. WAIT 0.1) > >just to prevent the CPU from running 100% testing for 124 bytes. > > > > > >Both of these can be a Gambas Class and the second function is the > >public function. > >You can use _new to instantiate the serial port control. > >You don't need to create it at design time. > > > >I used techniques like this and it works like a charm. > >-Nando > > > > > >---------- Original Message ----------- > >From: Randall Morgan > >To: mailing list for gambas users > >Sent: Sun, 22 Dec 2013 23:35:33 -0800 > >Subject: Re: [Gambas-user] Serial port control > > > > > I think the RTheshold of VB simply sets the byte count that > must accumulate > > > in the receive buffer before a comm event is triggered. It doesn't do > > > anything else. In the background VB is still polling the buffer > and looking > > > at the byte count. You can do this in GB but you will have to write it > > > yourself. You would need to simply use the read event on the > comm object to > > > test the byte count. I believe it triggers at 1 byte. Then use that to > > > trigger your own custom event when your 124 bytes have arrived. > > > > > > You might also be able to talk Benoit into adding an RThreshold property. > > > Seems like it might be handy.... At the very least 4Hz is very very slow > > > for most computers. And setting up a 4Hz polling of the port wouldn't be > > > hard at all. > > > > > > On Sun, Dec 22, 2013 at 8:10 PM, Carl Nilsson > wrote: > > > > > > > Thanks Randall. I guess it's time to try it and play around a > > > > little, which I can't do for a few days. At the moment I'm trying to > > > > look ahead and see where problems might lie. > >(snip) > > >Carl S Nilsson >137 Gordons Hill Road >Lindisfarne, Tas. >Australia 7015 >------------------------------------------------------------------------------ >Rapidly troubleshoot problems before they affect your business. Most IT >organizations don't have a clear picture of how application performance >affects their revenue. With AppDynamics, you get 100% visibility into your >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user >------------------------------------------------------------------------------ >Rapidly troubleshoot problems before they affect your business. Most IT >organizations don't have a clear picture of how application performance >affects their revenue. With AppDynamics, you get 100% visibility into your >Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user Carl S Nilsson 137 Gordons Hill Road Lindisfarne, Tas. Australia 7015 From gambas at ...2524... Tue Dec 24 10:08:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 24 Dec 2013 09:08:06 +0000 Subject: [Gambas-user] Issue 484 in gambas: IDE and Runtime show different stock icons Message-ID: <0-6813199134517018827-6655334807421817230-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 484 by adamn... at ...626...: IDE and Runtime show different stock icons http://code.google.com/p/gambas/issues/detail?id=484 1) Describe the problem. Most importantly, this can wait till next year! I am at one of our developer client houses and we were looking at a "something". Running the project in the IDE we suddenly! saw a difference between the way some stock icons for a toolbutton are shown in the IDE form editor and the way they appear when the project is run (through the IDE). The attached pic shows the difference for two toolbuttons. The "package" icon on the left hand one is definitely different from that seen in the IDE. The "warning" icon is a different size to the one seen in the IDE. Strange! 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r6013 Operating system: Linux Distribution: pclos Architecture: x86 / x86_64 (happens on both) GUI component:QT4 Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. No time, Santa is on the way! 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. N/A 6) By doing that carefully, you have done 50% of the bug fix job! Have a great holiday Benoit! Forget this till next year, I certainly will. Attachments: stockdiffs.png 42.9 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 Dec 24 14:02:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 24 Dec 2013 13:02:27 +0000 Subject: [Gambas-user] Issue 484 in gambas: IDE and Runtime show different stock icons In-Reply-To: <0-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-6655334807421817230-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 484 by benoit.m... at ...626...: IDE and Runtime show different stock icons http://code.google.com/p/gambas/issues/detail?id=484 The IDE uses the icon theme defined in the option dialog, which is "Gambas" by default. But by default the project uses the icon theme defined by the current toolkit, which may not be the same. Can you print Application.Theme at application startup to check if both really use the same icon 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... Tue Dec 24 14:03:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 24 Dec 2013 13:03:27 +0000 Subject: [Gambas-user] Issue 483 in gambas: "Invalid date" in Time(0, 0, 600) In-Reply-To: <0-6813199134517018827-2723987443557815305-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2723987443557815305-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2723987443557815305-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #1 on issue 483 by benoit.m... at ...626...: "Invalid date" in Time(0, 0, 600) http://code.google.com/p/gambas/issues/detail?id=483 It is an invalid date: the number of seconds must be between 0 and 59. -- 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 Dec 24 17:05:09 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 24 Dec 2013 16:05:09 +0000 Subject: [Gambas-user] Issue 485 in gambas: 'Like' square brackets problem Message-ID: <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 485 by krisztiankende: 'Like' square brackets problem http://code.google.com/p/gambas/issues/detail?id=485 I think, this behavior is quite strange: Print "GambasIDE" Like "{alma,Gambas,szilva,GambasIDE,otto}" Output: False Print "Gambas" Like "{alma,Gambas,szilva,GambasIDE,otto}" Output: True Print "GambasIDE" Like "{alma,GambasIDE,szilva,Gambas,otto}" Output: True Print "Gambas" Like "{alma,GambasIDE,szilva,Gambas,otto}" Output: False If one string is included in the other, then result depend on the order. Gambas version: 3.5.1 Distribution: Ubuntu 13.10 -- 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 Dec 24 17:51:40 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 24 Dec 2013 16:51:40 +0000 Subject: [Gambas-user] Issue 485 in gambas: 'Like' square brackets problem In-Reply-To: <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 485 by benoit.m... at ...626...: 'Like' square brackets problem http://code.google.com/p/gambas/issues/detail?id=485 (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 nicholso at ...2533... Thu Dec 26 06:23:39 2013 From: nicholso at ...2533... (MinnesotaJon) Date: Wed, 25 Dec 2013 21:23:39 -0800 (PST) Subject: [Gambas-user] Issue 485 in gambas: 'Like' square brackets problem In-Reply-To: <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> Message-ID: <1388035419246-44872.post@...3046...> It appears that the problem happens if the first letter of the string being matched appears anywhere in the "Pattern" before the actual match. Your original examples were: Print "GambasIDE" Like "{alma,Gambas,szilva,GambasIDE,otto}" Output: False Print "GambasIDE" Like "{alma,GambasIDE,szilva,Gambas,otto}" Output: True *Actually, any "g" in the list, before "GambasIDE", will interfere with the match:* Print "GambasIDE" Like "{alma,g,szilva,GambasIDE,otto}" Output: False but: Print "GambasIDE" Like "{alma,szilva,otto,GambasIDE,g}" Output: True It is only the *first letter* in the "Pattern" that is a problem -- the other letters do not have any bad effect. If we delete the "g" from the word "Gambas", the result is correct: Print "GambasIDE" Like "{alma,ambas, ambasIDE,szilva,GambasIDE,otto}" Output: True *Note that if you use the "*" symbol, it eliminates the problem:* Print "GambasIDE" Like "*{alma,Gambas,szilva,GambasIDE,otto}*" Output: True *....* eliminates the sensitivity of the patterns to their location in the list. Regards, Jon -- View this message in context: http://gambas.8142.n7.nabble.com/Issue-485-in-gambas-Like-square-brackets-problem-tp44870p44872.html Sent from the gambas-user mailing list archive at Nabble.com. From nemh at ...2007... Thu Dec 26 10:54:16 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Thu, 26 Dec 2013 10:54:16 +0100 Subject: [Gambas-user] Issue 485 in gambas: 'Like' square brackets problem In-Reply-To: <1388035419246-44872.post@...3046...> References: <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> <1388035419246-44872.post@...3046...> Message-ID: <52BBFCC8.2030705@...2007...> 2013-12-26 06:23 keltez?ssel, MinnesotaJon ?rta: > It appears that the problem happens if the first letter of the string being > matched appears anywhere in the "Pattern" before the actual match. Your > original examples were: > > Print "GambasIDE" Like "{alma,Gambas,szilva,GambasIDE,otto}" > Output: False > > Print "GambasIDE" Like "{alma,GambasIDE,szilva,Gambas,otto}" > Output: True > > *Actually, any "g" in the list, before "GambasIDE", will interfere with the > match:* Print "GambasIDE" Like "{alma,Gambas,szilva,GambasIDE,otto}" Output: False But this: Print "GambasIDE" Like "{alma,GambasA,szilva,GambasIDE,otto}" Output: True So if the full-length word isn't included in the other, this problem doesn't occur. But the small and capital letters really don't matter. > Print "GambasIDE" Like "{alma,g,szilva,GambasIDE,otto}" > Output: False Yes, "False" with the words: "g", "ga", "gam", "gamb", "gamba" and "gambas". > but: > > Print "GambasIDE" Like "{alma,szilva,otto,GambasIDE,g}" > Output: True > > It is only the *first letter* in the "Pattern" that is a problem -- the > other letters do not have any bad effect. If we delete the "g" from the > word "Gambas", the result is correct: > > Print "GambasIDE" Like "{alma,ambas, ambasIDE,szilva,GambasIDE,otto}" > Output: True Yes, but this not good for me. > *Note that if you use the "*" symbol, it eliminates the problem:* > > Print "GambasIDE" Like "*{alma,Gambas,szilva,GambasIDE,otto}*" > Output: True > > *....* eliminates the sensitivity of the patterns to their location in the > list. Yes, one "*" is enough to end: Print "GambasIDE" Like "{alma,Gambas,szilva,GambasIDE,otto}*" Output: True But this not good for me, because GambasIDE <> GambasID Print "GambasID" Like "{alma,Gambas,szilva,GambasIDE,otto}*" Output: True But of course I need equivalency. > Regards, > Jon > > > Kendek From nemh at ...2007... Thu Dec 26 12:33:45 2013 From: nemh at ...2007... (=?ISO-8859-2?Q?Kende_Kriszti=E1n?=) Date: Thu, 26 Dec 2013 12:33:45 +0100 Subject: [Gambas-user] 'gb.crypt' component and SHA (1-2) Message-ID: <52BC1419.5010509@...2007...> Hi, 'gb.crypt' component is perfect if I want to check SHA-512 password match: Dim shahash As String Exec ["mkpasswd", "-m", "sha-512", "alma"] To shahash Print Crypt.Check("alma", Trim(shahash)) Output is 'False', so the password is correct. But SHA-512 hash generating function isn't implemented yet, just simplified MD5. Can't we do something about it? Kendek From sotema at ...626... Thu Dec 26 16:23:12 2013 From: sotema at ...626... (Emanuele) Date: Thu, 26 Dec 2013 16:23:12 +0100 Subject: [Gambas-user] gb.logger minlevel error Message-ID: <20131226162312.daab9fe84cfd0d36d932b8be@...626...> Hi to all, The wiki says: Logger.Level Sets or returns the minimum logging level for the Logger object. so, messages with a lower level should be ignored, but it seems to working backwards. -- Emanuele -------------- next part -------------- A non-text attachment was scrubbed... Name: loggerbug-0.0.1.tar.gz Type: application/octet-stream Size: 4755 bytes Desc: not available URL: From gambas at ...2524... Thu Dec 26 17:35:35 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Dec 2013 16:35:35 +0000 Subject: [Gambas-user] Issue 486 in gambas: Debian packages have wrong description and title Message-ID: <0-6813199134517018827-13838773539313533391-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 486 by computer... at ...626...: Debian packages have wrong description and title http://code.google.com/p/gambas/issues/detail?id=486 1) The title becomes the description in the package due to a packaging format error (see below). 2) Version information Version: Gambas 3.5.1 Operating system: Linux Distribution: Mint 16 Xfce x86_64 3) Explain clearly how to reproduce the bug or the crash. Create a DEB-package for Ubuntu or Debian (doesn't matter) Open it with GDebi -> title-field is filled with description instead of title To fix the bug, you need to add a new line, beginning with 1 space and after that the description. On the line above that, you need to set the title of the Gambas project. This is in the control file of the DEB package (if you open the .deb file as Archive with File Roller, it's in /DEBIAN/control) Example: Description: PROGRAMNAME DESCRIPTION OF THE PROGRAM Currently, the description of the program is where PROGRAMNAME should be. This is wrong and causes this bug. (above example is the correct way) -- 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 nemh at ...2007... Thu Dec 26 17:58:59 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Thu, 26 Dec 2013 17:58:59 +0100 Subject: [Gambas-user] 'gb.crypt' component and SHA (1-2) In-Reply-To: <52BC1419.5010509@...2007...> References: <52BC1419.5010509@...2007...> Message-ID: <52BC6053.3080301@...2007...> 2013-12-26 12:33 keltez?ssel, Kende Kriszti?n ?rta: > Hi, > > 'gb.crypt' component is perfect if I want to check SHA-512 password match: > > Dim shahash As String > > Exec ["mkpasswd", "-m", "sha-512", "alma"] To shahash > > Print Crypt.Check("alma", Trim(shahash)) > > Output is 'False', so the password is correct. > > But SHA-512 hash generating function isn't implemented yet, just > simplified MD5. Can't we do something about it? > > Kendek > > I'm not a C programmer, but I hacked the 'gb.crypt' source ('c_crypt.c'): - strcpy(key, "$1$"); + strcpy(key, "$6$"); I compiled this: ./reconf ./configure make and I installed the created 'gb.crypt.so.0.0.0'. The result: Exec ["mkpasswd", "-m", "sha-512", "alma", "almaalma"] Print Crypt.MD5("alma", "almaalma") Output: $6$almaalma$MWWhHTP9sVVxJ1olWCRidzfMOSH0nOKVR9cjcHCtqP5LQ/08V18jiwakTNxWSNUWMyIE2lVLKBL.MUBTk460T. $6$almaalma$MWWhHTP9sVVxJ1olWCRidzfMOSH0nOKVR9cjcHCtqP5LQ/08V18jiwakTNxWSNUWMyIE2lVLKBL.MUBTk460T. So this method is works, the generated hash is a SHA-512 hash. Please implement this little plus function, really don't seem too difficult. :-) Kendek From gambas at ...2524... Thu Dec 26 18:00:19 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Dec 2013 17:00:19 +0000 Subject: [Gambas-user] Issue 487 in gambas: Binaries are not converted to lowercase Message-ID: <0-6813199134517018827-15978556624774998792-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 487 by computer... at ...626...: Binaries are not converted to lowercase http://code.google.com/p/gambas/issues/detail?id=487 1) Generate a DEB installer from the Gambas "make package" wizard (give your project name some capitalisation) 2) Install the generated DEB 3) You cannot start the executable with the lowercase name. For example, if the project name is TestProgram, I cannot run from the commandline: /usr/bin/testprogram Instead, I need to use this: /usr/bin/TestProgram Please convert the binary name to lowercase. I haven't seen any package who uses capitalisation in the /usr/bin folder. -- 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 Dec 26 18:13:12 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Dec 2013 17:13:12 +0000 Subject: [Gambas-user] Issue 486 in gambas: Debian packages have wrong description and title In-Reply-To: <0-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> Comment #1 on issue 486 by computer... at ...626...: Debian packages have wrong description and title http://code.google.com/p/gambas/issues/detail?id=486 Fixing this bug will solve this Lintian error message: E: wikilist: description-starts-with-package-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 richard.j.walker at ...247... Thu Dec 26 18:15:14 2013 From: richard.j.walker at ...247... (RICHARD WALKER) Date: Thu, 26 Dec 2013 17:15:14 +0000 Subject: [Gambas-user] Issue 487 in gambas: Binaries are not converted to lowercase In-Reply-To: <0-6813199134517018827-15978556624774998792-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15978556624774998792-gambas=googlecode.com@...2524...> Message-ID: > I haven't seen any package who uses capitalisation in the /usr/bin folder. On my system it would be more accurate to say "many" and not "any". I have binaries called: GET HEAD MageiaUpdate Mail POST QXmlEdit RunWM, and a selection of other RunWM.* variants VBoxHeadless VBoxManage....etc VirtualBox X XFdrake Xephyr Xorg Xwrapper Is there a better reason to second-guess the coder's choice of upper case in the name than "nobody else does it"? Richard From nemh at ...2007... Thu Dec 26 22:48:17 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Thu, 26 Dec 2013 22:48:17 +0100 Subject: [Gambas-user] 'gb.crypt' component and SHA (1-2) In-Reply-To: <52BC6053.3080301@...2007...> References: <52BC1419.5010509@...2007...> <52BC6053.3080301@...2007...> Message-ID: <52BCA421.4010105@...2007...> 2013-12-26 17:58 keltez?ssel, Kende Kriszti?n ?rta: > 2013-12-26 12:33 keltez?ssel, Kende Kriszti?n ?rta: >> Hi, >> >> 'gb.crypt' component is perfect if I want to check SHA-512 password match: >> >> Dim shahash As String >> >> Exec ["mkpasswd", "-m", "sha-512", "alma"] To shahash >> >> Print Crypt.Check("alma", Trim(shahash)) >> >> Output is 'False', so the password is correct. >> >> But SHA-512 hash generating function isn't implemented yet, just >> simplified MD5. Can't we do something about it? >> >> Kendek >> >> > I'm not a C programmer, but I hacked the 'gb.crypt' source ('c_crypt.c'): > > - strcpy(key, "$1$"); > + strcpy(key, "$6$"); > > I compiled this: > > ./reconf > ./configure > make > > and I installed the created 'gb.crypt.so.0.0.0'. > > The result: > > Exec ["mkpasswd", "-m", "sha-512", "alma", "almaalma"] > > Print Crypt.MD5("alma", "almaalma") > > Output: > > $6$almaalma$MWWhHTP9sVVxJ1olWCRidzfMOSH0nOKVR9cjcHCtqP5LQ/08V18jiwakTNxWSNUWMyIE2lVLKBL.MUBTk460T. > $6$almaalma$MWWhHTP9sVVxJ1olWCRidzfMOSH0nOKVR9cjcHCtqP5LQ/08V18jiwakTNxWSNUWMyIE2lVLKBL.MUBTk460T. > > So this method is works, the generated hash is a SHA-512 hash. > Please implement this little plus function, really don't seem too > difficult. :-) > > Kendek > Now, I implemented sha-256 and sha-512: Print Crypt.DES("alma", "al") Print Crypt.MD5("alma", "almaalma") Print Crypt.SHA256("alma", "almaalmaalma") Print Crypt.SHA512("alma", "almaalmaalma") Output: alwADBQIemkbE $1$almaalma$PPesTGW.ytPBMoDhgO8sm/ $5$almaalmaalma$6j.0vq2EfahazOz4EIGEb569Z6Mb/dTKMr.HPCKINT4 $6$almaalmaalma$7ghRcB7juLsnGsAxpuZBXo.RgljxmgL6eXuR0ZIXifjwCFIxo9em994VADsn9v3bj/jz7gdHrQZpRWL8WEIfi/ So, really not big deal. :-) From wally at ...2037... Fri Dec 27 10:57:06 2013 From: wally at ...2037... (wally) Date: Fri, 27 Dec 2013 10:57:06 +0100 Subject: [Gambas-user] ieee754 Message-ID: <8843027.bE6R2P1rDz@...3040...> Hi, i need to convert 4byte and 8byte HEX to single and float. The following code works on gambas2 but seems to need modifications in Gambas3. Any working example for Gambas3 available ? Public Sub Button3_Click() ' i = &h3EAAAAAA& 'IEEE representation of 1/3 Dim i As Integer Dim x As Single Dim p As Pointer i = &h3EAAAAAA& p = Alloc(4) Write #p, i, 4 ' << error * Read #p, x Free(p) Print x End * "Type mismatch: wanted Stream, got Pointer instead" thx wally From vuott at ...325... Fri Dec 27 12:31:10 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 27 Dec 2013 11:31:10 +0000 (GMT) Subject: [Gambas-user] R: ieee754 In-Reply-To: <8843027.bE6R2P1rDz@...3040...> Message-ID: <1388143870.6499.YahooMailBasic@...3266...> Using Memory Stream: Public Sub Main() ' i = &h3EAAAAAA& 'IEEE representation of 1/3 Dim i As Integer Dim x As Single Dim p As Pointer Dim s As Stream i = &h3EAAAAAA& p = Alloc(4) s = Memory p For Write Write #s, i As Integer Read #s, x Print x Free(p) End -------------------------------------------- Ven 27/12/13, wally ha scritto: Oggetto: [Gambas-user] ieee754 A: "mailing list for gambas users" Data: Venerd? 27 dicembre 2013, 10:57 Hi, i need to convert 4byte and 8byte HEX to single and float. The following code works on gambas2 but seems to need modifications in Gambas3. Any working example for Gambas3 available ? Public Sub Button3_Click() ' i = &h3EAAAAAA& 'IEEE representation of 1/3 Dim i As Integer Dim x As Single Dim p As Pointer ? ? i = &h3EAAAAAA& ? ? p = Alloc(4) ? ? Write #p, i, 4??? ??? ' << error * ? ? Read #p, x ? ? Free(p) ???Print x End *? "Type mismatch: wanted Stream, got Pointer instead" thx wally ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From wally at ...2037... Fri Dec 27 12:34:29 2013 From: wally at ...2037... (wally) Date: Fri, 27 Dec 2013 12:34:29 +0100 Subject: [Gambas-user] R: ieee754 In-Reply-To: <1388143870.6499.YahooMailBasic@...3266...> References: <1388143870.6499.YahooMailBasic@...3266...> Message-ID: <6580264.GICa57k91h@...3040...> Thank You ! On Friday 27 December 2013 11:31:10 Ru Vuott wrote: > Using Memory Stream: > > Public Sub Main() > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > Dim i As Integer > Dim x As Single > Dim p As Pointer > Dim s As Stream > > i = &h3EAAAAAA& > > > p = Alloc(4) > > s = Memory p For Write > > Write #s, i As Integer > Read #s, x > Print x > Free(p) > > End > > > > -------------------------------------------- > Ven 27/12/13, wally ha scritto: > > Oggetto: [Gambas-user] ieee754 > A: "mailing list for gambas users" > Data: Venerd? 27 dicembre 2013, 10:57 > > Hi, > > i need to convert 4byte and 8byte HEX to single and float. > The following code works on gambas2 but seems to need > modifications in Gambas3. > Any working example for Gambas3 available ? > > Public Sub Button3_Click() > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > Dim i As Integer > Dim x As Single > Dim p As Pointer > > i = &h3EAAAAAA& > > p = Alloc(4) > Write #p, i, 4 > ' << error * > Read #p, x > Free(p) > Print x > > End > > > * "Type mismatch: wanted Stream, got Pointer instead" > > thx wally > > > --------------------------------------------------------------------------- > --- Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From wally at ...2037... Fri Dec 27 13:09:48 2013 From: wally at ...2037... (wally) Date: Fri, 27 Dec 2013 13:09:48 +0100 Subject: [Gambas-user] R: ieee754 In-Reply-To: <1388143870.6499.YahooMailBasic@...3266...> References: <1388143870.6499.YahooMailBasic@...3266...> Message-ID: <11865880.mnGrQ9ruCu@...3040...> Thank You ! but result is "1.261169E-44" expected "3.33333E-1" 3.33333313465118408203125E-1 On Friday 27 December 2013 11:31:10 Ru Vuott wrote: > Using Memory Stream: > > Public Sub Main() > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > Dim i As Integer > Dim x As Single > Dim p As Pointer > Dim s As Stream > > i = &h3EAAAAAA& > > > p = Alloc(4) > > s = Memory p For Write > > Write #s, i As Integer > Read #s, x > Print x > Free(p) > > End > > > > -------------------------------------------- > Ven 27/12/13, wally ha scritto: > > Oggetto: [Gambas-user] ieee754 > A: "mailing list for gambas users" > Data: Venerd? 27 dicembre 2013, 10:57 > > Hi, > > i need to convert 4byte and 8byte HEX to single and float. > The following code works on gambas2 but seems to need > modifications in Gambas3. > Any working example for Gambas3 available ? > > Public Sub Button3_Click() > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > Dim i As Integer > Dim x As Single > Dim p As Pointer > > i = &h3EAAAAAA& > > p = Alloc(4) > Write #p, i, 4 > ' << error * > Read #p, x > Free(p) > Print x > > End > > > * "Type mismatch: wanted Stream, got Pointer instead" > > thx wally > > > --------------------------------------------------------------------------- > --- Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Dec 27 14:56:32 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Dec 2013 15:56:32 +0200 Subject: [Gambas-user] R: ieee754 In-Reply-To: <11865880.mnGrQ9ruCu@...3040...> References: <1388143870.6499.YahooMailBasic@...3266...> <11865880.mnGrQ9ruCu@...3040...> Message-ID: Dim i As Integer Dim f As Single Dim p As Pointer Dim hStr As Stream i = &h3EAAAAAA& p = Alloc(SizeOf(gb.Integer)) hStr = Memory p For Read Write Write #hStr, i As Integer Seek #hStr, 0 f = Read #hStr As Single Print f Free(p) Close #hStr Seek is needed for the automatically increasing internal pointer. http://gambasdoc.org/help/lang/memory?v3&en Jussi On Fri, Dec 27, 2013 at 2:09 PM, wally wrote: > Thank You ! > > but result is "1.261169E-44" > > expected "3.33333E-1" > 3.33333313465118408203125E-1 > > > On Friday 27 December 2013 11:31:10 Ru Vuott wrote: > > Using Memory Stream: > > > > Public Sub Main() > > > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > > > Dim i As Integer > > Dim x As Single > > Dim p As Pointer > > Dim s As Stream > > > > i = &h3EAAAAAA& > > > > > > p = Alloc(4) > > > > s = Memory p For Write > > > > Write #s, i As Integer > > Read #s, x > > Print x > > Free(p) > > > > End > > > > > > > > -------------------------------------------- > > Ven 27/12/13, wally ha scritto: > > > > Oggetto: [Gambas-user] ieee754 > > A: "mailing list for gambas users" > > Data: Venerd? 27 dicembre 2013, 10:57 > > > > Hi, > > > > i need to convert 4byte and 8byte HEX to single and float. > > The following code works on gambas2 but seems to need > > modifications in Gambas3. > > Any working example for Gambas3 available ? > > > > Public Sub Button3_Click() > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > > > Dim i As Integer > > Dim x As Single > > Dim p As Pointer > > > > i = &h3EAAAAAA& > > > > p = Alloc(4) > > Write #p, i, 4 > > ' << error * > > Read #p, x > > Free(p) > > Print x > > > > End > > > > > > * "Type mismatch: wanted Stream, got Pointer instead" > > > > thx wally > > > > > > > --------------------------------------------------------------------------- > > --- Rapidly troubleshoot problems before they affect your > > business. Most IT > > organizations don't have a clear picture of how application > > performance > > affects their revenue. With AppDynamics, you get 100% > > visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE > > TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ---------------------------------------------------------------------------- > > -- Rapidly troubleshoot problems before they affect your business. Most > IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Dec 27 15:00:08 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Dec 2013 16:00:08 +0200 Subject: [Gambas-user] R: ieee754 In-Reply-To: References: <1388143870.6499.YahooMailBasic@...3266...> <11865880.mnGrQ9ruCu@...3040...> Message-ID: Not sure what you are doing exactly, but this may enhance compatibility. hStr.ByteOrder = gb.LittleEndian Jussi On Fri, Dec 27, 2013 at 3:56 PM, Jussi Lahtinen wrote: > Dim i As Integer > Dim f As Single > Dim p As Pointer > Dim hStr As Stream > > i = &h3EAAAAAA& > > p = Alloc(SizeOf(gb.Integer)) > > hStr = Memory p For Read Write > > Write #hStr, i As Integer > > Seek #hStr, 0 > > f = Read #hStr As Single > > Print f > > Free(p) > Close #hStr > > > Seek is needed for the automatically increasing internal pointer. > http://gambasdoc.org/help/lang/memory?v3&en > > > Jussi > > > > On Fri, Dec 27, 2013 at 2:09 PM, wally wrote: > >> Thank You ! >> >> but result is "1.261169E-44" >> >> expected "3.33333E-1" >> 3.33333313465118408203125E-1 >> >> >> On Friday 27 December 2013 11:31:10 Ru Vuott wrote: >> > Using Memory Stream: >> > >> > Public Sub Main() >> > >> > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 >> > >> > Dim i As Integer >> > Dim x As Single >> > Dim p As Pointer >> > Dim s As Stream >> > >> > i = &h3EAAAAAA& >> > >> > >> > p = Alloc(4) >> > >> > s = Memory p For Write >> > >> > Write #s, i As Integer >> > Read #s, x >> > Print x >> > Free(p) >> > >> > End >> > >> > >> > >> > -------------------------------------------- >> > Ven 27/12/13, wally ha scritto: >> > >> > Oggetto: [Gambas-user] ieee754 >> > A: "mailing list for gambas users" >> > Data: Venerd? 27 dicembre 2013, 10:57 >> > >> > Hi, >> > >> > i need to convert 4byte and 8byte HEX to single and float. >> > The following code works on gambas2 but seems to need >> > modifications in Gambas3. >> > Any working example for Gambas3 available ? >> > >> > Public Sub Button3_Click() >> > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 >> > >> > Dim i As Integer >> > Dim x As Single >> > Dim p As Pointer >> > >> > i = &h3EAAAAAA& >> > >> > p = Alloc(4) >> > Write #p, i, 4 >> > ' << error * >> > Read #p, x >> > Free(p) >> > Print x >> > >> > End >> > >> > >> > * "Type mismatch: wanted Stream, got Pointer instead" >> > >> > thx wally >> > >> > >> > >> --------------------------------------------------------------------------- >> > --- Rapidly troubleshoot problems before they affect your >> > business. Most IT >> > organizations don't have a clear picture of how application >> > performance >> > affects their revenue. With AppDynamics, you get 100% >> > visibility into your >> > Java,.NET, & PHP application. Start your 15-day FREE >> > TRIAL of AppDynamics Pro! >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> ---------------------------------------------------------------------------- >> > -- Rapidly troubleshoot problems before they affect your business. Most >> IT >> > organizations don't have a clear picture of how application performance >> > affects their revenue. With AppDynamics, you get 100% visibility into >> your >> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> AppDynamics >> > Pro! >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From wally at ...2037... Fri Dec 27 15:20:28 2013 From: wally at ...2037... (wally) Date: Fri, 27 Dec 2013 15:20:28 +0100 Subject: [Gambas-user] R: ieee754 In-Reply-To: <1388143870.6499.YahooMailBasic@...3266...> References: <1388143870.6499.YahooMailBasic@...3266...> Message-ID: <3922722.P1lAcqAgBz@...3040...> Thank You Jussi it's the 27th time i forgot the seek command :) now works On Friday 27 December 2013 11:31:10 Ru Vuott wrote: > Using Memory Stream: > > Public Sub Main() > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > Dim i As Integer > Dim x As Single > Dim p As Pointer > Dim s As Stream > > i = &h3EAAAAAA& > > > p = Alloc(4) > > s = Memory p For Write > > Write #s, i As Integer > Read #s, x > Print x > Free(p) > > End > > > > -------------------------------------------- > Ven 27/12/13, wally ha scritto: > > Oggetto: [Gambas-user] ieee754 > A: "mailing list for gambas users" > Data: Venerd? 27 dicembre 2013, 10:57 > > Hi, > > i need to convert 4byte and 8byte HEX to single and float. > The following code works on gambas2 but seems to need > modifications in Gambas3. > Any working example for Gambas3 available ? > > Public Sub Button3_Click() > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > Dim i As Integer > Dim x As Single > Dim p As Pointer > > i = &h3EAAAAAA& > > p = Alloc(4) > Write #p, i, 4 > ' << error * > Read #p, x > Free(p) > Print x > > End > > > * "Type mismatch: wanted Stream, got Pointer instead" > > thx wally > > > --------------------------------------------------------------------------- > --- Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Dec 27 15:54:21 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 27 Dec 2013 15:54:21 +0100 Subject: [Gambas-user] R: ieee754 In-Reply-To: <3922722.P1lAcqAgBz@...3040...> References: <1388143870.6499.YahooMailBasic@...3266...> <3922722.P1lAcqAgBz@...3040...> Message-ID: <52BD949D.5080904@...1...> Le 27/12/2013 15:20, wally a ?crit : > Thank You Jussi > > it's the 27th time i forgot the seek command :) > now works > You can do that now since Gambas 3.1: Dim i As Integer Dim x As Single i = &H3EAAAAAA& x = Single@(VarPtr(i)) OR i = &H3EAAAAAA& x = Single@(MkInt$(i)) Isn't it faster? -- Beno?t Minisini From vuott at ...325... Fri Dec 27 17:08:38 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 27 Dec 2013 16:08:38 +0000 (GMT) Subject: [Gambas-user] R: ieee754 In-Reply-To: Message-ID: <1388160518.86480.YahooMailBasic@...3266...> ello Jussi, > Seek #hStr, 0 > > f = Read #hStr As Single I didn't set "Seek" in my suggestion, because I thought the reading started from zero "by default". bye vuott -------------------------------------------- Ven 27/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] R: ieee754 A: "mailing list for gambas users" Data: Venerd? 27 dicembre 2013, 14:56 ? Dim i As Integer ? Dim f As Single ? Dim p As Pointer ? Dim hStr As Stream ? ? i = &h3EAAAAAA& ? ? p = Alloc(SizeOf(gb.Integer)) ? ? hStr = Memory p For Read Write ? ? Write #hStr, i As Integer ? ? Seek #hStr, 0 ? ? f = Read #hStr As Single ? ? Print f ? ? Free(p) ? ? Close #hStr Seek is needed for the automatically increasing internal pointer. http://gambasdoc.org/help/lang/memory?v3&en Jussi On Fri, Dec 27, 2013 at 2:09 PM, wally wrote: > Thank You ! > > but result is "1.261169E-44" > > expected "3.33333E-1" > 3.33333313465118408203125E-1 > > > On Friday 27 December 2013 11:31:10 Ru Vuott wrote: > > Using Memory Stream: > > > > Public Sub Main() > > > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > > > Dim i As Integer > > Dim x As Single > > Dim p As Pointer > > Dim s As Stream > > > >? ???i = &h3EAAAAAA& > > > > > >? ???p = Alloc(4) > > > >? ???s = Memory p For Write > > > >? ???Write #s, i As Integer > >? ???Read #s, x > >? ???Print x > >? ???Free(p) > > > > End > > > > > > > > -------------------------------------------- > > Ven 27/12/13, wally ha scritto: > > > >? Oggetto: [Gambas-user] ieee754 > >? A: "mailing list for gambas users" > >? Data: Venerd? 27 dicembre 2013, 10:57 > > > >? Hi, > > > >? i need to convert 4byte and 8byte HEX to single and float. > >? The following code works on gambas2 but seems to need > >? modifications in Gambas3. > >? Any working example for Gambas3 available ? > > > >? Public Sub Button3_Click() > >? ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > > >? Dim i As Integer > >? Dim x As Single > >? Dim p As Pointer > > > >? ? ? i = &h3EAAAAAA& > > > >? ? ? p = Alloc(4) > >? ? ? Write #p, i, 4 > >? ? ? ' << error * > >? ? ? Read #p, x > >? ? ? Free(p) > >? ???Print x > > > >? End > > > > > >? *? "Type mismatch: wanted Stream, got Pointer instead" > > > >? thx wally > > > > > > >? --------------------------------------------------------------------------- > > --- Rapidly troubleshoot problems before they affect your > >? business. Most IT > >? organizations don't have a clear picture of how application > >? performance > >? affects their revenue. With AppDynamics, you get 100% > >? visibility into your > >? Java,.NET, & PHP application. Start your 15-day FREE > >? TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > >? Gambas-user mailing list > >? Gambas-user at lists.sourceforge.net > >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ---------------------------------------------------------------------------- > > -- Rapidly troubleshoot problems before they affect your business. Most > IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Fri Dec 27 18:47:06 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 27 Dec 2013 17:47:06 +0000 (GMT) Subject: [Gambas-user] R: ieee754 In-Reply-To: <1388160518.86480.YahooMailBasic@...3266...> Message-ID: <1388166426.99214.YahooMailBasic@...3266...> Opsss... I forgot that "Write" made the stream internal pointer go forward. Ok regards vuott -------------------------------------------- Ven 27/12/13, Ru Vuott ha scritto: Oggetto: Re: [Gambas-user] R: ieee754 A: "mailing list for gambas users" Data: Venerd? 27 dicembre 2013, 17:08 ello Jussi, > Seek #hStr, 0 > >???f = Read #hStr As Single I didn't set "Seek" in my suggestion, because I thought the reading started from zero "by default". bye vuott -------------------------------------------- Ven 27/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] R: ieee754 A: "mailing list for gambas users" Data: Venerd? 27 dicembre 2013, 14:56 ? Dim i As Integer ? Dim f As Single ? Dim p As Pointer ? Dim hStr As Stream ? ? i = &h3EAAAAAA& ? ? p = Alloc(SizeOf(gb.Integer)) ? ? hStr = Memory p For Read Write ? ? Write #hStr, i As Integer ? ? Seek #hStr, 0 ? ? f = Read #hStr As Single ? ? Print f ? ? Free(p) ? ? Close #hStr Seek is needed for the automatically increasing internal pointer. http://gambasdoc.org/help/lang/memory?v3&en Jussi On Fri, Dec 27, 2013 at 2:09 PM, wally wrote: > Thank You ! > > but result is "1.261169E-44" > > expected "3.33333E-1" > 3.33333313465118408203125E-1 > > > On Friday 27 December 2013 11:31:10 Ru Vuott wrote: > > Using Memory Stream: > > > > Public Sub Main() > > > > ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > > > Dim i As Integer > > Dim x As Single > > Dim p As Pointer > > Dim s As Stream > > > >? ???i = &h3EAAAAAA& > > > > > >? ???p = Alloc(4) > > > >? ???s = Memory p For Write > > > >? ???Write #s, i As Integer > >? ???Read #s, x > >? ???Print x > >? ???Free(p) > > > > End > > > > > > > > -------------------------------------------- > > Ven 27/12/13, wally ha scritto: > > > >? Oggetto: [Gambas-user] ieee754 > >? A: "mailing list for gambas users" > >? Data: Venerd? 27 dicembre 2013, 10:57 > > > >? Hi, > > > >? i need to convert 4byte and 8byte HEX to single and float. > >? The following code works on gambas2 but seems to need > >? modifications in Gambas3. > >? Any working example for Gambas3 available ? > > > >? Public Sub Button3_Click() > >? ' i = &h3EAAAAAA& 'IEEE representation of 1/3 > > > >? Dim i As Integer > >? Dim x As Single > >? Dim p As Pointer > > > >? ? ? i = &h3EAAAAAA& > > > >? ? ? p = Alloc(4) > >? ? ? Write #p, i, 4 > >? ? ? ' << error * > >? ? ? Read #p, x > >? ? ? Free(p) > >? ???Print x > > > >? End > > > > > >? *? "Type mismatch: wanted Stream, got Pointer instead" > > > >? thx wally > > > > > > >? --------------------------------------------------------------------------- > > --- Rapidly troubleshoot problems before they affect your > >? business. Most IT > >? organizations don't have a clear picture of how application > >? performance > >? affects their revenue. With AppDynamics, you get 100% > >? visibility into your > >? Java,.NET, & PHP application. Start your 15-day FREE > >? TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > >? Gambas-user mailing list > >? Gambas-user at lists.sourceforge.net > >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ---------------------------------------------------------------------------- > > -- Rapidly troubleshoot problems before they affect your business. Most > IT > > organizations don't have a clear picture of how application performance > > affects their revenue. With AppDynamics, you get 100% visibility into > your > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From iss_boss at ...770... Sat Dec 28 20:20:39 2013 From: iss_boss at ...770... (ISS Boss) Date: Sat, 28 Dec 2013 14:20:39 -0500 Subject: [Gambas-user] Centering problem Message-ID: <52BF2487.6050204@...770...> I've mentioned this before, but only in passing on other comments. Now, I've created a tiny project that illustrates what I've been talking about. It is just a single form with 6 items on it that are NOT centered horizontally. To demonstrate what I am talking about, give this a try: 1) open the project and take a look at the form ((((( Between each step, hit 'CTRL-Z' to go back to start. ))))) 2) Select item #1 and click 'Center Horizontally". It should do just that, properly. (NOTE: the 'tool tip' is wrong for both tools - jpg's attached) 3) Select Item #1 & #2 and click the centering tool. They should scatter into weird positions 4) Select #1, #2, & #3 and click the centering tool. Same result (only worse) 5) Select #1, #2, #3, & #4 and click the centering tool. Same result (much worse) 6) Any more selected and the tool with IGNORE you. Nothing gets centered at all. My system info: [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.5.0-44-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: Center Horizontally.jpg Type: image/jpeg Size: 8129 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Center Vertically.jpg Type: image/jpeg Size: 11689 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Project.jpg Type: image/jpeg Size: 38571 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Arrange_anomaly.tar.gz Type: application/gzip Size: 4680 bytes Desc: not available URL: From gambas at ...1... Sat Dec 28 20:25:33 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Dec 2013 20:25:33 +0100 Subject: [Gambas-user] Centering problem In-Reply-To: <52BF2487.6050204@...770...> References: <52BF2487.6050204@...770...> Message-ID: <52BF25AD.7050000@...1...> Le 28/12/2013 20:20, ISS Boss a ?crit : > I've mentioned this before, but only in passing on other comments. Now, > I've created a tiny project that illustrates what I've been talking about. > > It is just a single form with 6 items on it that are NOT centered > horizontally. To demonstrate what I am talking about, give this a try: > > 1) open the project and take a look at the form > > ((((( Between each step, hit 'CTRL-Z' to go back to start. ))))) > > 2) Select item #1 and click 'Center Horizontally". It should do just > that, properly. (NOTE: the 'tool tip' is wrong for both tools - jpg's > attached) > > 3) Select Item #1 & #2 and click the centering tool. They should > scatter into weird positions > > 4) Select #1, #2, & #3 and click the centering tool. Same result (only > worse) > > 5) Select #1, #2, #3, & #4 and click the centering tool. Same result > (much worse) > > 6) Any more selected and the tool with IGNORE you. Nothing gets > centered at all. > The tooltips are right, but the verb "center" is not accurate, it should be "spread" instead. Anyway, its behaviour is not clever. I will think about it: maybe I will make four tools instead of two, one for spread (correctly), and another for (really) center. Or maybe I will remove them entirely! And replacing them by containers that can center and spread at runtime. Regards, -- Beno?t Minisini From iss_boss at ...770... Sat Dec 28 20:35:23 2013 From: iss_boss at ...770... (ISS Boss) Date: Sat, 28 Dec 2013 14:35:23 -0500 Subject: [Gambas-user] Centering problem In-Reply-To: <52BF25AD.7050000@...1...> References: <52BF2487.6050204@...770...> <52BF25AD.7050000@...1...> Message-ID: <52BF27FB.80507@...770...> Hi, Beno??t: When I look at the tiny red items in the LEFT tool icon, I see them stacked vertically. The RIGHT icon shows red items stacked horizontally. I think I know what you mean, but I've never really seen a tool in any IDE that will 'spread' instead of 'center'. I can live with what exists, but it is a bit confusing. Any multi-item centering I need to do I can do using pixels and a calculator. It would be nice to have a tool that will take whatever one selects and center it either vertically or horizontally. Containers would be nice also. Either way you choose I can work with. Bill Beno??t Minisini wrote, On 12/28/2013 14:25: Le 28/12/2013 20:20, ISS Boss a ??crit : I've mentioned this before, but only in passing on other comments. Now, I've created a tiny project that illustrates what I've been talking about. It is just a single form with 6 items on it that are NOT centered horizontally. To demonstrate what I am talking about, give this a try: 1) open the project and take a look at the form ((((( Between each step, hit 'CTRL-Z' to go back to start. ))))) 2) Select item #1 and click 'Center Horizontally". It should do just that, properly. (NOTE: the 'tool tip' is wrong for both tools - jpg's attached) 3) Select Item #1 & #2 and click the centering tool. They should scatter into weird positions 4) Select #1, #2, & #3 and click the centering tool. Same result (only worse) 5) Select #1, #2, #3, & #4 and click the centering tool. Same result (much worse) 6) Any more selected and the tool with IGNORE you. Nothing gets centered at all. The tooltips are right, but the verb "center" is not accurate, it should be "spread" instead. Anyway, its behaviour is not clever. I will think about it: maybe I will make four tools instead of two, one for spread (correctly), and another for (really) center. Or maybe I will remove them entirely! And replacing them by containers that can center and spread at runtime. Regards, From bbruen at ...2308... Sun Dec 29 10:06:22 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 29 Dec 2013 19:36:22 +1030 Subject: [Gambas-user] What on GGE is happening here? Message-ID: <1388307983.18770.43.camel@...2688...> I wanted to create a text file in a project regarding some strangeness. Have been doing this type of thing for years now with no problems at all. But today, with rev 6013 some strangeness is happening inside the IDE itself. I have attached a pic (which I hope is small enough) to explain this (if it is possible at all!) I had just run the project inside the IDE for the 40,000th time and am starting to see where my strangeness is happening. So in the IDE, between runs I created a text file in the Project "directory" in the project browser panel, called for vague enough reasoning "Notes.txt". After the last (40,001th) run I wanted to add some more observations and for want of a better word "insight". Now the IDE strangeness began. As I typed "upd" the completion help for an enum in the project popped up. That is what is in the pic. Even that is hard to cope with, the enum constant is "ModeUpdate" not any of ["update","Updated","updated"]. I have searched the entire project and there is not one word that begins with the string "upd". (Oops my error, there is an event declared in one class that is named "Updated(Key As String)" but then why wouldn't I get the completion for the event?) But wait! There's more! I have been playing around with the new File|Open File... menu in the IDE for a couple of days now. New? I thought it was. Maybe I never noticed it before. Now there is something weird with green hair and at least 16 furry toes. I'll leave my observations unsaid for the moment. And if you ring in the next 10 minutes... We will include my Xmas wish for 2014 at absolutely no extra cost! Thank you for acllingffsq, all our urperatrsq are ... What I'd really like to see is, when running a project through the IDE (at a debug point or not) is a way to go back into the IDE and make some notes about the behaviour. Currently, I use the IDE console panel to do this but that approach is far below what I am talking about, because it gets jumbled up inside all the stdout/stderr messages I am using when debugging. So I'd like a "jotter" tab in the IDE, please. ... too much talk ... regards Bruce p.s.Hope you all had a Mary.Xmas() -------------- next part -------------- A non-text attachment was scrubbed... Name: strange.png Type: image/png Size: 90976 bytes Desc: not available URL: From gambas at ...1... Sun Dec 29 13:24:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 29 Dec 2013 13:24:46 +0100 Subject: [Gambas-user] What on GGE is happening here? In-Reply-To: <1388307983.18770.43.camel@...2688...> References: <1388307983.18770.43.camel@...2688...> Message-ID: <52C0148E.6080506@...1...> Le 29/12/2013 10:06, Bruce a ?crit : > I wanted to create a text file in a project regarding some strangeness. > Have been doing this type of thing for years now with no problems at > all. But today, with rev 6013 some strangeness is happening inside the > IDE itself. > > I have attached a pic (which I hope is small enough) to explain this (if > it is possible at all!) > > I had just run the project inside the IDE for the 40,000th time and am > starting to see where my strangeness is happening. So in the IDE, > between runs I created a text file in the Project "directory" in the > project browser panel, called for vague enough reasoning "Notes.txt". > After the last (40,001th) run I wanted to add some more observations and > for want of a better word "insight". > > Now the IDE strangeness began. > > As I typed "upd" the completion help for an enum in the project popped > up. That is what is in the pic. Even that is hard to cope with, the enum > constant is "ModeUpdate" not any of ["update","Updated","updated"]. I > have searched the entire project and there is not one word that begins > with the string "upd". > > (Oops my error, there is an event declared in one class that is named > "Updated(Key As String)" but then why wouldn't I get the completion for > the event?) > > But wait! There's more! > > I have been playing around with the new File|Open File... menu in the > IDE for a couple of days now. New? I thought it was. Maybe I never > noticed it before. Now there is something weird with green hair and at > least 16 furry toes. I'll leave my observations unsaid for the moment. > > And if you ring in the next 10 minutes... > > We will include my Xmas wish for 2014 at absolutely no extra cost! > > Thank you for acllingffsq, all our urperatrsq are ... > > What I'd really like to see is, when running a project through the IDE > (at a debug point or not) is a way to go back into the IDE and make some > notes about the behaviour. Currently, I use the IDE console panel to do > this but that approach is far below what I am talking about, because it > gets jumbled up inside all the stdout/stderr messages I am using when > debugging. > > So I'd like a "jotter" tab in the IDE, please. > > ... > too much talk > ... > > > regards > Bruce > > p.s.Hope you all had a Mary.Xmas() > This is the completion of text files, which should only complete with words written in the file, but that is a bit buggy at the moment. And good idea for the "jotter" tab. Regards, -- Beno?t Minisini From taboege at ...626... Sun Dec 29 15:17:29 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Dec 2013 15:17:29 +0100 Subject: [Gambas-user] basics of dynamic arrays of structures In-Reply-To: <52B7D802.3020408@...1887...> References: <52B528CC.8040203@...1887...> <52B5298B.6050009@...1887...> <20131221095728.GB511@...2774...> <52B7D802.3020408@...1887...> Message-ID: <20131229141729.GC514@...2774...> On Mon, 23 Dec 2013, Kevin Fishburne wrote: > On 12/21/2013 04:57 AM, Tobias Boege wrote: > >On Sat, 21 Dec 2013, Kevin Fishburne wrote: > >>On 12/21/2013 12:36 AM, Kevin Fishburne wrote: > >>>I've gotten some flak about how I declare arrays and want to change my > >>>ways. Previously I would do something like: > >>> > >>>Public SomeArray[300,300] as Integer > >>> > >>>I have a case now where I need an array whose number of elements will be > >>>incremented and that will be cleared occasionally. Of course I can't > >>>figure out how to do it. My code looks like this (I stripped it down): > >>> > >>>--- > >>> > >>>Public Struct PlanWallStructure > >>> Created As Boolean > >>>End Struct > >>> > >>>Public Struct PlanStructure > >>> Wall As Struct PlanWallStructure > >>>End Struct > >>> > >>>Public Plan[10] As Struct PlanStructure > >>> > >>>--- > >>> > >>>So I need, for example, Plan[0].Wall to be an array where I can do > >>>something like: > >>> > >>>--- > >>> > >>>Plan[0].Wall.Clear > >>>Index = Plan[0].Wall.Count > >>>Plan[0].Wall[Index] = True > >>>Index = Plan[0].Wall.Count > >>>Plan[0].Wall[Plan[0].Wall.Count] = False > >>> > >>>--- > >>> > >>>Is this possible? I've tried every syntax I can think of and looked at > >>>the documentation but get errors every time. > >>> > >>Whoops. Meant for that last bit of code to be: > >> > >>Plan[0].Wall.Clear > >>Index = Plan[0].Wall.Count > >>Plan[0].Wall[Index] = True > >>Index = Plan[0].Wall.Count > >>Plan[0].Wall[Index] = False > >> > >> > >>Same thing basically for the purpose of the example. > >> > >I don't think there is an array in Gambas which lets you use its Count as > >index without raising an "out of bounds" error :-) (and you certainly mean > >Plan[0].Wall[Index]*.Created* = False or else, don't use a Struct.) > > > >Using dynamic arrays, you would do: > > > >--- > >Public Plan As PlanStructure[] > > > >Public Sub _new() > > Dim iIndex As Integer > > > > Plan = New PlanStructure[](10) ' Initial size > > For iIndex = 0 To Plan.Max > > Plan[iIndex] = New PlanWallStructure > > Next > >End > >--- > > > >I wrote this out of my head. If it doesn't get you started, just tell me. > > I may have figured it out, though please let me know if I'm doing this > ass-backward (sample project attached). Looks like the Resize array method > can be used to add elements as needed. I also needed to revise how the > arrays of structures were declared in the Plan structure as your code > example suggested. > I personally don't use this syntax: Plan = New PlanStructure[0] but looking at the docs, this seems to be valid and equivalent to (which is the syntax I am fond of): Plan = New PlanStructure[](0) ' Or just: Plan = New PlanStructure[] You can give an initial size (as shown above) with Plan = New PlanStructure[](iInitialSize) instead of creating an empty array and resizing it immediately afterwards. The rest seems pretty good. One thing came to my mind as I was looking at this, tough: if you need to initialise e.g. Plan.Wall and other things after creating Plan, you could also make at least PlanStructure a class and do all the initialisations nicely encapsulated in PlanStructure._new(). But that's really your business. > If my project code is correct, it would be nice to have this somewhere in > the documentation. I couldn't find a decent explanation of how to create and > manipulate arrays anywhere in the docs. Maybe there should be a tutorial or > example wiki along with the regular docs? > Hmm, seems that I have grown up with these dynamic array syntaxes (so I don't see any difficulty in learning them)... But we have a tutorial section; maybe we (whoever this will be :-)) can add a document somewhen but I can't promise anything. (I just saw that the ArrayOfControls example also teaches the static way... Maybe I should continue updating the examples as I wanted to do like a year ago :-S) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Dec 29 15:52:46 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Dec 2013 15:52:46 +0100 Subject: [Gambas-user] 'gb.crypt' component and SHA (1-2) In-Reply-To: <52BCA421.4010105@...2007...> References: <52BC1419.5010509@...2007...> <52BC6053.3080301@...2007...> <52BCA421.4010105@...2007...> Message-ID: <20131229145246.GD514@...2774...> On Thu, 26 Dec 2013, Kende Kriszti?n wrote: > 2013-12-26 17:58 keltez?ssel, Kende Kriszti?n ?rta: > > 2013-12-26 12:33 keltez?ssel, Kende Kriszti?n ?rta: > >> Hi, > >> > >> 'gb.crypt' component is perfect if I want to check SHA-512 password match: > >> > >> Dim shahash As String > >> > >> Exec ["mkpasswd", "-m", "sha-512", "alma"] To shahash > >> > >> Print Crypt.Check("alma", Trim(shahash)) > >> > >> Output is 'False', so the password is correct. > >> > >> But SHA-512 hash generating function isn't implemented yet, just > >> simplified MD5. Can't we do something about it? > >> > >> Kendek > >> > >> > > I'm not a C programmer, but I hacked the 'gb.crypt' source ('c_crypt.c'): > > > > - strcpy(key, "$1$"); > > + strcpy(key, "$6$"); > > > > I compiled this: > > > > ./reconf > > ./configure > > make > > > > and I installed the created 'gb.crypt.so.0.0.0'. > > > > The result: > > > > Exec ["mkpasswd", "-m", "sha-512", "alma", "almaalma"] > > > > Print Crypt.MD5("alma", "almaalma") > > > > Output: > > > > $6$almaalma$MWWhHTP9sVVxJ1olWCRidzfMOSH0nOKVR9cjcHCtqP5LQ/08V18jiwakTNxWSNUWMyIE2lVLKBL.MUBTk460T. > > $6$almaalma$MWWhHTP9sVVxJ1olWCRidzfMOSH0nOKVR9cjcHCtqP5LQ/08V18jiwakTNxWSNUWMyIE2lVLKBL.MUBTk460T. > > > > So this method is works, the generated hash is a SHA-512 hash. > > Please implement this little plus function, really don't seem too > > difficult. :-) > > > > Kendek > > > > Now, I implemented sha-256 and sha-512: > > Print Crypt.DES("alma", "al") > Print Crypt.MD5("alma", "almaalma") > Print Crypt.SHA256("alma", "almaalmaalma") > Print Crypt.SHA512("alma", "almaalmaalma") > > Output: > > alwADBQIemkbE > $1$almaalma$PPesTGW.ytPBMoDhgO8sm/ > $5$almaalmaalma$6j.0vq2EfahazOz4EIGEb569Z6Mb/dTKMr.HPCKINT4 > $6$almaalmaalma$7ghRcB7juLsnGsAxpuZBXo.RgljxmgL6eXuR0ZIXifjwCFIxo9em994VADsn9v3bj/jz7gdHrQZpRWL8WEIfi/ > > So, really not big deal. :-) > I saw your patch made it in. But you can basically do this with gb.openssl, too (so you don't depend on mkpasswd which is not present at least on my system): sHash = Digest["sha512"]("alma") But you would get raw binary data which you need to compare yourself with another hash. Also, Sha-512 doesn't know salts as you used ("almaalmaalma") and I don't know how gb.crypt handles these things. If you use gb.openssl you would have to do that manually, too. Looking at the functionality of gb.openssl and the comfort of gb.crypt, we may need a gb.crypt.openssl library which pulls the algorithms from gb.openssl and puts them all behind the interface of gb.crypt. What do you think? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Sun Dec 29 16:38:58 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Dec 2013 16:38:58 +0100 Subject: [Gambas-user] Native Complex type? In-Reply-To: <52B72ACA.5050401@...1...> References: <20131221155332.GZ511@...2774...> <52B72ACA.5050401@...1...> Message-ID: <20131229153858.GE514@...2774...> On Sun, 22 Dec 2013, Beno?t Minisini wrote: > Le 21/12/2013 16:53, Tobias Boege a ?crit : > > Hi Benoit, > > > > is it planned to support complex numbers in Val() or to have an IsComplex() > > function? > > No at the moment. > > It's a problem for Val(), because some people may assume that Val() only > returns a Date, a Boolean, a Float or an Integer. > So we might talk about this again before Gambas 4? :-) From gambas at ...2524... Sun Dec 29 16:47:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Dec 2013 15:47:30 +0000 Subject: [Gambas-user] Issue 486 in gambas: Debian packages have wrong description and title In-Reply-To: <1-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> <0-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #2 on issue 486 by benoit.m... at ...626...: Debian packages have wrong description and title http://code.google.com/p/gambas/issues/detail?id=486 (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... Sun Dec 29 16:48:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Dec 2013 15:48:30 +0000 Subject: [Gambas-user] Issue 486 in gambas: Debian packages have wrong description and title In-Reply-To: <2-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> <0-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-13838773539313533391-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version-TRUNK Version-3.5.0 Comment #3 on issue 486 by benoit.m... at ...626...: Debian packages have wrong description and title http://code.google.com/p/gambas/issues/detail?id=486 Fixed in revision #6030. It will backported to Gambas 3.5.2. -- 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 Dec 29 16:49:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Dec 2013 15:49:30 +0000 Subject: [Gambas-user] Issue 487 in gambas: Binaries are not converted to lowercase In-Reply-To: <0-6813199134517018827-15978556624774998792-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15978556624774998792-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15978556624774998792-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 487 by benoit.m... at ...626...: Binaries are not converted to lowercase http://code.google.com/p/gambas/issues/detail?id=487 Program names with uppercase characters are perfectly allowed. Just name your project accordingly. -- 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 Dec 29 16:51:40 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Dec 2013 15:51:40 +0000 Subject: [Gambas-user] Issue 488 in gambas: Gambas Editor calculates cursor-positions wrong for some fontsizes Message-ID: <0-6813199134517018827-17789905005730570387-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.1.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 488 by ramjet... at ...1601...: Gambas Editor calculates cursor-positions wrong for some fontsizes http://code.google.com/p/gambas/issues/detail?id=488 1) Using Gambas 3.1.1 under Ubuntu 13.10 (Unity) does the following: When editing a text in the editor, the cursor is "too slow" with a Fontsize of 9, "too fast" with a fontsize of b.e. 12. With fontsize 10 (Font: Monospace) it looks allright 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.1.1 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 Desktop used: Gnome Shell and Unity (both show the same behaviour) Youtube-Link to a video showing the behaviour: http://www.youtube.com/watch?v=tDUkq_FC6Js&feature=youtu.be -- 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 Dec 29 17:06:02 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Dec 2013 16:06:02 +0000 Subject: [Gambas-user] Issue 488 in gambas: Gambas Editor calculates cursor-positions wrong for some fontsizes In-Reply-To: <0-6813199134517018827-17789905005730570387-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17789905005730570387-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17789905005730570387-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 488 by benoit.m... at ...626...: Gambas Editor calculates cursor-positions wrong for some fontsizes http://code.google.com/p/gambas/issues/detail?id=488 I need you to give me: - The full system information returned by the IDE. - The font used by the editor. Try with other fonts too. - If you configured font hinting, and how. 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 Karl.Reinl at ...2345... Sun Dec 29 17:40:49 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 29 Dec 2013 17:40:49 +0100 Subject: [Gambas-user] GridView, ColumnClick is not fired Message-ID: <1388335249.2571.7.camel@...40...> Salut Beno?t, GridView, ColumnClick is not fired. so a click on Columns Header ends in Click and says the click was on row 0. attached a TEST-project -- Amicalement Charlie [System] Gambas=3.5.90 r6023 OperatingSystem=Linux Kernel=2.6.32-54-generic Architecture=x86 Distribution=Ubuntu 10.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3024M [Libraries] Cairo=libcairo.so.2.10800.10 Curl=libcurl.so.4.1.1 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.24.1 GTK+=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 Qt4=libQtCore.so.4.6.2 SDL=libSDL-1.2.so.0.11.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: TEST-0.0.5.tar.gz Type: application/x-compressed-tar Size: 31097 bytes Desc: not available URL: From taboege at ...626... Sun Dec 29 18:22:48 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Dec 2013 18:22:48 +0100 Subject: [Gambas-user] Overriding ValueBox, adding new Types Message-ID: <20131229172248.GA13849@...2774...> Hi, I'm writing a ValueBox extension which recognises complex numbers when chosen ValueBox.Type = ValueBox.Complex. For the time being I'm using the "global symbol table" extension method, i.e. I call my class ValueBox and Export it - just for the sake of it. (Later, I will likely directly commit the stuff to gb.form because it should not be a problem, right Benoit? I mean the user explicitly needs to set ValueBox.Type = ValueBox.Complex and only then we Component.Load("gb.complex") or raise an error so no additional dependencies). However, the problem now is that I want the IDE to show my new ValueBox.Complex constant in the properties list (Type's ComboBox), so I wrote: Public Const _Properties As String = "*,Type{ValueBox.*}=0" into my class. When I now select the Complex constant, the IDE shows me this error: "Invalid property value. Null object". The ValueBox disappears and if I try again setting the Type property to ValueBox.Complex, it works but the control remains invisible in the form editor. I have attached a sample project which extends ValueBox to recognise a ValueBox.Gambas type. Just try to select the "Gambas" constant in the IDE to reproduce. So two problems: - the error when first selecting the custom constant - the control is invisible after the error As you will see, I create a TextBox inside the ValueBox container displaying the string "Gambas" as soon as the Type is set to Gambas. I expected the IDE to show this control and not nothing. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: property-constants-in-ide-0.0.1.tar.gz Type: application/octet-stream Size: 5267 bytes Desc: not available URL: From gambas at ...2524... Sun Dec 29 20:25:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Dec 2013 19:25:33 +0000 Subject: [Gambas-user] Issue 485 in gambas: 'Like' square brackets problem In-Reply-To: <1-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> <0-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14625804878084192162-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 485 by benoit.m... at ...626...: 'Like' square brackets problem http://code.google.com/p/gambas/issues/detail?id=485 It should be fixed in revision #6031. The fix will be backported in Gambas 3.5.2. -- 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 Dec 29 21:59:43 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 29 Dec 2013 21:59:43 +0100 Subject: [Gambas-user] Relaunching a program as root Message-ID: <20131229205943.GF13849@...2774...> Hi all, last month I read a question at gambas-club.de about how to relaunch one's program with root privileges if it was running without them. This was the straw to break the camel's back :-) [*] As far as I can remember back, it was always a problem for the most to get sudo or su do the right things when controlled manually (and even to decide whether to use sudo or su). The other option was to use gb.desktop's Desktop.RunAsRoot() which but only supports su and needs pre-installed graphical tools. This was inherently buggy on my system because gb.desktop does not recognise my DE. For some reason, it always started "kdesvn" instead of "kdesu" to ask for my password and kdesvn is, as you might guess from the name, not suited as a replacement for kdesu. (I might as well have screwed up some configuration files on my system to confuse the xdg scripts. I don't know/care. The main point of this mail is:) So I sat down and wrote some classes which do the stuff in pure Gambas: - ask for the user's preferred method of authentication (su or sudo) (which is also saved as of version 0.1.2 if gb.settings is available); - ask for the password; - restart the program with root privileges giving feedback about the operation (user cancelled password input, user gave wrong password - or new process started successfully) to the old process which may then take an action like terminating itself or, e.g., run with reduced functionality if the user cancelled input, etc.. I hope these classes can make the "can you give me (please)" kind of questions about this topic answered quicker in the future ;-) If you think it's good enough and know a good place in the docs where I can put this, please tell me. I think (but try to convince me of the contrary): - people won't find it in "Application Repository"; - "Tutorials" just doesn't look right; - "How To..." seems to target auxiliary topics like desktop integration and using unicode - in a "code snippet" manner. I cannot promise to fix bugs you encountered but opinions are welcome ;-) Regards, Tobi [*] Is this really how the english-speaking world knows that idiom? Sounds pretty strange. In German it is the "drop that makes the vat overflow". But googling a bit showed me that you english guys do other strange things with our German "vats" like "this hits the bottom out of the vat" - literally translated from German - is known as "this takes the biscuit" in English :-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: relaunch-root-0.1.2.tar.gz Type: application/octet-stream Size: 8613 bytes Desc: not available URL: From gambas at ...1... Mon Dec 30 00:11:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 30 Dec 2013 00:11:38 +0100 Subject: [Gambas-user] GridView, ColumnClick is not fired In-Reply-To: <1388335249.2571.7.camel@...40...> References: <1388335249.2571.7.camel@...40...> Message-ID: <52C0AC2A.5040303@...1...> Le 29/12/2013 17:40, Charlie Reinl a ?crit : > Salut Beno?t, > > GridView, ColumnClick is not fired. so a click on Columns Header ends in > Click and says the click was on row 0. > > attached a TEST-project > It should be fixed in revision #6034. Regards, -- Beno?t Minisini From bbruen at ...2308... Mon Dec 30 01:25:51 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 30 Dec 2013 10:55:51 +1030 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <20131229205943.GF13849@...2774...> References: <20131229205943.GF13849@...2774...> Message-ID: <1388363151.18770.92.camel@...2688...> On Sun, 2013-12-29 at 21:59 +0100, Tobias Boege wrote: > Hi all, > > last month I read a question at gambas-club.de about how to relaunch one's > program with root privileges if it was running without them. This was the > straw to break the camel's back :-) [*] > > As far as I can remember back, it was always a problem for the most to get > sudo or su do the right things when controlled manually (and even to decide > whether to use sudo or su). > > The other option was to use gb.desktop's Desktop.RunAsRoot() which but only > supports su and needs pre-installed graphical tools. This was inherently > buggy on my system because gb.desktop does not recognise my DE. For some > reason, it always started "kdesvn" instead of "kdesu" to ask for my > password and kdesvn is, as you might guess from the name, not suited as a > replacement for kdesu. (I might as well have screwed up some configuration > files on my system to confuse the xdg scripts. I don't know/care. The main > point of this mail is:) > > So I sat down and wrote some classes which do the stuff in pure Gambas: > - ask for the user's preferred method of authentication (su or sudo) (which > is also saved as of version 0.1.2 if gb.settings is available); > - ask for the password; > - restart the program with root privileges giving feedback about the > operation (user cancelled password input, user gave wrong password - or > new process started successfully) to the old process which may then > take an action like terminating itself or, e.g., run with reduced > functionality if the user cancelled input, etc.. > > I hope these classes can make the "can you give me (please)" kind of > questions about this topic answered quicker in the future ;-) > > If you think it's good enough and know a good place in the docs where I can > put this, please tell me. I think (but try to convince me of the contrary): > > - people won't find it in "Application Repository"; > - "Tutorials" just doesn't look right; > - "How To..." seems to target auxiliary topics like desktop integration and > using unicode - in a "code snippet" manner. > > I cannot promise to fix bugs you encountered but opinions are welcome ;-) > > Regards, > Tobi > Tobi, I have had a quick look at it and here are some observations. 1) Just because sudo is installed on the system it does not mean that the current user is an allowed sudo user. If not then no matter what they type in as a password, when they click OK, the program just "disappears". 2) Related to 1. It should not assume, just because sudo is installed, that sudo is the preferred method. 3) The Authentication form needs work. The labels are not visually associated with the correct control. (This one was from Felicity, who can pick these things out with a 3 second glance at a form). 4) I'd say "How To..." is the proper place for this, even if it is populated mainly with code-snippet information. Reasoning: this is an auxilliary topic and further it is an "advanced" (i.e. complicated) topic. 5) Using this approach, the project concerned must use a gui, so it is no good for command line applications. 6) There is a considerable security concern with using this approach, since the password is being entered into a gambas control, in _Authbox.class: Public Sub btnOK_Click() $sResult = txtPassword.Text ' and now some code that will email me the IP address, user ID and root password ' ... Me.Close() End So, I wouldn't trust a gambas app from someone else that popped up that form. Don't get me wrong, I'm not trying to be destructive. I can understand the "need" for privilege escalation within a gambas application. We have had the same need for several years with our thoroughbred training system. My philosophy goes like this, if the entire application needs to be privileged, then it should be installed as a root program i.e. let linux take care of the problem. On the other hand, if only part of the program needs escalated privileges then that part needs to be compartmentalised and the escalation confined within it. Think ./configure make su make install I we wanted to write a gambas program to install gambas programs then only that last step needs privileges. (In fact, we have written one of these that we use to distribute updates to our clients. It also does a lot of other things as well that don't need privileges. Here is the relevant code: ' 4) make install Select Case Desktop.Type Case "LXDE" Shell Subst("gksu -D Installer 'cd &1; pwd; make install'", sPath, "")) To logger Print logger Case "KDE", "KDE4" Shell Subst("kdesu -n 'cd &1; pwd; make install'", sPath) To logger Print logger Case "GNOME", "XFCE" Shell Subst("'cd &1; pwd; pkexec make install'", sPat>) To logger Case Else Print "Installer type for " & Desktop.Type & " is unknown" End Select In other words, we let the standard mechanism for the desktop handle the privilege escalation (and if that program mails the special password somewhere, its not our fault!) Anyway, that's just what I think. cheers Bruce p.s. The "last straw that breaks the camel's back" might not be what you wanted. It conveys a complaint from the recipient of a task to the sender as in when I am going to the shops for a 5 minute visit and someone says "Oh, while you're there can you get me..." and someone else says "Could you also drop by the baker and get me some ..." and someone else says "Can you check if there is any mail at the post office". At that point my "load of straw", i.e. the task load, just got too heavy. In Australian, I reply, "Well, that's about the last bloody straw". Here, we have a saying "Yes, somebody ought to do something about that" that is used when a problem is mentioned for the thousandth time. Inevitably, some poor sod will take a deep breath and undertake to fix the said problem, thinking "and I suppose that "somebody" will have to be me". Is that what you meant? From taboege at ...626... Mon Dec 30 02:10:15 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 30 Dec 2013 02:10:15 +0100 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <1388363151.18770.92.camel@...2688...> References: <20131229205943.GF13849@...2774...> <1388363151.18770.92.camel@...2688...> Message-ID: <20131230011015.GG13849@...2774...> On Mon, 30 Dec 2013, Bruce wrote: > On Sun, 2013-12-29 at 21:59 +0100, Tobias Boege wrote: > > Hi all, > > > > last month I read a question at gambas-club.de about how to relaunch one's > > program with root privileges if it was running without them. This was the > > straw to break the camel's back :-) [*] > > > > As far as I can remember back, it was always a problem for the most to get > > sudo or su do the right things when controlled manually (and even to decide > > whether to use sudo or su). > > > > The other option was to use gb.desktop's Desktop.RunAsRoot() which but only > > supports su and needs pre-installed graphical tools. This was inherently > > buggy on my system because gb.desktop does not recognise my DE. For some > > reason, it always started "kdesvn" instead of "kdesu" to ask for my > > password and kdesvn is, as you might guess from the name, not suited as a > > replacement for kdesu. (I might as well have screwed up some configuration > > files on my system to confuse the xdg scripts. I don't know/care. The main > > point of this mail is:) > > > > So I sat down and wrote some classes which do the stuff in pure Gambas: > > - ask for the user's preferred method of authentication (su or sudo) (which > > is also saved as of version 0.1.2 if gb.settings is available); > > - ask for the password; > > - restart the program with root privileges giving feedback about the > > operation (user cancelled password input, user gave wrong password - or > > new process started successfully) to the old process which may then > > take an action like terminating itself or, e.g., run with reduced > > functionality if the user cancelled input, etc.. > > > > I hope these classes can make the "can you give me (please)" kind of > > questions about this topic answered quicker in the future ;-) > > > > If you think it's good enough and know a good place in the docs where I can > > put this, please tell me. I think (but try to convince me of the contrary): > > > > - people won't find it in "Application Repository"; > > - "Tutorials" just doesn't look right; > > - "How To..." seems to target auxiliary topics like desktop integration and > > using unicode - in a "code snippet" manner. > > > > I cannot promise to fix bugs you encountered but opinions are welcome ;-) > > > > Regards, > > Tobi > > > Tobi, > > I have had a quick look at it and here are some observations. > 1) Just because sudo is installed on the system it does not mean that > the current user is an allowed sudo user. If not then no matter what > they type in as a password, when they click OK, the program just > "disappears". Doesn't happen here. My desktop user is not allowed to use sudo and if he does (with whatever password), the program shows the "Oops, something went wrong" box as wanted. I wonder what's the matter with my code. The OP at gambas-club.de said the program didn't even ask him for the password...? > 2) Related to 1. It should not assume, just because sudo is installed, > that sudo is the preferred method. I thought I would be one of only a few who have sudo but don't use it everywhere on a desktop computer :-) Noted and fixed. > 3) The Authentication form needs work. The labels are not visually > associated with the correct control. (This one was from Felicity, who > can pick these things out with a 3 second glance at a form). What do you mean? I have attached a picture of how it looks when running over here. Anything distorted there I don't recognise? > 4) I'd say "How To..." is the proper place for this, even if it is > populated mainly with code-snippet information. Reasoning: this is an > auxilliary topic and further it is an "advanced" (i.e. complicated) > topic. > 5) Using this approach, the project concerned must use a gui, so it is > no good for command line applications. Good point! However, it is not that easy in Gambas to manipulate the controlling terminal (disable echoing to let the user type his password). The only possibility I see, without using gb.ncurses, would involve some Externs and the nightmare of looking at struct termios from Gambas... > 6) There is a considerable security concern with using this approach, > since the password is being entered into a gambas control, in > _Authbox.class: > Public Sub btnOK_Click() > $sResult = txtPassword.Text > ' and now some code that will email me the IP address, user ID > and root password > ' ... > > Me.Close() > End > So, I wouldn't trust a gambas app from someone else that popped up that > form. > > > Don't get me wrong, I'm not trying to be destructive. I can understand > the "need" for privilege escalation within a gambas application. We have > had the same need for several years with our thoroughbred training > system. My philosophy goes like this, if the entire application needs > to be privileged, then it should be installed as a root program i.e. let > linux take care of the problem. On the other hand, if only part of the > program needs escalated privileges then that part needs to be > compartmentalised and the escalation confined within it. Think > ./configure > make > su make install > That's what I would do at any rate but the OP wanted to start a Gambas program with root privileges from the program itself. I really didn't think about how good this idea would at all be :-) > I we wanted to write a gambas program to install gambas programs then > only that last step needs privileges. (In fact, we have written one of > these that we use to distribute updates to our clients. It also does a > lot of other things as well that don't need privileges. Here is the > relevant code: > > ' 4) make install > Select Case Desktop.Type > Case "LXDE" > Shell Subst("gksu -D Installer 'cd &1; pwd; make install'", sPath, > "")) To logger > Print logger > Case "KDE", "KDE4" > Shell Subst("kdesu -n 'cd &1; pwd; make install'", sPath) To > logger > Print logger > Case "GNOME", "XFCE" > Shell Subst("'cd &1; pwd; pkexec make install'", sPat>) To logger > Case Else > Print "Installer type for " & Desktop.Type & " is unknown" > End Select > > In other words, we let the standard mechanism for the desktop handle the > privilege escalation (and if that program mails the special password > somewhere, its not our fault!) > Looks pretty much like an enhanced Gambas port of the xdg-su script. As I noted, on my system this would go to Case Else with a pristine Gambas installation but with a small patch I made to gb.desktop it should work... I drawback is that you have to code different things for different systems which I ultimately wanted to circumvent with my _AuthBox written in Gambas alone. > Anyway, that's just what I think. > Yep, thanks. There are definitely some things I will change tomorrow. > cheers > Bruce > > p.s. The "last straw that breaks the camel's back" might not be what you > wanted. It conveys a complaint from the recipient of a task to the > sender as in when I am going to the shops for a 5 minute visit and > someone says "Oh, while you're there can you get me..." and someone else > says "Could you also drop by the baker and get me some ..." and someone > else says "Can you check if there is any mail at the post office". At > that point my "load of straw", i.e. the task load, just got too heavy. > In Australian, I reply, "Well, that's about the last bloody straw". > > Here, we have a saying "Yes, somebody ought to do something about that" > that is used when a problem is mentioned for the thousandth time. > Inevitably, some poor sod will take a deep breath and undertake to fix > the said problem, thinking "and I suppose that "somebody" will have to > be me". Is that what you meant? Mhm... So the translation was really not correct but close in some regard. I meant: I was fed up with being asked this question; that post was the last one about that topic I could take. But your suggestion also comes close. Idioms are difficult... especially considering the time of day. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: relaunch-root-authbox.png Type: image/png Size: 6589 bytes Desc: not available URL: From bbruen at ...2308... Mon Dec 30 02:37:18 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 30 Dec 2013 12:07:18 +1030 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <20131230011015.GG13849@...2774...> References: <20131229205943.GF13849@...2774...> <1388363151.18770.92.camel@...2688...> <20131230011015.GG13849@...2774...> Message-ID: <1388367438.14742.1.camel@...2688...> On Mon, 2013-12-30 at 02:10 +0100, Tobias Boege wrote: > > 3) The Authentication form needs work. The labels are not visually > > associated with the correct control. (This one was from Felicity, who > > can pick these things out with a 3 second glance at a form). > > What do you mean? I have attached a picture of how it looks when running > over here. Anything distorted there I don't recognise? Editted picture attached regards Felicity -------------- next part -------------- A non-text attachment was scrubbed... Name: relaunch-root-authbox.png Type: image/png Size: 10258 bytes Desc: not available URL: From nemh at ...2007... Mon Dec 30 03:20:07 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 30 Dec 2013 03:20:07 +0100 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <20131229205943.GF13849@...2774...> References: <20131229205943.GF13849@...2774...> Message-ID: <52C0D857.4080308@...2007...> 2013-12-29 21:59 keltez?ssel, Tobias Boege ?rta: > Hi all, > > last month I read a question at gambas-club.de about how to relaunch one's > program with root privileges if it was running without them. This was the > straw to break the camel's back :-) [*] > > As far as I can remember back, it was always a problem for the most to get > sudo or su do the right things when controlled manually (and even to decide > whether to use sudo or su). > > The other option was to use gb.desktop's Desktop.RunAsRoot() which but only > supports su and needs pre-installed graphical tools. This was inherently > buggy on my system because gb.desktop does not recognise my DE. For some > reason, it always started "kdesvn" instead of "kdesu" to ask for my > password and kdesvn is, as you might guess from the name, not suited as a > replacement for kdesu. (I might as well have screwed up some configuration > files on my system to confuse the xdg scripts. I don't know/care. The main > point of this mail is:) > > So I sat down and wrote some classes which do the stuff in pure Gambas: > - ask for the user's preferred method of authentication (su or sudo) (which > is also saved as of version 0.1.2 if gb.settings is available); > - ask for the password; > - restart the program with root privileges giving feedback about the > operation (user cancelled password input, user gave wrong password - or > new process started successfully) to the old process which may then > take an action like terminating itself or, e.g., run with reduced > functionality if the user cancelled input, etc.. > > I hope these classes can make the "can you give me (please)" kind of > questions about this topic answered quicker in the future ;-) > > If you think it's good enough and know a good place in the docs where I can > put this, please tell me. I think (but try to convince me of the contrary): > > - people won't find it in "Application Repository"; > - "Tutorials" just doesn't look right; > - "How To..." seems to target auxiliary topics like desktop integration and > using unicode - in a "code snippet" manner. > > I cannot promise to fix bugs you encountered but opinions are welcome ;-) > > Regards, > Tobi > > Jeez, that's complicated code! I wrote my own version, this is perhaps a little simpler. Check it. ;-) Otherwise. Your code: IIf(Application.Path Ends ".gambas", "/usr/bin/gbr3 ", "/usr/bin/gbx3 ") & Application.Path isn't correct, because Application.Path is a directory, not file. And a little bug. If I use sudo method and I write good password, then opened two window; root and error message (good with su method). Kendek -------------- next part -------------- A non-text attachment was scrubbed... Name: relaunchbykendek.tar.gz Type: application/gzip Size: 6197 bytes Desc: not available URL: From nemh at ...2007... Mon Dec 30 04:20:00 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 30 Dec 2013 04:20:00 +0100 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <52C0D857.4080308@...2007...> References: <20131229205943.GF13849@...2774...> <52C0D857.4080308@...2007...> Message-ID: <52C0E660.3000005@...2007...> 2013-12-30 03:20 keltez?ssel, Kende Kriszti?n ?rta: > > Jeez, that's complicated code! > > I wrote my own version, this is perhaps a little simpler. Check it. ;-) > > Otherwise. Your code: > > IIf(Application.Path Ends ".gambas", "/usr/bin/gbr3 ", "/usr/bin/gbx3 > ") & Application.Path > > isn't correct, because Application.Path is a directory, not file. > > And a little bug. If I use sudo method and I write good password, then > opened two window; root and error message (good with su method). > > > Kendek > > And I forgot Xauthority file. :-( But now is good. Kendek -------------- next part -------------- A non-text attachment was scrubbed... Name: relaunchbykendek.tar.gz Type: application/gzip Size: 6304 bytes Desc: not available URL: From wally at ...2037... Mon Dec 30 08:59:34 2013 From: wally at ...2037... (wally) Date: Mon, 30 Dec 2013 08:59:34 +0100 Subject: [Gambas-user] svn build problem 6035 Message-ID: <6676337.bkD9YO6BVz@...3040...> Hi, anubody else has this problem ? If necessary i can send better logs. Hope this is sufficient for a first view. At revision 6035. make[4]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3/src' CXX gb_gtk3_la-gmemory.lo CXX gb_gtk3_la-font-parser.lo CXX gb_gtk3_la-gtools.lo gtools.cpp: In function 'gColor get_gdk_fg_color(GtkWidget*, bool)': gtools.cpp:161:5: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp:161:29: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp: In function 'gColor get_gdk_bg_color(GtkWidget*, bool)': gtools.cpp:178:5: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp:178:29: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp: In function 'gColor get_gdk_text_color(GtkWidget*, bool)': gtools.cpp:195:5: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp:195:29: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp: In function 'gColor get_gdk_base_color(GtkWidget*, bool)': gtools.cpp:212:5: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp:212:29: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations] st=gtk_widget_get_style(wid); ^ gtools.cpp: In function 'void gt_cairo_draw_pixbuf(cairo_t*, GdkPixbuf*, float, float, float, float, float, GB_RECT*)': gtools.cpp:1885:55: error: 'gdk_cairo_create_surface_from_pixbuf' was not declared in this scope surface = gt_cairo_create_surface_from_pixbuf(pixbuf); ^ gtools.cpp: In function 'GtkStyle* get_style(const char*, int)': gtools.cpp:2011:17: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, NULL, name, type); ^ gtools.cpp:2011:64: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, NULL, name, type); ^ gtools.cpp:2012:16: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ gtools.cpp:2012:45: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ gtools.cpp: In function 'GtkStyle* get_widget_style(const char*)': gtools.cpp:2019:17: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, name, NULL, G_TYPE_NONE); ^ gtools.cpp:2019:71: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, name, NULL, G_TYPE_NONE); ^ gtools.cpp:2020:16: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ gtools.cpp:2020:45: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ make[4]: *** [gb_gtk3_la-gtools.lo] Error 1 make[4]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk' make: *** [all] Error 2 From gambas at ...1... Mon Dec 30 10:40:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 30 Dec 2013 10:40:29 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <6676337.bkD9YO6BVz@...3040...> References: <6676337.bkD9YO6BVz@...3040...> Message-ID: <52C13F8D.8090806@...1...> Le 30/12/2013 08:59, wally a ?crit : > Hi, > > anubody else has this problem ? > If necessary i can send better logs. > Hope this is sufficient for a first view. > > > At revision 6035. > What's your GTK+3 version ? -- Beno?t Minisini From Karl.Reinl at ...2345... Mon Dec 30 11:18:20 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 30 Dec 2013 11:18:20 +0100 Subject: [Gambas-user] FIXED : GridView, ColumnClick is not fired In-Reply-To: <52C0AC2A.5040303@...1...> References: <1388335249.2571.7.camel@...40...> <52C0AC2A.5040303@...1...> Message-ID: <1388398700.2476.1.camel@...40...> Am Montag, den 30.12.2013, 00:11 +0100 schrieb Beno?t Minisini: > Le 29/12/2013 17:40, Charlie Reinl a ?crit : > > Salut Beno?t, > > > > GridView, ColumnClick is not fired. so a click on Columns Header ends in > > Click and says the click was on row 0. > > > > attached a TEST-project > > > > It should be fixed in revision #6034. > > Regards, > confirmed for GridView -- Amicalement Charlie From taboege at ...626... Mon Dec 30 12:15:16 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 30 Dec 2013 12:15:16 +0100 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <52C0D857.4080308@...2007...> References: <20131229205943.GF13849@...2774...> <52C0D857.4080308@...2007...> Message-ID: <20131230111516.GB473@...2774...> On Mon, 30 Dec 2013, Kende Kriszti?n wrote: > Otherwise. Your code: > > IIf(Application.Path Ends ".gambas", "/usr/bin/gbr3 ", "/usr/bin/gbx3 ") & > Application.Path > > isn't correct, because Application.Path is a directory, not file. > Right! You used Application.Path &/ Application.Name which seems the best possible solution but it is yet not perfect. What if the user calls his project A and calls the archive B.gambas? Then it would not work, right? Is a property in Application missing? > And a little bug. If I use sudo method and I write good password, then > opened two window; root and error message (good with su method). > This bug was also reported to me from Hans but it never happened to me... Let's see... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From wally at ...2037... Mon Dec 30 12:31:11 2013 From: wally at ...2037... (wally) Date: Mon, 30 Dec 2013 12:31:11 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <52C13F8D.8090806@...1...> References: <6676337.bkD9YO6BVz@...3040...> <52C13F8D.8090806@...1...> Message-ID: <14616153.KQyMftklnT@...3040...> On Monday 30 December 2013 10:40:29 Beno?t Minisini wrote: > Le 30/12/2013 08:59, wally a ?crit : > > Hi, > > > > anubody else has this problem ? > > If necessary i can send better logs. > > Hope this is sufficient for a first view. > > > > > > At revision 6035. > > What's your GTK+3 version ? 3.10.4-12.1 From nemh at ...2007... Mon Dec 30 12:36:13 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 30 Dec 2013 12:36:13 +0100 Subject: [Gambas-user] Relaunching a program as root In-Reply-To: <20131230111516.GB473@...2774...> References: <20131229205943.GF13849@...2774...> <52C0D857.4080308@...2007...> <20131230111516.GB473@...2774...> Message-ID: <52C15AAD.9020703@...2007...> 2013-12-30 12:15 keltez?ssel, Tobias Boege ?rta: > On Mon, 30 Dec 2013, Kende Kriszti?n wrote: >> Otherwise. Your code: >> >> IIf(Application.Path Ends ".gambas", "/usr/bin/gbr3 ", "/usr/bin/gbx3 ") & >> Application.Path >> >> isn't correct, because Application.Path is a directory, not file. >> > Right! You used Application.Path &/ Application.Name which seems the best > possible solution but it is yet not perfect. What if the user calls his > project A and calls the archive B.gambas? Then it would not work, right? Is > a property in Application missing? Yeah, and what if the '.gambas' filename extension doesn't exist? But this is just an example project, users can rewrite anyway. Just see how. >> And a little bug. If I use sudo method and I write good password, then >> opened two window; root and error message (good with su method). >> > This bug was also reported to me from Hans but it never happened to me... > Let's see... > > Regards, > Tobi > From gambas at ...1... Mon Dec 30 12:43:35 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 30 Dec 2013 12:43:35 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <14616153.KQyMftklnT@...3040...> References: <6676337.bkD9YO6BVz@...3040...> <52C13F8D.8090806@...1...> <14616153.KQyMftklnT@...3040...> Message-ID: <52C15C67.4030304@...1...> Le 30/12/2013 12:31, wally a ?crit : > On Monday 30 December 2013 10:40:29 Beno?t Minisini wrote: >> Le 30/12/2013 08:59, wally a ?crit : >>> Hi, >>> >>> anubody else has this problem ? >>> If necessary i can send better logs. >>> Hope this is sufficient for a first view. >>> >>> >>> At revision 6035. >> >> What's your GTK+3 version ? > > 3.10.4-12.1 > Fixed in revision #6037. Regards, -- Beno?t Minisini From wally at ...2037... Mon Dec 30 12:47:12 2013 From: wally at ...2037... (wally) Date: Mon, 30 Dec 2013 12:47:12 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <52C13F8D.8090806@...1...> References: <6676337.bkD9YO6BVz@...3040...> <52C13F8D.8090806@...1...> Message-ID: <2875926.JAMQfa2zuq@...3040...> On Monday 30 December 2013 10:40:29 Beno?t Minisini wrote: > Le 30/12/2013 08:59, wally a ?crit : > > Hi, > > > > anubody else has this problem ? > > If necessary i can send better logs. > > Hope this is sufficient for a first view. > > > > > > At revision 6035. > > What's your GTK+3 version ? 3.10.4-12.1 from Gmabs3 system info: [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.6-4-desktop Architecture=x86 Distribution=SuSE openSUSE 13.1 (i586) VERSION = 13.1 CODENAME = Bottle # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead Desktop=KDE4 Theme=Oxygen Language=en_US.UTF-8 Memory=2774M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.201.0 GTK+=libgtk-x11-2.0.so.0.2400.22 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.25.0.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.4 attached configure and make logs -------------- next part -------------- A non-text attachment was scrubbed... Name: svn_6035-log.tar.gz Type: application/x-compressed-tar Size: 2069 bytes Desc: not available URL: From wally at ...2037... Mon Dec 30 13:30:51 2013 From: wally at ...2037... (wally) Date: Mon, 30 Dec 2013 13:30:51 +0100 Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <52C15C67.4030304@...1...> References: <6676337.bkD9YO6BVz@...3040...> <14616153.KQyMftklnT@...3040...> <52C15C67.4030304@...1...> Message-ID: <12180389.XTR5E6Nemp@...3040...> On Monday 30 December 2013 12:43:35 Beno?t Minisini wrote: > Le 30/12/2013 12:31, wally a ?crit : > > On Monday 30 December 2013 10:40:29 Beno?t Minisini wrote: > >> Le 30/12/2013 08:59, wally a ?crit : > >>> Hi, > >>> > >>> anubody else has this problem ? > >>> If necessary i can send better logs. > >>> Hope this is sufficient for a first view. > >>> > >>> > >>> At revision 6035. > >> > >> What's your GTK+3 version ? > > > > 3.10.4-12.1 > > Fixed in revision #6037. > > Regards, Problem persists in 6037: make clean reconf-all configure -C make In file included from /usr/include/gtk-3.0/gdk/gdk.h:33:0, from widgets.h:27, from gtools.cpp:24: /usr/include/gtk-3.0/gdk/gdkcairo.h:70:19: note: declared here cairo_surface_t * gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf, ^ gtools.cpp: In function 'GtkStyle* get_style(const char*, int)': gtools.cpp:2011:17: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, NULL, name, type); ^ gtools.cpp:2011:64: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, NULL, name, type); ^ gtools.cpp:2012:16: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ gtools.cpp:2012:45: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ gtools.cpp: In function 'GtkStyle* get_widget_style(const char*)': gtools.cpp:2019:17: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, name, NULL, G_TYPE_NONE); ^ gtools.cpp:2019:71: warning: 'GtkStyle* gtk_rc_get_style_by_paths(GtkSettings*, const char*, const char*, GType)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkrc.h:155): Use 'GtkStyleContext' instead [-Wdeprecated-declarations] GtkStyle* st = gtk_rc_get_style_by_paths(set, name, NULL, G_TYPE_NONE); ^ gtools.cpp:2020:16: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ gtools.cpp:2020:45: warning: 'GtkStyle* gtk_widget_get_default_style()' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:704): Use 'gtk_style_context_new' instead [-Wdeprecated-declarations] if (!st) st = gtk_widget_get_default_style(); ^ make[4]: *** [gb_gtk3_la-gtools.lo] Error 1 make[4]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk' make: *** [all] Error 2 From gambas at ...2524... Mon Dec 30 15:31:08 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 30 Dec 2013 14:31:08 +0000 Subject: [Gambas-user] Issue 489 in gambas: One more LIKE operator bug Message-ID: <0-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 489 by krisztiankende: One more LIKE operator bug http://code.google.com/p/gambas/issues/detail?id=489 The following code output is incorrect: TextBox1.Text = "alma" If True And TextBox1.Text Not Like "a*" Then Print True Else Print False Output: True (Should be False.) But the following is good: If True And If TextBox1.Text Not Like "a*" Then Print True Else Print False Otput: False And if I use string: Dim almatext As String TextBox1.Text = "alma" almatext = TextBox1.Text If True And almatext Not Like "a*" Then Print True Else Print False Output: False I use Gambas 3.5.1 on Ubuntu 13.10 (amd64). -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Mon Dec 30 18:06:17 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 30 Dec 2013 18:06:17 +0100 Subject: [Gambas-user] Native Complex type? In-Reply-To: <20131229153858.GE514@...2774...> References: <20131221155332.GZ511@...2774...> <52B72ACA.5050401@...1...> <20131229153858.GE514@...2774...> Message-ID: Le 29 d?c. 2013 16:40, "Tobias Boege" a ?crit : > > On Sun, 22 Dec 2013, Beno?t Minisini wrote: > > Le 21/12/2013 16:53, Tobias Boege a ?crit : > > > Hi Benoit, > > > > > > is it planned to support complex numbers in Val() or to have an IsComplex() > > > function? > > > > No at the moment. > > > > It's a problem for Val(), because some people may assume that Val() only > > returns a Date, a Boolean, a Float or an Integer. > > > > So we might talk about this again before Gambas 4? :-) A lot of things will append for gb 4... ;-) > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Mon Dec 30 20:10:19 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 30 Dec 2013 19:10:19 +0000 (GMT) Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 Message-ID: <1388430619.18161.YahooMailBasic@...3268...> Hello, I updated my Gambas-3 with rev. #6038, but at the end of " ~/trunk $ ./configure -C " I obtain the following warning: || || THESE COMPONENTS ARE DISABLED: || - gb.gtk3 || Which library have I to install ? Thanks vuott From nemh at ...2007... Mon Dec 30 20:18:29 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 30 Dec 2013 20:18:29 +0100 Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <1388430619.18161.YahooMailBasic@...3268...> References: <1388430619.18161.YahooMailBasic@...3268...> Message-ID: <52C1C705.9070705@...2007...> 2013-12-30 20:10 keltez?ssel, Ru Vuott ?rta: > Hello, > > I updated my Gambas-3 with rev. #6038, but at the end of " ~/trunk $ ./configure -C " I obtain the following warning: > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.gtk3 > || > > Which library have I to install ? > > Thanks > vuott > > libgtk-3-dev From wally at ...2037... Mon Dec 30 20:24:59 2013 From: wally at ...2037... (wally) Date: Mon, 30 Dec 2013 20:24:59 +0100 Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <1388430619.18161.YahooMailBasic@...3268...> References: <1388430619.18161.YahooMailBasic@...3268...> Message-ID: <3463806.Uol3rDfzJJ@...3040...> On Monday 30 December 2013 19:10:19 Ru Vuott wrote: > Hello, > > I updated my Gambas-3 with rev. #6038, but at the end of " ~/trunk $ ./configure -C " I obtain the following warning: > || THESE COMPONENTS ARE DISABLED: > || - gb.gtk3 > > Which library have I to install ? > > Thanks > vuott > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Vuott, on Opensuse the package names are : gtk3-devel gtk3-tools libgtk-3-0 gtk3-data the rest should be done by package dependencies. Please let me know if 6038 will build. Here it does not wally From vuott at ...325... Mon Dec 30 20:40:59 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 30 Dec 2013 19:40:59 +0000 (GMT) Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <52C1C705.9070705@...2007...> Message-ID: <1388432459.91521.YahooMailBasic@...3269...> Well, now it works ! Thank you, Kende Bye vuot -------------------------------------------- Lun 30/12/13, Kende Kriszti?n ha scritto: Oggetto: Re: [Gambas-user] gb.gtk3 disabled with rev. #6038 A: gambas-user at lists.sourceforge.net Data: Luned? 30 dicembre 2013, 20:18 2013-12-30 20:10 keltez?ssel, Ru Vuott ?rta: > Hello, > > I updated my Gambas-3 with rev. #6038, but at the end of " ~/trunk $ ./configure -C " I obtain the following warning: > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.gtk3 > || > > Which library have I to install ? > > Thanks > vuott > > libgtk-3-dev ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nemh at ...2007... Mon Dec 30 20:53:13 2013 From: nemh at ...2007... (=?ISO-8859-1?Q?Kende_Kriszti=E1n?=) Date: Mon, 30 Dec 2013 20:53:13 +0100 Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <1388432459.91521.YahooMailBasic@...3269...> References: <1388432459.91521.YahooMailBasic@...3269...> Message-ID: <52C1CF29.7000305@...2007...> 2013-12-30 20:40 keltez?ssel, Ru Vuott ?rta: > Well, now it works ! > > Thank you, Kende > > Bye > vuot > > And I working on Ubuntu "Daily Builds" PPA. I create 'gambas3-gb-gtk3' and 'gambas3-gb-inotify' packages. Kendek From vuott at ...325... Mon Dec 30 20:58:50 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 30 Dec 2013 19:58:50 +0000 (GMT) Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <3463806.Uol3rDfzJJ@...3040...> Message-ID: <1388433530.92593.YahooMailBasic@...3271...> Hi wally, I installed " libgtk-3-dev " library, following Kende's suggestion. So, the updating was good. I would like to understand if I have to install those other libraries gtk3-devel gtk3-tools libgtk-3-0 gtk3-data that you have shown me. Thanks vuott -------------------------------------------- Lun 30/12/13, wally ha scritto: Oggetto: Re: [Gambas-user] gb.gtk3 disabled with rev. #6038 A: "mailing list for gambas users" Data: Luned? 30 dicembre 2013, 20:24 On Monday 30 December 2013 19:10:19 Ru Vuott wrote: > Hello, > > I updated my Gambas-3 with rev. #6038, but at the end of " ~/trunk $ ./configure -C " I obtain the following warning: > || THESE COMPONENTS ARE DISABLED: > || - gb.gtk3 > > Which library have I to install ? > > Thanks > vuott > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Vuott, on Opensuse the package names are : gtk3-devel gtk3-tools libgtk-3-0 gtk3-data the rest should be done by package dependencies. Please let me know if 6038 will build. Here it does not wally ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From wally at ...2037... Mon Dec 30 21:21:19 2013 From: wally at ...2037... (wally) Date: Mon, 30 Dec 2013 21:21:19 +0100 Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <1388433530.92593.YahooMailBasic@...3271...> References: <1388433530.92593.YahooMailBasic@...3271...> Message-ID: <3363211.2J3lb4bvr2@...3040...> On Monday 30 December 2013 19:58:50 Ru Vuott wrote: > Hi wally, > > I installed " libgtk-3-dev " library, following Kende's suggestion. > > So, the updating was good. > > I would like to understand if I have to install those other libraries > > gtk3-devel > gtk3-tools > libgtk-3-0 > gtk3-data > > that you have shown me. > > Thanks > vuott > > > -------------------------------------------- > Lun 30/12/13, wally ha scritto: > > Oggetto: Re: [Gambas-user] gb.gtk3 disabled with rev. #6038 > A: "mailing list for gambas users" > Data: Luned? 30 dicembre 2013, 20:24 > > On Monday 30 December 2013 19:10:19 > > Ru Vuott wrote: > > Hello, > > > > I updated my Gambas-3 with rev. #6038, but at the end > > of " ~/trunk $ > > ./configure -C " I obtain the following warning: > > || THESE COMPONENTS ARE DISABLED: > > || - gb.gtk3 > > > > Which library have I to install ? > > > > Thanks > > vuott > > --------------------------------------------------------------------------- > - > > -- Rapidly troubleshoot problems before they affect > > your business. Most IT > > > organizations don't have a clear picture of how > > application performance > > > affects their revenue. With AppDynamics, you get 100% > > visibility into your > > > Java,.NET, & PHP application. Start your 15-day > > FREE TRIAL of AppDynamics > > > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt > > rk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi Vuott, > > on Opensuse the package names are : > > gtk3-devel > gtk3-tools > libgtk-3-0 > gtk3-data > > the rest should be done by package dependencies. > Please let me know if 6038 will build. > Here it does not > > > wally > > > > > > > --------------------------------------------------------------------------- > --- Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I suggest not to install if you not need I always install little more as needed, because the necessary packages are named different on OpenSuse and distro ambas doc reports. From gambas at ...2524... Mon Dec 30 22:00:03 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 30 Dec 2013 21:00:03 +0000 Subject: [Gambas-user] Issue 490 in gambas: Possible printing bug? (printing multiple 1st pages) Message-ID: <0-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 490 by jonericn... at ...626...: Possible printing bug? (printing multiple 1st pages) http://code.google.com/p/gambas/issues/detail?id=490 I have encountered a possible bug -- OR, I just need somebody to correct me. When I try to print a document that exceeds one page, I only get multiple copies of the first page. I BELIEVE that I am using the Printer and Paint syntax correctly. My attached project includes a document formatted in agreement with the "rich text " subset of HTML used by Gambas. (The formatting is crude, only to provide a printable sample document.) This document SHOULD print over a span of 9 pages, but instead I only get 9 of the same pages (1st page, 9X). From my work with this program, it appears that either the "Paint" class or "Printer" class is behaving like Printer.Count is the same as Printer.NumCopies. Please let me know if this is my error, or if it is a bug. In the attached project, I have set the default printer as printing to a .PDF file. Version: 3.50 Operating system: Linux Distribution: Xubuntu 13.10 Architecture: x86_64 GUI component: QT4 Desktop used: XFCE4 Attachments: PrintTestMulti-page.tar.gz 22.5 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Mon Dec 30 23:44:48 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 30 Dec 2013 22:44:48 +0000 (GMT) Subject: [Gambas-user] gb.gtk3 disabled with rev. #6038 In-Reply-To: <3363211.2J3lb4bvr2@...3040...> Message-ID: <1388443488.65678.YahooMailBasic@...3273...> Oh, well. bye vuott -------------------------------------------- Lun 30/12/13, wally ha scritto: Oggetto: Re: [Gambas-user] gb.gtk3 disabled with rev. #6038 A: "mailing list for gambas users" Data: Luned? 30 dicembre 2013, 21:21 On Monday 30 December 2013 19:58:50 Ru Vuott wrote: > Hi wally, > > I installed " libgtk-3-dev " library, following Kende's suggestion. > > So, the updating was good. > > I would like to understand if I have to install those other libraries > >? ? gtk3-devel >? ? gtk3-tools >? ? libgtk-3-0 >? ? gtk3-data > > that you have shown me. > > Thanks > vuott > > > -------------------------------------------- > Lun 30/12/13, wally ha scritto: > >? Oggetto: Re: [Gambas-user] gb.gtk3 disabled with rev. #6038 >? A: "mailing list for gambas users" >? Data: Luned? 30 dicembre 2013, 20:24 > >? On Monday 30 December 2013 19:10:19 > >? Ru Vuott wrote: >? > Hello, >? > >? > I updated my Gambas-3 with rev. #6038, but at the end > >? of " ~/trunk $ > >? ./configure -C " I obtain the following warning: >? > || THESE COMPONENTS ARE DISABLED: >? > || - gb.gtk3 >? > >? > Which library have I to install ? >? > >? > Thanks >? > vuott > >? --------------------------------------------------------------------------- > - >? > -- Rapidly troubleshoot problems before they affect > >? your business. Most IT > >? > organizations don't have a clear picture of how > >? application performance > >? > affects their revenue. With AppDynamics, you get 100% > >? visibility into your > >? > Java,.NET, & PHP application. Start your 15-day > >? FREE TRIAL of AppDynamics > >? > Pro! >? > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt >? > rk >? > _______________________________________________ >? > Gambas-user mailing list >? > Gambas-user at lists.sourceforge.net >? > https://lists.sourceforge.net/lists/listinfo/gambas-user > >? Hi Vuott, > >? on Opensuse the package names are : > >? gtk3-devel >? gtk3-tools >? libgtk-3-0 >? gtk3-data > >? the rest should be done by package dependencies. >? Please let me know if 6038 will build. >? Here it does not > > >? wally > > > > > > >? --------------------------------------------------------------------------- > --- Rapidly troubleshoot problems before they affect your >? business. Most IT >? organizations don't have a clear picture of how application >? performance >? affects their revenue. With AppDynamics, you get 100% >? visibility into your >? Java,.NET, & PHP application. Start your 15-day FREE >? TRIAL of AppDynamics Pro! >? http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ---------------------------------------------------------------------------- > -- Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I suggest not to install if you not need I always install little more as needed, because the necessary packages are named different on OpenSuse and distro ambas doc reports. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nemh at ...2007... Mon Dec 30 23:51:15 2013 From: nemh at ...2007... (Kendek) Date: Mon, 30 Dec 2013 14:51:15 -0800 (PST) Subject: [Gambas-user] svn build problem 6035 In-Reply-To: <12180389.XTR5E6Nemp@...3040...> References: <6676337.bkD9YO6BVz@...3040...> <52C13F8D.8090806@...1...> <14616153.KQyMftklnT@...3040...> <52C15C67.4030304@...1...> <12180389.XTR5E6Nemp@...3040...> Message-ID: <1388443875692-44937.post@...3046...> I confirm this. Build log on Ubuntu 14.04 with GTK+3 3.10.6: https://launchpadlibrarian.net/161114453/buildlog_ubuntu-trusty-amd64.gambas3_3.5.99.1%2Bsvn20131230%2Bbuild7~ubuntu14.04.1_FAILEDTOBUILD.txt.gz See the very end. -- View this message in context: http://gambas.8142.n7.nabble.com/svn-build-problem-6035-tp44917p44937.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Tue Dec 31 00:45:58 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 31 Dec 2013 00:45:58 +0100 Subject: [Gambas-user] GridView question Message-ID: <1388447158.2587.25.camel@...40...> Salut, where can I find the Row-headers.Width and Column-headers.Height, for finally place my Editor right to the cell... Or missed I something? This With GV1[GV1.Row, 1] cbxFName.Move(GV1.X + .X , GV1.Y + .Y , .Width, .Height) works well without headers. -- Amicalement Charlie From vuott at ...325... Tue Dec 31 01:24:37 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 31 Dec 2013 00:24:37 +0000 (GMT) Subject: [Gambas-user] (no subject) Message-ID: <1388449477.96061.YahooMailBasic@...3274...> Hello, an our friend, member of italian Gambas forum (www.gambas-it.org), wrote that when he tries to put on a Form icon of "Printer" component, this icon does not show, it does not appear on the form. Here is his system: [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.11.0-15-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=3829M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Well, he said this problem also existed with the Gambas version 3.1.1 with Ubuntu 13.10. What problem can be ? What can he do ? Thanks vuott From vuott at ...325... Tue Dec 31 01:30:06 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 31 Dec 2013 00:30:06 +0000 (GMT) Subject: [Gambas-user] Icon of "Printer" component does not show on Form ! Message-ID: <1388449806.31200.YahooMailBasic@...3275...> Hello, an our friend, member of italian Gambas forum (www.gambas-it.org), wrote that when he tries to put on a Form icon of "Printer" component, this icon does not show, it does not appear on the form. Here is his system: [System] Gambas=3.5.1 OperatingSystem=Linux Kernel=3.11.0-15-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=3829M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Well, he said this problem also existed with the Gambas version 3.1.1 with Ubuntu 13.10. What problem can be ? What can he do ? Thanks vuott From gambas at ...2524... Tue Dec 31 12:15:55 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 11:15:55 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again Message-ID: <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 491 by krisztiankende: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 This code output is incorrect: If "alma" Like "{szilv,alm}a" Then Print True Else Print False Output: False This is the r6031 fix result, so please don't take it into the version 3.5.2, or fix it. Use Gambas 3.5.99 (r6037) on Ubuntu 13.10 (amd64). -- 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 Dec 31 12:22:46 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 11:22:46 +0000 Subject: [Gambas-user] Issue 489 in gambas: One more LIKE operator bug In-Reply-To: <0-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> Comment #1 on issue 489 by krisztiankende: One more LIKE operator bug http://code.google.com/p/gambas/issues/detail?id=489 I check it, and this bug is exist in the revision 6037. -- 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 Dec 31 15:32:35 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 14:32:35 +0000 Subject: [Gambas-user] Issue 489 in gambas: One more LIKE operator bug In-Reply-To: <1-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> <0-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2186939934104136152-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 489 by benoit.m... at ...626...: One more LIKE operator bug http://code.google.com/p/gambas/issues/detail?id=489 This is actually a compiler bug. Fixed in revision #6041. -- 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 wally at ...2037... Tue Dec 31 15:38:13 2013 From: wally at ...2037... (wally) Date: Tue, 31 Dec 2013 15:38:13 +0100 Subject: [Gambas-user] Menu toolbar disappeared Message-ID: <7386999.Do6Pr0d8yF@...3040...> Hi, how to get the Menu-toolbar back on top of the IDE ? I switched "Line Numbers" ON and the Menu disappeared. It displays a messag "use CTRL ALT M to get menu back, but nothing happens. 6041 does still not build on OpenSuse 13.1 (gtk3 component) wally From gambas at ...1... Tue Dec 31 15:45:25 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Dec 2013 15:45:25 +0100 Subject: [Gambas-user] Menu toolbar disappeared In-Reply-To: <7386999.Do6Pr0d8yF@...3040...> References: <7386999.Do6Pr0d8yF@...3040...> Message-ID: <52C2D885.6080709@...1...> Le 31/12/2013 15:38, wally a ?crit : > Hi, > > how to get the Menu-toolbar back on top of the IDE ? > I switched "Line Numbers" ON and the Menu disappeared. > It displays a messag "use CTRL ALT M to get menu back, but > nothing happens. > > 6041 does still not build on OpenSuse 13.1 > (gtk3 component) > > wally > It works there. Did you change the IDE shortcuts? -- Beno?t Minisini From gambas at ...1... Tue Dec 31 15:47:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Dec 2013 15:47:00 +0100 Subject: [Gambas-user] Menu toolbar disappeared In-Reply-To: <7386999.Do6Pr0d8yF@...3040...> References: <7386999.Do6Pr0d8yF@...3040...> Message-ID: <52C2D8E4.2070001@...1...> Le 31/12/2013 15:38, wally a ?crit : > > 6041 does still not build on OpenSuse 13.1 > (gtk3 component) > Do you have the same error or another one? If you are not sure, please always send the compiler output! -- Beno?t Minisini From wally at ...2037... Tue Dec 31 15:54:19 2013 From: wally at ...2037... (wally) Date: Tue, 31 Dec 2013 15:54:19 +0100 Subject: [Gambas-user] Menu toolbar disappeared In-Reply-To: <52C2D885.6080709@...1...> References: <7386999.Do6Pr0d8yF@...3040...> <52C2D885.6080709@...1...> Message-ID: <1572061.3X201VX7j6@...3040...> On Tuesday 31 December 2013 15:45:25 Beno?t Minisini wrote: > Le 31/12/2013 15:38, wally a ?crit : > > Hi, > > > > how to get the Menu-toolbar back on top of the IDE ? > > I switched "Line Numbers" ON and the Menu disappeared. > > It displays a messag "use CTRL ALT M to get menu back, but > > nothing happens. > > > > 6041 does still not build on OpenSuse 13.1 > > (gtk3 component) > > > > wally > > It works there. Did you change the IDE shortcuts? At least not consciously I send a error log in few minutes ( i also sent yesterday a different as the first one) wally From wally at ...2037... Tue Dec 31 15:56:49 2013 From: wally at ...2037... (wally) Date: Tue, 31 Dec 2013 15:56:49 +0100 Subject: [Gambas-user] Menu toolbar disappeared In-Reply-To: <52C2D8E4.2070001@...1...> References: <7386999.Do6Pr0d8yF@...3040...> <52C2D8E4.2070001@...1...> Message-ID: <16730295.kHRTGb8TJA@...3040...> On Tuesday 31 December 2013 15:47:00 Beno?t Minisini wrote: > Le 31/12/2013 15:38, wally a ?crit : > > 6041 does still not build on OpenSuse 13.1 > > (gtk3 component) > > Do you have the same error or another one? If you are not sure, please > always send the compiler output! yes, you are rightr, different error: make[4]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3/src' CXX gb_gtk3_la-gcontrol.lo gcontrol.cpp: In function 'void cb_update_font(GtkWidget*, gpointer)': gcontrol.cpp:733:2: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, desc); ^ gcontrol.cpp:733:37: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, desc); ^ gcontrol.cpp: In member function 'virtual void gControl::updateFont()': gcontrol.cpp:739:2: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, font()->desc()); ^ gcontrol.cpp:739:47: warning: 'void gtk_widget_modify_font(GtkWidget*, PangoFontDescription*)' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:699): Use 'gtk_widget_override_font' instead [-Wdeprecated-declarations] gtk_widget_modify_font(widget, font()->desc()); ^ gcontrol.cpp: In function 'void GTK_TYPE_WINDOW_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1493:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_WINDOW) ^ gcontrol.cpp: In function 'void GTK_TYPE_WINDOW_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1493:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_WINDOW) ^ gcontrol.cpp: In function 'void GTK_TYPE_ENTRY_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1494:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_ENTRY) ^ gcontrol.cpp: In function 'void GTK_TYPE_ENTRY_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1494:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_ENTRY) ^ gcontrol.cpp: In function 'void GTK_TYPE_SPIN_BUTTON_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1495:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_SPIN_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_SPIN_BUTTON_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1495:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_SPIN_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_BUTTON_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1496:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_BUTTON_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1496:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_FIXED_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1497:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_FIXED) ^ gcontrol.cpp: In function 'void GTK_TYPE_FIXED_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1497:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_FIXED) ^ gcontrol.cpp: In function 'void GTK_TYPE_EVENT_BOX_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1498:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_EVENT_BOX) ^ gcontrol.cpp: In function 'void GTK_TYPE_EVENT_BOX_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1498:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_EVENT_BOX) ^ gcontrol.cpp: In function 'void GTK_TYPE_ALIGNMENT_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1499:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_ALIGNMENT) ^ gcontrol.cpp: In function 'void GTK_TYPE_ALIGNMENT_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1499:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_ALIGNMENT) ^ gcontrol.cpp: In function 'void GTK_TYPE_TOGGLE_BUTTON_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1500:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_TOGGLE_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_TOGGLE_BUTTON_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1500:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_TOGGLE_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_SCROLLED_WINDOW_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1501:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_SCROLLED_WINDOW) ^ gcontrol.cpp: In function 'void GTK_TYPE_SCROLLED_WINDOW_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1501:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_SCROLLED_WINDOW) ^ gcontrol.cpp: In function 'void GTK_TYPE_CHECK_BUTTON_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1502:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_CHECK_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_CHECK_BUTTON_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1502:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_CHECK_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_RADIO_BUTTON_get_preferred_width(GtkWidget*, gint*, gint*)': gcontrol.cpp:1465:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1503:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_RADIO_BUTTON) ^ gcontrol.cpp: In function 'void GTK_TYPE_RADIO_BUTTON_get_preferred_height(GtkWidget*, gint*, gint*)': gcontrol.cpp:1473:50: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved3)(widget, minimum_size, natural_size); \ ^ gcontrol.cpp:1503:1: note: in expansion of macro 'PATCH_DECLARE' PATCH_DECLARE(GTK_TYPE_RADIO_BUTTON) ^ gcontrol.cpp: In function 'int gt_get_preferred_width(GtkWidget*)': gcontrol.cpp:1509:13: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' if (klass->_gtk_reserved2) ^ gcontrol.cpp:1510:51: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' (*(void (*)(GtkWidget *, gint *, gint *))klass->_gtk_reserved2)(widget, &m, &n); ^ gcontrol.cpp: In member function 'void gControl::realize(bool)': gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1552:2: note: in expansion of macro 'PATCH_CLASS' PATCH_CLASS(border, GTK_TYPE_WINDOW) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1552:2: note: in expansion of macro 'PATCH_CLASS' PATCH_CLASS(border, GTK_TYPE_WINDOW) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1553:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_ENTRY) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1553:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_ENTRY) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1554:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_SPIN_BUTTON) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1554:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_SPIN_BUTTON) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1555:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_BUTTON) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1555:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_BUTTON) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1556:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_FIXED) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1556:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_FIXED) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1557:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_EVENT_BOX) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1557:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_EVENT_BOX) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1558:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_ALIGNMENT) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1558:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_ALIGNMENT) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1559:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_TOGGLE_BUTTON) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1559:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_TOGGLE_BUTTON) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1560:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_SCROLLED_WINDOW) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1560:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_SCROLLED_WINDOW) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1561:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_CHECK_BUTTON) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1561:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_CHECK_BUTTON) ^ gcontrol.cpp:1486:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved2' klass->_gtk_reserved2 = (void (*)())klass->get_preferred_width; \ ^ gcontrol.cpp:1562:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_RADIO_BUTTON) ^ gcontrol.cpp:1488:10: error: 'GtkWidgetClass' has no member named '_gtk_reserved3' klass->_gtk_reserved3 = (void (*)())klass->get_preferred_height; \ ^ gcontrol.cpp:1562:7: note: in expansion of macro 'PATCH_CLASS' else PATCH_CLASS(border, GTK_TYPE_RADIO_BUTTON) ^ gcontrol.cpp: In member function 'bool gControl::grab()': gcontrol.cpp:2054:6: warning: 'GdkGrabStatus gdk_pointer_grab(GdkWindow*, gboolean, GdkEventMask, GdkWindow*, GdkCursor*, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:86): Use 'gdk_device_grab' instead [-Wdeprecated-declarations] if (gdk_pointer_grab(win, FALSE, (GdkEventMask)(GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK), NULL, ^ gcontrol.cpp:2060:33: warning: 'GdkGrabStatus gdk_pointer_grab(GdkWindow*, gboolean, GdkEventMask, GdkWindow*, GdkCursor*, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:86): Use 'gdk_device_grab' instead [-Wdeprecated-declarations] gApplication::lastEventTime()) != GDK_GRAB_SUCCESS) ^ gcontrol.cpp:2065:6: warning: 'GdkGrabStatus gdk_keyboard_grab(GdkWindow*, gboolean, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:93): Use 'gdk_device_grab' instead [- Wdeprecated-declarations] if (gdk_keyboard_grab(win, FALSE, gApplication::lastEventTime()) != GDK_GRAB_SUCCESS) ^ gcontrol.cpp:2065:65: warning: 'GdkGrabStatus gdk_keyboard_grab(GdkWindow*, gboolean, guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:93): Use 'gdk_device_grab' instead [- Wdeprecated-declarations] if (gdk_keyboard_grab(win, FALSE, gApplication::lastEventTime()) != GDK_GRAB_SUCCESS) ^ gcontrol.cpp:2067:3: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2067:38: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2083:2: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2083:37: warning: 'void gdk_pointer_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_pointer_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2084:2: warning: 'void gdk_keyboard_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:104): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_keyboard_ungrab(GDK_CURRENT_TIME); ^ gcontrol.cpp:2084:38: warning: 'void gdk_keyboard_ungrab(guint32)' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:104): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations] gdk_keyboard_ungrab(GDK_CURRENT_TIME); ^ make[4]: *** [gb_gtk3_la-gcontrol.lo] Error 1 make[4]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.gtk3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk' make: *** [all] Error 2 From vuott at ...325... Tue Dec 31 15:58:15 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 31 Dec 2013 14:58:15 +0000 (GMT) Subject: [Gambas-user] Icon "Printer" doesn't show...... Message-ID: <1388501895.74143.YahooMailBasic@...3271...> Hello, well, the problem does not exist. I'm sorry for the inclusion of my message, unfortunately our friend had not made ??explicit in his first "post" he believed that the "Printer" component icon was also a kind of "Button" to start printing. ...and so, I understood that he did not see the icon after he have just placed on the form during programming. Excuse me. :-( Regards vuott From gambas at ...2524... Tue Dec 31 16:57:35 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 15:57:35 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 491 by benoit.m... at ...626...: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 (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 Dec 31 16:58:35 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 15:58:35 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <1-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 491 by benoit.m... at ...626...: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 It should be fixed in revision #6042? -- 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 Dec 31 17:02:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 16:02:27 +0000 Subject: [Gambas-user] Issue 490 in gambas: Possible printing bug? (printing multiple 1st pages) In-Reply-To: <0-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #1 on issue 490 by benoit.m... at ...626...: Possible printing bug? (printing multiple 1st pages) http://code.google.com/p/gambas/issues/detail?id=490 Printer_Draw() is called for each page, and you are printing the same text at the same position on the current page, so you are always printing the same thing at each page. -- 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 Dec 31 17:13:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 16:13:47 +0000 Subject: [Gambas-user] Issue 490 in gambas: Possible printing bug? (printing multiple 1st pages) In-Reply-To: <1-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> <0-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16919635368756439082-gambas=googlecode.com@...2524...> Comment #2 on issue 490 by jonericn... at ...626...: Possible printing bug? (printing multiple 1st pages) http://code.google.com/p/gambas/issues/detail?id=490 I thought that the argument "Paint.Height * Printer1.Count" on line #91 was the syntax to print all of the separate pages: Paint.DrawRichText(strInput2, fPrintMargin, fPrintMargin * 2,, Paint.Height * Printer1.Count, Align.TopNormal) Can you advise about how to fix my code in the sample program? -- 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 Dec 31 19:37:24 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 18:37:24 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <2-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Comment #3 on issue 491 by krisztiankende: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 Yes, but not like this: Print "alma" Like "{szilv,alma}a" Error: Bad regular expression: Missing '}' -- 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 Dec 31 20:44:11 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 19:44:11 +0000 Subject: [Gambas-user] Issue 492 in gambas: 'gb.gtk3' component bugs Message-ID: <0-6813199134517018827-16988232039338248499-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 492 by krisztiankende: 'gb.gtk3' component bugs http://code.google.com/p/gambas/issues/detail?id=492 I see that this component isn't yet finished, but theoretically stable is labeled. - If I change the window or panels Background value to 'Foreground' (dark color), then the color is remains light. This will generate a lot of visual errors. - TextBox and SpinBox background color cannot be changed (not entirely). - Buttons background color cannot be changed. - Frame, TabStrip texts are invisible because color error. That's all, but surely there is more. Anyway good, missed already (like 'gb.qt5'). :-) I use revision #6043 on Ubuntu 13.10 (amd64). -- 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 Dec 31 20:51:22 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 19:51:22 +0000 Subject: [Gambas-user] Issue 492 in gambas: 'gb.gtk3' component bugs In-Reply-To: <0-6813199134517018827-16988232039338248499-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16988232039338248499-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16988232039338248499-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 492 by benoit.m... at ...626...: 'gb.gtk3' component bugs http://code.google.com/p/gambas/issues/detail?id=492 Please use the mailing-lists for reporting bugs on code being written, and don't write a list of bugs inside an issue. Note: "Stable" means more that the API is stable, than it is not full of bugs! Note #2: I don't know yet if I can fix all of that. GTK+3 is as much a nightmare than GTK+2, it is not finished, its API is not stable. -- 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 Dec 31 21:46:28 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 20:46:28 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <3-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #4 on issue 491 by benoit.m... at ...626...: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 (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 Dec 31 22:40:03 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Dec 2013 21:40:03 +0000 Subject: [Gambas-user] Issue 491 in gambas: LIKE operator bug again In-Reply-To: <4-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> <0-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-7703999629376476177-gambas=googlecode.com@...2524...> Comment #5 on issue 491 by benoit.m... at ...626...: LIKE operator bug again http://code.google.com/p/gambas/issues/detail?id=491 Try with revision #6044 now, it should be ok. -- 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