Re: [Gambas-user] make Label background from Database field
Kad Mann ha scritto: On Sun, 2009-10-18 at 14:00 +0200, Doriano Blengino wrote: Kad Mann ha scritto: On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: Kad Mann ha scritto: On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: Kad Mann ha scritto: On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: Dimitri I don't understand Why don't you take a look at the database example in Gambas? After creating the test table, if you type in an SQL command and click the run button, you will see a gridview with a myriad colours that can be changed based on the data. Surely something like that has to be easier than trying to work out how to manage a hundred labels on a screen, and surely it will offer you much better and easier control of future UI changes, and surely it will offer a more pleasing and intuitive presentation to your user. Surely something like that has to be easier and surely much better and easier control. Yes and no I didn't ask you. True, and neither Vassilis asked you something... you can't understand him, but I can understand you. In one of your last mail you noticed that data controls don't have all the properties as other textboxes, such alignment and so on. Be prepared for other surprises. Everybody would love to have controls with lots of properties in order to do everything you want, but this is impossible (can you believe it? Once you have put 100 properties in a control, you will find someone asking for the #101). Of course, the point is, I didn't ask for the features. Did I? I asked is the limitation by design, are there plans to change it, and is there a workaround. You are very precise... so I will do too. I didn't say *you* asked for features (did I?). Nevertheless you was talking about features... Then why did you bring up my question in the first place?about it Because it was in-topic and because it seemed to me that you did'nt get the original intentions. And about features, you did'nt ask for them, and I did'nt say you asked for them. But to be aware of a limitation is halfway to ask for those limitations to be removed - unless you say that limitations are a good thing. Besides, do you feel it is unreasonable for someone to want a box used to show the contents of a Field or edit it, a data-bound control intended to save programming time, to have similar functionality to a TextBox? No. Real programmers prefer to do things their way, with few versatile mechanisms. So, who do you believe might not be a real programmer? Are you expecting I say you? No. I don't know who you are, and even if I don't agree with you, I can not say you are not a real programmer. Are outright insults like that permitted on a mailing list like this one? Hey guy, keep it cool. Yet you had to resort to insults. I did'nt insult anyone in this list - never. Even taking my words the worst possible way, at the point where I expressed a judgment on your ideas (just *some* of your ideas), I did not judged you - this is why I don't believe I had insulted you. Anyway, if you feel insulted, let me say it was not my intention. I would feel very stupid by insulting someone I not even know, just basing on a few 'technical' words he could had say. I hope we will have further occasions to understand each other, if you want. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Why Vassilis' code raised a Result not available
Hi, I renamed the subject, because the thread was too deep for my screen. :-) The following code: PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result MODMain.Connect() rsThesi = MODMain.$Con.exec(select * from egrafes where elenchosAnax = 0) rsThesi.MoveFirst WHILE rsThesi.Index rsThesi.Count change_bgcolor(Label rsThesi!thesi) rsThesi.MoveNext WEND MODMain.$Con.Commit() END ...does not work and raise Result not available because when you reach the end of the Result and call MoveNext(), the Index property switches to -1 (-1 meaning not available). And as -1 is always lower then rsThesi.Count, the loop continues. Writing `WHILE rsThesi.Index rsThesi.Count - 1' does not raise the error, but you lose the last record of the Result! So it is wrong too. So, as Werner wrote, the right way of writing that code is: FOR EACH rsThesi ME[Label rsThesi!thesi].Background = Color.Red NEXT And the commit is useless, as you didn't write anything to the database. And, finally, to Kad Mann: Vassili used a bunch of Labels and not a GridView because he used them for drawing a camping schema. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Really weird socket problem
I need pointers on where I might look to solve this. I've written a proxy class in gambas (2.16) and it was working brilliantly when I went to be last night and left it running. When I got up this morning my Linux desktop, which was running the compiled gambas program, note compiled program - not inside the IDE, displayed a message about a broken pipe in the proxy class. I didn't get the message in full (my bad), but it was very brief and didn't say much more than cProxy: broken pipe error. On investigating, my Windows server had rebooted (hahaha stupid MS patch got auto-installed) and ever since, my gambas proxy does not work anymore on the local machine. I went back through eight known good revisions of the code (I save working revisions as I go, just in case something like this happens due to an error on my part) but not a single one of them works at all. Therefore I know it's not my code that is the problem. I put some debugs into the latest code and this is what I get: 1. cProxy.StartProxyServer.42: StartProxyServer 2. cProxy.ProxyServer_Connection.53: ProxyServer_Connection 3. cProxy.Socket_Ready.124: Socket_Ready 4. cProxy.KillProxy.176: KillProxy At 1, the proxy is started and is listening. At 2, a connection is received at the proxy from a client application, in this case Pan or SeaMonkey. At 3, the socket is established and ready to talk. Between 3 and 4, several different clients (Pan and Seamonkey) exhibit the same symptoms, they behave as if there is no communication on the socket. Pan resets the connection and keeps trying. Seamonkey just waits and waits. At 4, the proxy has detected that the client connection has gone away so it kills the remote connection and starts listening for more incoming client connections, which is what the KillProxy procedure is suppsoed to do. I tried pointing the clients to localhost and 127.0.0.1, with different port values, all above 5000. In desperation I tried 119 on the localhost. Still no change. I rebooted twice. My Ubuntu has not been updated since last week. Finally I tried the socket example that comes with gambas. It too fails to connect with itself. It says Host found. Connecting..., then some 10 or 15 seconds later, it says Timeout trying to stablish [sic] connection. My gambas appears to be b0rked. Perhaps the solution is to uninstall gambas and recompile it, but I'd prefer to find out why it blew up the way it did. Anyone care to try and shed some light on this weird issue? Could a crashed pipe cause a compiled gambas application to scribble all over itself and damage the socket component in the same deal? -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] make Label background from Database field
On Mon, 2009-10-19 at 10:34 +0200, Doriano Blengino wrote: Kad Mann ha scritto: I did'nt insult anyone in this list - never. Even taking my words the worst possible way, at the point where I expressed a judgment on your ideas (just *some* of your ideas), I did not judged you - this is why I don't believe I had insulted you. Anyway, if you feel insulted, let me say it was not my intention. I would feel very stupid by insulting someone I not even know, just basing on a few 'technical' words he could had say. I hope we will have further occasions to understand each other, if you want. No, you didn't insult anyone, and I sincerely apologise. I was having great difficulty following your English and when I went back to look at where I thought you had insulted me, I realised I had completely misread what you said. Let's leave there, hey, and let's have better luck next time. Again, my sincere apologies. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Why Vassilis' code raised a Result not available
On Mon, 2009-10-19 at 10:41 +0200, Benoît Minisini wrote: And, finally, to Kad Mann: Vassili used a bunch of Labels and not a GridView because he used them for drawing a camping schema. I'm keeping my mouth shut :) -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas and Gnome dependencies...
I'm building Gambas on Gentoo and it's dragging in all kinds of gnome libraries... My question is why? Jerry Gambas needs GTK+ libraries and the gnome keyring library for Gambas 3. But no other gnome libraries afaik. -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing feature?
On Sun, 2009-10-18 at 17:53 +0200, Benoît Minisini wrote: TextBoxes and Labels have an alignment property but DataControls do not. Is that by design? Are there plans to change it? Is there a workaround to allow the alignment of a DataControl, apart from hiding the DataControls and mirroring the data in a TextBox? Not really, not really. But it should be not really difficult to add it. The idea behind DataControl is changing the actual control used according to the datatype of the field. So it just a matter of being careful that not all true controls used by DataControl support an Alignment property. If I remember, at the moment, Number are right aligned, and other data left aligned by default. Ok, thanks. I'll put it down as a limitation :) Is there any way to set the foreground and background colours of a disabled TextBox to something other than the almost unreadable colours used in the default linux colour schemes? All suggestions, other than rude suggestions, are welcome. Alas the behaviour of disabled controls mostly depends on the toolkit, the theme used, and the colours used in the control center for KDE. And if setting the background (or foreground) color of a control sets its colour both for normal and disabled mode, there will be no way for the user to see the difference between a normal and a disabled control, which is not a good thing. I found a perfect workaround while I was working around the limitation mentioned above. The TextArea control doesn't change the colour of text when it is disabled. Instead of using the TextBox control to replace the DataControls, which I need to align, I now use TextArea. It looks good, like it should. If TextArea isn't supposed to be like that, please don't fix it :) The cleaner way to play with the control used by DataControl is using DataControl.Children[0], that returns a reference to it. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas and Gnome dependencies...
On Sun, 2009-10-18 at 18:46 -0400, Jerry McBride wrote: I'm building Gambas on Gentoo and it's dragging in all kinds of gnome libraries... My question is why? Before downloading Gambas, compiling it and then complaining, please read the following remarks CAREFULLY! http://gambasdoc.org/help/readme One would presume that the compile is dragging in gnome libraries because they are needed. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] make Label background from Database field
Kad Mann ha scritto: No, you didn't insult anyone, and I sincerely apologise. I was having great difficulty following your English... Is my english so bad? If you have difficulties to read it, think at the difficulties I have to write it... :-) Feel free to correct me, my own language is so complicated to translate. Regards, Doriano -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] make Label background from Database field
On Mon, 2009-10-19 at 11:46 +0200, Doriano Blengino wrote: Kad Mann ha scritto: No, you didn't insult anyone, and I sincerely apologise. I was having great difficulty following your English... Is my english so bad? If you have difficulties to read it, think at the difficulties I have to write it... :-) lol -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Really weird socket problem
My experience over the years with Gambas and really odd issues that appears to point to Gambas failing always (ALWAYS!) was that Gambas did not fail, but something else broke. Unless you have a hard drive failure, bad cable, etc, your Gambas is almost certainly working just fine. Something else changed somewhere else. Try telneting from a shell to what you want. Remember, windows update can reset firewalls, add rules do things and change settings and never ask you. Look there first. You'll find windows is probably the issue. -Fernando -- Original Message --- From: Kad Mann nospam.nospam.nos...@gmail.com To: gambas gambas-user@lists.sourceforge.net Sent: Mon, 19 Oct 2009 20:03:53 +1100 Subject: [Gambas-user] Really weird socket problem I need pointers on where I might look to solve this. I've written a proxy class in gambas (2.16) and it was working brilliantly when I went to be last night and left it running. When I got up this morning my Linux desktop, which was running the compiled gambas program, note compiled program - not inside the IDE, displayed a message about a broken pipe in the proxy class. I didn't get the message in full (my bad), but it was very brief and didn't say much more than cProxy: broken pipe error. On investigating, my Windows server had rebooted (hahaha stupid MS patch got auto-installed) and ever since, my gambas proxy does not work anymore on the local machine. I went back through eight known good revisions of the code (I save working revisions as I go, just in case something like this happens due to an error on my part) but not a single one of them works at all. Therefore I know it's not my code that is the problem. I put some debugs into the latest code and this is what I get: 1. cProxy.StartProxyServer.42: StartProxyServer 2. cProxy.ProxyServer_Connection.53: ProxyServer_Connection 3. cProxy.Socket_Ready.124: Socket_Ready 4. cProxy.KillProxy.176: KillProxy At 1, the proxy is started and is listening. At 2, a connection is received at the proxy from a client application, in this case Pan or SeaMonkey. At 3, the socket is established and ready to talk. Between 3 and 4, several different clients (Pan and Seamonkey) exhibit the same symptoms, they behave as if there is no communication on the socket. Pan resets the connection and keeps trying. Seamonkey just waits and waits. At 4, the proxy has detected that the client connection has gone away so it kills the remote connection and starts listening for more incoming client connections, which is what the KillProxy procedure is suppsoed to do. I tried pointing the clients to localhost and 127.0.0.1, with different port values, all above 5000. In desperation I tried 119 on the localhost. Still no change. I rebooted twice. My Ubuntu has not been updated since last week. Finally I tried the socket example that comes with gambas. It too fails to connect with itself. It says Host found. Connecting..., then some 10 or 15 seconds later, it says Timeout trying to stablish [sic] connection. My gambas appears to be b0rked. Perhaps the solution is to uninstall gambas and recompile it, but I'd prefer to find out why it blew up the way it did. Anyone care to try and shed some light on this weird issue? Could a crashed pipe cause a compiled gambas application to scribble all over itself and damage the socket component in the same deal? -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial port.
Thanks. --- 19/10/09 Pzt tarihinde nando nand...@nothingsimple.com şöyle yazıyor: Kimden: nando nand...@nothingsimple.com Konu: Re: [Gambas-user] serial port. Kime: mailing list for gambas users gambas-user@lists.sourceforge.net Tarihi: 19 Ekim 2009 Pazartesi, 18:23 If you want to send a binary 37 to serial port Sport, then you can do any of these: 1. Print #Sport, %; 2. Print #Sport, Chr$(37); 3. S=Chr$(37) Write #Sport, S, 1 You do not have to 'convert' to binary. -Fernando -- Original Message --- From: abdurrahman ulusoy uluso...@yahoo.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sun, 18 Oct 2009 09:57:25 -0700 (PDT) Subject: [Gambas-user] serial port. hi i want to send data to serial port. when i send a number (for exam: 37) , what is writing gambas to seri port (100101 or 37) ? if gambas write (37) how can i convert decimaltobinary. (are there any module or command ? ___ [UTF-8?] Yahoo! Türkiye açıldı! http://yahoo.com.tr [UTF-8?] Ä°nternet üzerindeki en iyi içeriÄŸi Yahoo! Türkiye sizlere sunuyor! -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___ Yahoo! Türkiye açıldı! http://yahoo.com.tr İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor! -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user