Re: [Gambas-user] Draw.Text problem with control chars
Doriano Blengino wrote: A tab width is normally eight spaces Every single one of my cites say you're completely wrong. http://en.wikipedia.org/wiki/Tab_key www.jwz.org/doc/tabs-vs-spaces.html http://stackoverflow.com/questions/268538/tab-versus-space-indentation-in-c http://stackoverflow.com/questions/119562/tabs-versus-spaces-in-python-programming http://wiki.answers.com/Q/How_many_spaces_is_a_tab http://wiki.answers.com/Q/When_and_how_do_you_indent_to_begin_a_paragraph http://srfi.schemers.org/srfi-49/mail-archive/msg0.html Where is your single cite saying you are right? I have 824,000+ more references to fall back on, but I'm sure you'll get the idea. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PING Benoît (ServerSocket)
On Fri, 2009-11-06 at 08:37 +0100, Ron wrote: Kad Mann wrote: On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: Benoît Minisini a écrit : ... But if rebooting your Linux server does not make the application work again, I can't really suspect Gambas, as it does not save anything on the hard disk, especially the network component. Did you test the connection with telnet, or any other non-Gambas program? Did you test another socket server application not made in Gambas? The only possibility I see would be a memory corruption in the network component - it is possible, I didn't write it :-). By reading the source code of the Listen() method, I didn't see anything that could lead to that. But I will check again. May be a RAM is corrupted, running a full memtest86+ could reveal that (well @ least 2 tests: while physically swapping RAMs between tests in order to completely test low addresses of the 1st one) Gawd! I've got 8Gig to test. I'll take the advice, just to make sure but the problem has happened on two machines with the very same symptoms. Thanks. Just thinking out loud maybe it helps. You talked about a Windows machine at one end, maybe also check its firewall and antivirus settings, if any. I know for example Kaspersky 2010 sits between all the network connections you have, maybe some strange pattern is seen as evil, and the connection gets cut off in the middle. Check logs. I have the problem on linux and linux alone. Windows has nothing to do with it. If you transfer lots of (other) network data, make sure your switches/pcs/routers's network interfaces etc. are in the correct mode, full duplex/duplex, Well, that'll be a great help if I have only wireless. Nevertheless my network is wired but the network is not the culprit either. lots of equipment doesn't negotiate mode correctly, resulting in one device in half- and the switch in full duplex for example, it seems to work, but not 100%... you get network errors, and strange behavior. Also nothing to do with it. The problem occurred first when a Windows server was involved, however it has also happened since on a standalone linux talking to itself on localhost. The second time I posted about the problem I didn't mention Windows because Windows has been completely eliminated from the equation. I couldn't see if you are running on 64 Bits Linux, I have had many occasions of problems at the startup of my project, some times my project started 30 times in a row without any problem and the 31th time bingo! It made me nuts back then... It had to do with memory space Gambas was loaded in, if it was in 64Bit memory space, it was unstable. (those bugs are fixed by Benoit so don't worry) It has happened on both x86 and x64, and I am using x64 right now. Just to illustrate that sometimes you oversee something obvious at first, and you point at the wrong code just because you don't know where to look. Yes, true but I do know where not to look. My 2 cents. Regards, Ron_2nd. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PING Benoît (ServerSocket)
On Fri, 2009-11-06 at 09:20 +0100, Ron wrote: Ok fair enough ... Overlooked the linux-localhost part, so you're right we cannot point at Bill. lol Did you try to run valgrind tool already like Benoit suggested? Not just yet. I've almost maxed out my bandwidth and still have a week to go before it rolls over so I'm taking the downloading easy. I've made a note to check it out. It has proven to be very helpful to catch bugs... I had to run it several times in the past and although the output can be massive it's worth the try. Thanks, appreciated. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas3
Is it worth trying Gambas3 while it's not released? Or should I stick with Gambas2? Are there any instructions on how to get Gambas3 and compile it? -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PING Benoît (ServerSocket)
On Thu, 2009-11-05 at 11:54 +0100, Benoît Minisini wrote: Did you test the connection with telnet, or any other non-Gambas program? Did you test another socket server application not made in Gambas? No. I don't have one. The only possibility I see would be a memory corruption in the network component - it is possible, I didn't write it :-). By reading the source code of the Listen() method, I didn't see anything that could lead to that. But I will check again. That's all I'm asking :) A way to see these kinds of error is running Gambas inside valgrind: $ cd /path/to/my/application/project $ valgrind --tool=memcheck --num-callers=40 --track-origins=yes gbx2 ... And tell me all the messages reported by valgrind during the life of the application. The broken pipe error is irrelevant because I am using a different machine and still have the same issue. I thought you were talking about an error message from your gambas application. The message was in Gambas. A Windows server rebooted. However since then I have changed machines (both the server machine and the workstation) and had the same problem with PUBLIC SUB Socket_Read() or WRITE #Client in PUBLIC SUB Socket_Ready()... until I swapped those two lines of code around. the ServerSocket example stopped working too Yes, it did. I'll keep my eye on the problem. I want to be able to say, I TOLD YOU SO!!! Mind you, it doesn't exactly instil confidence in me to bother getting the application finished. If the information you gave are all exact (rebooting changed nothing, suddenly everything works again), the problem should come from something outside of the operating system. It wasn't working until I the instant I swapped those two lines then, VOILA! It suddenly worked and refused to let me repeat the problem. Anyway, all I wanted was for you to take a look and you've offered to do that so I'm happy. If it happens again I'll let you know if I discover anything. Thanks, your help is appreciated. Regards, -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Really weird socket problem
On Mon, 2009-10-19 at 10:19 -0500, nando wrote: 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. Windows can't be the problem because the client and the proxy are on the linux box. The client is not communicating with the proxy over a socket. The server is on Windows and has nothing to do with the issue. Nevertheless, thanks for trying. -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
[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...
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
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] make Label background from Database field
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. -- 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 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. 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? Real programmers prefer to do things their way, with few versatile mechanisms. So, who do you believe might not be a real programmer? The more a component gets complicated, the less people understand it; just now, many problems arise from the fact that people don't read documentation, and even when they do, they don't notice some important feature; and often that feature is not exactly you need. So, you feel that if a DataControl was given similar functionality to a TextBox, you might not understand it? To Vassilis: I don't know what more to say about your problem. Better to wait for Benoit. Regards to all, -- 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 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 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. -- 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 :) -- 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] Code Editor Problem
This looks like a bug to me. If I create a module name modConstants and add these two lines: PUBLIC CONST BTN_CANCEL AS Integer = 0 PUBLIC CONST BTN_OK AS Integer = 1 If I then edit, say, FMain, I can then refer to those constants by typing the module name and a period. Gambas will then show me BTN_CANCEL and BTN_OK in a popup window. No such thing happens if the module name is from 1 to 3 characters in length. The problem is, I need a module to be called k, nothing else, and I need the constants to be displayed when I type k and a period. I am working on a huge translation project that has 800+ constants and I want to save both thousands of needless key strokes and needless hours copying and pasting a longer module name. I could find no documentation regarding limitations on the name of modules. Comments anyone? -- 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] Code Editor Problem
On Sat, 2009-10-17 at 10:52 +0200, Doriano Blengino wrote: Kad Mann ha scritto: This looks like a bug to me. If I create a module name modConstants and add these two lines: PUBLIC CONST BTN_CANCEL AS Integer = 0 PUBLIC CONST BTN_OK AS Integer = 1 If I then edit, say, FMain, I can then refer to those constants by typing the module name and a period. Gambas will then show me BTN_CANCEL and BTN_OK in a popup window. No such thing happens if the module name is from 1 to 3 characters in length. The problem is, I need a module to be called k, nothing else, and I need the constants to be displayed when I type k and a period. I am working on a huge translation project that has 800+ constants and I want to save both thousands of needless key strokes and needless hours copying and pasting a longer module name. I could find no documentation regarding limitations on the name of modules. I think it is not a limitation on the module's name, but a limitation on the auto-completion routine of the IDE. It seems that auto-completion waits for three characters before starting to clobber your editor with popups windows; but it would make sense to enable anyway the autocompletion if you type in a dot. Yes, that's what I was thinking. This is not an answer to your question, but may help anyway. No problem. Thanks for replying. -- 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] Code Editor Problem
On Sat, 2009-10-17 at 16:21 +0200, Benoît Minisini wrote: No such thing happens if the module name is from 1 to 3 characters in length. The problem is, I need a module to be called k, nothing else, and I need the constants to be displayed when I type k and a period. Do you mean that if you type k then a period, you won't see the completion popup of the module k ? Yes, that's correct. Typing k. does not show the completion popup. -- 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 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. -- 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] Form exit code when [X] clicked
On Fri, 2009-10-16 at 20:13 -0600, Dimitris Anogiatis wrote: Hey Bruce, Does it work for a normal form (not a Modal one)? 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] Normal behaviour for GTK+?
On Wed, 2009-10-14 at 19:35 +0200, Benoît Minisini wrote: On Tue, 2009-10-13 at 18:58 +0200, Benoît Minisini wrote: This has me pulling my hair out. I think I have narrowed the problem down to the GTK+ toolkit for Gambas. If I create a GTK+ project and put a TextBox and a ValueBox on a form and set their default values, when I tab to the TextBox I can over-type the text, but when I tab to the ValueBox, the number I type is appended: For example, if the ValueBox contains 5000 and I type 7, the value becomes 50007. However if I change the project to use a Qt GUI, it works as I expect, i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I have been able to reproduce this behaviour. Is that normal for GTK+? Is there anything I can do short of using Qt? Am I doing something wrong? Also, I can't find any documentation why I might use Qt in Gambas as opposed to GTK+ in Gambas. Opinions on what is best and why will be appreciated. Which version of Gambas do you use? V2.16. I had to make an hack in gb.gtk recently to make all basic events (Mouse, Keyboard, Enter and Leave) behave the same way as in gb.qt. But the 2.17 is not released yet (I'm currently busy with a theatre play), but you can try /branches/2.0 in the svn repository. Can you make a little project for me that has the bug you describe? I will test it with the future 2.17, and I will see if the bug has gone. I can make one a lot smaller than little: PUBLIC SUB Form_Open() ValueBox1.Value = 999 END :) Create a new GTK+ project with no options, drag a ValueBox to the default form. When you run the app, tab into the ValueBox so that 999 is selected then type another number. OK. There was a bug in the gb.gtk TextBox.Insert() method. The selected text was not deleted by the insertion, as usually expected. I fixed it in revision #2394. lol - I found my first bug! I'll buy some Aussie beer tonight and will celebrate. Glad I could help. Look, I've got a lot of documentation experience so I've sent an email to 'gambas' to sign up for access so I can help out. If the requests go to you, the one arriving about now is from me. Regards, -- 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] DataBrowser question
On Wed, 2009-10-14 at 16:16 +0200, Ricardo Díaz Martín wrote: If someone needs it I can put here . I'd like to see it. Note the component is in spanish ;-) I'm sure the code will speak for itself :) -- 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